api/admin: make libvirt start error more informative

Point where to look for details.
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-14 02:13:27 +01:00
parent f738f5d4d8
commit fd45378041
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -772,7 +772,8 @@ class QubesAdminAPI(qubes.api.AbstractQubesAPI):
yield from self.dest.start()
except libvirt.libvirtError as e:
# change to QubesException, so will be reported to the user
raise qubes.exc.QubesException('Start failed: ' + str(e))
raise qubes.exc.QubesException('Start failed: ' + str(e) +
', see /var/log/libvirt/libxl/libxl-driver.log for details')
@qubes.api.method('admin.vm.Shutdown', no_payload=True,