[Users] Newly created VM will not start. Bad permissions on its virtual disk.

Dan Kenigsberg danken at redhat.com
Mon Feb 27 22:08:08 UTC 2012


On Mon, Feb 27, 2012 at 03:50:32PM -0500, Terry Phelps wrote:
> I have a newly installed ovirt engine, and node. I created a new VM, gave
> it a virtual disk, and a network, attached my one ISO that I have out
> there, and tried to start it. It failed. The admin portal error messages
> say:
> 
> 2012-Feb-27, 15:40:10
> Failed to run VM oel-test (User: admin at internal).
> 
> 2012-Feb-27, 15:40:10
> Failed to run VM oel-test on Host oravm2.
> 
> 2012-Feb-27, 15:40:10
> VM oel-test is down. Exit message unable to open disk path
> /rhev/data-center/f465251e-
> 5679-11e1-ba81-97917332892e/24b70dff-549e-46a6-a863-3a158aa6e9a3/images/c07482cb-818f-47b7-97d1-1409909408bb/e1e57887-e660-4191-87a0-5eac7a44f2d7:
> Permission denied.
> 
> 2012-Feb-27, 15:40:08
> VM oel-test was started by admin at internal (Host: oravm2).
> 
> 
> When I go to the node, and check, the permissions do indeed look bad.
> vdsm:kvm owns everything down through
> /rhev/data-center/f465251e-5679-11e1-ba81-97917332892e/24b70dff-549e-46a6-a863-3a158aa6e9a3,
> but below that, it looks bad. Here is a "ls -l" of that last directory:
> 
> # ls -l
> total 8
> drwxr-xr-x. 2 4294967294 4294967294 4096 Feb 23 16:22 dom_md
> drwxr-xr-x. 3 4294967294 4294967294 4096 Feb 27 16:22 images
> 
> And then the owner and group of everything below 'images' is bad, too.
> 
> Can some help me determine what happened? And how to fix it?

I've never seen a filed owned by uid -2 before! I suppose you are using nfs.
what are the mount options (look for the relevant line in the output of
`mount`)? which is your server, and how was it configured?

The script in
http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=contrib/nfs-check.py
may help diagnose few nfs-related problems. Once we understand what's wrong with
you setup, we should probabaly update this script.

Dan.



More information about the Users mailing list