Using VirtualBox as a Cloud Computing Server



We had to make THIS with a Dell Optiplex and old Cisco networking equipment…
This became my entire life for a while…


Part 0: Installing VirtualBox and Extension Pack on the Command Line

sudo apt-get update -ysudo apt-get install virtualbox -yvboxver=`vboxmanage --version | awk -F '_' '{print $1}'`sudo curl$vboxver/Oracle_VM_VirtualBox_Extension_Pack-$vboxver.vbox-extpack > Oracle_VM_VirtualBox_Extension_Pack-$vboxver.vbox-extpack                       echo "y" | sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-$vboxver.vbox-extpack                       sudo vboxmanage extpack uninstall VNC

Part 1: Creating and Deleting a VirtualBox VM using “VBoxManage”

VBoxManage createvm --basefolder "{absolute path}" --name VM_NAME --uuid=`uuidgen` --register
VBoxManage modifyvm VM_NAME --cpus 1 --memory 1024 --vram 16 --acpi on --ioapic on --pae off --x2apic on --rtcuseutc on
VBoxManage createhd --filename "{absolute path}/VM_NAME.vdi" --size 10000 --variant StandardVBoxManage storagectl VM_NAME --name "SATA Controller" --add sata --bootable onVBoxManage storageattach VM_NAME --storagectl "SATA Controller" --port 0 --device 0 --type hdd --medium "{absolute path}/VM_NAME.vdi"
VBoxManage storagectl VM_NAME --name "IDE Controller" --add ideVBoxManage storageattach VM_NAME --storagectl "IDE Controller" --port 0 --device 0 --type dvddrive --medium "{absolute path}/operatingsystem.iso"
VBoxManage startvm VM_NAME
VBoxManage controlvm VM_NAME poweroff
VBoxManage unregistervm VM_NAME --delete
rm -rf "{absolute path}/VM_NAME"

Part 2: Enabling RDP access for a VirtualBox VM

VBoxManage modifyvm VM_NAME --vrde on --vrdeport $3 --vrdeaddress {IP address}
VBoxManage startvm VM_NAME --type headless

Part 3: Additional Considerations



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store