Skip to content

Instantly share code, notes, and snippets.

@edcote
Last active August 10, 2018 16:20
Show Gist options
  • Save edcote/55a2b500b3294164da0d0437b84cf34a to your computer and use it in GitHub Desktop.
Save edcote/55a2b500b3294164da0d0437b84cf34a to your computer and use it in GitHub Desktop.
VirtualBox

Notes

  • Start Ubuntu at command line

Edit /etc/defaults/grub.

#GRUB_CMDLINE_LINUX_DEFAULT="splash quiet"
GRUB_CMDLINE_LINUX="3"

sudo update-grub
  • Port forwarding

Make sure firewall on guest OS allows port:

sudo ufw enable
sudo ufw allow ssh
sudo ufw status

On host:

VBoxManage modifyvm Ascenium --natpf1 "ssh,tcp,,2022,,22"
VBoxManage modifyvm Ascenium --natpf1 deleterule ssh
  • Go headless:

    VBoxManage startvm Ascenium --type headless VBoxManage controlvm Ascenium poweroff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment