/srv/irclogs.ubuntu.com/2019/07/17/#ubuntu-server.txt

makaraexit06:54
=== cpaelzer__ is now known as cpaelzer
coreycbcpaelzer: fyi kashyap in #openstack-nova opened this for the firmware descriptor files issue we discussed - https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/183685912:43
ubottuLaunchpad bug 1836859 in edk2 (Ubuntu) "RFE: Ship the firmware "descriptor files" as part of the 'ovmf' package" [Undecided,New]12:43
cpaelzerthanks coreycb I'll ping dannf who usually takes care of edk212:46
coreycbcpaelzer: ok thank you12:46
=== JanC is now known as Guest31310
=== JanC_ is now known as JanC
tewardfor 18.04 servers, is it possible to roll custom nameservers with DHCP and ignore the DHCP assigned nameservers?15:24
tewardi forget :P15:24
teward(this is for LXD containers which get DHCP'd network data)15:25
lordcirthteward, yes15:43
lordcirthteward, using netplan, you need dhcp4: true but dhcp4-overrides: use-dns: false15:44
lordcirthAssuming the docs are correct, haven't tried it15:45
sevenelevenhow can i configure a NIC to use vlan id 2 using ubuntu preseed?17:00
lordcirthseveneleven, the NIC is on a tagged port, and you need it to create a vlan2 interface and configure networking on that?17:01
sevenelevenlordcirth, it's on an untagged vlan 2 port17:01
sevenelevenlordcirth, so i should just configure pvid 2 on that port instead?17:01
lordcirthseveneleven, if it's untagged, why would you need to do anything different?17:02
sevenelevenwait, let me rethink why it didn't work last time17:02
sevenelevenok i described it wrongly17:02
sevenelevenit's a vm on a hypervisor, now the hypervisor is connected to a tagged vlan 2+3 port, last time i created a br.2 bond and got the vm working with an internet connection17:03
lordcirthseveneleven, so the hypervisor should expose an untagged port to the VM, and put it on vlan 2.17:04
sevenelevenyeah17:04
lordcirthWe do that with LXC containers at $WORK17:05
seveneleveni use libvirt kvm qemu17:05
lordcirthseveneleven, ok, so what problem are you having?17:06
seveneleveni wonder how I can configure br.2 in ubuntu's preseed17:06
lordcirthseveneleven, if the hypervisor is providing an untagged eth0, why would you need to?17:07
sevenelevenhmm, not sure17:08
sevenelevenlast time I simply created a br0 bond, and got no route to WAN, once I created the br.2 explicitely it worked17:08
seveneleventhats why i thought i need it17:08
lordcirthseveneleven, then your hypervisor was passing in a tagged port.17:09
sevenelevenhmm17:09
sevenelevenlordcirth, i just checked and my hypervisor uses a bridge between the vm http://dpaste.com/0NB8V3S17:13
lordcirthseveneleven, ok, so what is br0 tied to? 'brctl show br0'17:13
sevenelevenenp0s31f6, vnet1 and vnet217:14
lordcirthseveneleven, and enp0s31f6 is the tagged one with vlans 2+3, right?17:15
sevenelevenyeah17:16
lordcirthseveneleven, so, br0 is tagged, and your VM's interface is therefore tagged.17:16
sevenelevenenp0s31f6 is like eth017:16
sevenelevenohh gotcha17:16
lordcirthWhat you want is to create a enp0s31f6.2 interface on the host, which is untagged vlan217:16
lordcirthThen make a br2 that is tied to that, and put your VM on that.17:17
sevenelevenoh that's clever17:17
lordcirthOur LXC servers essentially do this - I use Salt to generate the netplan configs for a list of vlan IDs, and we get a iface.422 tied to a br422, and make containers on br422, etc.17:18
sevenelevenwow then you end up with many many interfaces17:18
lordcirthyeah, but, automation :P17:19
sevenelevenim going to try that, but just out of curiousity, would it have been possible to configure ubuntu to br.2 via the preseed? i assume yes, but it's probably more complicated17:19
lordcirthIt is probably possible, but I don't know how.17:20
lordcirthWell, you could drop a netplan file in, but that wouldn't get you networking in the installer.17:20
sevenelevenmhmm17:25
seveneleveni keep it simple and stupid and try your solution :-)17:26
sevenelevenyeah seems custom bonds are not really supported for ubuntu installer https://askubuntu.com/questions/528211/can-d-i-ubuntu-installer-configure-bond-vlan-and-second-network-interface-dur17:36
sevenelevenlordcirth, should i configure an ip on the iface.422?17:53
sevenelevenor just "create" it and configure the IP on the br422?17:53
sevenelevenim using /etc/network/interfaces for configuration17:53
lordcirthseveneleven, you don't need an IP on the host side to have the VM work17:54
sevenelevenmmhm17:54
sevenelevenso I just add `auto enp0s31f6.2` and `auto br2` inside /etc/network/interfaces?17:55
seveneleven(and use brctl to add enp0s31f6.2 to br2)17:56
lordcirthseveneleven, this is what I have: https://gist.github.com/lordcirth/a4c3b71a0f6ec29be704a440ceb5961e18:00
lordcirthbrctl is transient, you want it all in files.18:01
sevenelevenaaah right, brctl forgets it after reboot18:01
lordcirththe vlan device needs to be explicitly tied to the interface, and the bridge to the vlan18:01
anton4i3keIm seveneleven, seems like my network died after restarting its service hehe 😊18:04
lordcirthanton4i3ke, it is easy to make a mistake when doing this18:05
sarnoldanton4i3ke: you might have missed < lordcirth> the vlan device needs to be explicitly tied to the interface, and the bridge to the vla18:06
anton4i3keYeah18:09
anton4i3keGoing to troubleshoot now18:09
sarnoldanton4i3ke: due note that it's entirely normal for all existing connections to an IP address to drop when you add a bridge to a NIC (or add a NIC to a bridge?) -- on linux the IP is associated with the *bridge*, not the nic..18:12
coreycbjamespage: sahid: i think i have the remaining py2 drops done. once we get the RM bugs handled we should know for sure.18:13
seven-elevenlordcirth, hmm i dont get a route between the vm and the hypervisor19:27
seven-elevenhow does your interfaces config look like on the vm?19:28
lordcirthseven-eleven, just eth0 as a static IP19:28
seven-elevenhmm i tried that19:28
seven-eleveni worry this is a libvirt issue19:28
lordcirthseven-eleven, can you pastebin your /etc/network/interfaces on the host?19:28
seven-elevenok19:28
seven-elevenlordcirth, sorry i need a while, i have X running in the basement now, so i cant connect to the X remotely anymore, and i dont know what display manager i used so i cant stop it :D19:31
lordcirthseven-eleven, lol. you can kill X?19:31
seven-eleveni tried killall X19:31
seven-eleveni run `startx` in the basement19:31
lordcirthseven-eleven, killall Xorg19:32
seven-elevenlet me try19:32
seven-elevennot found hmm19:32
seven-eleveni can just reboot, but im curious19:32
seven-eleveni reboot19:33
seven-eleveni cant pastebin because i dont have a connection, so I write it 1:1 http://dpaste.com/0R0RKCT19:38
lordcirthseven-eleven, is that the host or the guest?19:40
seven-elevenah thats the guest19:40
seven-elevena moment19:40
seven-elevenhttps://termbin.com/1ixi19:41
seven-elevenohhh19:41
seven-elevenfound the mistake!19:41
seven-elevenit's actually libvirt issue19:42
seven-elevenlibvirt automatically adds vnet1 to br5, so now we have enp0s316.5 and vnet1 inside br519:42
lordcirthAnd you wanted 2?19:43
seven-elevennope19:43
lordcirthI thought you wanted vlan 2, but there's no enp0s31f6.2. Was it 5 you wanted?19:44
seven-elevenah, two interfaces dont matter regarding tagged vlan, would have to be two vlans inside br5 to be considered tagged?19:44
seven-eleveni wanted vlan 219:44
seven-elevenbut the problem is if I set it to vlan 2 then br0.2 stops working19:44
lordcirthseven-eleven, if the switch port is tagged, it's tagged, even if there's only 1 vlan19:45
seven-eleveni had to delete enp0s31f6.2 to get my LAN back working19:45
seven-elevengotcha19:45
seven-elevenso I need to get the vm to use vlan 219:45
lordcirthBut the host also needs an IP on vlan 2?19:46
seven-eleventhat means I have to remove br0.2, rewrite my iptables to source through br219:46
seven-elevenyes19:46
seven-eleventhe host itself needs an ip19:46
seven-eleveni would add it to br2 right?19:46
lordcirthI would create a enp0s31f6.2, which is an untagged interface. Then tie it to 'br2'. Then set an IP for the host on br2, and attach the VM's eno3 to br2 as well19:47
seven-elevenso i would do something like http://dpaste.com/00YW181 ?19:47
seven-elevenok i retry this :-)19:48
seven-elevenlordcirth, should I move br0.3 to enp0s31f6.3 respectively or leave it as br0.3?19:50
seven-elevenbr0.3 is not used for guests, br0.3 goes directly to the WAN router19:50
seven-elevenbr0.3 is tight via br0 to enp0s31f619:50
seven-elevennot sure if br0.3 can coexist with using enp0s31f6.219:51
seven-eleveni will just try19:51
lordcirthseven-eleven, the paste looks correct, assuming you use '2' instead of '5' and that the enp0s31f6.2 interface is also correct19:53
seven-elevenlordcirth, ok19:53
seven-elevenlordcirth, so i leave br0.3 tied to br019:54
seven-elevenand use now br219:54
lordcirthI am not sure how your network is set up for br0.319:54
seven-elevenbr0.3 is in the subnet of my WAN router19:54
seven-elevenbr0 is tied to eth019:55
seven-elevenbr2 is now tied to eth0.219:55
seven-elevenlordcirth, works fine. now it's properly configured, so much easier to just configure eth0 on the guests, and makes auto installing easier20:49
seven-eleventhx! :-)20:49
lordcirthseven-eleven, great, you're welcome20:49

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