Displaying 2 results from an estimated 2 matches for "elementcharconsole".
2016 Apr 07
3
how to list and kill existing console sessions to VMs?
Hi everyone,
If a VM is configured to have a console attached to it, like using
http://libvirt.org/formatdomain.html#elementCharConsole
Libvirt offers access to VM serial console's using the virDomainOpenConsole API[1]
However, I didn't find a way to
1. list the existing connections to the console
2. kill an existing connection - without reconnecting using VIR_DOMAIN_CONSOLE_FORCE[2]
Am I missing something? How can I do t...
2017 May 17
7
[PATCH 1/5] s390x: launch: libvirt: Use <console> device sclp for appliance debug messages (RHBZ#1376547).
...");
@@ -1370,6 +1371,22 @@ construct_libvirt_xml_devices (guestfs_h *g,
attribute ("port", "0");
} end_element ();
} end_element ();
+#else
+ /* https://bugzilla.redhat.com/show_bug.cgi?id=1376547#c14
+ * and https://libvirt.org/formatdomain.html#elementCharConsole
+ */
+ start_element ("console") {
+ attribute ("type", "unix");
+ start_element ("source") {
+ attribute ("mode", "connect");
+ attribute ("path", params->data->console_path);
+ } end_el...