New Virtual Box VM

Needed a Windows VM in VirtualBox on my little home file server (the previously aforementioned files - she's a trooper)

The commands I ran as below:

# switch into default VirtualBox directory
cd VirtualBox\ VMs/

# create new VirtualBox VM
VBoxManage createvm --name "Win10x64" --ostype Windows10_64 --register

# configure system settings of VM
VBoxManage modifyvm "Win10x64" --memory 2048 --cpus 2 --acpi on --pae on --hwvirtex on --nestedpaging on

# configure boot settings of VM
VBoxManage modifyvm "Win10x64" --boot1 dvd --boot2 disk --boot3 none --boot4 none

# configure video settings - skipped this one as I don't have a graphics card in this bad boy
# $ VBoxManage modifyvm "Win10x64" --vram 128 --accelerate3d on

# configure audio settings - this failed :(
# $ VBoxManage modifyvm "Win10x64" --audio coreaudio --audiocontroller hda

# configure network settings
VBoxManage modifyvm "Win10x64" --nic1 bridged --bridgeadapter1 enp3s0
 
# configure usb settings
VBoxManage modifyvm "Win10x64" --usb on

# create storage medium for VM
path='/mnt/usbssd/Win10x64'
VBoxManage createhd --filename ${path}/Win10x64.vdi --size 30000

# modify a storage controller
VBoxManage storagectl "Win10x64" --name "SATA" --add sata

# attache storage medium to VM
VBoxManage storageattach "Win10x64" --storagectl "SATA" --port 0 --device 0 --type hdd --medium ${path}/Win10x64.vdi

# add windows iso
isopath="/mnt/md0/Programs/ISOs/Windows 10.iso"
VBoxManage storageattach "Win10x64" --storagectl "SATA" --port 1 --device 0 --type dvddrive --medium "${isopath}"

# add guest addition iso
guestisopath="/usr/share/virtualbox/VBoxGuestAdditions.iso"
VBoxManage storageattach "Win10x64" --storagectl "SATA" --port 2 --device 0 --type dvddrive --medium "${guestisopath}"

# enable vrde
VBoxManage modifyvm "Win10x64" --vrde on

# start VM
VBoxManage startvm Win10x64 --type headless

We will see....