/srv/irclogs.ubuntu.com/2021/12/02/#netplan.txt

lupihi guys. I need help on configuring netplan. my vm's network suddenly went down after restarting. i was trying the troubleshooting section in netplan.io and generate does not seem to "generate" the files? /run/netplan does not exist14:13
schopinlupi: does `netplan get` return your config?14:14
lupiyes14:15
lupiit is similar to the first example here: https://netplan.io/examples/14:15
slyonlupi: /run/netplan is not supposed to exist. The generated files should be in /run/systemd/network and/or /run/NetworkManager/14:16
lupislyon: I see. so it is there. I wonder why I can't get an ip from dhcp though14:16
slyonlupi: could you share/pastebin your netplan config?14:27
slyondoes static IP work (i.e. is the DHCP server working correctly)? is there another dhcp-client running in the background? ... those are all common scenarios for the issue you describe14:28
lupislyon: another dhcp client? none afaik. dhcp server is the same as the one I am currently on (host). vm is guest on this host and has its network bridged to it. maybe I should try static ip again.14:31
lupihttps://0bin.net/paste/ulxfgK5k#1mJhLa7WRtk4hL+DZBJdOQrsRpssGOYtjjjpgQpnPeC line 4 is the config file14:31
slyonThanks! This is a very basic config using systemd-networkd. and networkctl tells us that the enp0s3 interface is still configuring...14:33
slyoncould you try "networkctl reconfigure enp0s3" and "networkctl forcerenew enp0s3" ? and also check "journalctl -u systemd-networkd" if there is anything interesting in there?14:34
lupioh gimme a sec. currently trying static config if that works14:35
slyonthe config is very simple and should work... are you sure your bridge is working as expected?14:35
lupiyeah that's what i am wondering right now. this was working before btw. it suddenly went bad when I restarted it.14:35
lupislyon: so static ip does not seem to work. it has an ip but I cant ping the gateway itself (192.168.1.1).14:42
lupithe host <-> vm can ping each other  thou14:43
lupithanks btw. seems like the problem is virtualbox itself. tried a fresh install of ubuntu and rocky and they all cant get an ip for some reason16:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!