[Users] possible to attach cloud-init data to vm started from cd rom?

Sven Kieske S.Kieske at mittwald.de
Thu Feb 13 14:56:09 UTC 2014


Okay, I think I found a bug:

if you attach a cd-rom via run once and make it
the primary boot device
and you submit in the same step cloud-init data
the xml file generated by ovirt looks like the following:

both virtual cd roms get attached and show up in the xml
the expected primary boot device shows up as:
<disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
 <target dev='hdc' bus='ide'/>

with no entity (which it should have):

<boot order='1'/>

the cloud-init data shows up as the following:

<disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
   <source
file='/var/run/vdsm/payload/934aebfd-7a7b-4c47-91be-97d58fb32b1e.34f0c17686175ad722c3b0a03f3db4d3.img'
startupPolicy='optional'/>
      <target dev='hdd' bus='ide'/>
      <readonly/>
      <serial></serial>
      <boot order='1'/>

the hdd gets "boot order='2'"

this results in a wrong boot order:
the vm trys to start from the cloud-init cd rom and fails
and then boots the hdd.

I will file a BZ for this.

Tested with the following versions:

rpm -qa vdsm
vdsm-4.12.1-4.el6.x86_64

rpm -qa ovirt-engine
ovirt-engine-3.3.2-1.el6.noarch



Am 12.02.2014 13:37, schrieb Sven Kieske:
> Hi,
> 
> I would like to know if the following scenario is supported in ovirt
> (currently testing 3.3.2).
> 
> You have a vm with an attached disk.
> You want to start this vm with an attached iso image via cd-rom
> you want to pass to this started system cloud-init metadata via
> "run once" or REST.
> 
> I know that ovirt passes the metadata by creating an ISO and
> attaching this ISO to the VM as an CD-ROM itself.
> 
> My tests so far included the following:
> 
> 1. shut down the vm
> 2. click run once
> 3. switch boot order to boot from cd-rom, attach an ISO
> 4. activate cloud-init metadata and pass some data over it
> 
> actual result: the system boots from hard disk, not from
> the attached iso.
> 
> Second test:
> 
> 1. shut down the vm
> 2. edit the vm, change boot order to boot from cd-rom, attach iso
> 2. click run once
> 4. activate cloud-init metadata and pass some data over it
> 
> actual result: the system boots from hard disk, not from
> the attached iso.
> 
> Is this not possible or am I doing it wrong?
> 
> Any hints would be appreciated!
> 

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen


More information about the Users mailing list