Pages

Sunday, August 28, 2011

Clone VM in ESX without vCenter



Login to the ESX/ESXi console to clone vm1 datastore to vm2. 


$ cd /vmfs/volumes/datastore/
$ mkdir vm2
$ vmkfstools -i vm1/vm1.vmdk vm2/vm2.vmdk


Next, create vm2 from the client GUI and choose existing disk option pointing to the newly created vm2.vmdk. 


More details available in the excellent article here.


To read how to access the hidden ESXi console, refer to this article.



4 comments:

  1. Please leave a comment if this post helped you. Thanks!

    ReplyDelete
  2. Can't you just browse the datastore using the vSphere client and copy the file that way using the console copy/paste option?

    ReplyDelete
    Replies
    1. Yes you can, but you can't script it. Tasks can be scripted and automated to some extent by using the ESXi console. This post provides an alternate to using vSphere client, so that it can be used as seen fit.

      Delete
  3. Great Article, very useful. Thanks!

    ReplyDelete