[Pkg-libvirt-maintainers] Bug#598149: Bug#598149: libvirt-bin: autostart fails on reboot
Guido Günther
agx at sigxcpu.org
Mon Sep 27 09:16:35 UTC 2010
On Mon, Sep 27, 2010 at 10:26:43AM +0200, Jean-Louis Dupond wrote:
>
> On Mon, 27 Sep 2010 09:06:22 +0200, Guido Günther <agx at sigxcpu.org> wrote:
> > Hi Jean,
> > Are you using dependency based booting? Please check if the network is
> > fully up when libvirt-bin starts (e.g. by dumping the output of
> > ifconfing in the init script). It should be since we have a dependency
> > on $network in the init script.
> > Cheers,
> > -- Guido
>
> Hi Guido,
>
> I am using squeeze with dependency based booting.
>
> So I modified the libvirt-bin in init.d:
> start)
> if check_start_libvirtd_option; then
> log_daemon_msg "Starting $DESC" "$NAME"
> if running ; then
> log_progress_msg "already running"
> log_end_msg 0
> exit 0
> fi
> rm -f /var/run/libvirtd.pid
> /sbin/ifconfig > /root/if-boot
> start-stop-daemon --start --quiet --pidfile $PIDFILE \
> --exec $DAEMON -- $libvirtd_opts
> if running; then
> log_end_msg 0
> else
> log_end_msg 1
> fi
> fi
> ;;
>
>
> After a reboot I checked /root/if-boot.
> All the tap devices were created successfully, but still I got the
> following error:
>
> Sep 27 10:21:22 cloud libvirtd: 10:21:22.407: error :
> qemudReadLogOutput:2118 : internal error Process exited while reading
> console log output: char device redirected to /dev/pts/1#012could not open
> /dev/net/tun: Permission denied#012
> Sep 27 10:21:22 cloud libvirtd: 10:21:22.407: error :
> qemuAutostartDomain:827 : Failed to autostart VM 'dupondje': internal error
> Process exited while reading console log output: char device redirected to
> /dev/pts/1#012could not open /dev/net/tun: Permission denied#012
Could you check the permissions of /dev/net/tun the same way please?
Also please check if setting user=root/group=root in
/etc/libvirt/qemu.conf changes anything.
Please attache the domain xml of the domain that fails to start.
Cheers,
-- Guido
More information about the Pkg-libvirt-maintainers
mailing list