CLOUDSTACK-9363: Fix HVM VM restart bug in XenServer

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2017-02-15 17:38:52 +05:30
parent dfc39c1f08
commit 044ae8a070
1 changed files with 1 additions and 1 deletions

View File

@ -1149,7 +1149,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
vbdr.unpluggable = (volume.getType() == Volume.Type.ROOT) ? false : true;
vbdr.userdevice = "autodetect";
final Long deviceId = volume.getDiskSeq();
if (deviceId != null && !isDeviceUsed(conn, vm, deviceId)) {
if (deviceId != null && (!isDeviceUsed(conn, vm, deviceId) || deviceId > 3)) {
vbdr.userdevice = deviceId.toString();
}
}