mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 02:03:15 +09:00
Increased timeout for shutdowning a VM (KVM)
This commit is contained in:
1 parent
45abb9ce53
commit
a46aff29a8
1 file changed
+7
-4
@@ -1,6 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# -------------------------------------------------------------------------- #
|
||||
# Copyright 2002-2010, OpenNebula Project Leads (OpenNebula.org) #
|
||||
# #
|
||||
@@ -19,10 +18,14 @@
|
||||
|
||||
source $(dirname $0)/kvmrc
|
||||
|
||||
deploy_id=$1
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
# Wait the VM to shutdown TIMEOUT (xPOLL_INTERVAL) seconds.
|
||||
# Set to ~10min
|
||||
#------------------------------------------------------------------------------
|
||||
POLL_INTERVAL=2
|
||||
TIMEOUT=20
|
||||
TIMEOUT=300
|
||||
|
||||
deploy_id=$1
|
||||
|
||||
virsh --connect $LIBVIRT_URI shutdown $deploy_id
|
||||
|
||||
|
||||
Reference in new issue
Block a user