Skip to content

Commit

Permalink
Merge pull request #176 from santwana/pci_config
Browse files Browse the repository at this point in the history
Add KVM PCI-Passthrough/SR-IOV test config
  • Loading branch information
Satheesh Rajendran authored Mar 12, 2020
2 parents e86c342 + 0622226 commit bbfc569
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions config/tests/guest/libvirt/pci_passthrough.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
include tests-shared.cfg
username = root
password = 123456
main_vm = virt-tests-vm1
vms = virt-tests-vm1
#Network
nettype = bridge
netdst=virbr0
# Using Text mode of installation
display = 'nographic'
take_regular_screendumps = no
keep_screendumps_on_error = no
keep_screendumps = no
store_vm_register = no
virt_install_binary = /usr/bin/virt-install
qemu_img_binary = /usr/bin/qemu-img
hvm_or_pv = hvm
machine_type = pseries
only bridge
no xen, lxc, esx, ovmf
#Filterout unwanted disk types
no ide,xenblk,lsi_scsi,ahci,sd
no qed,qcow2v3,raw_dd,vmdk, usb2
no e1000-82540em,e1000-82545em,e1000-82544gc,xennet,nic_custom
only no_virtio_rng
only smp2
only no_9p_export
only no_pci_assignable
only (image_backend=filesystem)
only smallpages
smp = 32
vcpu_cores = 32
vcpu_threads = 1
vcpu_sockets = 1
# 32G
mem = 32768
# number_vfs = 2
number_vfs = "Enter the no.of Virtual Function's to be created for each PF"
# Eg: 0000:05:00.0
pf_filter = "ENTER.YOUR.PCI.LABEL"
libvirt_pci_net_ip = "ENTER.YOUR.IP"
libvirt_pci_server_ip = "ENTER.YOUR.SERVER.IP"
libvirt_pci_net_mask = "ENTER.YOUR.NETMASK"

variants:
- guest_import:
only unattended_install.import.import.default_install.aio_native

- device_passthrough:
only libvirt_pci_passthrough
only NIC
only SRIOV

- guest_remove:
only remove_guest.without_disk

0 comments on commit bbfc569

Please sign in to comment.