[one-users] Permission libvirt/qemu driver

Jaime Melis jmelis at opennebula.org
Fri Mar 25 04:48:06 PDT 2011


Hi Guillaume,

Can you send us $ONE_LOCATION/var/config
and the output of:
find $ONE_LOCATION -type d -printf "%u %g %M %p\n"

Regards,
Jaime

On Fri, Mar 25, 2011 at 12:08 PM, Guillaume GENS <guillaume.gens at cnam.fr>wrote:

> small up
>
> nobody help me ?
> nobody had a installation problem  with kvm on ubuntu 10.04 ?
>
> ---
> Guillaume GENS
>
>
> On Wed, Mar 23, 2011 at 11:33 AM, Guillaume GENS <guillaume.gens at cnam.fr>
> wrote:
> > hi
> >
> > I've got a problem deployment about ttylinux image in my Opennebula
> > infrastruture (self-contained installation). I think It's a permission
> > problem between libvirt and his qemu driver, I tried many solution but
> > i can't resolve it.
> >
> > in /srv/cloud/one/var/14/vm.log:
> > Wed Mar 23 11:08:10 2011 [VMM][I]: Generating deployment file:
> > /srv/cloud/one/var/14/deployment.0
> > Wed Mar 23 11:08:40 2011 [VMM][I]: Command execution fail: 'if [ -x
> > "/srv/cloud/one/var/remotes/vmm/kvm/deploy" ]; then
> > /srv/cloud/one/var/remotes/vmm/kvm/deploy
> > /srv/cloud/one/var/images/14/images/deployment.0; else
> >             exit 42; fi'
> > Wed Mar 23 11:08:40 2011 [VMM][I]: STDERR follows.
> > Wed Mar 23 11:08:40 2011 [VMM][I]: error: Failed to create domain from
> > /srv/cloud/one/var/images/14/images/deployment.0
> > Wed Mar 23 11:08:40 2011 [VMM][I]: error: cannot set ownership on
> > /srv/cloud/one/var/images/14/images/disk.0: No such file or directory
> > Wed Mar 23 11:08:40 2011 [VMM][I]: ExitCode: 255
> > Wed Mar 23 11:08:40 2011 [VMM][E]: Error deploying virtual machine:
> > error: Failed to create domain from
> > /srv/cloud/one/var/images/14/images/deployment.0
> > Wed Mar 23 11:08:41 2011 [DiM][I]: New VM state is FAILED
> >
> >
> > in : /var/log/libvirt/qemu/one-14.log
> > LC_ALL=C
> PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin
> > /usr/bin/kvm -S -M pc-0.12 -cpu qemu32 -enable-kvm -m 64 -smp 1 -name
> > one-14 -uuid 279a251a-e841-f910-68d3-0ebe89d6bff9 -nographic -chardev
> > socket,id=monitor,path=/var/lib/libvirt/qemu/one-14.monitor,server,nowait
> > -monitor chardev:monitor -no-acpi -boot c -drive
> >
> file=/srv/cloud/one/var/images/14/images/disk.0,if=ide,index=0,boot=on,format=raw
> > -drive
> file=/srv/cloud/one/var/images/14/images/disk.1,if=ide,media=cdrom,index=2,format=raw
> > -net nic,macaddr=54:52:a3:ad:e7:15,vlan=0,name=nic.0 -net
> > tap,fd=33,vlan=0,name=tap.0 -serial none -parallel none -usb
> > libvir: QEMU error : cannot set ownership on
> > /srv/cloud/one/var/images/14/images/disk.0: No such file or directory
> >
> > in /etc/group :
> > kvm:x:115:oneadmin
> > libvirtd:x:116:guigui,oneadmin
> > cloud:x:9000:
> >
> > oneadmin at frontend:~$ id
> > uid=9000(oneadmin) gid=9000(cloud)
> groups=115(kvm),116(libvirtd),9000(cloud)
> >
> >
> > in /etc/libvirt/libvirtd.conf :
> > unix_sock_group = "libvirtd"
> > unix_sock_ro_perms = "0777"
> > unix_sock_rw_perms = "0777"
> >
> >
> > in /etc/libvirt/qemu.conf :
> > user = "oneadmin"
> > group = "libvirtd"
> >
> >
> > thanks ahead
> >
> > PS: the download  wget
> > http://dev.opennebula.org/attachments/download/170/ttylinux.tar.gz
> > always restart past 97%. you've got a problem of EndOfFile in your
> > repository.
> >
> > ---
> > Guillaume GENS
> >
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>



-- 
Jaime Melis, Cloud Technology Engineer/Researcher
Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110325/eb852730/attachment-0002.htm>


More information about the Users mailing list