转载VMware Sever 克隆方法__ Clone Virtual Machine with VMware Server 2.0

来源:互联网 发布:淘宝退货率怎么算 编辑:程序博客网 时间:2024/06/01 10:28

按照汉语的步骤进行就可以。
Depending on the type of disk (.vmdk) that you have, the disk file referenced in the .vmx file will actually be a small ASCII file that contains the details of the actual binary files. This is certainly the case when the disk is split into 2GB chunks. If this is the case then you need to edit this .vmdk text file to change the file names in here too.

 

Guy Leech

 

建议使用NTFS格式去格式化硬盘。因为FAT32只能支持2GB的硬盘,NTFS就可以支持大硬盘。


VMware vExpert 2009

 

So you should not choose the option "Split disk into 2GB files" in FILE OPTIONS that also means your disk where the vm-sys files located must be NTFS format. If it is FAT32 you should choose this option and you cannt clone!!!--edit by me 

 

1. Create target VM directory
首先,建立一个放置VM机的目录


2. Copy all files from source VM directory to target VM directory
复制一个已经存在的虚拟机所有文件


3. Rename all file prefixes in target directory to your new VM name
将前缀改名。注意只是改前缀啊。。。"VM2-" -前面的内容。


4. In the VM console do a "Create Virtual Machine"
- Give it the same name as your target directory created above
- Select the relevant options through the following screens (O/S, memory, etc)
- When on the Hard Disk screen, select "Use an Existing Virtual Disk"
- Browse to and select the New_VM_Name.vmdk in your target directory
- Set the remaining options (network adapter, floppy, usb) and finish the wizard.
回到主界面后,点击 Create Virtual Machine,创建新的虚拟机。

注意:

1。 要使用3步中的改过的名字。

2。 选择相关的属性设置vm机

3。 选择已经存在的虚拟盘Use an Existing Virtual Disk。。这里不是创建一个的虚拟硬盘。


5. Go to the VM Console, highlight your new VM and do a "Remove Virtual Machine" (DO NOT select the option to delete files)

回到VM控制台,将新增的VM remove,注意不要删除 文件

6. In your datastore folder in your filesystem you will see a newly created directory with three files only. If your target VM directory from step 1 was created here, you will have another directory of the same name but with a "_1" appended (e.g. New_VM_Name_1". Copy the three files from this directory into your target directory from step 1 and overwrite the existing ones.

7. In the VM Console do an "Add Virtual Machine to Inventory". Select the target directory from step 1 and choose the New_Server_Name.vmx.

 

使用VM控制台中的 “Add Virtual Machine to Inventory” 选项,选择目标文件夹,选择那个新的vmx文件。

8. Start the VM from the console
重新开启VM


9. At this point it's O/S specific and my example is for CentOS 4.7. You will need to reconfigure the VM for a new adapter with a new MAC (else you will get an error booting), as well as the network settings(IP, DNS, etc). Follow the steps below to do so.

- Upon booting you should be promted by the application Kudzu about hardware changes. Hit any key within the alloted time to enter Kudzu.

- You will get a "Hardware Removed" screen regarding the old adapter settings. Select "Remove Configuration".

- The next screen is "Hardware Added". Select "Configure" and configure the new IP address, DNS, etc.

9'.At this point it's Win System specific and my example is for Windows Server 2003. You will see a information above when you POWER ON the cloned system, just choose "move_it" and click OK button.-- Edit by me.

 

重启VM后,打开POWER ON ,选择choose "move_it" 并选择 OK 按钮


10. The server should now boot. After logging in, change your hostname in the DNS Settings of the Network app, or manualy edit /etc/sysconfig/network. Reboot.

重启OK


11. Voila!

 

 

Some is oringal and some is copy form this community:

http://communities.vmware.com/message/1132686

原创粉丝点击