轉載VMware Sever 複製方法__ Clone Virtual Machine with VMware Server 2.0

來源:互聯網
上載者:User

按照漢語的步驟進行就可以。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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.