This is a multi-part message in MIME format.
--------------010501010600070107060506
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
Hello,
I'm testing hooks in vdsm and I need some help on modifying one of your
pyhton script : vmdisk
(
http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/vmdisk/befo...)
the hook works great and I'm able now to attach a file device as a
second disk. But I want this disk to be the first bootable disk instead
of the block device one created into the engine. In order to change the
boot order of the disk, I added those lines:
...
source = domxml.createElement('source')
source.setAttribute('file', devpath)
disk.appendChild(source)
boot = domxml.createElement('boot')
boot.setAttribute('order', 1)
disk.appendChild(boot)
# find a name for vdXXX
.....
So the hook permit <boot order=1> item
(
http://libvirt.org/formatdomain.html#elementsDisks)
But the vm refuses booting without any logs anywhere...
What is wrong?
Thanks for your help
--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
blanchet(a)abes.fr
--------------010501010600070107060506
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I'm testing hooks in vdsm and I need some help on modifying one of
your pyhton script : vmdisk
(<a class="moz-txt-link-freetext"
href="http://gerrit.ovirt.org/gitweb?p=vdsm.git;a=blob;f=vdsm_hooks/...
the hook works great and I'm able now to attach a file device as a
second disk. But I want this disk to be the first bootable disk
instead of the block device one created into the engine. In order to
change the boot order of the disk, I added those lines: <br>
<br>
...<br>
source = domxml.createElement('source')<br>
source.setAttribute('file', devpath)<br>
disk.appendChild(source)<br>
<br>
<font color="#ff0000"><big>boot =
domxml.createElement('boot')<br>
boot.setAttribute('order', 1)<br>
disk.appendChild(boot)</big></font><br>
<br>
# find a name for vdXXX<br>
.....<br>
<br>
So the hook permit <boot order=1> item
(<a class="moz-txt-link-freetext"
href="http://libvirt.org/formatdomain.html#elementsDisks">ht...
<br>
But the vm refuses booting without any logs anywhere...<br>
<br>
What is wrong?<br>
<br>
Thanks for your help<br>
<pre class="moz-signature" cols="72">--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated"
href="mailto:blanchet@abes.fr">blanchet@abes.fr</a> </pre>
</body>
</html>
--------------010501010600070107060506--