Thursday, March 18, 2010

ESXi command line stuff

When you are in a shop that doesn't have budget for Vcenter/vsphere, you need to find ghetto ways to do tasks. There is no CLI manual for ESXi, since enabling ssh on it is in unsupported mode.

1. basic ones

2. use some of them from here.


How to hot clone a VM in a ghetto manner:

1. create a snapshot
2. create a dummy vm
3. delete *.vmdk files in that dummy vm folder
4. copy over *.vmdk (just two, machine.vmdk aand machine-flat.vmdk of the snapshotted vm ) to the dummy vm folder. change names and references, if any.
5. power on the dummy vm.
6. delete snapshots from the old vm.

For more

No comments: