<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br>
</div>
<div>I am getting 'qemu: could not load kernel' error while trying to create a new VM using virt-install or virt-manager with dynamic_ownership disabled. </div>
<div><br>
</div>
<div>
<div>{{{</div>
<div>virt-install --connect <a href="qemu:///system">qemu:///system</a> \</div>
<div>-n $guestname \</div>
<div>-r 512 \</div>
<div>--vcpus=1 \</div>
<div>--os-type=linux \</div>
<div>--os-variant=rhel6 \</div>
<div>--accelerate \</div>
<div>--graphics vnc,keymap=en-us \</div>
<div>-v \</div>
<div>-w bridge:br1 \</div>
<div>--disk path=$datastore/$guestname.img,size=40 \</div>
<div>-l $repo \</div>
<div>-x "ks=$ksurl/$ksfile ksdevice=eth0 ip=$guestip netmask=$netmask nameserver=$nameserver gateway=$gw"</div>
<div>}}}</div>
<div><br>
</div>
<div>{{{</div>
<div>Starting install... </div>
<div>Retrieving file .treeinfo...              |  798 B     00:00 ... </div>
<div>Retrieving file vmlinuz...                | 7.5 MB     00:00 ... </div>
<div>Retrieving file initrd.img...             |  59 MB     00:01 ... </div>
<div>Allocating 'virtinst-vmlinuz.l4mEAd'      | 3.8 MB     00:00     </div>
<div>Transferring virtinst-vmlinuz.l4mEAd      | 3.8 MB     00:00     </div>
<div>Allocating 'virtinst-initrd.img.IvGhFr'   |  29 MB     00:00     </div>
<div>Transferring virtinst-initrd.img.IvGhFr   |  29 MB     00:05     </div>
<div>Creating storage file generic-server.img  |  40 GB     00:00     </div>
<div>ERROR    internal error process exited while connecting to monitor: char device redirected to /dev/pts/1</div>
<div>qemu: could not load kernel '/var/lib/libvirt/boot/virtinst-vmlinuz.l4mEAd': Permission denied</div>
<div><br>
</div>
<div>Domain installation does not appear to have been successful.</div>
<div><br>
</div>
<div>}}}</div>
</div>
<div><br>
</div>
<div>
<div>System Information: CentOS 6.2 x86_64, libvirt 0.9.4, qemu-kvm 2:0.12.1.2-2.209.el6_2.1, virt-install 0.600.0.</div>
</div>
<div><br>
</div>
<div>The error indicates permission issues while loading the kernel image. I have documented related logs at: <a href="https://dev.uabgrid.uab.edu/ticket/191">https://dev.uabgrid.uab.edu/ticket/191</a> . Right now as a workaround, I am doing OS installation
 by defining direct kernel boot option and extra kernel command-line arguments in the domain XML file. </div>
<div><br>
</div>
<div>I had posted this question on <a href="https://www.redhat.com/archives/libvirt-users/2012-February/msg00122.html">libvirt mailing list</a> 4-5 months back, but I didn't have chance to follow up on the issue for a long time [1]. I was wondering if anyone
 could provide help in resolving this issue. Does disabled dynamic ownership setting require any changes with '/var/lib/libvirt/boot' directory or any other changes? Any help would be appreciated.</div>
<div><br>
</div>
<div><br>
</div>
<div>1. <a href="https://www.redhat.com/archives/libvirt-users/2012-February/msg00122.html">https://www.redhat.com/archives/libvirt-users/2012-February/msg00122.html</a> </div>
<div><br>
</div>
<div>--</div>
<div>Thanks,</div>
<div>Shantanu</div>
<div><br>
</div>
</body>
</html>