Sudo VBoxManage createhd -filename /var/box/Ubuntu_1604.vdi -size 10280 -format VDI -variant Standard Step 4: Attach the Virtual Hard Disk
Next, create virtual HDD with 10GB size and format it as VDI with standard variant. Sudo VBoxManage storagectl Ubuntu_1604 -name "Ubuntu_1604_SATA" -add sata Next, create a storage sata controller named “Ubuntu_1604_SATA Sudo VBoxManage modifyvm Ubuntu_1604 -nic1 nat
If you want it to be bridged, change nat to bridged. Sudo VBoxManage modifyvm Ubuntu_1604 -memory 1024 -boot1 dvd -vrde on -vrdeport 5001Īdd a network adapter and NAT it by running the commands below. Next, modify the guest os to increase the system memory, include a virtual dvd drive and well as enable VRDP (Virtual Remote Desktop Protocol) to access the guest machine remotely by running the commands below. Snapshot folder: /var/vbox/Ubuntu_1604/Snapshots You should see something like the content below: Name: Ubuntu_1604 Sudo VBoxManage createvm -name Ubuntu_1604 -ostype Ubuntu_64 -register -basefolder /var/vboxĪfter running the commands above, run the commands below to view information about the guest OS you just created. Then run the commands below to create your first guest machine named Ubuntu_1604 and store the configurations in /var/vbox