mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
don't need to check if pv driver is updated, old pv driver should work
This commit is contained in:
parent
fbe205b9dd
commit
45611a0f83
@ -80,7 +80,6 @@ import com.xensource.xenapi.VGPU;
|
||||
import com.xensource.xenapi.VIF;
|
||||
import com.xensource.xenapi.VLAN;
|
||||
import com.xensource.xenapi.VM;
|
||||
import com.xensource.xenapi.VMGuestMetrics;
|
||||
import com.xensource.xenapi.XenAPIObject;
|
||||
|
||||
import org.apache.cloudstack.storage.command.StorageSubSystemCommand;
|
||||
@ -6139,23 +6138,6 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
||||
|
||||
// Look up the VM
|
||||
VM vm = getVM(conn, vmName);
|
||||
/* For HVM guest, if no pv driver installed, no attach/detach */
|
||||
boolean isHVM;
|
||||
if (vm.getPVBootloader(conn).equalsIgnoreCase("")) {
|
||||
isHVM = true;
|
||||
} else {
|
||||
isHVM = false;
|
||||
}
|
||||
VMGuestMetrics vgm = vm.getGuestMetrics(conn);
|
||||
boolean pvDrvInstalled = false;
|
||||
if (!isRefNull(vgm) && vgm.getPVDriversUpToDate(conn)) {
|
||||
pvDrvInstalled = true;
|
||||
}
|
||||
if (isHVM && !pvDrvInstalled) {
|
||||
s_logger.warn(errorMsg + ": You attempted an operation on a VM which requires PV drivers to be installed but the drivers were not detected");
|
||||
return new AttachVolumeAnswer(cmd,
|
||||
"You attempted an operation that requires PV drivers to be installed on the VM. Please install them by inserting xen-pv-drv.iso.");
|
||||
}
|
||||
if (attach) {
|
||||
// Figure out the disk number to attach the VM to
|
||||
String diskNumber = null;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user