[Libguestfs] Name resolution not working inside virt-customize

Richard W.M. Jones rjones at redhat.com
Fri Mar 13 13:40:56 UTC 2015


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 at 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/




More information about the Libguestfs mailing list