Re: [External] : Re: about the hugepage setting of the KVM server
by Tommy Sway
I use the ovirt-node, and I configured HUGEPAGE on the VM, and does not
configure the HUGEPAGE on the KVM host.
The THP I don't configure anything about it, and after configure the
HUGEPAGE on the vm, there is no report.
I don't know which method is the best.
From: Marcos Sungaila <marcos.sungaila(a)oracle.com>
Sent: Thursday, August 26, 2021 9:13 PM
To: Tommy Sway <sz_cuitao(a)163.com>; users(a)ovirt.org
Subject: RE: [External] : [ovirt-users] Re: about the hugepage setting of
the KVM server
Hi Tommy,
I have no simple answer to your question since I did not need this before,
but some questions may help us understand how it is currently working.
1st- Are you using an ovirt-node or an OS+vdsm as a hypervisor?
2nd- Did you enabled huge pages on the VM OS?
3rd- Did you check on the hypervisor OS if transparent hugepages (THP) is
enabled? And if, after enabling/configuring hugepages in the VM, it is
reporting hugepages are in use in the host?
Marcos
From: Tommy Sway <sz_cuitao(a)163.com <mailto:sz_cuitao@163.com> >
Sent: quinta-feira, 26 de agosto de 2021 04:49
To: users(a)ovirt.org <mailto:users@ovirt.org>
Subject: [External] : [ovirt-users] Re: about the hugepage setting of the
KVM server
Anyone can help me ?
From: users-bounces(a)ovirt.org <mailto:users-bounces@ovirt.org>
<users-bounces(a)ovirt.org <mailto:users-bounces@ovirt.org> > On Behalf Of
Tommy Sway
Sent: Thursday, August 26, 2021 12:27 AM
To: users(a)ovirt.org <mailto:users@ovirt.org>
Subject: [ovirt-users] about the hugepage setting of the KVM server
Hi:
I am running virtual machines on the KVM servers of oVirt env. The virtual
machine is running database, which needs to set the memory huge page on the
OPERATING system of the virtual machine.
If I need to set the huge page on the VIRTUAL machine, do I also need to set
huge page on the KVM physical machine? Or just on the virtual machine?
What best practices do you recommend?
Thank you very much!
3 years, 3 months
Unable to export VM from data storage domain.
by Diggy Mc
I'm running oVirt 4.4.4 with two data storage domains. One domain is where the production VMs run. The second domain is where I make backup copies of the VMs in the event of problems with the main production VMs. I make backups using the export option from the GUI's dropdown list.
I just now tried to "restore" a backup copy via the export function and get an error. In fact, I get errors trying to export (import to my original data domain) any of the VMs that were exported to my backup data domain. My backup domain is a DATA domain and not an EXPORT domain.
The exact error is:
Export VM Failed
[Cannot add VM. Cannot find a disk profile defined on storage domain 246c69e9-6f16-489f-8022-8613f6c1c22a.]
Is this a bug or am I doing something wrong? Help is needed urgently. In advance, thank you.
3 years, 3 months
Unexpected return value: Status [code=-32603, message=Internal JSON-RPC error: {'reason': "'libvirt'"}]
by marek
hi,
i have problem adding host to ovirt 4.4.8 standalone engine
host is centos 8 stream (migrated from centos 8)
on engine
/var/log/ovirt-engine/engine.log
2021-08-30 10:32:43,422+02 ERROR
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesAsyncVDSCommand]
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-69)
[] Failed in 'Get Host Capabilities' method
2021-08-30 10:32:43,422+02 WARN
[org.ovirt.engine.core.vdsbroker.vdsbroker.GetCapabilitiesAsyncVDSCommand]
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-69)
[] Unexpected return value: Status [code=-32603, message=Internal
JSON-RPC error: {'reason': "'libvirt'"}]
2021-08-30 10:32:43,423+02 ERROR
[org.ovirt.engine.core.vdsbroker.monitoring.HostMonitoring]
(EE-ManagedScheduledExecutorService-engineScheduledThreadPool-Thread-69)
[] Unable to RefreshCapabilities beforeFirstRefreshTreatment:
VDSErrorException: VDSGenericException: VDSErrorException: Failed to Get
Host Capabilities, error = Internal JSON-RPC error: {'reason':
"'libvirt'"}, code = -32603
any tips/ideas?
Marek
3 years, 3 months
Import OVA problem
by Dominique D
I have tried exporting 4 VMs (2 centos and 2 Windows) to an nfs mount (export OVA) and importing from ova and I can't see all the files.
Here are the files in the directory
-rw-------+ 1 root root 10739331584 Aug 29 10:27 linux2.ova
-rw-------+ 1 root root 1784370176 Aug 28 12:00 linuxtest.ova
-rw-------+ 1 root root 64434655232 Aug 28 13:57 vdiw10-2004v1C.ova
-rw-------+ 1 vdsm kvm 49040712192 Aug 27 17:21 vdiw10rg06.ova
The only file I see in virtual machine on source is linuxtest.ova and linux2.ova. Do you know why ?
ovirt 4.4.6
3 years, 3 months
ovirt 4.4.8 centos cloud image problem
by marek
hi,
i need test environment for centos6 system
on new ovirt installation downloaded CentOS 6 Generic Cloud Image v1907
for x86_64 (09463e6) from ovirt-image-repository as usual
created new VM from from this cloud image but VM cannot find disk
(console shows "pres any key to boot")
tried legacy BIOS and UEFI too - nothing changed
so i tried install centos6 from ISO . works. then i made template from
this VM.
created new VM from from this template and situation is the same
Centos 7 cloud image works
any hints/tips?
Marek
3 years, 3 months
Re: How to re-import a VM with an invalid timezone?
by Saif Abu Saleh
Hi,
Can you please provide what time-zone the VM you are trying to Import has?
if you are trying to import from the OVA you can get the time-zone by going
to the host location where the exported OVA exists,
open it and check what is the value of the <TimeZone> tag
Thanks,
Saif
From: <hibbsncc1701(a)gmail.com>
> Date: Fri, Aug 27, 2021 at 9:27 AM
> Subject: [ovirt-users] How to re-import a VM with an invalid timezone?
> To: <users(a)ovirt.org>
>
>
> I've just finished my upgrade to oVirt 4.4.8.4, but I've got one
> previously working VM that I cannot reimport. (I did a fresh install
> instead of restoring an engine backup.) It's a Windows VM, and every
> attempt I make to import it causes the following error:
>
> Cannot import VM. Invalid time zone for given OS type.
> Attribute: vm.vmStatic
>
> The interface doesn't give me the option to change the timezone before
> import. The most that I can get from the logs on either the engine host or
> SPM host is this:
>
> 2021-08-26 17:38:30,793-04 WARN
> [org.ovirt.engine.core.bll.exportimport.ImportVmFromConfigurationCommand]
> (default task-35) [96d9f0ea-99be-477a-b1d1-3781ffbac041] Validation of
> action 'ImportVmFromConfiguration' failed for user admin@internal-authz.
> Reasons:
> VAR__ACTION__IMPORT,VAR__TYPE__VM,ACTION_TYPE_FAILED_INVALID_TIMEZONE,$groups
> [Ljava.lang.Class;@b263017,$message
> ACTION_TYPE_FAILED_INVALID_TIMEZONE,$payload [Ljava.lang.Class;@3b789cbf,ACTION_TYPE_FAILED_ATTRIBUTE_PATH,$path
> vm.vmStatic,$validatedValue
> org.ovirt.engine.core.common.businessentities.VmStatic@9f994c52
>
> Does anyone know how to get a VM imported in this case?
>
> Thanks.
> _______________________________________________
> Users mailing list -- users(a)ovirt.org
> To unsubscribe send an email to users-leave(a)ovirt.org
> Privacy Statement: https://www.ovirt.org/privacy-policy.html
> oVirt Code of Conduct:
> https://www.ovirt.org/community/about/community-guidelines/
> List Archives:
> https://lists.ovirt.org/archives/list/users@ovirt.org/message/J4L5M3PDZRB...
>
3 years, 3 months
Crash Debugging VDSM Hook
by Jean-Louis Dupond
Hi All,
While debugging some Qemu 6 issue I was requested to remove the
error_policy from the libvirt xml.
See https://bugzilla.redhat.com/show_bug.cgi?id=1999051#c12
Now to have this working I just wrote some small python hook for VDSM
which adjusts the XML before startup.
Just added the file in /usr/libexec/vdsm/hooks/before_vm_start:
# cat 40_crashtest
#!/usr/libexec/platform-python
import os
import hooking
class CrashTestHook(object):
def __init__(self):
super(CrashTestHook, self).__init__()
self.config = {}
self.domxml = hooking.read_domxml()
def save(self):
hooking.write_domxml(self.domxml)
def set_error_policy(self):
drivers = self.domxml.getElementsByTagName('driver')
for driver in drivers:
policy = driver.getAttribute('error_policy')
if policy == 'stop':
driver.removeAttribute('error_policy')
def main(self):
self.set_error_policy()
self.save()
if __name__ == "__main__":
CrashTestHook().main()
# vim: expandtab tabstop=4 shiftwidth=4
Might be usefull if somebody else needs the same thing :)
Jean-Louis
3 years, 3 months
cannot add host to cluster - libvirt.libvirtError: internal error: unknown feature amd-sev-es
by marek
ovirt 4.4.8 standalone
cluster cpu type: nehalem family
ovirt host centos 8 stream
ovirt gui info: Host CPU type is not supported in this cluster
compatibility version or is not supported at all.
vdsm.log
2021-08-30 11:30:58,600+0200 ERROR (jsonrpc/4) [root] Error while
getting domain capabilities (machinetype:92)
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/vdsm/common/cache.py", line
41, in __call__
return self.cache[args]
KeyError: ()
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/vdsm/machinetype.py", line 90,
in _get_domain_capabilities
domcaps = conn.getDomainCapabilities(None, arch, None, virt_type, 0)
File
"/usr/lib/python3.6/site-packages/vdsm/common/libvirtconnection.py",
line 131, in wrapper
ret = f(*args, **kwargs)
File "/usr/lib/python3.6/site-packages/vdsm/common/function.py", line
94, in wrapper
return func(inst, *args, **kwargs)
File "/usr/lib64/python3.6/site-packages/libvirt.py", line 4493, in
getDomainCapabilities
raise libvirtError('virConnectGetDomainCapabilities() failed')
libvirt.libvirtError: internal error: unknown feature amd-sev-es
2021-08-30 11:30:58,650+0200 ERROR (jsonrpc/4) [root] Error while
getting CPU features: no domain capabilities found (machinetype:188)
model name : Intel(R) Xeon(R) CPU E5504 @ 2.00GHz
cat /sys/devices/cpu/caps/pmu_name
nehalem
grep -E 'svm|vmx' /proc/cpuinfo | grep nx
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ht tm pbe syscall
nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology
nonstop_tsc cpuid aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3
cx16 xtpr pdcm dca sse4_1 sse4_2 popcnt lahf_lm pti ssbd ibrs ibpb stibp
tpr_shadow vnmi flexpriority ept vpid dtherm flush_l1d
3 years, 3 months
oVirt Hosted Engine Offline Deployment
by Andrew Lamarra
Hi there. I'm trying to get oVirt up & running on a server in a network that has no access to the Internet. We do host mirrors of CentOS 7 & 8 repos (no Stream). I first tried the latest version of oVirt 4.4, however, I ran into an issue when trying to do the Hosted Engine deployment. The command I used was "hosted-engine --deploy --ansible-extra-vars=he_offline_deployment=true". But at some point, I get the following error:
[ INFO ] DNF Errors during downloading metadata for repository 'ovirt-4.4-centos-ceph-pacific':
- Status code: 404 for http://mirror.centos.org/centos/8-stream/storage/x86_64/ceph-pacific/repo...
[ ERROR ] DNF Failed to download metadata for repo 'ovirt-4.4-centos-ceph-pacific': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
Seems like it's still trying to download something from the CentOS 8 Stream repo. So I figured that since we have the CentOS 7 repos hosted, I'll try oVirt v4.3. However, I don't see an option to do an "offline deployment" with this version. It says the "--ansible-extra-vars" option is invalid. I tried doing a regular deployment but it tries downloading from the oVirt repo:
[ INFO ] TASK [ovirt.hosted_enging_setup : Install ovirt-engine-appliance rpm]
[ ERROR ] fatal: [localhost]: FAILED! => ["attempts": 10, "changed": false, "msg": "Failure talking to yum: cannot retrieve metalink for repository: ovirt-4.3-epel/x86_64. Please verify its path and try again"}
I can bring over a mirror of the ovirt-4.3 repo. I also see that there's some other repos in the "ovirt-4.3-dependencies.repo" file. Are those required for deploying the hosted engine VM as well? Or does anyone know if there's a way to do this deployment completely offline?
Thank you for your time.
3 years, 3 months
testing 4.3.10 to 4.4.7 upgrade SHE
by Gianluca Cecchi
Hello,
I'm testing what in object in a test env.
For this I downloaded the async 1 iso of the node, released on 14/07:
https://resources.ovirt.org/pub/ovirt-4.4/iso/ovirt-node-ng-installer/4.4...
and downloaded to manually install and avoid 4.4.8 appliance:
https://resources.ovirt.org/pub/ovirt-4.4/rpm/el8/x86_64/ovirt-engine-app...
released on 05/07
BTW: what is the difference with
https://resources.ovirt.org/pub/ovirt-4.4/rpm/el8/x86_64/ovirt-engine-app...
as both the rpm in changelog contains at top:
* Mon Jul 05 2021 Sandro Bonazzola <sbonazzo(a)redhat.com> - 4.4
- oVirt 4.4.7 GA appliance
I'm in the phase where I have installed the iso, manually installed the
4.4.7 appliance rpm and then:
tmux
hosted-engine --deploy --restore-from-file=backup.bck
It seems I'm stuck at step:
[ INFO ] changed: [localhost -> 192.168.222.153]
[ INFO ] TASK [ovirt.ovirt.engine_setup : Remove temporary yum
configuration file]
[ INFO ] changed: [localhost -> 192.168.222.153]
[ INFO ] TASK [ovirt.ovirt.engine_setup : Set offline parameter if
variable is set]
[ INFO ] ok: [localhost -> 192.168.222.153]
[ INFO ] TASK [ovirt.ovirt.engine_setup : Restore engine from file]
[ INFO ] skipping: [localhost]
[ INFO ] TASK [ovirt.ovirt.engine_setup : Run engine-setup with answerfile]
under /var/log/ovirt-hosted-engine-setup of host:
[root@novirt2 ovirt-hosted-engine-setup]# ls -lrt
total 1376
-rw-r--r--. 1 root root 142169 Aug 24 18:12
ovirt-hosted-engine-setup-ansible-get_network_interfaces-20210824181152-6kd9pq.log
-rw-r--r--. 1 root root 270803 Aug 24 18:18
ovirt-hosted-engine-setup-ansible-initial_clean-20210824181738-su4zk6.log
-rw-r--r--. 1 root root 378903 Aug 24 18:34
ovirt-hosted-engine-setup-20210824181101-r03y91.log
-rw-r--r--. 1 root root 610288 Aug 24 18:34
ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-20210824181850-m1gx97.log
[root@novirt2 ovirt-hosted-engine-setup]#
and
[root@novirt2 ovirt-hosted-engine-setup]# tail
ovirt-hosted-engine-setup-ansible-bootstrap_local_vm-20210824181850-m1gx97.log
2021-08-24 18:34:18,155+0200 INFO ansible ok {'status': 'OK',
'ansible_type': 'task', 'ansible_playbook':
'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml',
'ansible_host': 'localhost', 'ansible_task': 'Set offline parameter if
variable is set', 'task_duration': 1}
2021-08-24 18:34:18,156+0200 DEBUG ansible on_any args
<ansible.executor.task_result.TaskResult object at 0x7f3c88732400> kwargs
2021-08-24 18:34:19,035+0200 INFO ansible task start {'status': 'OK',
'ansible_type': 'task', 'ansible_playbook':
'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml',
'ansible_task': 'ovirt.ovirt.engine_setup : Restore engine from file'}
2021-08-24 18:34:19,035+0200 DEBUG ansible on_any args TASK:
ovirt.ovirt.engine_setup : Restore engine from file kwargs
is_conditional:False
2021-08-24 18:34:19,037+0200 DEBUG ansible on_any args localhost TASK:
ovirt.ovirt.engine_setup : Restore engine from file kwargs
2021-08-24 18:34:19,885+0200 INFO ansible skipped {'status': 'SKIPPED',
'ansible_type': 'task', 'ansible_playbook':
'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml',
'ansible_task': 'Restore engine from file', 'ansible_host': 'localhost'}
2021-08-24 18:34:19,886+0200 DEBUG ansible on_any args
<ansible.executor.task_result.TaskResult object at 0x7f3c88662358> kwargs
2021-08-24 18:34:20,761+0200 INFO ansible task start {'status': 'OK',
'ansible_type': 'task', 'ansible_playbook':
'/usr/share/ovirt-hosted-engine-setup/ansible/trigger_role.yml',
'ansible_task': 'ovirt.ovirt.engine_setup : Run engine-setup with
answerfile'}
2021-08-24 18:34:20,762+0200 DEBUG ansible on_any args TASK:
ovirt.ovirt.engine_setup : Run engine-setup with answerfile kwargs
is_conditional:False
2021-08-24 18:34:20,763+0200 DEBUG ansible on_any args localhost TASK:
ovirt.ovirt.engine_setup : Run engine-setup with answerfile kwargs
[root@novirt2 ovirt-hosted-engine-setup]#
Inside the (still local) vm:
[root@novmgr ovirt-engine]# cd /var/log/ovirt-engine/setup/
[root@novmgr setup]# ls -lrt
total 12084
-rw-r--r--. 1 root root 394589 Aug 24 18:25
ovirt-engine-provisiondb-20210824182500-rqqgls.log
-rw-r--r--. 1 root root 395744 Aug 24 18:25
ovirt-engine-provisiondb-20210824182505-tq5b8z.log
-rw-------. 1 root root 14196 Aug 24 18:25
restore-backup-20210824162459.log
-rw-r--r--. 1 root root 11559016 Aug 24 18:35
ovirt-engine-setup-20210824183421-ri4rdq.log
[root@novmgr setup]#
[root@novmgr setup]# tail ovirt-engine-setup-20210824183421-ri4rdq.log
2021-08-24 18:35:21,233+0200 DEBUG
otopi.plugins.otopi.packagers.dnfpackager dnfpackager.verbose:75 DNF
Downloading Ceph packages for x86_64 1.02/1.02KB
2021-08-24 18:35:21,235+0200 INFO otopi.plugins.otopi.packagers.dnfpackager
dnfpackager.info:79 DNF Downloaded Ceph packages for x86_64
2021-08-24 18:35:21,361+0200 ERROR
otopi.plugins.otopi.packagers.dnfpackager dnfpackager.error:84 DNF
Importing GPG key 0xE451E5B5:
Userid : "CentOS Storage SIG (
http://wiki.centos.org/SpecialInterestGroup/Storage) <security(a)centos.org>"
Fingerprint: 7412 9C0B 173B 071A 3775 951A D4A2 E50B E451 E5B5
From : https://www.centos.org/keys/RPM-GPG-KEY-CentOS-SIG-Storage
2021-08-24 18:35:21,362+0200 DEBUG otopi.plugins.otopi.dialog.human
human.format:69 newline sent to logger
2021-08-24 18:35:21,363+0200 DEBUG otopi.plugins.otopi.dialog.human
human.confirm:293 confirm GPG_KEY
2021-08-24 18:35:21,363+0200 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:204 DIALOG:SEND
2021-08-24 18:35:21,364+0200 DEBUG otopi.plugins.otopi.dialog.human
dialog.__logString:204 DIALOG:SEND Please confirm Confirm
use of GPG Key userid=CentOS Storage SIG (
http://wiki.centos.org/SpecialInterestGroup/Storage) <security(a)centos.org>
hexkeyid=E451E5B5 [yes/no]:
20 minutes passed
[root@novmgr setup]# date
Tue Aug 24 18:56:16 CEST 2021
[root@novmgr setup]#
I suspect the error related to the gpg key import....
any insights?
Does my strategy to keep 4.4.7 on upgrade from 4.3.10 apply, or anyway the
appliance will upgrade anyway to 4.4.8 during the setup?
thanks,
Gianluca
3 years, 3 months