[one-users] [Beta 3.0] Wrong target value in DISK.

Carlos Martín Sánchez cmartin at opennebula.org
Thu Aug 11 08:25:08 PDT 2011


Hi Florin,

You are right, there are different mandatory attributes if you use the image
repository or not.
Both methods are separated in the template reference [1].

Regards.

[1] http://opennebula.org/documentation:rel2.2:template#disks_section
--
Carlos Martín, MSc
Project Major Contributor
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org <http://www.opennebula.org/> | cmartin at opennebula.org


On Wed, Aug 10, 2011 at 11:11 AM, Florin Antonescu <
florinantonescu at gmail.com> wrote:

> 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.
>
>
> On Tue, Aug 9, 2011 at 8:03 PM, Florin Antonescu <
> florinantonescu at gmail.com> wrote:
>
>> Hello,
>>
>> 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?
>>
>> Thank you,
>> Florian
>>
>> CPU = 1
>> MEMORY = 64.0
>> DISK = [ IMAGE_ID = 0 ]
>> DISK = [FORMAT=ext3, TYPE = fs, SIZE = 10 ]
>> NIC = [ NETWORK_ID = 11 ]
>> REQUIREMENTS = "(CPUSPEED > 1500.0) & (CPUSPEED < 5000.0)"
>>
>> VM log:
>> Tue Aug  9 09:52:04 2011 [DiM][I]: New VM state is ACTIVE.
>> Tue Aug  9 09:52:04 2011 [LCM][I]: New VM state is PROLOG.
>> Tue Aug  9 09:52:05 2011 [VM][I]: Virtual Machine has no context
>> 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
>> Tue Aug  9 09:52:05 2011 [TM][D]: tm_clone.sh: DST:
>> /srv/cloud/one/var/18/images/disk.0
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Creating directory
>> /srv/cloud/one/var/18/images
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "mkdir -p
>> /srv/cloud/one/var/18/images".
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+w
>> /srv/cloud/one/var/18/images".
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Cloning
>> /srv/cloud/one/var/images/a6cc03bf0be59d780b4b4bfbd9c0bd30
>> 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".
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_clone.sh: Executed "chmod a+rw
>> /srv/cloud/one/var/18/images/disk.0".
>> Tue Aug  9 09:52:05 2011 [TM][I]: ExitCode: 0
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "mkdir -p
>> /srv/cloud/one/var/18/images".
>> 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".
>> 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".
>> Tue Aug  9 09:52:05 2011 [TM][I]: tm_mkimage.sh: Executed "chmod a+rw
>> /srv/cloud/one/var/18/images/disk.1".
>> Tue Aug  9 09:52:05 2011 [TM][I]: ExitCode: 0
>> Tue Aug  9 09:52:05 2011 [LCM][I]: New VM state is BOOT
>> Tue Aug  9 09:52:05 2011 [VMM][I]: Generating deployment file:
>> /srv/cloud/one/var/18/deployment.0
>> Tue Aug  9 09:52:06 2011 [VMM][E]: Wrong target value in DISK.
>> Tue Aug  9 09:52:06 2011 [VMM][E]: deploy_action, error generating
>> deployment file: /srv/cloud/one/var/18/deployment.0
>> Tue Aug  9 09:52:06 2011 [DiM][I]: New VM state is FAILED
>> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 tm_delete.sh: Deleting
>> /srv/cloud/one/var/18/images
>> 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".
>> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: LOG I 18 ExitCode: 0
>> Tue Aug  9 09:52:06 2011 [TM][W]: Ignored: TRANSFER SUCCESS 18 -
>>
>> Generated deployment.0 file (incomplete)
>> <domain type='kvm'>
>>         <name>one-18</name>
>>         <memory>65536</memory>
>>         <os>
>>                 <type arch='i686'>hvm</type>
>>                 <boot dev='hd'/>
>>         </os>
>>         <devices>
>>                 <emulator>/usr/bin/kvm</emulator>
>>                 <disk type='file' device='disk'>
>>                         <source
>> file='/srv/cloud/one/var/18/images/disk.0'/>
>>                         <target dev='hda'/>
>>                         <driver name='qemu' type='raw' cache='default'/>
>>                 </disk>
>>
>>
>
> _______________________________________________
> 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/20110811/70650938/attachment-0003.htm>


More information about the Users mailing list