Ok, so it seems that for inline declared disks, the target is also mandatory. I had the impression that ti is like in the case of disk images, when the target is not necessary.<br><br><div class="gmail_quote">On Tue, Aug 9, 2011 at 8:03 PM, Florin Antonescu <span dir="ltr"><<a href="mailto:florinantonescu@gmail.com">florinantonescu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hello,<div><br></div><div>I am trying to deploy a VM using the following template, but I receive the error message: "Wrong target value in DISK.". What could cause this?</div>
<div><br></div><div>Thank you,</div><div>
Florian</div><div><br></div><div><div>CPU = 1</div><div>MEMORY = 64.0</div><div>DISK = [ IMAGE_ID = 0 ]</div><div>DISK = [FORMAT=ext3, TYPE = fs, SIZE = 10 ]</div><div>NIC = [ NETWORK_ID = 11 ]</div><div>REQUIREMENTS = "(CPUSPEED > 1500.0) & (CPUSPEED < 5000.0)"</div>
</div><div><br></div><div>VM log: </div><div><div>Tue Aug 9 09:52:04 2011 [DiM][I]: New VM state is ACTIVE.</div><div>Tue Aug 9 09:52:04 2011 [LCM][I]: New VM state is PROLOG.</div><div>Tue Aug 9 09:52:05 2011 [VM][I]: Virtual Machine has no context</div>
<div>Tue Aug 9 09:52:05 2011 [TM][D]: tm_clone.sh: zrhv60209129a.zrh.sap.corp:/srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30 zrhs60197305a.zrh.sap.corp:/srv/cloud/one/var/18/images/disk.0</div><div>Tue Aug 9 09:52:05 2011 [TM][D]: tm_clone.sh: DST: /srv/cloud/one/var/18/images/disk.0</div>
<div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_clone.sh: Creating directory /srv/cloud/one/var/18/images</div><div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var/18/images".</div>
<div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var/18/images".</div><div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_clone.sh: Cloning /srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30</div>
<div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "cp -r /srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30 /srv/cloud/one/var/18/images/disk.0".</div><div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw /srv/cloud/one/var/18/images/disk.0".</div>
<div>Tue Aug 9 09:52:05 2011 [TM][I]: ExitCode: 0</div><div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "mkdir -p /srv/cloud/one/var/18/images".</div><div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "/bin/dd if=/dev/zero of=/srv/cloud/one/var/18/images/disk.1 bs=1 count=1 seek=10M".</div>
<div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "/sbin/mkfs -t ext3 -F /srv/cloud/one/var/18/images/disk.1".</div><div>Tue Aug 9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw /srv/cloud/one/var/18/images/disk.1".</div>
<div>Tue Aug 9 09:52:05 2011 [TM][I]: ExitCode: 0</div><div>Tue Aug 9 09:52:05 2011 [LCM][I]: New VM state is BOOT</div><div>Tue Aug 9 09:52:05 2011 [VMM][I]: Generating deployment file: /srv/cloud/one/var/18/deployment.0</div>
<div>Tue Aug 9 09:52:06 2011 [VMM][E]: Wrong target value in DISK.</div><div>Tue Aug 9 09:52:06 2011 [VMM][E]: deploy_action, error generating deployment file: /srv/cloud/one/var/18/deployment.0</div><div>Tue Aug 9 09:52:06 2011 [DiM][I]: New VM state is FAILED</div>
<div>Tue Aug 9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Deleting /srv/cloud/one/var/18/images</div><div>Tue Aug 9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Executed "rm -rf /srv/cloud/one/var/18/images".</div>
<div>Tue Aug 9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 ExitCode: 0</div><div>Tue Aug 9 09:52:06 2011 [TM][W]: Ignored: TRANSFER SUCCESS 18 -</div></div><div><br></div><div>Generated deployment.0 file (incomplete)</div>
<div><div><domain type='kvm'></div><div> <name>one-18</name></div><div> <memory>65536</memory></div><div> <os></div><div> <type arch='i686'>hvm</type></div>
<div> <boot dev='hd'/></div><div> </os></div><div> <devices></div><div> <emulator>/usr/bin/kvm</emulator></div><div> <disk type='file' device='disk'></div>
<div> <source file='/srv/cloud/one/var/18/images/disk.0'/></div><div> <target dev='hda'/></div><div> <driver name='qemu' type='raw' cache='default'/></div>
<div> </disk></div></div><div><br></div>
</blockquote></div><br>