Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
On Tue, Jun 30, 2015 at 09:46:31AM +0200, Hilko Bengen wrote: (2) The second problem is that we run 'dhclient', but for some reason this command cannot acquire an IP address unless you name a specific interface (eg 'dhclient eth0'). This was already reported for Ubuntu: https://bugzilla.redhat.com/show_bug.cgi?id=1224795 The workaround is just this patch (to appliance/init): - dhclient + dhclient eth0 Can we assume that the network name is always eth0? In that case, I'd simply apply that patch. Correct -- that is the problem that stops me from just adding that patch upstream. I guess that different kernel versions, and particularly, different versions of udev rules, could cause that interface to have a different name. `dhclient eth0' seems to work for Debian and Ubuntu. Even if it doesn't work, it won't make things worse than they are now. For upstream, I intend to investigate why `dhclient' alone doesn't work (it works fine on Fedora). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
* Richard W.M. Jones: I thought this was strange, because upstream we have 'isc-dhcp-client' listed in packagelist.in, but then I realized that the problem is really that 'isc-dhcp-client' is a missing build dependency of libguestfs on Debian. It also needs to be a runtime dependency. If I make it a build-time dependency, isc-dhcp-client should end up in the pacakges file. From there it will be added to the runtime dependencies through the appliance:Depends variable (which is generated using debian/gen-appliance-depends.sh). (2) The second problem is that we run 'dhclient', but for some reason this command cannot acquire an IP address unless you name a specific interface (eg 'dhclient eth0'). This was already reported for Ubuntu: https://bugzilla.redhat.com/show_bug.cgi?id=1224795 The workaround is just this patch (to appliance/init): - dhclient + dhclient eth0 Can we assume that the network name is always eth0? In that case, I'd simply apply that patch. -Hilko -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
I went through this with Adam and there are two bugs: (1) isc-dhcp-client is not listed in /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages As a result, dhclient is not loaded into the appliance, and the dhclient command fails. I thought this was strange, because upstream we have 'isc-dhcp-client' listed in packagelist.in, but then I realized that the problem is really that 'isc-dhcp-client' is a missing build dependency of libguestfs on Debian. It also needs to be a runtime dependency. Because it's not a build-time dependency, it doesn't get pulled in to the 'packages' file. It also has to be a runtime dependency so that users will have it installed on their machines. (2) The second problem is that we run 'dhclient', but for some reason this command cannot acquire an IP address unless you name a specific interface (eg 'dhclient eth0'). This was already reported for Ubuntu: https://bugzilla.redhat.com/show_bug.cgi?id=1224795 The workaround is just this patch (to appliance/init): - dhclient + dhclient eth0 but I don't know why that works. I believe this to be a bug in dhclient, not in libguestfs. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
Could someone attach the *complete* and *unedited* output (in /tmp/log) of the following commands to the bug: guestfish --network -a /dev/null run -v -x | tee /tmp/log and: virt-builder debian-7 -v -x \ --run-command 'wget -O /dev/null https://www.debian.org/' \ | tee /tmp/log Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
Hello, I'm experiencing exactly the same issue except it doesn't seem to be related to libguestfs version. A developper asked for guestfish --network -a /dev/null run -v -x output, so it's attached here. Regards, Adam. libguestfs: trace: set_pgroup true libguestfs: trace: set_pgroup = 0 libguestfs: trace: add_drive /dev/null libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = /tmp libguestfs: trace: disk_create /tmp/libguestfsr2lqpe/devnull1 raw 4096 libguestfs: trace: disk_create = 0 libguestfs: trace: add_drive = 0 libguestfs: trace: launch libguestfs: trace: version libguestfs: trace: version = struct guestfs_version * libguestfs: trace: get_backend libguestfs: trace: get_backend = direct libguestfs: launch: program=guestfish libguestfs: launch: version=1.29.47 libguestfs: launch: backend registered: unix libguestfs: launch: backend registered: uml libguestfs: launch: backend registered: libvirt libguestfs: launch: backend registered: direct libguestfs: launch: backend=direct libguestfs: launch: tmpdir=/tmp/libguestfsr2lqpe libguestfs: launch: umask=0022 libguestfs: launch: euid=1000 libguestfs: trace: get_backend_setting force_tcg libguestfs: trace: get_backend_setting = NULL (error) libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = /var/tmp libguestfs: [0ms] begin building supermin appliance libguestfs: [0ms] run supermin libguestfs: command: run: /usr/bin/supermin libguestfs: command: run: \ --build libguestfs: command: run: \ --verbose libguestfs: command: run: \ --if-newer libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock libguestfs: command: run: \ --copy-kernel libguestfs: command: run: \ -f ext2 libguestfs: command: run: \ --host-cpu x86_64 libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d supermin: version: 5.1.13 supermin: package handler: debian/dpkg supermin: acquiring lock on /var/tmp/.guestfs-1000/lock supermin: if-newer: output does not need rebuilding libguestfs: [8ms] finished building supermin appliance libguestfs: [8ms] begin testing qemu features libguestfs: command: run: /usr/bin/qemu-system-x86_64 libguestfs: command: run: \ -display none libguestfs: command: run: \ -help libguestfs: command: run: /usr/bin/qemu-system-x86_64 libguestfs: command: run: \ -display none libguestfs: command: run: \ -version libguestfs: qemu version 2.3 libguestfs: command: run: /usr/bin/qemu-system-x86_64 libguestfs: command: run: \ -display none libguestfs: command: run: \ -machine accel=kvm:tcg libguestfs: command: run: \ -device ? libguestfs: [00055ms] finished testing qemu features libguestfs: trace: get_backend_setting gdb libguestfs: trace: get_backend_setting = NULL (error) [00059ms] /usr/bin/qemu-system-x86_64 \ -global virtio-blk-pci.scsi=off \ -nodefconfig \ -enable-fips \ -nodefaults \ -display none \ -cpu host \ -machine accel=kvm:tcg \ -m 500 \ -no-reboot \ -rtc driftfix=slew \ -no-hpet \ -global kvm-pit.lost_tick_policy=discard \ -kernel /var/tmp/.guestfs-1000/appliance.d/kernel \ -initrd /var/tmp/.guestfs-1000/appliance.d/initrd \ -device virtio-scsi-pci,id=scsi \ -drive file=/tmp/libguestfsr2lqpe/devnull1,cache=writeback,id=hd0,if=none \ -device scsi-hd,drive=hd0 \ -drive file=/var/tmp/.guestfs-1000/appliance.d/root,snapshot=on,id=appliance,cache=unsafe,if=none \ -device scsi-hd,drive=appliance \ -device virtio-serial-pci \ -serial stdio \ -device sga \ -chardev socket,path=/tmp/libguestfsr2lqpe/guestfsd.sock,id=channel0 \ -device virtserialport,chardev=channel0,name=org.libguestfs.channel.0 \ -netdev user,id=usernet,net=169.254.0.0/16 \ -device virtio-net-pci,netdev=usernet \ -append 'panic=1 console=ttyS0 udevtimeout=6000 udev.event-timeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm' WARNING: Image format was not specified for '/tmp/libguestfsr2lqpe/devnull1' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. Could not open option rom 'sgabios.bin': No such file or directory [0.00] Initializing cgroup subsys cpuset [0.00] Initializing cgroup subsys cpu [0.00] Initializing cgroup subsys cpuacct [0.00] Linux version 4.0.0-2-amd64 (debian-ker...@lists.debian.org) (gcc version 4.9.2 (Debian 4.9.2-21) ) #1 SMP Debian 4.0.5-1 (2015-06-16) [0.00] Command line: panic=1 console=ttyS0 udevtimeout=6000 udev.event-timeout=6000 no_timer_check acpi=off printk.time=1 cgroup_disable=memory root=/dev/sdb selinux=0 guestfs_verbose=1 guestfs_network=1 TERM=xterm [0.00] e820: BIOS-provided physical RAM map: [0.00] BIOS-e820: [mem
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
Hi Hilko, On Sat, Jan 17, 2015 at 9:22 AM, Hilko Bengen ben...@debian.org wrote: Has it been fixed in 1.28.4-1? No, this problem affects all versions after 1.26. I tried 1:1.28.1-1, 1:1.28.4-1 and 1:1.29.14-1. Thanks Simon
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
* Simon Boulet: After upgrading to 1.28 (a simple apt-get upgrade in Jessie pulls 1.28 now) it seems network is no longer available inside the guest (using virt-builder). 1.26 was working fine, everything broke after upgrading to 1.28. Rolling back to 1:1.26.9-1 from snapshot.debian.org works. This no longer works in 1.28: [...] Has it been fixed in 1.28.4-1? Cheers, -Hilko -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#775514: No networking running virt-builder scripts after upgrading from 1.26 to 1.28
Package: libguestfs-tools Version: 1:1.28.4-1 After upgrading to 1.28 (a simple apt-get upgrade in Jessie pulls 1.28 now) it seems network is no longer available inside the guest (using virt-builder). 1.26 was working fine, everything broke after upgrading to 1.28. Rolling back to 1:1.26.9-1 from snapshot.debian.org works. This no longer works in 1.28: # virt-builder debian-7 --run-command 'wget -O /dev/null https://www.debian.org/' [ 1.0] Downloading: http://libguestfs.org/download/builder/debian-7.xz [ 1.0] Planning how to build this image [ 1.0] Uncompressing [ 11.0] Opening the new disk [ 29.0] Setting a random seed [ 29.0] Running: wget -O /dev/null https://www.debian.org/ --2015-01-16 10:26:59-- https://www.debian.org/ Resolving www.debian.org (www.debian.org)... failed: Name or service not known. wget: unable to resolve host address `www.debian.org' virt-builder: wget -O /dev/null https://www.debian.org/: command exited with an error