Skip to content

VirtualBox Set up

JillMell edited this page Jul 13, 2020 · 1 revision

VirtualBox Set-up

  1. Download Ubutnu Server ISO: https://www.ubuntu.com/download/server
  2. Create VM with a NAT (Adapter 1) and a Host-only Adapter (Adapter 2) networking settings;
  3. (Optional) if you want to provide access to your VM form the "outside world", you need to add a "Bridge Adapter" and ensure that your firewall allows connections to your host machine (port 80 and 443).
  4. Mount the CD media (Ubuntu Server ISO), start up VM and install the server system;
  5. Login and install the extension pack and VM extensions on your server following https://www.mobilefish.com/developer/virtualbox/virtualbox_quickguide_install_virtualbox_guest_editions_ubuntu.html
  6. Shut down the server and restart it "headless": VBoxManage startvm <YOUR SERVER> --type headless (use VBoxManage list vms to find out the name of your server);
  7. Find out the IP address to connect from your host: VBoxManage guestcontrol <YOUR SERVER> run --exe "/sbin/ifconfig" --username <USERNAME> --password '<PASSWORD>' | grep 'inet ' (by default it starts with 192...)
  8. Connect to your server: ssh <USERNAME>@<IP ADDRESS>