[one-users] Permission libvirt/qemu driver

Guillaume GENS guillaume.gens at cnam.fr
Fri Mar 25 05:37:14 PDT 2011


-------------------------------------------
$ONE_LOCATION/var/config :

AUTH_MAD=EXECUTABLE=one_auth_mad
DB=BACKEND=sqlite
DEBUG_LEVEL=1
DEFAULT_DEVICE_PREFIX=hd
DEFAULT_IMAGE_TYPE=OS
HM_MAD=EXECUTABLE=one_hm
HOST_HOOK=ARGUMENTS=$HID -r
y,COMMAND=host_error.rb,NAME=error,ON=ERROR,REMOTE=no
HOST_MONITORING_INTERVAL=20
IMAGE_REPOSITORY_PATH=/srv/cloud/images
IM_MAD=ARGUMENTS=-r 0 -t 15 kvm,EXECUTABLE=one_im_ssh,NAME=im_kvm
IM_MAD=ARGUMENTS=ganglia,EXECUTABLE=one_im_sh,NAME=im_ganglia
IM_MAD=EXECUTABLE=one_im_dummy,NAME=im_dummy
MAC_PREFIX=54:52
MANAGER_TIMER=10
NETWORK_SIZE=254
PORT=4563
SCRIPTS_REMOTE_DIR=/srv/cloud/one/var/remotes
TM_MAD=ARGUMENTS=tm_nfs/tm_nfs.conf,EXECUTABLE=one_tm,NAME=tm_nfs
TM_MAD=ARGUMENTS=tm_dummy/tm_dummy.conf,EXECUTABLE=one_tm,NAME=tm_dummy
VM_DIR=/srv/cloud/one/var/images
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
VM_HOOK=ARGUMENTS=$VMID,COMMAND=/usr/bin/env onevm
resubmit,NAME=on_failure_resubmit,ON=FAILED
VM_HOOK=ARGUMENTS=one-$VMID,COMMAND=ebtables-kvm,NAME=ebtables-start,ON=running,REMOTE=yes
VM_HOOK=ARGUMENTS="",COMMAND=ebtables-flush,NAME=ebtables-flush,ON=done,REMOTE=yes
VM_MAD=ARGUMENTS=-t 15 -r 0
kvm,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm,TYPE=kvm
VM_MAD=ARGUMENTS=-t 15 -r 0 kvm -p
poll_local,DEFAULT=vmm_ssh/vmm_ssh_kvm.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_kvm-ganglia,TYPE=kvm
VM_MAD=EXECUTABLE=one_vmm_dummy,NAME=vmm_dummy,TYPE=xml
VM_POLLING_INTERVAL=15
VNC_BASE_PORT=5900
----------------------------------
i don't think that list all files in my self-contained  installation
be relevant to my problem (and help you).
I just give you the output of   find $ONE_LOCATION/var -type d -printf
"%u %g %M %p\n"

oneadmin cloud drwxr-xr-x /srv/cloud/one/var
oneadmin cloud drwxrws--T /srv/cloud/one/var/images
oneadmin cloud drwxr-sr-x /srv/cloud/one/var/images/28
oneadmin cloud drwxr-sr-x /srv/cloud/one/var/images/28/images
oneadmin cloud drwxr-sr-x /srv/cloud/one/var/images/27
oneadmin cloud drwxr-sr-x /srv/cloud/one/var/images/27/images
oneadmin cloud drwxrwxrwx /srv/cloud/one/var/28
oneadmin cloud drwxrwxrwx /srv/cloud/one/var/27
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/vmm
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/vmm/kvm
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/vmm/xen
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/im
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/im/kvm.d
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/im/xen.d
oneadmin cloud drwxr-xr-x /srv/cloud/one/var/remotes/im/ganglia.d


thank ahead

---
Guillaume GENS

On Fri, Mar 25, 2011 at 12:48 PM, Jaime Melis <jmelis at opennebula.org> wrote:
> 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
>



More information about the Users mailing list