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