Op 14-07-2023 om 14:30 schreef Gary Dixon:
Hi Wido
So I take it this old feature request to inject custom domain XML wasn't
implemented in any version of ACS ?
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+hook+script+include
That's for during a migration. That seems to be supported by libvirt.
Not during the start of a VM.
Wido
Gary Dixon
Senior Technical Consultant
T: +44 161 537 4990
E: v <tel:+44%207989717661>ms@quadris‑support.com
W: www.quadris.co.uk
The information contained in this e-mail from Quadris may be
confidential and privileged for the private use of the named recipient.
The contents of this e-mail may not necessarily represent the official
views of Quadris. If you have received this information in error you
must not copy, distribute or take any action or reliance on its
contents. Please destroy any hard copies and delete this message.
From: Wido den Hollander <w...@widodh.nl>
Sent: Friday, July 14, 2023 1:08 PM
To: users@cloudstack.apache.org; Gary Dixon <gary.di...@quadris.co.uk>
Subject: Re: over-ride VM CPU config
Op 14/07/2023 om 13:46 schreef Gary Dixon:
> Thanks Stephen
>
> This would be a great feature to have. I was wondering if for now we
> could achieve our goal using libvirt hooks ?
> https://libv/
> irt.org%2Fhooks.html%23custom-event-scripts&data=05%7C01%7CGary.Dixon%
> 40quadris.co.uk%7Cb12cb9c94d5a44d29c7408db8462f4ed%7Cf1d6abf3d3b44894a
> e16db0fb93a96a2%7C0%7C0%7C638249332779881625%7CUnknown%7CTWFpbGZsb3d8e
> yJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C30
> 00%7C%7C%7C&sdata=CK%2Fdtn0NtenXsGtxEnRXknZlRVuNc7hEIAWN5WligRg%3D&res
> erved=0
> <https://lib/
> virt.org%2Fhooks.html%23custom-event-scripts&data=05%7C01%7CGary.Dixon
> %40quadris.co.uk%7Cb12cb9c94d5a44d29c7408db8462f4ed%7Cf1d6abf3d3b44894
> ae16db0fb93a96a2%7C0%7C0%7C638249332779881625%7CUnknown%7CTWFpbGZsb3d8
> eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3
> 000%7C%7C%7C&sdata=CK%2Fdtn0NtenXsGtxEnRXknZlRVuNc7hEIAWN5WligRg%3D&re
> served=0>
As far as I know you are not able to modify the XML with hooks.
You can act upon the hook prior to starting the VM by looking at the XML
and preparing some resources for the VM, but you can't change anything
at that point.
Please do correct me if I'm wrong.
Wido
>
> Gary Dixon
> Senior Technical Consultant
> T: +44 161 537 4990
> E: v <tel:+44%207989717661>ms@quadris‑support.com
> W:
> http://www.q/
> uadris.co.uk%2F&data=05%7C01%7CGary.Dixon%40quadris.co.uk%7Cb12cb9c94d
> 5a44d29c7408db8462f4ed%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C63
> 8249332779881625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Nl0TSU5cLT
> JqKh4uuKibuBHW%2B24R58zPfp8zhddUH9c%3D&reserved=0
>
> The information contained in this e-mail from Quadris may be
> confidential and privileged for the private use of the named recipient.
> The contents of this e-mail may not necessarily represent the official
> views of Quadris. If you have received this information in error you
> must not copy, distribute or take any action or reliance on its
> contents. Please destroy any hard copies and delete this message.
>
> *From:*Stephan Bienek <stephan....@bienek.org>
> *Sent:* Friday, July 14, 2023 12:38 PM
> *To:* users@cloudstack.apache.org
> *Subject:* Re: over-ride VM CPU config
>
> Hi Gary,
>
> Lukas had the same requirement and already opened an issue / feature
> request for it
>
> https://gith/
> ub.com%2Fapache%2Fcloudstack%2Fissues%2F7600&data=05%7C01%7CGary.Dixon
> %40quadris.co.uk%7Cb12cb9c94d5a44d29c7408db8462f4ed%7Cf1d6abf3d3b44894
> ae16db0fb93a96a2%7C0%7C0%7C638249332779881625%7CUnknown%7CTWFpbGZsb3d8
> eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3
> 000%7C%7C%7C&sdata=T%2FB5QFzUbaybc9iOIrlpxVIHukmdcI2V2%2FWFHxHRqh8%3D&
> reserved=0
> <https://git/
> hub.com%2Fapache%2Fcloudstack%2Fissues%2F7600&data=05%7C01%7CGary.Dixo
> n%40quadris.co.uk%7Cb12cb9c94d5a44d29c7408db8462f4ed%7Cf1d6abf3d3b4489
> 4ae16db0fb93a96a2%7C0%7C0%7C638249332779881625%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 3000%7C%7C%7C&sdata=T%2FB5QFzUbaybc9iOIrlpxVIHukmdcI2V2%2FWFHxHRqh8%3D
> &reserved=0>
>
> Best regards,
>
> Stephan
>
> Gary Dixon <gary.di...@quadris.co.uk.invalid
> <mailto:gary.di...@quadris.co.uk.invalid>> hat am 14.07.2023 12:14
> CEST geschrieben:
>
> Hi all
>
> ACS 4.15.2
>
> KVM on Ubuntu 20.04
>
> We have a requirement that whenever a VM is deployed from a specific
> template (a Netscaler appliance) that it must over-ride the agent
> properties guest cpu mode = host-passthrough with a specific CPU
> model like so :
>
> Currently the VM gets deployed with these CPU parameters from the
> KVM host agent config:
>
>
> <cpu mode='host-passthrough' check='none'>
>
> <topology sockets='1' cores='4' threads='1'/>
>
> </cpu>
>
> And we want to over-ride with this CPU config:
>
> <cpu mode='custom' match='exact' check='full'>
>
> <model fallback='forbid'>EPYC-Rome</model>
>
> <topology sockets='1' cores='4' threads='1'/>
>
> <feature policy='require' name='x2apic'/>
>
> <feature policy='require' name='hypervisor'/>
>
> <feature policy='require' name='xsaves'/>
>
> <feature policy='require' name='topoext'/>
>
> </cpu>
>
> We can change it temporarily on a running VM with Virt-Manager – but
> I want this config to always be set whenever a VM is deployed from
> the template and whenever a deployed VM is stopped and started.
>
> Any assistance would be greatly appreciated
>
> BR
>
> Gary
>
> *Gary Dixon*****
>
> Senior Technical Consultant
>
> T: +44 161 537 4990
>
> E: v <tel:+44%207989717661>ms@quadris‑support.com
>
> W:
> http://www.q/
> uadris.co.uk%2F&data=05%7C01%7CGary.Dixon%40quadris.co.uk%7Cb12cb9c94d
> 5a44d29c7408db8462f4ed%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C63
> 8249332779881625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> 2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Nl0TSU5cLT
> JqKh4uuKibuBHW%2B24R58zPfp8zhddUH9c%3D&reserved=0
> <http://www/.
> quadris.co.uk%2F&data=05%7C01%7CGary.Dixon%40quadris.co.uk%7Cb12cb9c94
> d5a44d29c7408db8462f4ed%7Cf1d6abf3d3b44894ae16db0fb93a96a2%7C0%7C0%7C6
> 38249332779881625%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi
> V2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Nl0TSU5cL
> TJqKh4uuKibuBHW%2B24R58zPfp8zhddUH9c%3D&reserved=0>
>
> *The information contained in this e-mail from Quadris may be
> confidential and privileged for the private use of the named
> recipient. The contents of this e-mail may not necessarily
> represent the official views of Quadris. If you have received this
> information in error you must not copy, distribute or take any
> action or reliance on its contents. Please destroy any hard copies
> and delete this message.***
>