Lee Revell
2015-Mar-13 13:14 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On 03/12/2015 04:35 AM, Richard W.M. Jones wrote:>> leer@eng-leer:~/libguestfs-1.29.29$ virt-builder fedora-21 >> --run-command "ping -c 4 172.16.12.200" >> [ 1.0] Downloading: http://libguestfs.org/download/builder/fedora-21.xz >> [ 1.0] Planning how to build this image >> [ 1.0] Uncompressing >> [ 28.0] Opening the new disk >> [ 31.0] Setting a random seed >> [ 31.0] Running: ping -c 4 172.16.12.200 >> connect: Network is unreachable >> virt-builder: error: ping -c 4 172.16.12.200: command exited with an error > > Because of the non-root networking technology we use (SLIRP), 'ping' > doesn't work and there are other shortcomings. See:I think the problem actually goes deeper than name resolution. On a Ubuntu 14.04 host the firstboot-command doesn't seem to be run at all and it appears that the network never gets configured. Here is a complete log. The same command, libguestfs + supermin version, and images all work perfectly on a Fedora 21 host. Command tested: $ ./run virt-builder fedora-21 --firstboot-command "echo 'testing' > /var/log/test" -v -x 2>&1 | tee virt-builder.log This appears to succeed as the log shows, but then mounting the image with guestfish: $ ./run guestfish -a fedora-21.img Welcome to guestfish, the guest filesystem shell for editing virtual machine filesystems and disk images. Type: 'help' for help on commands 'man' to read the manual 'quit' to quit the shell ><fs> run ><fs> mount /dev/sda3 / ><fs> ls /var/log/ README anaconda audit journal ppp ><fs> exit Lee
Richard W.M. Jones
2015-Mar-13 13:40 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On Fri, Mar 13, 2015 at 09:14:35AM -0400, Lee Revell wrote:> On 03/12/2015 04:35 AM, Richard W.M. Jones wrote: > >>leer@eng-leer:~/libguestfs-1.29.29$ virt-builder fedora-21 > >>--run-command "ping -c 4 172.16.12.200" > >>[ 1.0] Downloading: http://libguestfs.org/download/builder/fedora-21.xz > >>[ 1.0] Planning how to build this image > >>[ 1.0] Uncompressing > >>[ 28.0] Opening the new disk > >>[ 31.0] Setting a random seed > >>[ 31.0] Running: ping -c 4 172.16.12.200 > >>connect: Network is unreachable > >>virt-builder: error: ping -c 4 172.16.12.200: command exited with an error > > > >Because of the non-root networking technology we use (SLIRP), 'ping' > >doesn't work and there are other shortcomings. See: > > I think the problem actually goes deeper than name resolution. On a > Ubuntu 14.04 host the firstboot-command doesn't seem to be run at > all and it appears that the network never gets configured. Here is a > complete log. The same command, libguestfs + supermin version, and > images all work perfectly on a Fedora 21 host. > > Command tested: > > $ ./run virt-builder fedora-21 --firstboot-command "echo 'testing' > > /var/log/test" -v -x 2>&1 | tee virt-builder.log > > This appears to succeed as the log shows, but then mounting the > image with guestfish:Do you boot and then shut down the image before examining it? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Lee Revell
2015-Mar-13 14:59 UTC
Re: [Libguestfs] Name resolution not working inside virt-customize
On 03/13/2015 09:40 AM, Richard W.M. Jones wrote:> > Do you boot and then shut down the image before examining it?Sorry, thinko on my part. This did work after all once the image booted. Here's a log that shows update not working with the Ubuntu 14.04 host. Command tested: $ ./run virt-builder fedora-21 --network --update -v -x 2>&1 | tee virt-builder.log Lee
Maybe Matching Threads
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize
- Re: Name resolution not working inside virt-customize
- Name resolution not working inside virt-customize