[one-users] VM image dir not created

Michael W. Lucas mwlucas at blackhelicopters.org
Tue Apr 26 10:13:46 PDT 2011


Hi,

I'm testing OpenNebula 2.2 on Ubuntu 10.10 as a front end to KVM.  The
worker nodes run diskless.  Diskless VMs run fine, but a VM with a
disk image won't start.

The vm.log shows:

Tue Apr 26 13:01:32 2011 [VM][I]: Virtual Machine has no context
Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Creating directory /usr/local/one/var/2/images
Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Executed "mkdir -p /usr/local/one/var/2/images".
Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Executed "chmod a+w /usr/local/one/var/2/images".
Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Link /usr/local/one/var/images/gnosis.img
Tue Apr 26 13:01:32 2011 [TM][I]: tm_ln.sh: Executed "ln -s /usr/local/one/var/images/gnosis.img /usr/local/one/var/2/images/disk.0".
Tue Apr 26 13:01:33 2011 [LCM][I]: New VM state is BOOT
Tue Apr 26 13:01:33 2011 [VMM][I]: Generating deployment file: /usr/local/one/var/2/deployment.1
Tue Apr 26 13:02:04 2011 [VMM][I]: Command execution fail: 'if [ -x "/var/tmp/one/vmm/kvm/deploy" ]; then /var/tmp/one/vmm/kvm/deploy /usr/local/one/var/2/images/deployment.1; else                              exit 42; fi'
Tue Apr 26 13:02:04 2011 [VMM][I]: STDERR follows.
Tue Apr 26 13:02:04 2011 [VMM][I]: error: Failed to create domain from /usr/local/one/var/2/images/deployment.1
Tue Apr 26 13:02:04 2011 [VMM][I]: error: internal error process exited while connecting to monitor: qemu: could not open disk image /usr/local/one/var/2/images/disk.0: Permission denied
Tue Apr 26 13:02:04 2011 [VMM][I]: 

The VM directory contains:

# ls -ail /usr/local/one/var/2/
total 15
3236 drwxrwxrwx 2 oneadmin oneadmin    9 2011-04-26 13:05 .
   3 drwxr-xr-x 7 oneadmin oneadmin   12 2011-04-26 13:10 ..
3250 -rw-r--r-- 1 oneadmin oneadmin  583 2011-04-26 12:59 deployment.0
3279 -rw-r--r-- 1 oneadmin oneadmin  583 2011-04-26 13:01 deployment.1
3257 -rw-r--r-- 1 oneadmin oneadmin   48 2011-04-26 12:59 transfer.0.delete
3245 -rw-r--r-- 1 oneadmin oneadmin  105 2011-04-26 12:59 transfer.0.prolog
3286 -rw-r--r-- 1 oneadmin oneadmin   48 2011-04-26 13:02 transfer.1.delete
3274 -rw-r--r-- 1 oneadmin oneadmin  105 2011-04-26 13:01 transfer.1.prolog
3237 -rw-r--r-- 1 oneadmin oneadmin 4012 2011-04-26 13:02 vm.log

There is no "images" directory.  I suspect this is the cause of the
error.

Any suggestions on what I'm missing?  I'm migrating from 1.4 to 2.2,
so I might well have missed something basic...

Thanks,
==ml

-- 
Michael W. Lucas 	
http://www.MichaelWLucas.com/, http://blather.MichaelWLucas.com/
Latest book: Network Flow Analysis http://www.networkflowanalysis.com/
mwlucas at BlackHelicopters.org, Twitter @mwlauthor



More information about the Users mailing list