(Note: these are primarily notes for myself, so a lot of assumptions are made based on things I already know. I may add additional relevant information in the future, I may not.)
- Set up the server like normal,
sudo apt update
and what not. - Install vim as well.
- Settings for VM will need Network set up to Bridged Adapter to be able to SSH into the machine after configuration is complete.
- test pinging google.com, it should "just work"
- get LAN IP of host machine
- at time of writing:
10.0.37.210
- at time of writing:
ls /etc/netplan/*.yaml
, look for a file likeeth0.yaml
or50-cloud-init.yaml
- in this case:
/etc/netplan/50-cloud-init.yaml
- in this case:
- cat the file to verify it's the correct one, should be something like
network:
ethernets:
enp0s3:
addresses: []
- edit the file
-
sudo vim /etc/netplan/50-cloud-init.yaml
-- DO NOT FORGETSUDO
ethernets:
enp0s3:
addresses: [ 10.11.0.1/8 ]
gateway4: 10.0.37.1
nameservers:
addresses: [ 10.0.37.1, 8.8.8.8, 8.8.4.4 ]
dhcp4: no