[one-users] cloud view with qcow2 image

Rogier Mars rogier at fortytwo.nl
Wed Jul 31 15:50:28 PDT 2013


Hi, 

I'm testing the opennebula cloudview. I've created a template, image and network and made that available to the cloud-users group and updated the sunstone-views.yaml to give the cloud-users group the cloud view. 

I can start the template I created, but the image file I select is a qcow2 file. In the template I've put the DRIVER and the TARGET parameters for the disk, but left the DISKID out of the template.


NIC=[NETWORK_ID="4",MODEL="virtio"]
CONTEXT=[ETH0_NETWORK="$NETWORK[NETWORK_ADDRESS,NETWORK_ID=\"4\"]",ETH0_GATEWAY6="$NETWORK[GATEWAY6,NETWORK_ID=\"4\"]",SSH_PUBLIC_KEY="$USER[SSHKEY]",ETH0_IP="$NIC[IP,NETWORK_ID=\"4\"]",ETH0_GATEWAY="$NETWORK[GATEWAY,NETWORK_ID=\"4\"]",ETH0_MASK="$NETWORK[NETWORK_MASK,NETWORK_ID=\"4\"]",TARGET="hdc",ETH0_IPV6="$NIC[IP6_GLOBAL,NETWORK_ID=\"4\"]",ETH0_CONTEXT_FORCE_IPV4="$NETWORK[CONTEXT_FORCE_IPV4,NETWORK_ID=\"4\"]",ETH0_DNS="$NETWORK[DNS,NETWORK_ID=\"4\"]"]
GRAPHICS=[TYPE="VNC",LISTEN="0.0.0.0"]
OS=[BOOT="hd",ARCH="x86_64"]
CPU="1"
DISK=[DRIVER="qcow2",TARGET="vdb"]
MEMORY="1024"
FEATURES=[PAE="yes",ACPI="yes"]

When I instantiate the template with an image via the cloud view the DRIVER parameter is not passed on to the VM (see running VM template below). This caused the VM to crash during the boot because it can't find the bootdisk (see screenshot). How can I create a template for the cloud view and still use the qcow2 driver? 

Running VM Template
DISK	
CLONE	YES
TYPE	FILE
TM_MAD	ssh
SOURCE	/var/lib/one/datastores/106/9a40c93f8c282779fe84ccc65218ce27
SAVE	NO
DATASTORE_ID	106
CLUSTER_ID	100
DEV_PREFIX	hd
READONLY	NO
TARGET	hda
IMAGE_ID	160
IMAGE	RB-ES Centos62-10GB2-qcow2
DATASTORE	Beta Datastore
DISK_ID	0


Thanks, 

Rogier


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130801/fcbc8e9c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2013-08-01 at 12.48.55 AM.png
Type: image/png
Size: 66224 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130801/fcbc8e9c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130801/fcbc8e9c/attachment-0001.pgp>


More information about the Users mailing list