1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

Implement Libvirt Serial Console as Console on WebVirtCloud

This commit is contained in:
Gaëtan Ferez 2022-07-17 13:25:47 +02:00
parent f6915ac51f
commit 65dce10ce1
10 changed files with 398 additions and 2 deletions

View file

@ -1019,6 +1019,8 @@ class wvmInstance(wvmConnect):
def get_console_type(self):
console_type = util.get_xml_path(self._XMLDesc(0), "/domain/devices/graphics/@type")
if console_type is None:
console_type = util.get_xml_path(self._XMLDesc(0), "/domain/devices/console/@type")
return console_type
def set_console_type(self, console_type):