VirtualBox
Create VM

Command Line VM Creation

Create VM

VBoxManage list ostypes

VBoxManage createvm --name OELTest --ostype Oracle_64 --register

VBoxManage showvminfo OELTest

VBoxManage modifyvm OELTest --cpus 2 --memory 2048 --vram 12

VBoxManage modifyvm OELTest --nic1 bridged --bridgeadapter1 enp1s0


to identify ostype for createvm below

to create an empty VM (no OS yet)

to show parameter that you may wish to change

HDD

VBoxManage createmedium disk --filename /path/u01.vdi --size 5120 --variant Standard

VBoxManage createmedium disk --filename /path/u02.vdi --size 5120 --variant Standard

Standard is dynamically allocated storage with upper bound specified by --size, use Fixed to give fixed storage

VBoxManage storagectl OELTest --name "SATA" --add sata --bootable on --portcount 5

VBoxManage storageattach OELTest --storagectl "SATA" --port 0 --device 0 --type hdd --medium /path/u01.vdi

VBoxManage storageattach OELTest --storagectl "SATA" --port 1 --device 0 --type hdd --medium /path/u02.vdi

DVD/ISO

VBoxManage storagectl OELTest --name "IDE" --add ide

To attach the host DVD Drive...

VBoxManage storageattach OELTest --storagectl "IDE" --port 1 --device 0 --type dvddrive --medium host:/dev/dvd

To attach an ISO image...

VBoxManage storageattach OELTest --storagectl "IDE" --port 1 --device 0 --type dvddrive --medium "myiso.iso"

To remove...

VBoxManage storageattach OELTest --storagectl "IDE" --port 1 --device 0 --type dvddrive --medium none

Start VM

VBoxManage startvm OELTest