mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 9896: RHEL 6 doesn;t support to attach an SCSI disk to a windows VM, then I have to attach a virtio disk.
So for a windows guest, the root disk is an IDE disk(in case there is no virtio driver installed inside guest), but all the data disks will be virtio disks. That means if you want this feature, people need to install virtio disk driver inside windows guest to get data disk work. status 9896: resolved fixed
This commit is contained in:
parent
40211d186d
commit
d6e0d282d8
@ -2417,12 +2417,9 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
||||
}
|
||||
|
||||
DiskDef disk = new DiskDef();
|
||||
String guestOSType = getGuestType(conn, vmName);
|
||||
if (isGuestPVEnabled(guestOSType)) {
|
||||
disk.defFileBasedDisk(sourceFile, deviceId, DiskDef.diskBus.VIRTIO, DiskDef.diskFmtType.QCOW2);
|
||||
} else {
|
||||
disk.defFileBasedDisk(sourceFile, deviceId, DiskDef.diskBus.SCSI, DiskDef.diskFmtType.QCOW2);
|
||||
}
|
||||
|
||||
disk.defFileBasedDisk(sourceFile, deviceId, DiskDef.diskBus.VIRTIO, DiskDef.diskFmtType.QCOW2);
|
||||
|
||||
String xml = disk.toString();
|
||||
return attachOrDetachDevice(conn, attach, vmName, xml);
|
||||
} finally {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user