Connect to actual IP not localhost for Libvirt

This commit is contained in:
Joshua Boniface 2019-06-25 22:09:32 -04:00
parent 75d0e7f989
commit d336fce253
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ else:
if enable_hypervisor:
# Check that libvirtd is listening TCP
libvirt_check_name = "qemu+tcp://127.0.0.1:16509/system"
libvirt_check_name = "qemu+tcp://{}:16509/system".format(myhostname)
logger.out('Connecting to Libvirt daemon at {}'.format(libvirt_check_name), state='i')
try:
lv_conn = libvirt.open(libvirt_check_name)