[one-users] cloud view with qcow2 image
Carlos Martín Sánchez
cmartin at opennebula.org
Thu Aug 1 01:30:58 PDT 2013
Hi,
You can set those parameters in the Image template instead [1].
And in 4.2 you can now replace that long context section with the cleaner
NETWORK=YES [2]
Regards
[1] http://opennebula.org/documentation:rel4.2:img_template
[2] http://opennebula.org/documentation:rel4.2:context_overview
--
Join us at OpenNebulaConf2013 <http://opennebulaconf.com> in Berlin, 24-26
September, 2013
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>
On Thu, Aug 1, 2013 at 12:50 AM, Rogier Mars <rogier at fortytwo.nl> wrote:
> 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
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130801/d6752765/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 66224 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130801/d6752765/attachment-0001.png>
More information about the Users
mailing list