These would always fail because libvirt doesn't start up after being installed. You would see errors like: libguestfs: opening libvirt handle: URI = qemu:///system, auth = default+wrapper, flags = 0 libvirt: XML-RPC error : Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory libguestfs: error: could not connect to libvirt (URI = qemu:///system): Failed to connect socket to '/var/run/libvirt/virtqemud-sock': No such file or directory [code=38 int1=2] (cherry picked from Fedora commit a1eed9c04c9e64cf24bc83a0da2cd6b05f7400c3)
11 lines
194 B
Bash
Executable File
11 lines
194 B
Bash
Executable File
#!/bin/bash -
|
|
set -e
|
|
set -x
|
|
|
|
# This only makes sure that libguestfs isn't totally broken.
|
|
|
|
# Fix libvirt.
|
|
systemctl restart virtqemud virtsecretd virtstoraged virtnetworkd
|
|
|
|
libguestfs-test-tool
|