|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 6 of 9] xl: do not try and auto re-connect console on
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1280140563 -3600
# Node ID 333254f8e11bc7bfa6901fe5e5585abb25e31398
# Parent 85b50d34d7cc8a70c083c0acdc4c2e7ead675029
xl: do not try and auto re-connect console on reboot
It is not possible to run the console client if we are rebooting a
guest via the backgrounded xl process so we may as well turn off
console autoconnect after the first boot.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 85b50d34d7cc -r 333254f8e11b tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c Mon Jul 26 11:36:03 2010 +0100
+++ b/tools/libxl/xl_cmdimpl.c Mon Jul 26 11:36:03 2010 +0100
@@ -1188,6 +1188,12 @@ start:
*/
dom_info->console_autoconnect = 0;
+ /*
+ * Do not attempt to reconnect if we come round again due to a
+ * guest reboot -- the stdin/out will be disconnected by then.
+ */
+ dom_info->console_autoconnect = 0;
+
ret = libxl_run_bootloader(&ctx, &b_info, num_disks > 0 ? &disks[0] :
NULL, domid);
if (ret) {
fprintf(stderr, "failed to run bootloader: %d\n", ret);
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 3 of 9] libxl: signal caller if domain already destroyed on domain death event, (continued)
[Xen-devel] [PATCH 4 of 9] libxl: should consider shutdown_reason for dying as well as shutdown domains, Ian Campbell
[Xen-devel] [PATCH 5 of 9] libxl: add libxl_domain_preserve, Ian Campbell
[Xen-devel] [PATCH 6 of 9] xl: do not try and auto re-connect console on reboot,
Ian Campbell <=
[Xen-devel] [PATCH 7 of 9] xl: Add function to generate random uuid and use it, Ian Campbell
[Xen-devel] [PATCH 8 of 9] xl: Factor out domain death handling into a separate function, Ian Campbell
[Xen-devel] [PATCH 9 of 9] xl: support on_{poweroff, reboot, crash} domain configuration options, Ian Campbell
[Xen-devel] [PATCH 0 of 9] xl: handle domain shutdown/reboot/crash in a user configurable way, Ian Campbell
|
|
|
|
|