Skip to content

Instantly share code, notes, and snippets.

@nathanmoon
Last active February 5, 2020 05:39
Show Gist options
  • Save nathanmoon/8df38017cafdd844c785279f6e2c2dc5 to your computer and use it in GitHub Desktop.
Save nathanmoon/8df38017cafdd844c785279f6e2c2dc5 to your computer and use it in GitHub Desktop.
VirtualBox network setup (Ubuntu 18)
1. Create Host Network Adapter
2. Add Host Only network adapter to vm setting
3. Edit /etc/netplan/50-cloud-init.yaml
4. Add to ethernets:
enp0s8:
dhcp4: no
dhcp6: no
addresses: [192.168.56.4/24]
nameservers:
addresses: [192.168.56.1]
5. copy public key to vm .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment