Command line 控制 VirtualBox

開機: VBoxHeadless -v off -s VMNAME (不開啟 VRDE server)
關機: VBoxManage controlvm VMNAME acpipowerbutton (acpipowerbutton 可換成 poweroff)
掛載光碟: VBoxManage storageattach VMNAME --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium ./CDIMAGE.iso
更改硬碟大小: VBoxManage modifyhd VDIFILE.vdi --resize 30000 (單位 MB)

0 comments:

張貼意見