[ovirt-users] Re: give cloud-init the VM name

2022-01-19 Thread Luca Contessa
Hi, I think 1 will suffice, in case I will open a RFE as stated in 2. Thanks to all for the responses. Have a nice day. ___ Users mailing list -- users@ovirt.org To unsubscribe send an email to users-le...@ovirt.org Privacy Statement:

[ovirt-users] Re: give cloud-init the VM name

2022-01-17 Thread Nathanaƫl Blanchet
Hello, Two ways of thinking: 1. the vdsm hook could be very easy to write so as to make what you desire (ovirtsdk4 is presinstalled on ovirt node): importovirtsdk4 assdk importovirtsdk4.types astypes fromvdsm.hook importhooking # Get the vm name from xml definition: domxml=

[ovirt-users] Re: give cloud-init the VM name

2022-01-17 Thread Luca Contessa
> I thought that:- you know the name of the future VM I will try to clarify: I'm trying to obtain from the oVirt engine the name of the VM created inside the pool. For example if the VM in pool LinuxPool is called LinuxMachine-1 I want the cloud-init to know that the VM is called LinuxMachine-1

[ovirt-users] Re: give cloud-init the VM name

2022-01-15 Thread Strahil Nikolov via Users
with before_vm_start you should be able to modify the cloudinit configuration. I guess there is a misunderstanding. I thought that:- you know the name of the future VM- you want to change the hostname via cloudinit Best Regards,Strahil Nikolov On Fri, Jan 14, 2022 at 10:45, Luca Contessa

[ovirt-users] Re: give cloud-init the VM name

2022-01-14 Thread Luca Contessa
Hi, sorry for the late response, can you expand a bit more on what you said? in particular, if I understood correctly, you are suggesting I should launch a script to modify the name using oVirt's 'before_vm_start' hook? And also in which way can i get the VM name using this method? Thanks a lot

[ovirt-users] Re: give cloud-init the VM name

2022-01-09 Thread Strahil Nikolov via Users
I guess if you manage to script it (modification of the cloud init script), then you can use 'before_vm_start' to trigger your script. Best Regards,Strahil Nikolov On Tue, Dec 28, 2021 at 16:01, Luca Contessa wrote: Hi list, I have an oVirt node 4.4.9 installation with hyperconverged