Ovirt
dictionary
rhv Red Hat Virtualization. based on ovirt
Version
ovirt_curl | jq -r .product_info
ovirt-shell
list vms
ovirt-shell -E "list vms"
versions of installed components
ovirt-shell -E "info"
summary of ovirt. Number of vm:s host:s...
ovirt-shell -E "summary"
list disks
ovirt-shell -E "list disks --parent-vm-name <vm>"
Get cpu and memory
ovirt-shell -E "show vm <vm>" | grep -iE 'cpu-topology-|memory'
get nic:s
ovirt-shell -E "list nics --parent-vm-name <vm>"
list storagedomains
ovirt-shell -E "list storagedomains"
ovirt api
Which os are supported
ovirt_curl /operatingsystems"
Which vlans exist
ovirt_curl /vnicprofiles | jq -r '.vnic_profile[]|[.name, .id]|@tsv' | column_tab
List storage domains
ovirt_curl /storagedomains ovirt_curl /storagedomains/ | jq -r .storage_domain[].name
List files in storage domain
ovirt_curl /storagedomains/a0ae7e05-d69a-4cc0-ab30-8bc2d59b2b28/files ovirt_curl /storagedomains/a0ae7e05-d69a-4cc0-ab30-8bc2d59b2b28/files | jq -r '.file[].name' | sort -n
List templates
ovirt_curl /templates ovirt_curl /templates | jq -r .template[].name
What is wrong with the requests I create
tail -f /var/log/ovirt-engine/engine.log
Enable qemu-guest-agent
dnf install qemu-guest-agent systemctl enable qemu-guest-agent --now
unlock admin
ovirt-aaa-jdbc-tool user show admin ovirt-aaa-jdbc-tool user unlock admin