----- Original Message -----
> hi, Dan
> i am happy to contribute my code until it is tested.
> 
> i am not sure if it is related to selinux because no matter i enable or
> disable selinux (SELINUX= disabled mode) the error remain.
> 
> i define a xml recording to vdsm.log infos, and 'virsh start myvm', the same
> error occurs
> i copy the comand line which is recorded in libvirtd.log or myvm.log when
> start a vm, and lauch it directly, it starts without error.
> 
> do u notice the confision, u can start it throught command line, but fail
> throught libvirt.
> i have checked almost every place like perm,ownner ship, lv active, backing
> file.....etc

what version of libvirt are you using?

> 
> i am going to cry. (._.)
> 
> 
> 
> -----error log- testname-1.log---
> 2013-09-22 00:50:15.430+0000: starting up
> LC_ALL=C PATH=/sbin:/usr/sbin:/bin:/usr/bin QEMU_AUDIO_DRV=spice
> /usr/libexec/qemu-kvm -name testname-1 -S -M rhel6.4.0 -cpu Nehalem
> -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -uuid
> 24f7e975-9aa5-4a14-b0f0-590add14c8b5 -smbios
> type=1,manufacturer=mcVdi,product=mcVdi
> Node,version=6-4.el6.centos.10,serial=25F59E10-794D-11E1-8835-3440B587CE3F_34:40:b5:87:ce:3f,uuid=24f7e975-9aa5-4a14-b0f0-590add14c8b5
> -nodefconfig -nodefaults -chardev
> socket,id=charmonitor,path=/var/lib/libvirt/qemu/testname-1.monitor,server,nowait
> -mon chardev=charmonitor,id=monitor,mode=control -rtc
> base=localtime,driftfix=slew -no-shutdown -device
> piix3-usb-uhci,id=usb,bus=pci.0,addr=0x1.0x2 -device
> virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 -drive
> file=/rhev/data-center/7828f2ae-955e-4e4b-a4bb-43807629dc52/d028d521-d4a9-4dd7-a0fe-3e9b60e7c4e4/images/ac025dc1-4e25-4b71-8c56-88dcb61b9f09/c04b1d4f-abeb-4e64-8932-2f325a0a5af4,if=none,id=drive-ide0-0-0,format=qcow2,serial=ac025dc1-4e25-4b71-8c56-88dcb61b9f09,cache=none,werror=stop,rerror=stop,aio=native
> -device
> ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1
> -drive if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw,serial=
> -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -netdev
> tap,fd=31,id=hostnet0 -device
> rtl8139,netdev=hostnet0,id=net0,mac=00:1a:4a:a8:05:b9,bus=pci.0,addr=0x3
> -chardev
> socket,id=charchannel0,path=/var/lib/libvirt/qemu/channels/testname-1.com.redhat.rhevm.vdsm,server,nowait
> -device
> virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,id=channel0,name=com.redhat.rhevm.vdsm
> -chardev
> socket,id=charchannel1,path=/var/lib/libvirt/qemu/channels/testname-1.org.qemu.guest_agent.0,server,nowait
> -device
> virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,id=channel1,name=org.qemu.guest_agent.0
> -chardev spicevmc,id=charchannel2,name=vdagent -device
> virtserialport,bus=virtio-serial0.0,nr=3,chardev=charchannel2,id=channel2,name=com.redhat.spice.0
> -chardev pty,id=charconsole0 -device
> virtconsole,chardev=charconsole0,id=console0 -spice
> port=5904,tls-port=5905,addr=192.168.5.100,x509-dir=/etc/pki/vdsm/libvirt-spice,tls-channel=main,tls-channel=display,tls-channel=inputs,tls-channel=cursor,tls-channel=playback,tls-channel=record,tls-channel=smartcard,tls-channel=usbredir,seamless-migration=on
> -k en-us -vga qxl -global qxl-vga.ram_size=67108864 -global
> qxl-vga.vram_size=67108864 -device AC97,id=sound0,bus=pci.0,addr=0x4 -device
> virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x6
> char device redirected to /dev/pts/4
> qemu-kvm: -drive
> file=/rhev/data-center/7828f2ae-955e-4e4b-a4bb-43807629dc52/d028d521-d4a9-4dd7-a0fe-3e9b60e7c4e4/images/ac025dc1-4e25-4b71-8c56-88dcb61b9f09/c04b1d4f-abeb-4e64-8932-2f325a0a5af4,if=none,id=drive-ide0-0-0,format=qcow2,serial=ac025dc1-4e25-4b71-8c56-88dcb61b9f09,cache=none,werror=stop,rerror=stop,aio=native:
> could not open disk image
> /rhev/data-center/7828f2ae-955e-4e4b-a4bb-43807629dc52/d028d521-d4a9-4dd7-a0fe-3e9b60e7c4e4/images/ac025dc1-4e25-4b71-8c56-88dcb61b9f09/c04b1d4f-abeb-4e64-8932-2f325a0a5af4:
> Operation not permitted
> 
> 
> 
> 
> 
> 
> At 2013-09-22 17:23:29,"Dan Kenigsberg" <dan...@redhat.com> wrote:
> >On Sun, Sep 22, 2013 at 09:59:08AM +0800, bigclouds wrote:
> >> i find a bug fixed 1 year ago.
> >>  
> >> type=VIRT_CONTROL msg=audit(1379813127.359:42015): user pid=1637 uid=0
> >>  auid=4294967295 ses=4294967295
> >>  subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='virt=kvm op=start
> >>  reason=booted vm="testname-1" uuid=24f7e975-9aa5-4a14-b0f0-590add14c8b5
> >>  vm-pid=-1 exe="/usr/sbin/libvirtd" hostname=? addr=? terminal=?
> >>  res=failed'
> >> https://bugzilla.redhat.com/show_bug.cgi?id=835936
> >>  
> >> but in my case, i have 'setenforce 0',
> >
> >If there's an SELinux-related regression, we should understand it, not
> >hide it with `setenforce 0` ;-)
> >Which is the version of your selinux-policy rpm?
> >
> >> i had not noticed both of you online on irc channel. how could you review
> >>  my code and talk about it.
> >> thanks
> >
> >Sorry, we have plenty of holidays this time of year.
> >
> >You are most welcome to post the code on-list, or to vdsm's gerrit (if
> >you would like to contribute it to vdsm_hooks).
> >
> >Dan
> 
> 
> 
> _______________________________________________
> vdsm-devel mailing list
> vdsm-devel@lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/vdsm-devel
> 
_______________________________________________
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-devel

Reply via email to