WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] pciback.hide with ISDN Cards

To: Gerhard Possler <gerhard.possler@xxxxxxxxxx>
Subject: Re: [Xen-users] pciback.hide with ISDN Cards
From: Stephan Seitz <s.seitz@xxxxxxxxxxxx>
Date: Wed, 19 Dec 2007 14:10:56 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 19 Dec 2007 05:12:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <OF35886362.BA8F6A72-ONC12573B6.00348032-C12573B6.00399788@xxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: netz-haut e.K.
References: <OF35886362.BA8F6A72-ONC12573B6.00348032-C12573B6.00399788@xxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20071022)
Hi,

we've done this with a fritz pci isdn card successfully.
as that machine in no way uses the isdn stack at dom0,
i removed the kernel module and rebuild the dom0's initrd
without this module (I didn't trust the /etc/modprobe ;) )

one line from the lspci:

03:01.0 Network controller: AVM Audiovisuelles MKTG & Computer System GmbH 
Fritz!PCI v2.0 ISDN (rev 02)

the grub entry:

title           Xen 3.1-i386-pae / Ubuntu, kernel 2.6.20-100-server
root            (hd0,1)
kernel          /xen-3.1-i386-pae.gz
module          /vmlinuz-2.6.20-100-server 
root=UUID=09503299-c560-45de-b69d-8d98eadc7b23 ro console=tty0 irq=poll
pciback.hide=(03:01.0)
module          /initrd.img-2.6.20-100-server
quiet
savedefault

the domU conf:

kernel = '/boot/vmlinuz-2.6.19-4-server'
ramdisk = '/boot/initrd.img-2.6.19-4-server'
memory  = '1832'
cpus="0"
root    = '/dev/sda1 ro'
disk    = [ 'phy:vg0/XXXXX-disk,sda1,w', 'phy:vg0/XXXXX-swap,sda2,w' ]
name    = 'XXXXX'
vif  = [ 'mac=XX:XX:XX:XX:XX, bridge=xenbr0', ' mac=XX:XX:XX:XX:XX:XX, 
bridge=xenbr1' ]
pci = [ '03:01.0' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

Hope this helps.

Regards,

Stephan




Gerhard Possler schrieb:
> 
> Hi all,
> 
> did somebody successfuly export ISDN Cards to DomU?
> 
> I want to have 2 ISDN Cards in DomU (for Asterisk with mISDN)
> lspci -vt
> -[0000:00]-+-00.0  nVidia Corporation MCP55 Memory Controller
>            +-01.0  nVidia Corporation MCP55 LPC Bridge
>            ...
>            +-05.1  nVidia Corporation MCP55 SATA Controller
>            +-06.0-[0000:01]--+-00.0  Cologne Chip Designs GmbH ISDN
> network controller [HFC-PCI]
>            |                 +-01.0  Cologne Chip Designs GmbH ISDN
> network controller [HFC-PCI]
>            |                 \-02.0  S3 Inc. 86c764/765 [Trio32/64/64V+]
>            +-06.1  nVidia Corporation MCP55 High Definition Audio
> 
> There are 2 ISDN Card under following PCI Adresses: 0000:01:00.0 and
> 0000:01:01.0
>  
> so under /boot/grub/menu.lst:
> title XEN -- openSUSE 10.3 - PAE
>     root (hd0,4)
>     kernel /xen-pae.gz pciback.hide=(0000:01:00.0)(0000:01:01.0)
>     module /vmlinuz-2.6.22.13-0.3-xenpae
> root=/dev/mapper/nvidia_deihceca_part7 vga=normal
> resume=/dev/mapper/nvidia_deihceca_part6 splash=silent showopts
>     module /initrd-2.6.22.13-0.3-xenpae
> 
> and under /etc/modprobe.conf.local:
> options pciback hide=(0000:01:00.0)(0000:01:01.0)
> install hfcpci /sbin/modprobe pciback ; /sbin/modprobe --first-time
> --ignore-install hfcpci
> 
> even combinations of above config and also when using the address short
> form 01:00.0 and 01:01.0 does't export the device, in all cases the
> start of DomU shows:
> Using config file "/etc/xen/vm/opensuse".
> Error: pci: failed to locate device and parse it's resources - [Errno 2]
> No such file or directory: '/sys/bus/pci/devices/0000:01:00.0/driver'
> 
> DomU config file is:
> name="opensuse"
> ostype="opensuse"
> uuid="b24449ce-e89a-b107-a96a-da91ce26651f"
> memory=384
> vcpus=1
> on_crash="destroy"
> on_poweroff="destroy"
> on_reboot="restart"
> localtime=0
> builder="linux"
> bootloader="/usr/lib/xen/boot/domUloader.py"
> bootargs="--entry=xvda2:/boot/vmlinuz-xenpae,/boot/initrd-xenpae"
> disk=[ 'file:/srv/xen/opencave/hda,xvda,w', ]
> vif=[ 'mac=00:16:3e:00:00:01', ]
> nographic=1
> pci=[ '01,00,0', '01,01,0' ]
> 
> I don't belive it is the openSUSE kernel 2.6.22.13-0.3-xenpae because on
> an identical system with an 3Com NIC the export of the PCI device works
> perfect...
> Here it's enough to set in /etc/modprobe.conf.local:
> options pciback hide (02:0d.0)
> install 3c59x /sbin/modprobe pciback ; /sbin/modprobe --first-time
> --ignore-install 3c59x
> 
> also commenting out the eth1 device in /etc/modprobe.conf and remove
> network config for eth1.
> 
> 
> I'm a little bit confused  because the working mISDN doesn't show an any
> hfcpci device under /sys/bus/pci/drivers that i could unbind...
> 
> 
> So the question is did somebody export ISDN PCI devices to DomU (Vendor
> doesn't matter)
> 
> Mit freundlichen Grüßen / with kind regards
> *Gerhard Possler*
> IT Architect
> IBM Enterprise Linux Services_
> __ELS Wiki_ <http://w3.webahead.ibm.com/w3ki/display/ELSde>@IBM (only
> accessible via IBM intranet)  *IT-Services and Solutions GmbH*
> Rathausstr. 7, D-09111 Chemnitz
> Geschäftsführung: Rainer Laier, Michael Mai
> Sitz der Gesellschaft: Chemnitz
> Registergericht: Amtsgericht Chemnitz, HRB 18409_
> __http://www.itsas.de/_       *gerhard.possler@xxxxxxxxxx*
> Mobil +49 (0) 160 90578637
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users


-- 
Stephan Seitz
Senior System Administrator

*netz-haut* e.K.
multimediale kommunikation

zweierweg 22
97074 würzburg

fon: +49 931 2876247
fax: +49 931 2876248

web: www.netz-haut.de <http://www.netz-haut.de/>

registriergericht: amtsgericht würzburg, hra 5054

Attachment: s_seitz.vcf
Description: Vcard

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>