[09:51] <motorto> Hi guys , I am trying to set a static ip addr for my ubuntu server, but after modifying my netplan to this : http://ix.io/2Ahm , and run netplan apply , I get no internet connection
[09:51] <motorto> Could you help me ?
[09:51] <motorto> Maybe what I am missing / doing wrong
[09:54] <mgedmin> motorto: that looks like a YAML syntax error to me; you need a space after the colon in "dhcp4:false"
[09:55] <mgedmin> you can check for syntax problems with apt install yamllint
[09:55] <motorto> Ups , my original file doesn't have that syntax error
[09:56] <motorto> I had to transpose the file to my host machine by hand
[09:56] <motorto> Running on a vm
[09:56] <motorto> Ubuntu-Server
[09:56] <mgedmin> also indentation seems wrong (dhcp4 under nameservers?)
[09:56] <motorto> That's the default
[09:57] <motorto> It came like that on default installation
[09:57] <mgedmin> ah! never mind then
[09:58] <mgedmin> )although the manual page says that's not valid)
[09:59] <motorto> I added rendered line , and of course the settings to enp0s3 (disabled dhcp)
[09:59] <mgedmin> version: 2 is also in the wrong place?
[09:59] <motorto> Once again the defaults , didn't modify the structure of the file
[10:00] <motorto> And netplan try doesn't gives me any errors
[10:01] <mgedmin> I'm going to assume the file is fine, just you messed up the indentation when copying it by hand into the pastebin
[10:02] <motorto> Correct , netplan doesn't gives me any errors !
[10:03] <motorto> http://ix.io/2Ahq
[10:03] <motorto> Sorry just noticed now how bad indented the file I sent was
[10:03] <mgedmin> ah, that's mor elike it
[10:03] <motorto> Now its indented as it is on my vm
[10:04] <mgedmin> what's the output of 'ip a'?
[10:04] <mgedmin> since it's hard to pastebin without working network maybe you can take a screenshot and upload it to imgur.com?
[10:05] <motorto> Thanks , you just made my life easier
[10:05] <motorto> https://imgur.com/a/EFQevyO
[10:10] <motorto> Sorry , changed networks , and had to log out and log in again mgedmin
[10:13] <mgedmin> well, so the IP you specified _is_ configured
[10:13] <mgedmin> hey I only just now noticed
[10:13] <mgedmin> you set the gateway address to be the same as the host address
[10:13] <mgedmin> so it can't reach anything else on the internet as a result
[10:14] <motorto> Can my gateway be anything ?
[10:14] <motorto> Except the same as ip ?
[10:15] <mgedmin> no, it needs to be the correct gateway IP for the network you're in
[10:15] <mgedmin> e.g. if you rent a VPS from a provider, the provider will tell you what IP, netmask, gateway to use (or they may tell you to use DHCP)
[10:15] <mgedmin> you can't just pick random numbers and expect to be able to connect to the internet
[10:16] <motorto> How do I check the current gateway ?
[10:16] <motorto> ip route ?
[10:16] <motorto> I am going to enable dhcp then
[10:16] <motorto> reboot and the set the static ip , to the gateway that dhcp connected
[10:17] <mgedmin> yeah `ip r` will show you the gateway in the `default via X.X.X.X ...` line
[10:20] <motorto> https://imgur.com/a/HvPhJvG
[10:20] <motorto> In this case my gateway is 10.0.2.2
[10:21] <motorto> Can I keep the yaml as is  and simply modify the gateway line to 10.0.2.2 ?
[10:22] <motorto> Because I am pretty sure the answer is no ( tried it and no internet connection
[10:23] <mgedmin> you can't just pick random IP addresses, you might conflict with some other VPS already using that IP
[10:24] <mgedmin> besides 10.0.2.2 is in a different network from 10.0.1.0/24
[10:24] <mgedmin> a gateway needs to be in the same subnet
[10:34] <motorto> Hum thanks ,for the help !
[10:35] <motorto> I am still not succefull , basically what I want is my vm to have always the same ip so that I can ssh into that , independent if my laptop is on wifi or ethernet
[10:35] <motorto> But that's offtopic here
[10:38] <mgedmin> wait, is it a VM running on your local machine?  I assumed a cloud VPS for some reason
[10:39] <mgedmin> if you install avahi-daemon in the VM, perhaps you can always ssh using its hostname.local?
[10:39] <motorto> Yeah , its a local vm on my host machine
[10:39] <motorto> *on my local machine
[10:40] <motorto> Ok let me try that
[10:40] <mgedmin> what virtualization tech do you have?  the hypervisor ought to be able to configure a static IP
[10:41] <mgedmin> I have a bunch of libvirt-managed VMs with static IPs in my office
[10:41] <motorto> I am using oracle virtualbox
[10:41] <motorto> Just because it's easier to setup than a libvirt
[10:41] <mgedmin> (actually they're static only in the sense that my router assigns them the same IP via DHCP based on the MAC address)
[10:42] <motorto> But there on your local machine you are connected to the same network all the time right ?
[10:43] <motorto> Ubuntu enables automatically the systemd services ?
[10:44] <mgedmin> IIRC in virtualbox you have a choice of using bridged vs NATed vs host-only network
[10:44] <motorto> I know , bridged changes ip addr all the time
[10:45] <motorto> NAT , it's what I am currently using with port-forwarding
[10:45] <motorto> But that doesn't seem to be working
[10:45] <mgedmin> what is your goal?  ssh into your VM from the host?  ssh into your VM from other machines on the LAN?
[10:47] <motorto> ssh from my host to the vm
[10:49] <mgedmin> that's certainly simpler
[10:49] <mgedmin> doesn't virtualbox allow you to specify a static (internal) IP for the VM?
[10:50] <mgedmin> then inside the VM you can use DHCP and you'll always get the right fixed IP
[10:50] <mgedmin> and outside you can add it to /etc/hosts, or set up an alias via ~/.ssh/config, whichever you like
[10:59] <motorto> Can I delete  the yaml , and on bot it will be recreated ?
[11:09] <motorto> On ubuntu server 20.04 can I still use the /etc/network/interfaces instead of netplan ?
[11:23] <motorto> So I created a adapter on virtualbox, and it has the following settings:
[11:23] <motorto> ipv4 address: 192.168.56.1
[11:23] <motorto> ipv4 network mask: 255.255.255.0
[11:24] <motorto> ipv6 addr fe80::7727:807e:68e8:755e
[11:24] <motorto> ipv6 prefix length: 64
[11:24] <motorto> Now setting the adapter on netplan , doesn't seem possible ... Can't find a network mask adapter
[11:25] <motorto> Option on netplan
[11:30] <RoyK> fe80:: is just link local
[12:24] <samba35> how to optimize  /auto tune swap usage on ram / swap on hdd ?
[12:30] <ice9> after upgrading to 20.04, I get this error during 'apt update': https://bpa.st/OLZA   any idea?
[12:31] <lotuspsychje> !crosspost | ice9
[12:35] <RoyK> iwell,  that's a ppa, not supported
[12:36] <oerheks> wireguard ppa is no longer needed.
[12:36] <samba35> ok
[15:27] <mgedmin> hmm, I cannot apt install atop inside an LXD container?
[15:36] <tomreyn> is that because when you try to, you computer mutates into a coffee machine?
[15:38] <tomreyn> i assume it is not, but you didn't really tell us what happens whenyou try.
[15:39] <mgedmin> sorry, the postinst script fails because the atopacct.service unit fails because
[15:39] <mgedmin> atopacctd[1839]: receive NETLINK family, errno -2
[15:42] <mgedmin> found a workaround: systemctl mask atopacct.service before the apt install
[15:42] <Aison> hello, one of my ubuntu servers (btrfs as root) refuses to boot. The boot process ends with initramfs and the busybox console. The last message I can read is run-init PID must be 1
[15:44] <Aison> I tried to mount the real /dev/sdb2 (the real root) on /root and then do run-init /root /sbin/init
[15:45] <Aison> but this is not accepted with the same error PID must be 1
[15:46] <Aison> or how can I manually continue from busybox?
[15:46] <Soni> these tests take 2 hours to run on qemu-system-s390x
[15:46] <Soni> they take 2 minutes to run on CI
[15:46] <Soni> but that's x86_64 CI, not s390x
[15:47] <Soni> we haven't tried running them on x86_64 locally...
[15:49] <Soni> let's see how fast they run locally...
[15:53] <Soni> oh yeah
[15:53] <Soni> it runs in minutes locally
[15:53] <Soni> ;-;
[15:54] <Soni> done in 86 seconds
[15:58] <Soni> anyone got an s390x box we could use? .-.
[16:02] <Soni> can we get that box *and* finish running tests on it *before* this run finishes? it's at 1300 seconds, so we have a little over an hour to do all that
[16:02] <Soni> (yeah, this is ridiculous. :/)
[16:25] <tomreyn> Soni: i'm not sure what the context is of what you're saying, but other than the s390x resources i believe canonical and ubuntu have available via launchpadbuild nodes, a couple other open source friendly projects also got some, and share them.
[16:26] <Soni> and how do you use those with a fork? https://github.com/WebAssembly/wabt/pull/1557
[16:27] <tomreyn> travis ci should work, i guess
[16:27] <Soni> just, anything that would get rid of 2 hour test times .-.
[16:28] <tomreyn> is this on github build infrastructure?
[16:28] <Soni> apparently?
[16:30] <Soni> ideally a shell would make this easier but eh w/e
[16:31] <tomreyn> i see. well, you could try on travix ci, launchpad, osuosl, i think obs, too
[16:45] <Soni> linuxone community cloud?
[19:22] <ubone> installed mailman3
[19:22] <ubone> https://ubuntu.com/server/docs/mail-mailman and postfix's master.cf says there should be /usr/lib/mailman/bin/postfix-to-mailman.py but there is not
[19:23] <ubone> nor in mailman3
[19:42] <ubone> a bug from 2004 ...
[21:47] <tomreyn> ubone: there is in package "mailman", on 18.04 (and maybe other releases). you did not state which ubuntu release you'Re using.
[21:49] <tomreyn> most likely, though, you're looking for a wyay to do it with python 3, and /usr/lib/mailman/bin/postfix-to-mailman.py will be python 2.
[21:51] <tomreyn> https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/DGWGD5NAI7S5IUBXZTI2Q6O7Y7OKKRKS/
[21:54] <tomreyn> https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/docs/mta.html
[22:00] <ubone> yep i used mailman3 not the legacy one
[22:01] <ubone> it's 1804
[22:02] <tomreyn> no, no, it's 2020