Skip to content

Commit d8da5e6

Browse files
kvm: add support nicAdapter detail for vm and template settings for KVM (apache#6536)
Fixes apache#6533 Signed-off-by: Rohit Yadav <[email protected]>
1 parent 3d31654 commit d8da5e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/com/cloud/api/query/QueryManagerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4031,6 +4031,7 @@ private void fillVMOrTemplateDetailOptions(final Map<String, List<String>> optio
40314031
options.put(VmDetailConstants.ROOT_DISK_SIZE, Collections.emptyList());
40324032

40334033
if (HypervisorType.KVM.equals(hypervisorType)) {
4034+
options.put(VmDetailConstants.NIC_ADAPTER, Arrays.asList("e1000", "virtio", "rtl8139", "vmxnet3", "ne2k_pci"));
40344035
options.put(VmDetailConstants.ROOT_DISK_CONTROLLER, Arrays.asList("osdefault", "ide", "scsi", "virtio"));
40354036
options.put(VmDetailConstants.VIDEO_HARDWARE, Arrays.asList("cirrus", "vga", "qxl", "virtio"));
40364037
options.put(VmDetailConstants.VIDEO_RAM, Collections.emptyList());

0 commit comments

Comments
 (0)