* 仮想マシンをコマンドラインでヘッドレスインストールする [#r6356ff1]
** 手順 [#ke2c9b77]
vboxmanage createvm --name "testvm" --register
vboxmanage modifyvm "testvm" --memory 1024 --acpi on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0 --ostype Debian_64
VBoxManage createvdi --filename ~/VirtualBox\ VMs/testvm/testvm-disk01.vdi --size 10000
VBoxManage storagectl "testvm" --name "IDE Controller" --add ide
VBoxManage storageattach "testvm" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium ~/VirtualBox\ VMs/testvm/testvm-disk01.vdi
VBoxManage storageattach "testvm" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium ~/tmp/debian-9.4.0-amd64-netinst.iso
vboxheadless --startvm "testvm" &
vboxmanage list vms
vboxmanage list runningvms
vboxmanage controlvm testvm poweroff
** 参考 [#kf10a83e]
- http://xmodulo.com/how-to-create-and-start-virtualbox-vm-without-gui.html
- https://www.debian.org/index.ja.html