mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Fix HVM VM restart bug in XenServer
This commit is contained in:
parent
7da95172a4
commit
966814b07d
@ -1149,8 +1149,8 @@ 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)) {
|
||||
vbdr.userdevice = deviceId.toString();
|
||||
if (deviceId != null && (!isDeviceUsed(conn, vm, deviceId) || deviceId > 3)) {
|
||||
vbdr.userdevice = deviceId.toString();
|
||||
}
|
||||
}
|
||||
final VBD vbd = VBD.create(conn, vbdr);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user