Skip to content

Instantly share code, notes, and snippets.

@edcote edcote/virtualbox.md
Last active Aug 10, 2018

Embed
What would you like to do?
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
You can’t perform that action at this time.