[Libguestfs] Would this be considered a ubuntu or libguestfs issue?

Richard W.M. Jones rjones at redhat.com
Sun Apr 5 08:32:53 UTC 2015


On Sat, Apr 04, 2015 at 10:20:17PM +0100, Richard W.M. Jones wrote:
> On Wed, Mar 18, 2015 at 02:17:50PM +0000, Richard W.M. Jones wrote:
> > > 14.04, 12.04 and 10.04 all fail with a "Failed to connect to socket
> > > /com/ubuntu/upstart: Connection refused" error (the exact package
> > > that fails is rsyslog on 10 and 12 and libpam-systemd in 14).
> > > libguestfs-1.29.29 + supermin 5.1.12 built from source on fedora 21.
> [...]
> > What is happening is that the Ubuntu libpam-systemd package has a
> > post-install script that tries to communicate with the init system
> > (which it expects to be running, but isn't running inside the
> > libguestfs appliance).
> 
> I can reproduce this.  I still think it's a bug in the Ubuntu dpkg
> scripts though ..

Bug or not, I replaced the --update flag with:

       --run-command '
                       export DEBIAN_FRONTEND=noninteractive
                       apt_opts="-q -y -o Dpkg::Options::=--force-confnew"
                       apt-get $apt_opts update
                       apt-get $apt_opts upgrade ||:
       ' \
       --firstboot-command 'apt-get -f install'

which seems to work around the problem, although Ubuntu gets "stuck"
booting - not sure if it did that before however.

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




More information about the Libguestfs mailing list