Clone VM without vCenter & Provisioning of first VM via CLI

Please refer to the following guide on how to Clone Virtual Machine (VM) without vCenter Create a Directory for your new VM, for example AVENTIS-VEEAM

mkdir /vmfs/volumes/240/AVENTIS-VEEAM

Clone a new vmdk file from the VM Template that i had prepared using vmkfstool -i with -d thin (thin provisioning) – the based VM is installed with Windows 2012 R2 Standard Server with latest patches with SYSPREP

vmkfstools -i /vmfs/volumes/240/AVENTIS-TEMPLATE-WIN2012R2/AVENTIS-TEMPLATE-WIN2012R2_0.vmdk /vmfs/volumes/240/AVENTIS-VEEAM/AVENTIS-VEEAM.vmdk
-d thin

It take about 5 Minute to complete in my SSD Hard Disk for 10G file

Destination disk format: VMFS thin-provisioned
Cloning disk '/vmfs/volumes/240/AVENTIS-TEMPLATE-WIN2012R2/AVENTIS-TEMPLATE-WIN2012R2_0.vmdk'...
Clone: 100% done.

Modify the following value based on the new VM Name that i want to registered in my MacBook

  • nvram="AVENTIS-VEEAM.nvram"
  • scsi0:0.fileName = "AVENTIS-VEEAM.vmdk"
  • displayName = "AVENTIS-VEEAM"
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "11"
nvram = "AVENTIS-VEEAM.nvram"
pciBridge0.present = "TRUE"
svga.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
floppy0.present = "FALSE"
memSize = "4096"
bios.bootRetry.delay = "10"
sched.cpu.affinity = "all"
sched.cpu.latencySensitivity = "normal"
powerType.powerOff = "default"
powerType.suspend = "soft"
powerType.reset = "default"
tools.upgrade.policy = "manual"
scsi0.virtualDev = "lsisas1068"
scsi0.present = "TRUE"
sata0.present = "TRUE"
usb.present = "TRUE"
ehci.present = "TRUE"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "AVENTIS-VEEAM.vmdk"
scsi0:0.present = "TRUE"
ethernet0.virtualDev = "vmxnet3"
ethernet0.networkName = "VM Network"
ethernet0.addressType = "generated"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.uptCompatibility = "TRUE"
ethernet0.present = "TRUE"
sata0:0.deviceType = "cdrom-raw"
sata0:0.clientDevice = "TRUE"
sata0:0.fileName = "Cdrom"
sata0:0.present = "TRUE"
displayName = "AVENTIS-VEEAM"
guestOS = "windows8srv-64"
vcpu.hotadd = "TRUE"

Save the file as AVENTIS-VEEAM.vmx, and transferring to vSphere 6U2 host

scp AVENTIS-VEEAM.vmx [email protected]:/vmfs/volumes/240/AVENTIS-VEEAM

Register the new VM

vim-cmd solo/registervm /vmfs/volumes/240/AVENTIS-VEEAM/AVENTIS-VEEAM.vmx
17

Power On the VM

vim-cmd vmsvc/power.on 17
Powering on VM:

I had my First Windows VM running in vSphere now

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top