Documenting what I’ve learned (for final production setup)

Passing PCI devices to domU guest OSs
On the host OS, make this into a script, and run it:

modprobe pciback
SLOT=0000:01:06.0
echo -n $SLOT > /sys/bus/pci/drivers/bttv/unbind
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind
SLOT=0000:01:06.1
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind
SLOT=0000:01:07.0
echo -n $SLOT > /sys/bus/pci/drivers/pciback/new_slot
echo -n $SLOT > /sys/bus/pci/drivers/pciback/bind

SLOT refers to the PCI bus of the device… see if that has changed for new setup… it shouldn’t.

And to start the domU guest, start it using this:

xm create opensuse-1 pci=01:06.0 pci=01:06.1 pci=01:07.0 extra="swiotlb=force"

MythTV will detect the cards and use them.

UPDATE:
Just installed SuSE on the new production server, and the above worked flawlessly.

UPDATE:
For the mythtv-backend server, if channel names don’t come in correctly, try this:
mythfilldatabase --do-channel-updates

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.