From: Daniel Stodden Date: Tue, 12 Oct 2010 09:31:49 +0000 (+0100) Subject: CA-45278: Make with-vdi VBDs unpluggable. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=81662ee9797ff312f66a71f38f02635efe1f2f1e;p=xcp%2Fxen-api.git CA-45278: Make with-vdi VBDs unpluggable. Prevent tripping over unplug failures due to VBD.unpluggable=false. Happens when plugging guest system disks with normal VBD defaults. Signed-off-by: Daniel Stodden --- diff --git a/scripts/with-vdi b/scripts/with-vdi index 5421673d..635146ea 100755 --- a/scripts/with-vdi +++ b/scripts/with-vdi @@ -38,7 +38,7 @@ if [ `xe vdi-param-get uuid=${VDI} param-name=read-only` = "true" ] ; then else MODE=RW fi -VBD=`xe vbd-create vm-uuid=${CONTROL_DOMAIN_UUID} vdi-uuid=${VDI} device=autodetect mode=${MODE}` +VBD=`xe vbd-create vm-uuid=${CONTROL_DOMAIN_UUID} vdi-uuid=${VDI} device=autodetect mode=${MODE} unpluggable=true` xe vbd-plug uuid=${VBD} DEVICE=`xe vbd-param-get uuid=${VBD} param-name=device` export DEVICE