This is a multi-part message in MIME format.
------=_NextPartTM-000-fc021d5a-f709-4372-8cef-6626422c0cbf
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Von: Nir Soffer [nsoffer(a)redhat.com]=0A=
Gesendet: Sonntag, 21. Februar 2016 14:10=0A=
An: Markus Stockhausen; Francesco Romani=0A=
Cc: users=0A=
Betreff: Re: [ovirt-users] Going crazy with emory hotplug on 3.6=0A=
=0A=
Adding Francesco.=0A=
=0A=
On Sun, Feb 21, 2016 at 2:19 PM, Markus Stockhausen=0A=
<stockhausen(a)collogia.de> wrote:=0A=
> Hi there,=0A=
>=0A=
> we upgraded Ovirt to 3.6, added the first Centos 7 host and created a n=
ew
cluster=0A=
> with compatibility level 3.6 around it. Until now we are running
with F=
edora nodes.=0A=
> The first Linux VMs are already running in the new cluster. With
the fi=
rst Windows=0A=
> VM migrated over we once again face the old Windows activation
problem.=
The=0A=
> system request us to reactivate the Windows license.=0A=
>=0A=
> To make a long story short: I manually compiled OVirt/Centos qemu 2.3 a=
nd
enabled=0A=
> the old Fedora machine type pc-1.0. Afterwards I had to lower
compatibi=
lity level=0A=
> of the cluster to 3.5 because Ovirt tried to start the old
machine type=
with memory=0A=
> hotplug support -> FAIL. Finally everything is up and
running.=0A=
>=0A=
> Conclusion: OVirt always tries to start VMs with memory hotplug in a cu=
rrent
3.6=0A=
> cluster. The machine type (e.g. rhel6.6.0) ist not checked and
qemu wil=
l fail during=0A=
> startup with the message: qemu-kvm: "-memory
'slots|maxmem'" is not sup=
ported"=0A=
-January/037034.html=0A=
>=0A=
> Question: What is the desired way to disable the hotplug qemu parametri=
zation=0A=
> for single VMs in 3.6 cluster? It MUST be possible otherwise it
would n=
ot make=0A=
> sense to choos older machine types.=0A=
>=0A=
> Markus=0A=
>=0A=
=0A=
Hi Nir & Francesco,=0A=
=0A=
with my qemu modifications in place I wrote a before_vm_start hook. It will=
remove=0A=
memory hotplug from libvirt XML if VM is defined with machine type pc-1.0.=
=0A=
=0A=
#!/usr/bin/python=0A=
import os=0A=
import sys=0A=
import hooking=0A=
import traceback=0A=
domxml =3D hooking.read_domxml()=0A=
os =3D domxml.getElementsByTagName('os')[0]=0A=
tp =3D os.getElementsByTagName('type')[0]=0A=
mc =3D tp.getAttribute('machine')=0A=
if mc =3D=3D 'pc-1.0':=0A=
m =3D domxml.getElementsByTagName('maxMemory')[0]=0A=
d.removeChild(m)=0A=
hooking.write_domxml(domxml)=0A=
=0A=
With this I'm able to start a Fedora cluster 3.5 based Windows VM on a Cent=
os 3.6 cluster. =0A=
And most important: It is still ACTIVATED. =0A=
=0A=
Just filed a RH BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=3D1310458=
=0A=
=0A=
Markus=0A=
------=_NextPartTM-000-fc021d5a-f709-4372-8cef-6626422c0cbf
Content-Type: text/plain;
name="InterScan_Disclaimer.txt"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="InterScan_Disclaimer.txt"
****************************************************************************
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
Über das Internet versandte E-Mails können unter fremden Namen erstellt oder
manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine
rechtsverbindliche Willenserklärung.
Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln
Vorstand:
Kadir Akin
Dr. Michael Höhnerbach
Vorsitzender des Aufsichtsrates:
Hans Kristian Langva
Registergericht: Amtsgericht Köln
Registernummer: HRB 52 497
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
e-mails sent over the internet may have been written under a wrong name or
been manipulated. That is why this message sent as an e-mail is not a
legally binding declaration of intention.
Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln
executive board:
Kadir Akin
Dr. Michael Höhnerbach
President of the supervisory board:
Hans Kristian Langva
Registry office: district court Cologne
Register number: HRB 52 497
****************************************************************************
------=_NextPartTM-000-fc021d5a-f709-4372-8cef-6626422c0cbf--