Your message dated Wed, 17 Mar 2010 18:07:01 +0100
with message-id <[email protected]>
and subject line Re: Bug#572625: What's the issue?
has caused the Debian Bug report #572625,
regarding virt-manager apparently changes ownership of disk images
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
572625: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=572625
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: qemu-kvm
Version: 0.11.1+dfsg-1
Severity: important


I cannot start a newly created VM using a vmdk image, probably by a permission 
problem.

sc...@antani-deb:~/kvm$ ls -la
totale 17258688
drwxrwx--- 1 scorp scorp          5  5 mar 09:37 .
drwxr-xr-x 1 scorp scorp         82  5 mar 11:18 ..
-rw-r--r-- 1 scorp scorp 7281442816  4 mar 17:41 antani-web.vmdk
-rw-r--r-- 1 scorp scorp 3111321600  4 mar 17:41 bncf-client.vmdk
-rw-r--r-- 1 scorp scorp 7280132096  4 mar 09:47 home-dev.vmdk

This is the error when I try to start the machine:

Error starting domain: internal error unable to start guest: qemu: could not 
open disk image /media/mac/Users/scorp/Debian-Home/kvm/antani-web.vmdk

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 589, in run_domain
    vm.startup()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1208, in startup
    self._backend.create()
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 300, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error unable to start guest: qemu: could not open disk 
image /media/mac/Users/scorp/Debian-Home/kvm/antani-web.vmdk

Permissions are being resetted by kvm/libvirt/virt-manager?

sc...@antani-deb:~/kvm$ ls -la
totale 17258688
drwxrwx--- 1 scorp scorp            5  5 mar 09:37 .
drwxr-xr-x 1 scorp scorp           82  5 mar 11:18 ..
-rw-r--r-- 1 root  root    7281442816  4 mar 17:41 antani-web.vmdk
-rw-r--r-- 1 scorp scorp   3111321600  4 mar 17:41 bncf-client.vmdk
-rw-r--r-- 1 root  root    7280132096  4 mar 09:47 home-dev.vmdk

-- Package-specific info:


selected information from lshal(1):



/proc/cpuinfo:

processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     T9550  @ 2.66GHz
stepping        : 10
cpu MHz         : 2653.631
cache size      : 6144 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm 
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor 
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow 
vnmi flexpriority
bogomips        : 5307.26
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 23
model name      : Intel(R) Core(TM)2 Duo CPU     T9550  @ 2.66GHz
stepping        : 10
cpu MHz         : 2653.631
cache size      : 6144 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm 
constant_tsc arch_perfmon pebs bts rep_good aperfmperf pni dtes64 monitor 
ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm tpr_shadow 
vnmi flexpriority
bogomips        : 5306.62
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:




-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages qemu-kvm depends on:
ii  adduser                 3.112            add and remove users and groups
ii  bridge-utils            1.4-5            Utilities for configuring the Linu
ii  iproute                 20091226-1       networking and traffic control too
ii  libasound2              1.0.22-2         shared library for ALSA applicatio
ii  libbluetooth3           4.60-1           Library to use the BlueZ Linux Blu
ii  libbrlapi0.5            4.1-4            braille display access via BRLTTY 
ii  libc6                   2.10.2-6         Embedded GNU C Library: Shared lib
ii  libcurl3-gnutls         7.19.7-1         Multi-protocol file transfer libra
ii  libgnutls26             2.8.5-2          the GNU TLS library - runtime libr
ii  libncurses5             5.7+20090803-2   shared libraries for terminal hand
ii  libpci3                 1:3.1.6-1        Linux PCI Utilities (shared librar
ii  libpulse0               0.9.21-1         PulseAudio client libraries
ii  libsasl2-2              2.1.23.dfsg1-5   Cyrus SASL - authentication abstra
ii  libsdl1.2debian         1.2.13-5         Simple DirectMedia Layer
ii  libvdeplug2             2.2.3-3          Virtual Distributed Ethernet - Plu
ii  libx11-6                2:1.3.3-1        X11 client-side library
ii  python                  2.5.4-9          An interactive high-level object-o
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages qemu-kvm recommends:
ii  linux-image-2.6.26-2-amd 2.6.26-21lenny3 Linux 2.6.26 image on AMD64
ii  linux-image-2.6.32-trunk 2.6.32-5        Linux 2.6.32 for 64-bit PCs

Versions of packages qemu-kvm suggests:
pn  debootstrap                   <none>     (no description available)
ii  hal                           0.5.14-2   Hardware Abstraction Layer
pn  samba                         <none>     (no description available)
ii  vde2                          2.2.3-3    Virtual Distributed Ethernet

-- no debconf information



--- End Message ---
--- Begin Message ---
On Wed, Mar 17, 2010 at 04:10:24PM +0100, Giovanni Toraldo wrote:
> On Mon, Mar 8, 2010 at 6:10 PM, Guido Günther <[email protected]> wrote:
> > Hi,
> > is your problem that the permissions are being changed (that's
> > intentional) or that the vm doesn't start? The latter seems to be caused
> > by the fact that the qemu user can't access the vmdk.
> 
> Sorry, the problem was too simple that I get it only now.
> 
> The problem is with the owner of the /var/lib/libvirtd/images folder:
> 
> casseruola:/var/lib# ls -la libvirt/
> totale 4
> drwxr-xr-x  6 root         root   55 17 mar 15:12 .
> drwxr-xr-x 40 root         root 4096 17 mar 15:32 ..
> drwxr-xr-x  2 root         root    6 18 dic  2008 boot
> drwx------  2 root         root   71 17 mar 15:39 images
> drwxr-xr-x  2 root         root   24 17 mar 15:15 network
> drwxr-xr-x  2 libvirt-qemu kvm     6 17 mar 15:17 qemu
> 
> casseruola:/var/lib# chown libvirt-qemu:kvm libvirt/images/
> 
> Permission denied is disappeared. The bug is probably in the debian
> install script of libvirtd-bin package.
The package sets the direcotory to 755 so I suspect this is a local
problem, so I'm closing this report. Thanks.
 -- Guido


--- End Message ---

Reply via email to