On Fri, Jan 04, 2019 at 09:56:20AM +0100, Andrzej Gretkowski wrote:
Hi,
I am trying to install a package inside a VM with virt-builder, and it
seems I cannot connect to any repo, which means I probably have no network
inside the guest.
I installed it with:
*sudo apt-get install libguestfs-tools*
My OS-version:
*Ubuntu 18.04*
Command I used:
*virt-builder ubuntu-16.04 --network --install git *
--network is the default so that flag isn't needed.
I think the problem is this:
+ dhclient --version
+ dhclient eth0
[ 1.257538] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
System has not been booted with systemd as init system (PID 1). Can't operate.
(See:
https://github.com/libguestfs/libguestfs/blob/6b80c5fb51f08d3e62393e67226...
)
I'm not sure what that error means, but you may be able to find out
more by running:
virt-rescue --scratch
and trying to find out why dhclient doesn't work inside the appliance.
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