[Pkg-libvirt-maintainers] Bug#629341: Bug#629341: virtinst: fails if umask isn't permissive

Rob Browning rlb at defaultvalue.org
Sun Jun 5 23:59:23 UTC 2011


Guido Günther <agx at sigxcpu.org> writes:

> What uri are you using? In case of 'session' the qemu process is
> running as your user so there shouldn't be a problem. Please run with
> --debug.  Cheers,

I just tested again.  Here are the commands:

  cd ~
  rm -rf .virtinst
  umask 027
  pool=/var/lib/libvirt/images
  virt-install --prompt -d --connect qemu:///system --virt-type kvm \
    --name test-vinstperms3 \
    --ram 256 \
    --disk path="$pool"/test-vinstperms3,format=raw,bus=virtio,size=2 \
    --network bridge=br0,model=virtio \
    --graphics vnc,password=whatever \
    --location http://ftp.debian.org/debian/dists/squeeze/main/installer-i386/

And here's the result:

  ...
  Sun, 05 Jun 2011 18:54:44 ERROR    internal error Process exited while reading console log output: char device redirected to /dev/pts/10
  qemu: could not load kernel '/home/rlb/.virtinst/boot/virtinst-linux.RdwkKK': Permission denied

  Sun, 05 Jun 2011 18:54:44 DEBUG    Traceback (most recent call last):
    File "/usr/bin/virt-install", line 1079, in start_install
      dom = guest.start_install(conscb, meter, wait=wait_on_console)
    File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1186, in start_install
      start_xml, final_xml, is_initial)
    File "/usr/lib/pymodules/python2.6/virtinst/Guest.py", line 1245, in _create_guest
      dom = self.conn.createLinux(start_xml or final_xml, 0)
    File "/usr/lib/python2.6/dist-packages/libvirt.py", line 1454, in createLinux
      if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
  libvirtError: internal error Process exited while reading console log output: char device redirected to /dev/pts/10
  qemu: could not load kernel '/home/rlb/.virtinst/boot/virtinst-linux.RdwkKK': Permission denied
  Sun, 05 Jun 2011 18:54:44 DEBUG    Domain installation does not appear to have been successful.

Thanks
-- 
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4





More information about the Pkg-libvirt-maintainers mailing list