Getting commands to run on boot for Ubuntu 14.04

Soldato
Joined
18 Oct 2002
Posts
12,749
Hi Folks,

I'm trying to get two commands to run on boot for my machine. To run them when I have booted, I type:

sudo modprobe -r vfio_iommu_type1

sudo modprobe vfio_iommu_type1 allow_unsafe_interrupts=1

These, if you care, are commands that allow my KVM install to allow my pfsense VM have PCI Passthrough access to a network card in the machine.

Any suggestions would be hugely appreciated :)
 
Yes. It doesn't seem to stay persistent when I reboot.

what file do I need to put that into - sorry - or are you saying just run that at the terminal prompt?

I only ask as someone suggested there is a modules file to put the commands in - I did that and it didn't work

http://ubuntuforums.org/showthread.php?t=783109

I think the problem I have is because my first comment is using -r

I was told to put it in with the -r on the end, so effectively in my /etc/modules file I have

vfio_iommu_type1 -r
vfio_iommu_type1 allow_unsafe_interrupts =1
 
Last edited:
Back
Top Bottom