Hi <meta charset="utf-8">Rich,<div><br></div><div>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.</div>
<div>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.</div>
<div><br></div><div>Or you could just register your .iso file as a CDROM image.</div><div><br></div><div>Regards,</div><div>Carlos.</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel2.0:template#declaring_the_disk_type">http://opennebula.org/documentation:rel2.0:template#declaring_the_disk_type</a></div>
<div><br clear="all">Carlos Martín, Cloud Technology Engineer/Researcher<br>DSA Research Group: web <a href="http://dsa-research.org" target="_blank">http://dsa-research.org</a> and blog <a href="http://blog.dsa-research.org" target="_blank">http://blog.dsa-research.org</a><br>
OpenNebula Open Source Toolkit for Cloud Computing: <a href="http://www.OpenNebula.org" target="_blank">http://www.OpenNebula.org</a><br>
<br><br><div class="gmail_quote">On 22 October 2010 19:07, Rich Wellner <span dir="ltr"><<a href="mailto:rkw@objenv.com">rkw@objenv.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
I have a vm definition file:<br>
<br>
<i>CPU = 1<br>
MEMORY = 256<br>
<br>
GRAPHICS = [<br>
TYPE = "vnc",<br>
LISTEN = "0.0.0.0"<br>
]<br>
<br>
OS = [ KERNEL = /vmlinuz,<br>
INITRD = /initrd.img,<br>
ROOT = sda1,<br>
KERNEL_CMD = "ro xencons=tty console=tty1"]<br>
<br>
DISK = [<br>
IMAGE = "The Ring"<br>
]<br>
<br>
DISK = [<br>
TYPE = cdrom,<br>
SOURCE = /var/lib/one/dsl-4.4.10.iso,<br>
READONLY = "yes",<br>
CLONE = "yes"<br>
]</i><br>
<br>
and when I try to create an instance the deployment file only gets
partially written:<br>
<br>
<i><domain type='kvm'><br>
<name>one-66</name><br>
<memory>262144</memory><br>
<os><br>
<type>hvm</type><br>
<kernel>/vmlinuz</kernel><br>
<initrd>/initrd.img</initrd><br>
<cmdline>root=/dev/sda1 ro xencons=tty
console=tty1</cmdline><br>
<boot dev='hd'/><br>
</os><br>
<devices><br>
<emulator>/usr/bin/kvm</emulator><br>
<disk type='file' device='disk'><br>
<source
file='/home/sharedFS/images/66/images/disk.0'/><br>
<target dev='hda'/><br>
</disk><br>
</i><br>
But all that appears in the log file is: <br>
<br>
<i>Fri Oct 22 12:01:31 2010 [LCM][I]: New VM state is BOOT<br>
Fri Oct 22 12:01:31 2010 [VMM][I]: Generating deployment file:
/var/lib/one/66/deployment.0<br>
Fri Oct 22 12:01:31 2010 [VMM][E]: Wrong target value in DISK.<br>
Fri Oct 22 12:01:31 2010 [VMM][E]: deploy_action, error generating
deployment file: /var/lib/one/66/deployment.0<br>
Fri Oct 22 12:01:31 2010 [DiM][I]: New VM state is FAILED<br>
Fri Oct 22 12:01:31 2010 [TM][W]: Ignored: TRANSFER SUCCESS 66 -<br>
</i><br>
Any ideas on what is going wrong here?<br>
<br>
rw2<br>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>