Re: insert ISO into a KVM guest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/26/2011 08:07 AM, Jeff wrote:
> There's got to be a simple way to attach an ISO to a KVM guest. I just haven't yet discovered it.
>
> I've tried adding the following stanza to my guest XML file, under the <devices> stanza and starting the guest:
>
> <disk type='file' device='cdrom'>
>    <driver name='qemu' type='raw' />
>    <source file='/etc/libvirt/qemu/isos/kvm1.iso' />
>    <target dev='hda' bus='ide' />
>    <readonly />
> </disk>
>
>
> But I get the following:
>
> error: Failed to start domain rhel6guest
> error: internal error process exited while connecting to monitor: char device redirected to /dev/pts/3
> qemu: could not open disk image /etc/libvirt/qemu/isos/kvm1.iso: Permission denied
>
What about the parent directory perms?

> A perms issue should be easy to address one would think, but I've tried every possible combination of perms changes including 777. Changed ownership from root to qemu:qemu (though I'm running as root). I'm not running SELinux. 
>
> Anyone have any insights on how to mount a simple ISO into a KVM guest?  Both at build time AND while the guest is running?
>
Use the loop device on the guest itself?  IE: mount -o loop filename.iso /mnt


Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux