|
base folder
VM Name
VM Groups
Guest OS
Storage Controller Name
{ISO_MEDIUM_FILENAME}
{VDI_MEDIUM_FILENAME}
VBoxManage createvm --name {VMNAME} --groups {VMGROUP} --ostype {OSTYPE} --basefolder {BASEDIR} --register VBoxManage modifyvm {VMNAME} --rtcuseutc on VBoxManage modifyvm {VMNAME} --firmware efi VBoxManage modifyvm {VMNAME} --memory 1536 VBoxManage modifyvm {VMNAME} --vram 256 VBoxManage modifyvm {VMNAME} --nic1 bridged VBoxManage modifyvm {VMNAME} --cableconnected1 on VBoxManage modifyvm {VMNAME} --nicpromisc1 allow-all VBoxManage modifyvm {VMNAME} --bridgeadapter1 eth0 VBoxManage modifyvm {VMNAME} --vrde on VBoxManage modifyvm {VMNAME} --vrdeport 53389 VBoxManage modifyvm {VMNAME} --vrdeauthtype null VBoxManage modifyvm {VMNAME} --vrdemulticon on VBoxManage modifyvm {VMNAME} --vrde off VBoxManage storagectl {VMNAME} --name {STORAGENAME} --add sata VBoxManage storagectl {VMNAME} --name {STORAGENAME} --portcount 5 VBoxManage storagectl {VMNAME} --name {STORAGENAME} --hostiocache on VBoxManage storagectl {VMNAME} --name {STORAGENAME} --bootable on VBoxManage storageattach {VMNAME} --storagectl {STORAGENAME} --port 0 --type dvddrive --medium {ISO_MEDIUM_FILENAME} --mtype readonly VBoxManage createmedium --filename {VDI_MEDIUM_FILENAME} --size 25600 --format VDI VBoxManage modifymedium {VDI_MEDIUM_FILENAME} --compact VBoxManage storageattach {VMNAME} --storagectl {STORAGENAME} --port 1 --type hdd --medium {VDI_MEDIUM_FILENAME}