Unable to enable HPET component of an specific VM in oVirt 4.7

Hello community members, I'm currently using oVirt 4.7 as my virtualization environment, and I'm facing an issue with enabling the HPET (High Precision Event Timer) component in the XML configuration file of virtual machine (VM). Upon inspecting the XML file, I noticed that the `<timer name='hpet' present='no'/>` line is missing, indicating that the HPET component is disabled. Here are the steps I have taken so far: 1. I verified that the VM's XML configuration file does not include the `<timer name='hpet' present='yes'/>` line. 2. While the VM was powered on, I used the following command to edit the XML configuration file: ``` virsh edit VM_NAME ``` I added the `<timer name='hpet' present='yes'/>` line to the XML file. However, the changes did not persist after restarting the VM. To provide additional information, on the host where oVirt is running, the available clock sources can be viewed by executing the following command: ``` cat /sys/devices/system/clocksource/clocksource0/available_clocksource ``` The output shows the available clock sources, such as `tsc`, `hpet`, and `acpi_pm`. To resolve the authentication issue with the `virsh` command, I created a user with appropriate privileges using the following command: ``` sudo saslpasswd2 -a libvirt USERNAME ``` After creating the user, I was able to authenticate successfully with the `virsh` command using the newly created credentials. However, I'm unable to find an option to add the HPET parameter in the web console of oVirt. It seems that the option to configure HPET is not available in the web console. Has anyone else encountered a similar issue in oVirt 4.7? Could you please provide guidance or suggest a solution to enable the HPET component in the XML configuration file of a powered-off VM in oVirt 4.7? Any insights, experiences, or suggestions would be greatly appreciated. Thank you in advance for your assistance! Best regards,

Hi, there is no ovirt 4.7, the latest (and it could be the last ☹) version of ovirt is 4.5. Probably you mean 4.4.7? Probably enabling HPET is not needed so often, so I guess it is just a missing feature of ovirt. Anyway, replying on your question - it is wrong to modify Libvirt XML, the source of truth is pretty much database in ovengine. You might consider VDSM hook: https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/htm... (but I don't know a lot about VDSM hooks myself) BR, Konstantin Am 02.06.23, 07:35 schrieb "ricardoot@gmail.com <mailto:ricardoot@gmail.com>" <ricardoot@gmail.com <mailto:ricardoot@gmail.com>>: Hello community members, I'm currently using oVirt 4.7 as my virtualization environment, and I'm facing an issue with enabling the HPET (High Precision Event Timer) component in the XML configuration file of virtual machine (VM). Upon inspecting the XML file, I noticed that the `<timer name='hpet' present='no'/>` line is missing, indicating that the HPET component is disabled. Here are the steps I have taken so far: 1. I verified that the VM's XML configuration file does not include the `<timer name='hpet' present='yes'/>` line. 2. While the VM was powered on, I used the following command to edit the XML configuration file: ``` virsh edit VM_NAME ``` I added the `<timer name='hpet' present='yes'/>` line to the XML file. However, the changes did not persist after restarting the VM. To provide additional information, on the host where oVirt is running, the available clock sources can be viewed by executing the following command: ``` cat /sys/devices/system/clocksource/clocksource0/available_clocksource ``` The output shows the available clock sources, such as `tsc`, `hpet`, and `acpi_pm`. To resolve the authentication issue with the `virsh` command, I created a user with appropriate privileges using the following command: ``` sudo saslpasswd2 -a libvirt USERNAME ``` After creating the user, I was able to authenticate successfully with the `virsh` command using the newly created credentials. However, I'm unable to find an option to add the HPET parameter in the web console of oVirt. It seems that the option to configure HPET is not available in the web console. Has anyone else encountered a similar issue in oVirt 4.7? Could you please provide guidance or suggest a solution to enable the HPET component in the XML configuration file of a powered-off VM in oVirt 4.7? Any insights, experiences, or suggestions would be greatly appreciated. Thank you in advance for your assistance! Best regards, _______________________________________________ Users mailing list -- users@ovirt.org <mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org <mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/privacy-policy.html <https://www.ovirt.org/privacy-policy.html> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ <https://www.ovirt.org/community/about/community-guidelines/> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org <mailto:users@ovirt.org>/message/VGUARICFTRVHJAUEWGNRYLB374T2QJU3/

Thanks for the quick reply, True, I got confused, the version I wanted to say is 4.4.7 Could you give me some idea of how to access and modify the database? this is something new for me. I have tried this on Engine but I am very lost. [root@ovirt ~]# su - postgres [postgres@ovirt ~]$ psql [postgres=# select hpet from vm_static where vm_name='VM_NAME'; ERROR: relation "vm_static" does not exist LINE 1: select hpet from vm_static where vm_name='VM_NAME'; Thank you very much again.

Hi, I don't think that anyone should modify database of ovengine and especially in cases like that. As I said, try to do something with VDSM hooks (but I personally won't be able to reply on questions related to that functionality) BR, Konstantin Am 02.06.23, 14:43 schrieb "ricardoot@gmail.com <mailto:ricardoot@gmail.com>" <ricardoot@gmail.com <mailto:ricardoot@gmail.com>>: Thanks for the quick reply, True, I got confused, the version I wanted to say is 4.4.7 Could you give me some idea of how to access and modify the database? this is something new for me. I have tried this on Engine but I am very lost. [root@ovirt ~]# su - postgres [postgres@ovirt ~]$ psql [postgres=# select hpet from vm_static where vm_name='VM_NAME'; ERROR: relation "vm_static" does not exist LINE 1: select hpet from vm_static where vm_name='VM_NAME'; Thank you very much again. _______________________________________________ Users mailing list -- users@ovirt.org <mailto:users@ovirt.org> To unsubscribe send an email to users-leave@ovirt.org <mailto:users-leave@ovirt.org> Privacy Statement: https://www.ovirt.org/privacy-policy.html <https://www.ovirt.org/privacy-policy.html> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ <https://www.ovirt.org/community/about/community-guidelines/> List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org <mailto:users@ovirt.org>/message/X2WTVBTWG2RGAWLNG4G75AE6HMXKNGQL/

Hello again. I insist again on this topic since I have not yet managed to activate the HPET on the VM. I have searched the VDSM Hook documentation https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/htm... but I don't see anything related to modify HPET clock. I have seen that the hardware BIOS has HPET and it is active. On the virtualization host I can see it's available Please, somebody could help me?
participants (2)
-
ricardoot@gmail.com
-
Volenbovskyi, Konstantin