[one-users] Help with datastore feature

Robert Schweikert rjschwei at suse.com
Fri May 11 12:08:16 PDT 2012


On 05/11/2012 11:09 AM, Jaime Melis wrote:
> Hello Robert,
>
> Oh, I think I see where the problem is:
> You used vnm_kvm as the host network (vnm) drivers, but only: dummy,
> fw, 802.1Q, ebtables and ovswitch are the only accepted values. See [1].
>
> I reckon you need 'dummy'.
>
> onehost create<hostname>  -i im_kvm -v vmm_kvm -n dummy

OK, now I made it past the network issue, but the VM still will not run. 
Looks to be some storage problem?

 > cat 0.log
Fri May 11 14:47:58 2012 [DiM][I]: New VM state is ACTIVE.
Fri May 11 14:47:58 2012 [LCM][I]: New VM state is PROLOG.
Fri May 11 14:47:58 2012 [VM][I]: Virtual Machine has no context
Fri May 11 14:47:59 2012 [TM][I]: clone: Cloning 
../../1/3118ec2b9f3c9e9d3df0a42363ca72c8 in 
192.168.1.203:/var/lib/one//datastores/0/0/disk.0
Fri May 11 14:47:59 2012 [TM][I]: ExitCode: 0
Fri May 11 14:47:59 2012 [LCM][I]: New VM state is BOOT
Fri May 11 14:47:59 2012 [VMM][I]: Generating deployment file: 
/var/lib/one/0/deployment.0
Fri May 11 14:47:59 2012 [VMM][I]: ExitCode: 0
Fri May 11 14:47:59 2012 [VMM][I]: Successfully execute network driver 
operation: pre.
Fri May 11 14:48:00 2012 [VMM][I]: Command execution fail: cat << EOT | 
/var/tmp/one/vmm/kvm/deploy /var/lib/one//datastores/0/0/deployment.0 
192.168.1.203 0 192.168.1.203
Fri May 11 14:48:00 2012 [VMM][I]: WARNING: no socket to connect to
Fri May 11 14:48:00 2012 [VMM][I]: error: Failed to create domain from 
/var/lib/one//datastores/0/0/deployment.0
Fri May 11 14:48:00 2012 [VMM][I]: error: unable to open disk path 
/var/lib/one//datastores/0/0/../../1/3118ec2b9f3c9e9d3df0a42363ca72c8: 
Permission denied
Fri May 11 14:48:00 2012 [VMM][E]: Could not create domain from 
/var/lib/one//datastores/0/0/deployment.0
Fri May 11 14:48:00 2012 [VMM][I]: ExitCode: 255
Fri May 11 14:48:00 2012 [VMM][I]: Failed to execute virtualization 
driver operation: deploy.
Fri May 11 14:48:00 2012 [VMM][E]: Error deploying virtual machine: 
Could not create domain from /var/lib/one//datastores/0/0/deployment.0
Fri May 11 14:48:00 2012 [DiM][I]: New VM state is FAILED


Everything in /var/lib/one is owned by the oneadmin user thus read write 
should be OK.

The path /var/lib/one/datastores/1/3118ec2b9f3c9e9d3df0a42363ca72c8 does 
exist. This file has the same size of the disk image file I installed, 
i.e. suse-12.1-SUSENebula-guest.x86_64-1.0.0.qcow2. The permissions of 
/var/lib/one/datastores/1/3118ec2b9f3c9e9d3df0a42363ca72c8 are 640 owner 
is oneadmin and the group is cloud.

The configuration file for the datastore is as follows:

-> cat testVM.dsconf
NAME   = "openSUSE test image store"
DS_MAD = fs
TM_MAD = qcow2

The VM is setup as follows:

/usr/bin/onedatastore create testVM.dsconf
/usr/bin/oneimage create testVM.one -d 1
# System needs time to copy the image
sleep 15
/usr/bin/onevm create testVM.vmd

With these configuration files:

-> cat testVM.one
NAME = "openSUSE test image"
PATH = "/home/ctester/suse-12.1-SUSENebula-guest.x86_64-1.0.0.qcow2"
PUBLIC = YES
DESCRIPTION = "A test image to test the basic functionality of the 
openSUSE based OpenNebula setup"


-> cat -> cat testVM.vmd
NAME   = suse-test
MEMORY = 512
CPU    = 1

OS     = [ ARCH = x86_64,
            BOOT = hd,
            ROOT = sda1 ]

DISK   = [ IMAGE_ID  = 0,
            DRIVER    = qcow2 ]

NIC    = [ MAC = "00:16:3e:7e:18:26",
            BRIDGE = br0 ]

GRAPHICS = [ TYPE   = "vnc",
              LISTEN = "0.0.0.0",
              PORT   = "5905" ]


Help is appreciated.

Thanks,
Robert

-- 
Robert Schweikert                           MAY THE SOURCE BE WITH YOU
SUSE-IBM Software Integration Center                   LINUX
Tech Lead
rjschwei at suse.com
rschweik at ca.ibm.com
781-464-8147



More information about the Users mailing list