Skip to content

Instantly share code, notes, and snippets.

View awsation's full-sized avatar
🎯
Focusing

Aws Ismail awsation

🎯
Focusing
  • Canada
View GitHub Profile
@awsation
awsation / keybase
Created May 24, 2017 04:08
My keybase
### Keybase proof
I hereby claim:
* I am awsation on github.
* I am awsation (https://keybase.io/awsation) on keybase.
* I have a public key ASCen53Q2dhfX7Y9oQApYaqO5ARd84qh2MIVvPtpCZtDMgo
To claim this, I am signing this object:
@awsation
awsation / vm_pci_passthru.sh
Created September 28, 2015 07:25
How to use pci-stub to do PCI passthru of NICs to the Guest. The host will lose control of the NIC itself.
#!/bin/bash
###
# unbind PCI device from the host and bind it to pcistub
###
echo "8086 10fb" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:84:00.0" > /sys/bus/pci/devices/0000:84:00.0/driver/unbind
echo "0000:84:00.0" > /sys/bus/pci/drivers/pci-stub/bind
echo "8086 10fb" > /sys/bus/pci/drivers/pci-stub/new_id
echo "0000:84:00.1" > /sys/bus/pci/devices/0000:84:00.1/driver/unbind
echo "0000:84:00.1" > /sys/bus/pci/drivers/pci-stub/bind