On Fri, Dec 13, 2024 at 07:12:04AM -0800, Connor Kuehl wrote:
On 12/13/24 2:18 AM, Andrea Bolognani wrote:
>> I think something like this is a reasonable fallback:
>>
>> $ virsh capabilities | xmllint --xpath '//arch/@name' -
>
> Or
>
> $ virsh capabilities --xpath '//arch/@name'
>
> even ;)
Cool! TIL. My distro version must be too old but I'll keep that one in
mind.
$ virsh capabilities --xpath '//arch/@name'
error: command 'capabilities' doesn't support option --xpath
It was introduced in 9.3.0 (May 2023) so if you're on some
slow-moving distro like Debian stable you won't have it yet.
--
Andrea Bolognani / Red Hat / Virtualization