金子邦彦研究室インストールVirtualBox,Vagrant の利用VirtualBox バージョン 5.2 のコマンドライン操作

VirtualBox バージョン 5.2 のコマンドライン操作

Oracle VM VirtualBox は仮想マシンのソフトウエア.

このページでは Windows での VirtualBox バージョン 5.2 の主要な機能をコマンドラインで行ないます.GUI を避けたい場合には便利だと思います(リモート操作とか、操作の自動化とか)

関連する外部ページ

Virtual Box の公式ページ: https://www.virtualbox.org/

情報の取得

以下 Windows での操作例を示す.

※ 上記「...」は list(番号付き) あるいは set

仮想マシンの操作`

関連する外部ページhttp://www.virtualbox.org/manual/ch08.html#vboxmanage-list

ここで実行するコマンド

VBoxManage createvm --name ubuntu1804
VBoxManage registervm /home/kaneko/VirtualBox\ VMs/ubuntu1804/ubuntu1804.vbox
VBoxManage modifyvm ubuntu1804 --ostype Ubuntu_64 --memory 8000 --acpi on --hwvirtex on --nestedpaging on --largepages on --vtxvpid on --accelerate3d on --accelerate2dvideo on --nic1 bridged --bridgeadapter1 enp0s31f6 --usb on --usbehci off
rm -f /home/ubuntu1804.vdi
VBoxManage createhd --filename /home/ubuntu1804.vdi --size 80000
VBoxManage storagectl ubuntu1804 --name ubuntu1804sata1 --add sata --bootable on
VBoxManage storageattach ubuntu1804 --storagectl ubuntu1804sata1 --port 1 --type hdd --medium /home/ubuntu1804.vdi
VBoxManage storageattach ubuntu1804 --storagectl ubuntu1804sata1 --port 2 --type dvddrive --medium /home/www/computer/linux/ubuntu-18.04.1-desktop-amd64.iso
VBoxManage startvm ubuntu1804