Mention SRC-IOV.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 1 Oct 2015 16:31:04 +0000 (18:31 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Thu, 1 Oct 2015 16:31:04 +0000 (18:31 +0200)
HOWTO.sh

index b7e5c3b..14d6dbf 100644 (file)
--- a/HOWTO.sh
+++ b/HOWTO.sh
@@ -63,6 +63,33 @@ EOF
 
 ==========
 
+SRV-IO
+#(not success!)
+
+
+echo "options igb max_vfs=7" >>/etc/modprobe.d/igb-virtualization.conf
+#(nutno i v BIOSu)
+#GRUB_CMDLINE_LINUX += intel_iommu=on
+#GRUB_CMDLINE_LINUX += amd_iommu=on
+vim /etc/default/grub
+grub-mkconfig > /tmp/grub.conf
+vimdiff /boot/grub/grub.cfg /tmp/grub.conf
+mv /tmp/grub.conf /boot/grub/grub.cfg
+reboot
+lspci | grep InfiniBand
+virsh nodedev-list
+virsh nodedev-dumpxml pci_<XXXX_XX_XX_X>
+cat > /tmp/new-interface.xml  <<EOF
+   <interface type='hostdev' managed='yes'>
+     <source>
+       <address type='pci' domain='<X>' bus='<XX>' slot='<XX>' function='0'/>
+     </source>
+   </interface>
+EOF
+virsh attach-device MY_GUEST /tmp/new-interface.xml  --config
+
+==========
+
 # KVM
 parallel --jobs 6 "rsync -av . root@hador{}:~/KVM/" ::: `seq 20 24`
 parallel --jobs 6 "ssh -K root@hador{} 'cd ~/KVM; ./kvm.sh hador{}-1.sh'" ::: `seq 20 24`