mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Hook up the serial console to dbus service
This commit is contained in:
@@ -28,8 +28,15 @@ which contains the following methods:
|
||||
the window for accessing the graphical framebuffer associated
|
||||
with the VM.
|
||||
|
||||
- show_domain_serial_console(string:uri, string:uuid)
|
||||
Takes a domain's UUID in printable string format and displays
|
||||
the window for accessing the serial console connected to the
|
||||
guest VM. NB, not all domains have a serial console activated,
|
||||
and it is only typically accessible as root.
|
||||
|
||||
- show_domain_creator(string:uri)
|
||||
Displys the window for creating & configuring a new domain
|
||||
Displys the window for creating & configuring a new domain.
|
||||
NB. the domain creator is only accessible as root.
|
||||
|
||||
- show_host_summary(string:uri)
|
||||
Displays the window showing a summary of all active domains
|
||||
@@ -49,13 +56,13 @@ To display the performance window for the domain with a UUID of
|
||||
command as follows:
|
||||
|
||||
# First ensure the application is running
|
||||
$ dbus-send --session --dest="org.freedesktop.DBus" \
|
||||
$ dbus-send --print-reply --session --dest="org.freedesktop.DBus" \
|
||||
"/org/freedesktop/DBus" \
|
||||
"org.freedesktop.DBus.StartServiceByName" \
|
||||
"string:com.redhat.virt.manager"
|
||||
|
||||
# Now call the show_domain_performance method
|
||||
$dbus-send --session --dest="com.redhat.virt.manager" \
|
||||
$dbus-send --print-reply --session --dest="com.redhat.virt.manager" \
|
||||
"/com/redhat/virt/manager"
|
||||
"com.redhat.virt.manager.show_domain_performance" \
|
||||
"string:xen" \
|
||||
|
||||
@@ -41,6 +41,10 @@ class vmmRemote(dbus.service.Object):
|
||||
def show_domain_console(self, uri, uuid):
|
||||
self.engine.show_console(uri, uuid)
|
||||
|
||||
@dbus.service.method("com.redhat.virt.manager", in_signature="ss")
|
||||
def show_domain_serial_console(self, uri, uuid):
|
||||
self.engine.show_serial_console(uri, uuid)
|
||||
|
||||
@dbus.service.method("com.redhat.virt.manager", in_signature="s")
|
||||
def show_host_summary(self, uri):
|
||||
self.engine.show_manager(uri)
|
||||
|
||||
Reference in New Issue
Block a user