
Hi everyone There is a WLUG meeting coming up next Monday: Elroy will be talking about his adventures with Asterisk and VOIP. http://www.wlug.org.nz/event_calendar/view/743/meeting Prior to that, at 6.30pm, a committee meeting has been scheduled. For details, please see: http://www.wlug.org.nz/event_calendar/view/3476/committee-meeting Hope to see you there. Cheers, Peter -- Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ http://www.cms.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174

Hi all out there, For the last few weeks i have been playing with xen and asterisk I have now got the base install completed and have a few extentions working internally The part i am up to now is assigning my tdm400 card over to the asterisk pvm I have completed the lspci with the tv flags Here is the output: -[0000:00]-+-00.0 Intel Corporation 82P965/G965 Memory Controller Hub +-02.0 Intel Corporation 82G965 Integrated Graphics Controller +-03.0 Intel Corporation 82P965/G965 HECI Controller +-19.0 Intel Corporation 82566DC Gigabit Network Connection +-1a.0 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #4 +-1a.1 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 +-1a.7 Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 +-1b.0 Intel Corporation 82801H (ICH8 Family) HD Audio Controller +-1c.0-[01]-- +-1c.1-[02]----00.0 Marvell Technology Group Ltd. 88SE6101/6102 single-port PATA133 interface +-1c.2-[03]-- +-1c.3-[04]-- +-1c.4-[05]-- +-1d.0 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 +-1d.1 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 +-1d.2 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 +-1d.7 Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 +-1e.0-[06]--+-00.0 Texas Instruments TSB43AB23 IEEE-1394a-2000 Controller (PHY/Link) | +-01.0 Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller | +-02.0 Tiger Jet Network Inc. Tiger3XX Modem/ISDN interface | \-03.0 Texas Instruments TSB43AB22A IEEE-1394a-2000 Controller (PHY/Link) [iOHCI-Lynx] +-1f.0 Intel Corporation 82801HH (ICH8DH) LPC Interface Controller +-1f.2 Intel Corporation 82801 SATA Controller [RAID mode] \-1f.3 Intel Corporation 82801H (ICH8 Family) SMBus Controller I have also written/copied a couple of scripts to make things nice and easy start_pci.sh - used to get it all running ( hide and assign the device to xl etc) #!/bin/bash /data/domains/windows/start_pci1.sh 0000:06.2.0 modprobe xen-pciback 'hide=(0000:06.2.0)' xl pci-assignable-add 06.2.0 and also start_pci1.sh - used to get it all ready #!/bin/bash if [ $# -eq 0 ]; then echo "Require PCI devices in format: <domain>:<bus>:<slot>.<function>" echo "Eg: $(basename $0) 0000:00:1b.0" exit 1 fi modprobe xen-pciback for pcidev in $@; do if [ -h /sys/bus/pci/devices/"$pcidev"/driver ]; then echo "Unbinding $pcidev from" $(basename $(readlink /sys/bus/pci/devices/"$pcidev"/driver)) echo -n "$pcidev" > /sys/bus/pci/devices/"$pcidev"/driver/unbind fi echo "Binding $pcidev to pciback" echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/new_slot echo -n "$pcidev" > /sys/bus/pci/drivers/pciback/bind done now when I try and get it all running I get the following errors Binding 0000:06.2.0 to pciback /data/domains/windows/start_pci1.sh: line 17: echo: write error: Invalid argument /data/domains/windows/start_pci1.sh: line 18: echo: write error: No such device pci-assignable-add: malformed BDF specification "06.2.0" if anyone can help I can supply beer :) Jonathan

/data/domains/windows/start_pci1.sh 0000:06.2.0 modprobe xen-pciback 'hide=(0000:06.2.0)' xl pci-assignable-add 06.2.0
…..
Binding 0000:06.2.0 to pciback /data/domains/windows/start_pci1.sh: line 17: echo: write error: Invalid argument /data/domains/windows/start_pci1.sh: line 18: echo: write error: No such device pci-assignable-add: malformed BDF specification “06.2.0"
That last error, and this page: http://wiki.xen.org/wiki/Bus:Device.Function_(BDF)_Notation suggest that the parameter you pass into ‘xl pci-assignable-add' should be in the format “06:02.0” instead of “06.2.0”. The other errors might relate to poorly formatted PCI IDs as well: try ‘0000:06:02.0’ ? However, I have no idea if that’s relevant. Haven’t used xen in a long time... I also found this link while browsing: http://wiki.xen.org/wiki/Bind_lib.bash_:_A_script_that_makes_pciback_with_mo.... Might help?

Hi there, Thanks for the advice and will try this tomorrow and let you know Regards, Jonathan Wood <http://www.jwservices.co.nz/> www.jwservices.co.nz jonathan(a)jwservices.co.nz From: wlug-bounces(a)list.waikato.ac.nz [mailto:wlug-bounces(a)list.waikato.ac.nz] On Behalf Of Daniel Lawson Sent: Wednesday, 20 November 2013 7:57 p.m. To: Waikato Linux Users Group Subject: Re: [wlug] Xen pci pass through /data/domains/windows/start_pci1.sh 0000:06.2.0 modprobe xen-pciback 'hide=(0000:06.2.0)' xl pci-assignable-add 06.2.0 ... Binding 0000:06.2.0 to pciback /data/domains/windows/start_pci1.sh: line 17: echo: write error: Invalid argument /data/domains/windows/start_pci1.sh: line 18: echo: write error: No such device pci-assignable-add: malformed BDF specification "06.2.0" That last error, and this page: http://wiki.xen.org/wiki/Bus:Device.Function_(BDF)_Notation suggest that the parameter you pass into 'xl pci-assignable-add' should be in the format "06:02.0" instead of "06.2.0". The other errors might relate to poorly formatted PCI IDs as well: try '0000:06:02.0' ? However, I have no idea if that's relevant. Haven't used xen in a long time... I also found this link while browsing: http://wiki.xen.org/wiki/Bind_lib.bash_:_A_script_that_makes_pciback_with_mo dules_easier_to_use. Might help?

See you all tomorrow. Elroy. Peter Reutemann wrote:
Hi everyone
There is a WLUG meeting coming up next Monday: Elroy will be talking about his adventures with Asterisk and VOIP. http://www.wlug.org.nz/event_calendar/view/743/meeting
Prior to that, at 6.30pm, a committee meeting has been scheduled. For details, please see: http://www.wlug.org.nz/event_calendar/view/3476/committee-meeting
Hope to see you there.
Cheers, Peter
participants (4)
-
Daniel Lawson
-
Elroy
-
Jonathan Wood
-
Peter Reutemann