mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-28 07:21:44 +03:00
support for graphics console with PV guests, show the appropriate console
once the guest is created
This commit is contained in:
parent
a14dc85fce
commit
205e37b9ee
@ -400,6 +400,9 @@ class vmmCreate(gobject.GObject):
|
|||||||
self.vm_uuid = xeninst.util.uuidToString(xeninst.util.randomUUID())
|
self.vm_uuid = xeninst.util.uuidToString(xeninst.util.randomUUID())
|
||||||
guest.set_uuid(self.vm_uuid)
|
guest.set_uuid(self.vm_uuid)
|
||||||
|
|
||||||
|
# set up the graphics to use SDL
|
||||||
|
guest.graphics = "vnc"
|
||||||
|
|
||||||
#let's go
|
#let's go
|
||||||
self.install_error = None
|
self.install_error = None
|
||||||
progWin = vmmAsyncJob(self.config, self.do_install, [guest],
|
progWin = vmmAsyncJob(self.config, self.do_install, [guest],
|
||||||
@ -593,10 +596,12 @@ class vmmCreate(gobject.GObject):
|
|||||||
|
|
||||||
def open_vm_console(self,ignore,uri,uuid):
|
def open_vm_console(self,ignore,uri,uuid):
|
||||||
if uuid == self.vm_uuid:
|
if uuid == self.vm_uuid:
|
||||||
if (self.virt_method == VM_PARAVIRT):
|
vm = self.connection.get_vm(uuid)
|
||||||
self.emit("action-show-terminal", self.connection.get_uri(), self.vm_uuid)
|
(gtype, host, port) = vm.get_graphics_console()
|
||||||
else:
|
if gtype == "vnc":
|
||||||
self.emit("action-show-console", self.connection.get_uri(), self.vm_uuid)
|
self.emit("action-show-console", self.connection.get_uri(), self.vm_uuid)
|
||||||
|
else:
|
||||||
|
self.emit("action-show-terminal", self.connection.get_uri(), self.vm_uuid)
|
||||||
|
|
||||||
def _validate_pv_url(self, url):
|
def _validate_pv_url(self, url):
|
||||||
if url.startswith("http://") or \
|
if url.startswith("http://") or \
|
||||||
|
Loading…
Reference in New Issue
Block a user