[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] [PATCH] CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest



# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1268085457 28800
# Node ID 504faa68f36b04176c0705515b0736349b2dadf8
# Parent  44290c66fec9040b6072c4e3b06c9351b3befe41
CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest.

Password init on the console, during an interactive first boot, blocks
the xs-tools daemon start, which prevents a VM.suspend, which TC8713
relies on.

The behavioral difference sneaked in with xgts.hg cset
559:7d7540a5ff43 (utilities support for Debian Squeeze). Fixed by
setting the "noninteractive" PV attribute.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 44290c66fec9 -r 504faa68f36b ocaml/lvhdrt/utils.ml
--- a/ocaml/lvhdrt/utils.ml     Thu Feb 25 17:11:36 2010 +0000
+++ b/ocaml/lvhdrt/utils.ml     Mon Mar 08 13:57:37 2010 -0800
@@ -221,7 +221,12 @@
     let vm_install session_id template name sr = 
       let sr_uuid = Client.SR.get_uuid rpc session_id sr in
       let newvm_uuid = cli_cmd [ "vm-install"; "template=" ^ template; 
"new-name-label=" ^ name; "sr-uuid=" ^ sr_uuid ] in
-      Client.VM.get_by_uuid rpc session_id newvm_uuid in
+      let vm =
+       Client.VM.get_by_uuid rpc session_id newvm_uuid
+      in
+       Client.VM.set_PV_args rpc session_id vm "noninteractive"; 
+       vm
+    in
     let vm' = vm_install session "Debian Etch 4.0" "lvhdrt sacrificial VM" sr 
in
 
     Pervasiveext.finally 
# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1268085457 28800
# Node ID 504faa68f36b04176c0705515b0736349b2dadf8
# Parent  44290c66fec9040b6072c4e3b06c9351b3befe41
CA-35059: LVHDRT/TC8713 wants a noninteractive PV guest.

Password init on the console, during an interactive first boot, blocks
the xs-tools daemon start, which prevents a VM.suspend, which TC8713
relies on.

The behavioral difference sneaked in with xgts.hg cset
559:7d7540a5ff43 (utilities support for Debian Squeeze). Fixed by
setting the "noninteractive" PV attribute.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 44290c66fec9 -r 504faa68f36b ocaml/lvhdrt/utils.ml
--- a/ocaml/lvhdrt/utils.ml     Thu Feb 25 17:11:36 2010 +0000
+++ b/ocaml/lvhdrt/utils.ml     Mon Mar 08 13:57:37 2010 -0800
@@ -221,7 +221,12 @@
     let vm_install session_id template name sr = 
       let sr_uuid = Client.SR.get_uuid rpc session_id sr in
       let newvm_uuid = cli_cmd [ "vm-install"; "template=" ^ template; 
"new-name-label=" ^ name; "sr-uuid=" ^ sr_uuid ] in
-      Client.VM.get_by_uuid rpc session_id newvm_uuid in
+      let vm =
+       Client.VM.get_by_uuid rpc session_id newvm_uuid
+      in
+       Client.VM.set_PV_args rpc session_id vm "noninteractive"; 
+       vm
+    in
     let vm' = vm_install session "Debian Etch 4.0" "lvhdrt sacrificial VM" sr 
in
 
     Pervasiveext.finally 
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.