F_style
December 20, 2023, 5:47pm
1
According to libvirt docs:
it should support the option.
However, when actually trying it:
user1@localhost:~> virsh capabilities --xpath "/capabilities/host/cpu/model/text()"; echo $?
error: command 'capabilities' doesn't support option --xpath
1
user1@localhost:~>
And virsh command even fails creating its default “libvirt” directories at ~/.cache and ~/.config
I know I can just pipe virsh output to “xmllint --xpath” command, but still this is abnormal for me.
Why is this?
Thanks.
@F_style Perhaps the libvirt version… Perhaps consider adding the Virtualization repo and dupping from there…
https://download.opensuse.org/repositories/Virtualization/15.5/
F_style
December 20, 2023, 6:10pm
3
Isn’t that repo kind of “unstable and not 100% officially supported”, according to official openSUSE docs?
It feeds Factory so what’s there is what’s running on Tumbleweed
F_style
December 24, 2023, 4:41pm
5
So finally the libvirt guys commented something:
The virsh --xpath option was just introduced in libvirt 9.3
As of right now, openSUSE stable ships 9.0, and factory 9.10
@F_style yes, I’m on Tumbleweed so it works…
virsh capabilities --xpath "/capabilities/host/cpu/model/text()"
Broadwell-IBRS
lscpu | grep "Model name:"
Model name: Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz