仮想マシンをコマンドラインでヘッドレスインストールする

手順

 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

参考


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2018-06-19 (火) 09:52:34