Shantanu Pavgi
2012-Feb-24 19:21 UTC
[libvirt-users] qemu - could not load kernel and dynamic ownership setting
Hi, I am getting following 'qemu: could not load kernel' error while trying to create a new VM using virt-install or virt-manager. The software versions are as follows: CentOS 6.2, Libvirt 0.9.4, qemu-kvm 2:0.12.1.2-2.209.el6_2.1. The qemu.conf has disabled dynamic_ownership setting. The VM instantiation has worked fine before when dynamic_ownership was enabled (default). So is this error related to dynamic ownership being disabled? I appreciate any help on how to debug this error further. Also, is there any documentation on why/when dynamic_ownership setting should be used? We have enabled it to figure this out through some test installs but right now unable to move further with the install step itself. {{{ virt-install --connect qemu:///system \ -n $guestname \ -r 512 \ --vcpus=1 \ --os-type=linux \ --os-variant=rhel6 \ --accelerate \ --graphics vnc,keymap=en-us \ -v \ -w bridge:br1 \ --disk path=$datastore/$guestname.img,size=40 \ -l $repo \ -x "ks=$ksurl/$ksfile ksdevice=eth0 ip=$guestip netmask=$netmask nameserver=$nameserver gateway=$gw" }}} {{{ Starting install... Retrieving file .treeinfo... | 798 B 00:00 ... Retrieving file vmlinuz... | 7.5 MB 00:00 ... Retrieving file initrd.img... | 59 MB 00:01 ... Allocating 'virtinst-vmlinuz.l4mEAd' | 3.8 MB 00:00 Transferring virtinst-vmlinuz.l4mEAd | 3.8 MB 00:00 Allocating 'virtinst-initrd.img.IvGhFr' | 29 MB 00:00 Transferring virtinst-initrd.img.IvGhFr | 29 MB 00:05 Creating storage file generic-server.img | 40 GB 00:00 ERROR internal error process exited while connecting to monitor: char device redirected to /dev/pts/1 qemu: could not load kernel '/var/lib/libvirt/boot/virtinst-vmlinuz.l4mEAd': Permission denied Domain installation does not appear to have been successful. }}} -- Thanks, Shantanu
Eric Blake
2012-Feb-24 23:57 UTC
[libvirt-users] qemu - could not load kernel and dynamic ownership setting
On 02/24/2012 12:21 PM, Shantanu Pavgi wrote:> > Hi, > > I am getting following 'qemu: could not load kernel' error while trying to create a new VM using virt-install or virt-manager. The software versions are as follows: CentOS 6.2, Libvirt 0.9.4, qemu-kvm 2:0.12.1.2-2.209.el6_2.1. > > The qemu.conf has disabled dynamic_ownership setting. The VM instantiation has worked fine before when dynamic_ownership was enabled (default). So is this error related to dynamic ownership being disabled? I appreciate any help on how to debug this error further.Very well could be. If dynamic_ownership is on, then libvirt will chown the image prior to starting qemu, then revert it back on completion. But if you have it off, then libvirt assumes you have correct permissions on the file to begin with, and if that assumption is wrong, failure to open the image could indeed result. We have a troubleshooting wiki that may give you more insight on things to try, and do feel free to add a page if you find a solution: http://wiki.libvirt.org/page/Troubleshooting> > Also, is there any documentation on why/when dynamic_ownership setting should be used?http://libvirt.org/drvqemu.html#securitydac has a start; if you find more information would be useful, then let's get the documentation improved (the docs are kept as part of libvirt.git). -- Eric Blake eblake at redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 620 bytes Desc: OpenPGP digital signature URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20120224/43c539ec/attachment.sig>