ustcweizhou commented on issue #3319: Use IDE as the bus type for root disks 
and VIRTIO for data disks when platform emulator strings start with Windows* 
except Windows PV
URL: https://github.com/apache/cloudstack/pull/3319#issuecomment-509370271
 
 
   @svenvogel thanks for your reply.
   @skattoju4 @syed could you please consider the following change ?
   ```
   diff --git 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
   index 6f62b4a..411ba70 100644
   --- 
a/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
   +++ 
b/plugins/hypervisors/kvm/src/com/cloud/hypervisor/kvm/resource/LibvirtComputingResource.java
   @@ -2388,7 +2388,11 @@ public class LibvirtComputingResource extends 
ServerResourceBase implements Serv
                        disk.defNetworkBasedDisk(glusterVolume + 
path.replace(mountpoint, ""), pool.getSourceHost(), pool.getSourcePort(), null,
                                null, devId, diskBusType, DiskProtocol.GLUSTER, 
DiskDef.DiskFmtType.QCOW2);
                    } else if (pool.getType() == StoragePoolType.CLVM || 
physicalDisk.getFormat() == PhysicalDiskFormat.RAW) {
   -                    disk.defBlockBasedDisk(physicalDisk.getPath(), devId, 
diskBusType);
   +                    if (volume.getType() == Volume.Type.DATADISK) {
   +                        disk.defBlockBasedDisk(physicalDisk.getPath(), 
devId, diskBusTypeData);
   +                    } else {
   +                        disk.defBlockBasedDisk(physicalDisk.getPath(), 
devId, diskBusType);
   +                    }
                    } else {
                        if (volume.getType() == Volume.Type.DATADISK) {
                            disk.defFileBasedDisk(physicalDisk.getPath(), 
devId, diskBusTypeData, DiskDef.DiskFmtType.QCOW2);
   ```
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to