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:
Edison Su 2011-06-08 16:06:21 -04:00
parent 40211d186d
commit d6e0d282d8

View File

@ -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 {