Creating a Headless VirtualBox VM Host on Ubuntu Server
i12bretro
#VirtualBox #Hypervisor
Full steps can be found at https://i12bretro.github.io/tutorials/0432.html
Installation and Configuration 01. Log into the Ubuntu Server host 02. Run the following commands # update software repositories sudo apt update # install available software updates sudo apt upgrade -y # install virtualbox sudo apt install virtualbox -y # verify virtualbox installed by outputting the version vboxmanage -version # install virtualbox extension pack sudo apt install virtualbox-ext-pack -y # disable default vboxweb service sudo systemctl disable vboxweb # create vboxadmin user and set a password sudo useradd vboxadmin # set the vboxadmin password sudo passwd vboxadmin # add vboxadmin to the vboxuser group sudo usermod -aG vboxusers vboxadmin # create vboxadmin home directory sudo mkdir /home/vboxadmin -p # make vboxadmin the owner of the home directory sudo chown -R vboxadmin /home/vboxadmin # edit the default virtualbox configuration sudo nano /etc/default/virtualbox 03. Add the following line to the bottom of the file, changing the username if necessary VBOXWEB_USER=vboxadmin VBOXWEB_HOST=127.0.0.1 04. Press CTRL+O, Enter, CTRL+X to write the changes 05. Continue with the following commands, changing the username if necessary # create vboxweb.sh sudo nano /home/vboxadmin/vboxweb.sh 06. Paste the following into vboxweb.sh #!/bin/bash /usr/bin/vboxwebsrv -H 127.0.0.1 ≫ /dev/null 2≫&1 07. Press CTRL+O, Enter, CTRL+X to write the changes 08. Continue with the following commands, changing the username if necessary # make vboxweb.sh executable sudo chmod +x /home/vboxadmin/vboxweb.sh # create phpvirtualbox.service sudo nano /etc/systemd/system/phpvirtualbox.service 09. Paste the following service configuration, changing the username if necessary [Unit] Description=VirtualBox Web Service After=network.target [Service] Type=simple RemainAfterExit=yes User=vboxadmin Group=vboxusers WorkingDirectory=/home/vboxadmin ... https://www.youtube.com/watch?v=PsKR7aBbTxs
44370409 Bytes