-
Website
http://www.dannorris.com/ -
Original page
http://www.dannorris.com/2007/08/31/cloning-a-vm-on-esx-server-301/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
oraclebase
2 comments · 7 points
-
fuadar
1 comment · 1 points
-
TongucY
2 comments · 1 points
-
dougk
4 comments · 1 points
-
Brian Bent
2 comments · 1 points
-
-
Popular Threads
cp: cannot open `Test/Test.vmxf' for reading: Permission denied
cp: cannot open `Test/Test.vmsd' for reading: Permission denied
cp: cannot open `Test/Test-flat.vmdk' for reading: Permission denied
cp: cannot open `Test/Test.vmdk' for reading: Permission denied
cp: cannot open `Test/Test.nvram' for reading: Permission denied
The VM is stopped. I continued on and edited the vmx file. When I started the VM, it said there is a missing file and stopped. BTW you need to rename the VM inside the vmx file or there will be double entries.
http://www.vmware.com/products/converter/
I've used the converter free tool and it works quite well, but that's not what this post was about.
the converter tool addresses exactly what this post was about.
Please correct me if I'm wrong.
Reference: http://www.vmware.com/products/converter/get.html
vmkfstools -i
?
1. Create a new machine using VM Infrastructure Client choosing the same base OS that you want to clone.
2. Once the machine is created, you log into the ESX server as root through SSH and locate the new VM machine (VMnew).
3. Now what you can do is copy the “VMoriginal-flat.vmdk” file that you want to clone and replace the new VM “VMnewflat.vmdk” file with “VMoriginal-flat.vmdk”, making sure you change the name.
4. Start the new VM from the VM Infrastructure Client.
than one specific case.
log into esx server
su to root and type the following command
$ vmkfstools -i /vmfs/volumes/datastore/sourcevm/sourcevm.vmdk /vmfs/volumes/datastore/destvm/destvm.vmdk
this will clone the virtual machine from source to destination
once you have finished cloning
go to vi client and run file->new virtual machine
use custom instead of typical
give the same name as the destination virtual machine name
use next next until you get to point where it ask’s you for select disk change it to use an existing virtual disk and specify the path to .vmdk file
and click next and next and finish this job
Now you should be able to turn on the machine with out any issues
Hope this works for you ;)
We've upgraded our ESX server now, so I'm not sure if this method works
on 3.0.1 or not, but next time we need to clone, I'll give it a try on
our current version.
Thanks!
Also note that if you have snapshots this clone process will not clone the data that came after the snapshots. You have to merge the snapshots first - at least as far as I can tell
http://www.trilead.com/Products/VM_Explorer/
Thanks for the tip. One of the admins here installed the tool to try it out and says it's awesome and can't believe that he gets exactly the types of things he needs for free. There is a pay-for version, but the free version does all he needs, so he's quite pleased. You've made someone's life easier--thanks!
I wonder if you can provide me with your (colleagues) backup and restore process with VM Explorer?
I have been able to backup and restore but, I've not been able to get the restored VM to detect the operating system.
If you can help, I would very much appreciate it!
Thanks!
Herc
I cloned the source OAS to target using perl scripts provided in clone/bin on OAS. After cloning my source OAS became very slow.
Please let me know if i need to remove any files after cloning on source?
Thanks
Thank you
doesn't work on 3.5