mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-9363: Fix HVM VM restart bug in XenServer
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
dfc39c1f08
commit
044ae8a070
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue