[one-users] deployment file doesn't get generated properly

Carlos Martín Sánchez cmartins at fdi.ucm.es
Fri Oct 22 10:31:58 PDT 2010


Hi Rich,

I think the problem is that you need to set a TARGET attribute for the
second disk, because OpenNebula will only assign one for the Disks that use
a registered IMAGE.
If you take a look at [1], the TARGET is mandatory. Since you are mixing
Disks that use Images with Disks from your filesystem, you should pay
attention at the "Disks device mapping" section to avoid target conflicts.

Or you could just register your .iso file as a CDROM image.

Regards,
Carlos.

[1]
http://opennebula.org/documentation:rel2.0:template#declaring_the_disk_type

Carlos Martín, Cloud Technology Engineer/Researcher
DSA Research Group: web http://dsa-research.org and blog
http://blog.dsa-research.org
OpenNebula Open Source Toolkit for Cloud Computing:
http://www.OpenNebula.org


On 22 October 2010 19:07, Rich Wellner <rkw at objenv.com> wrote:

>  I have a vm definition file:
>
> *CPU = 1
> MEMORY = 256
>
> GRAPHICS = [
>   TYPE    = "vnc",
>   LISTEN  = "0.0.0.0"
>   ]
>
> OS = [ KERNEL     = /vmlinuz,
>        INITRD     = /initrd.img,
>        ROOT       = sda1,
>        KERNEL_CMD = "ro xencons=tty console=tty1"]
>
> DISK = [
>         IMAGE = "The Ring"
>  ]
>
> DISK = [
>         TYPE    = cdrom,
>         SOURCE  = /var/lib/one/dsl-4.4.10.iso,
>         READONLY = "yes",
>         CLONE = "yes"
> ]*
>
> and when I try to create an instance the deployment file only gets
> partially written:
>
> *<domain type='kvm'>
>     <name>one-66</name>
>     <memory>262144</memory>
>     <os>
>         <type>hvm</type>
>         <kernel>/vmlinuz</kernel>
>         <initrd>/initrd.img</initrd>
>         <cmdline>root=/dev/sda1 ro xencons=tty console=tty1</cmdline>
>         <boot dev='hd'/>
>     </os>
>     <devices>
>         <emulator>/usr/bin/kvm</emulator>
>         <disk type='file' device='disk'>
>             <source file='/home/sharedFS/images/66/images/disk.0'/>
>             <target dev='hda'/>
>         </disk>
> *
> But all that appears in the log file is:
>
> *Fri Oct 22 12:01:31 2010 [LCM][I]: New VM state is BOOT
> Fri Oct 22 12:01:31 2010 [VMM][I]: Generating deployment file:
> /var/lib/one/66/deployment.0
> Fri Oct 22 12:01:31 2010 [VMM][E]: Wrong target value in DISK.
> Fri Oct 22 12:01:31 2010 [VMM][E]: deploy_action, error generating
> deployment file: /var/lib/one/66/deployment.0
> Fri Oct 22 12:01:31 2010 [DiM][I]: New VM state is FAILED
> Fri Oct 22 12:01:31 2010 [TM][W]: Ignored: TRANSFER SUCCESS 66 -
> *
> Any ideas on what is going wrong here?
>
> rw2
>
>
> _______________________________________________
> 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/20101022/f55e00c1/attachment-0003.htm>


More information about the Users mailing list