unix:scripts:libvirt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
unix:scripts:libvirt [2024/09/20 20:48] – rodolico | unix:scripts:libvirt [2024/09/20 21:23] (current) – rodolico | ||
---|---|---|---|
Line 4: | Line 4: | ||
This little one liner grabs the lines that define the vnc ports used by all defined on a node (hypervisor) and returns them as a tab delimited string. | This little one liner grabs the lines that define the vnc ports used by all defined on a node (hypervisor) and returns them as a tab delimited string. | ||
+ | |||
+ | ==== Code ==== | ||
<code bash> | <code bash> | ||
Line 22: | Line 24: | ||
libvirt (virsh) stores it's domain (virtual) definitions in / | libvirt (virsh) stores it's domain (virtual) definitions in / | ||
< | < | ||
- | /media/shared/havirt/conf/ | + | /etc/libvirt/qemu/ |
</ | </ | ||
Line 32: | Line 34: | ||
* If there is only one domain defined, grep does not return the filename, so the system breaks. | * If there is only one domain defined, grep does not return the filename, so the system breaks. | ||
* This is totally dependent on how libvirt stores the data; path, key and whether the key is on the same line. Any changes to the libvirt storage will break the script. | * This is totally dependent on how libvirt stores the data; path, key and whether the key is on the same line. Any changes to the libvirt storage will break the script. | ||
+ | * We use [[https:// |
unix/scripts/libvirt.1726883282.txt.gz · Last modified: 2024/09/20 20:48 by rodolico