Sandro Bonazzola has uploaded a new change for review. Change subject: bin: add --vm-start-paused to hosted-engine ......................................................................
bin: add --vm-start-paused to hosted-engine Allow to start the hosted engine VM qith qemu paused. Change-Id: I749e877fe1fb259b99f1dfa46f580bcb1a5ec724 Bug-Url: https://bugzilla.redhat.com/1020858 Signed-off-by: Sandro Bonazzola <sbona...@redhat.com> --- M man/hosted-engine.8 M src/bin/hosted-engine.in 2 files changed, 17 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-setup refs/changes/43/20443/1 diff --git a/man/hosted-engine.8 b/man/hosted-engine.8 index bcba5f4..fcb7efe 100644 --- a/man/hosted-engine.8 +++ b/man/hosted-engine.8 @@ -1,5 +1,5 @@ .\" hosted-engine - Tool for handling hosted engine -.TH "HOSTED-ENGINE" "8" "2013-09-06" "oVirt" "oVirt Hosted Engine Setup Manual" +.TH "HOSTED-ENGINE" "8" "2013-10-23" "oVirt" "oVirt Hosted Engine Setup Manual" .SH "NAME" hosted\-engine \- Tools for handling hosted engine .SH "SYNOPSIS" @@ -24,6 +24,8 @@ machine.\& .IP "\fB\-\-vm-start\fP" Start VM on this host.\& +.IP "\fB\-\-vm-start-paused\fP" +Start VM on this host with qemu paused.\& .IP "\fB\-\-vm-shutdown\fP" Gracefully shutdown the VM on this host.\& .IP "\fB\-\-vm-poweroff\fP" diff --git a/src/bin/hosted-engine.in b/src/bin/hosted-engine.in index 8d93a34..9d8d7a2 100644 --- a/src/bin/hosted-engine.in +++ b/src/bin/hosted-engine.in @@ -18,6 +18,8 @@ run ovirt-hosted-engine deployment --vm-start start VM on this host + --vm-start-paused + start VM on this host with qemu paused --vm-shutdown gracefully shutdown the VM on this host --vm-poweroff @@ -65,6 +67,18 @@ echo "You must run --deploy first" fi ;; + --vm-start-paused) + # TODO: Check first the sanlock status, and if allows: + if [ -r "${conf}" ] ; then + temp_conf="$(mktemp)" + cp "${conf}" "${temp_conf}" + echo "launchPaused=true">>"${temp_conf}" + ${VDSCOMMAND} create "${temp_conf}" + rm -f "${temp_conf}" + else + echo "You must run --deploy first" + fi + ;; --vm-shutdown) if [ -n "${vmid}" ] ; then ${VDSCOMMAND} shutdown "${vmid}" 120 "VM is shutting down!" -- To view, visit http://gerrit.ovirt.org/20443 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I749e877fe1fb259b99f1dfa46f580bcb1a5ec724 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-setup Gerrit-Branch: master Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches