/srv/irclogs.ubuntu.com/2020/11/30/#ubuntu-server.txt

=== Mollerz5 is now known as Mollerz
=== fattywompus_ is now known as fattywompus
jo-erlendI'd like to know what exactly must be reset on a new VM image that's derived from a base image. I can't find any documentation on it. In addition to obvious stuff like hostname, I've found that /etc/machine-id and /var/lib/dbus/machine-id has to be changed. Is there more?08:54
SupaYoshihelp10:17
SupaYoshihow do i reinstall netplan from iso10:17
SupaYoshii removed netplan by accident, and ccannot resolve apt-get10:18
mybalzitchhave you tried configuring the network manually then using apt get?10:19
SupaYoshii noticed that netplan isnt recognized.10:20
SupaYoshiim on ubuntu 18.04.x lts10:20
SupaYoshimybalzitch, how can i do so?10:20
mybalzitchotherwise you'd need to find the netplan .deb on the iso and install it with the dpkg command10:20
mybalzitchifconfig and route and possibly an entry in /etc/resolv.conf10:21
SupaYoshiwill these work without netplan yea?10:22
SupaYoshilets test!10:22
SupaYoshiyh ifconfig is working10:22
SupaYoshimybalzitch: can you please guide me through these steps?10:23
SupaYoshimy ethernet adapter is called ens1810:23
SupaYoshihttps://danielmiessler.com/study/manually-set-ip-linux/#ifconfig10:23
SupaYoshithat good?10:23
SupaYoshihttps://prnt.sc/vsr6dc k soo10:27
SupaYoshii got it back online and installed netplan10:27
SupaYoshibut its saying this10:27
mybalzitcherr10:32
mybalzitchyou want netplan.io10:32
SupaYoshiipcheeers10:34
SupaYoshiinstalling10:35
SupaYoshican i just type netplan apply now yh?10:35
SupaYoshii checked my config10:35
SupaYoshiand reboot10:35
juliankcpaelzer:10:49
juliankPreparing to unpack .../13-qemu-system-gui_1%3a5.1+dfsg-4ubuntu2_amd64.deb ...10:49
juliankcp: -r not specified; omitting directory '/var/run/qemu/Debian'10:49
juliankdpkg: warning: old qemu-system-gui:amd64 package pre-removal script subprocess returned error exit status 110:49
juliankdpkg: trying script from the new package instead ...10:49
juliankdpkg: error processing archive /tmp/apt-dpkg-install-ltGa5Q/13-qemu-system-gui_1%3a5.1+dfsg-4ubuntu2_amd64.deb (--unpack):10:49
juliank there is no script in the new version of the package - giving up10:49
julianktrying to remove it:10:50
juliankRemoving qemu-system-gui:amd64 (1:5.1+dfsg-4ubuntu1) ...10:50
juliankrm: cannot remove '/var/run/qemu/Debian': Is a directory10:50
juliankI could now rmdir the dir manually and remove&reinstall it10:51
juliankbut this is weird stuff10:51
=== denningsrogue5 is now known as denningsrogue
cpaelzerjuliank: it is weird stuff, but fixed - https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/190537711:28
ubottuLaunchpad bug 1905377 in qemu (Ubuntu) "postrm fails in hirsute as the path generation for modules is broken" [High,Fix released]11:28
cpaelzerjuliank: yet we can't fix the past - so anyone on ubuntu1 needs to do the rm manually to get through11:28
cpaelzernot a problem eventually for the release, but for anyone running -dev right now it is11:28
cpaelzerjuliank: this initially happened to qemu-block-extra but the issue in qemu-system-gui should be the same - never the less in bug 1906245 I'm working with a report sorting out if there might be something else to fix11:30
ubottubug 1906245 in qemu (Ubuntu) "qemu-system-gui 1:5.1+dfsg-4ubuntu2 fails to upgrade" [Undecided,Incomplete] https://launchpad.net/bugs/190624511:30
juliankcpaelzer: Can you write that to ubuntu-devel list so people know what's going on?11:34
juliankAlso you could fix it I suppose, as dpkg said, if it had a prerm script in the new package it would use that11:35
juliankthough the bug is about postrm not prerm11:36
cpaelzerjuliank: are you saying if the new PKG would have an "empty" prerm then it would use that new prerm and not the one of the old package ?11:37
juliankold-prerm upgrade new-version11:37
cpaelzerI always read "upgrading" in https://wiki.debian.org/MaintainerScripts as if it would always start with the "old" prerm being called11:37
juliankIf the script runs but exits with a non-zero exit status, dpkg will attempt:11:37
julianknew-prerm failed-upgrade old-version11:38
cpaelzeruh thanks for bringing that to my mind, I never hit that little detail11:38
cpaelzerthat will help11:38
juliankyou can see that in the graph for upgrading where it goes right first, and then can go back left11:39
cpaelzersure I see it in the graph, it just wasn't in my mind-cache11:39
cpaelzerthat also explains why it isn't an issue for qemu-block-extra as there we still need some prerm and that won't RC!=0 for failed-upgrade11:40
cpaelzerI can fix things up11:40
cpaelzerand once working will send a mail11:40
jo-erlendI'd like to know what exactly must be reset on a new VM image that's derived from a base image. I can't find any documentation on it. In addition to obvious stuff like hostname, I've found that /etc/machine-id and /var/lib/dbus/machine-id has to be changed. Is there more?13:04
=== ijohnson is now known as ijohnson|lunch
=== ijohnson|lunch is now known as ijohnson
jaguardownCould someone help me? Following the Ubuntu server documentation, I'm trying to create this simple bridge for a KVM VM: https://pastebin.com/iWTG8tuU this is exactly how they tell you to do it. It works perfectly after running "sudo netplan apply" but if I reboot the KVM host it breaks the internet connection. The only thing it can do is ping the gateway. Other LAN and WAN IP's are unreachable.18:43
jaguardownI have to delete the bridge to restore connectivity18:44
jaguardownsorry had a mistake in the namservers, here's the correction: https://pastebin.com/qRhKAYC818:45
SupaYoshibest way to delay docker till a certain service has started?19:34
SupaYoshi(mergefs)19:34
sarnoldjaguardown: you don't put nameservers in the 'search', you put domain names in the 'search list'20:15
sarnoldjaguardown: eg you put 'jaguardown' in there, and then when a user types in 'www.google.com', the dns service will first look for 'www.google.com.jaguardown.' and if that fails, then it will look for 'www.google.com.'20:16
=== Mollerz5 is now known as Mollerz
jaguardownsarnold: roger, I'll fix that, do you think that's related to my current problem?20:48
sarnoldjaguardown: no idea there :)20:48
jaguardownsarnold: it works until I reboot. I can ping gateway but no other IP addresses. If I ping a site like google.com with IPV6, that works. If I delete the bridge with "sudo networkctl delete br0" and then "sudo netplan apply" it can ping IPV4 IP addresses but I still can't ping LAN IPs and I can't ssh to it. I have to delete the bridge and leave it to resume full connectivity. So weird!20:49
sarnoldjaguardown: one common issue with bridges is that you assign an IP to the *bridge* and when you add a nic to the bridge, the nic stops niccing, it starts bridging... I don't understand the whole thing, but I see it come up from time to time20:50
jaguardownhmmm20:52
jaguardownyeah I did notice in dmesg that the ethernet interface enters promiscuous mode which I thought was really strange. I don't want it to do that lol20:54
=== Mollerz4 is now known as Mollerz
jaguardownOkay guys got it figured out22:39
jaguardownThe problem was with dhcp vs static ip and it was partially because I didn't really understand how a bridge works. I searched and found a better tutorial that explained you need to assign a static ip to the bridge and turn off dhcp for the ethernet interface, and it also explained how to configure KVM/QEMU to use the bridge. All good now!22:41
sarnoldjaguardown: excellent! :D22:44
jaguardownsarnold: :D23:16

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