[libvirt-users] Permission denied

Daniel P. Berrange berrange at redhat.com
Tue Jun 25 17:07:44 UTC 2013


On Tue, Jun 25, 2013 at 07:02:40PM +0200, Roland Giesler wrote:
> System:
> $ cat /etc/issue
> Ubuntu 12.10 \n \l
> 
> $ uname -a
> Linux Matt-HP 3.5.0-34-generic #55-Ubuntu SMP Thu Jun 6 20:20:19 UTC 2013
> i686 i686 i686 GNU/Linux
> 
> 
> I have a converted VMWare virtual machine which I converted by using:
> 
> $ vmware2libvirt -f ./WinXPPro.vmx > WinXPPro.xml
> $ virsh -c qemu:///system define WinXPPro.xml

You're using 'qemu:///system' here which is a privileged instance
of libvirt, where the QEMU process runs as a dedicated user ID.

>     <disk type='file' device='disk'>
>       <driver name='qemu' type='vmdk'/>
>       <source file='/home/roland/WinXPPro/WinXPPro.vmdk'/>
>       <target dev='hda' bus='ide'/>
>       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>     </disk>

Here you're putting the disk in /home/roland, and I'm guessing
that /home/roload is mode  -rwx-------, which will prevent the
QEMU user ID from accessing the disk.

When using qemu:///system, it is recommended to use
/var/lib/libvirt/images as the disk storage location.

If you really want to use /home/roland, then make sure
it has go+x permission bit set.


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvirt-users mailing list