sharing PCI devices
Hello List
With the help from Mark Williamson in the List here i can now start some propper virtual OS in XEN.
My Todolist is not finished, because i have on my Wish list an Emulator there i can share some PCI devices with them. In the Moment i run XEN inside VMware and i want to share the USB Controller simple for testing. After them i will install one Debian on a real Hardware there i need to share one ISDN Controller ( Fritz Card DSL from AVM ) and one DVB Card on virtual Computers.
My Problem now, i didn't have really understand how i have write it correctly in the Configfile so that Guest Systems have access to the PCI Card
here the simple Config file
kernel = "/boot/vmlinuz-2.6.10-xen0"
memory = 64
name = "sarge-test1"
nics = 1
pci = ['x',0000:00:07.2]
disk = ['file:/root/sarge,sda1,w']
root = "/dev/sda1 ro"
Server:~# lspci 0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01) 0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 08) 0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) 0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB 0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 08) 0000:00:0f.0 VGA compatible controller: VMWare Inc [VMWare SVGA II] PCI Display Adapter 0000:00:10.0 SCSI storage controller: BusLogic BT-946C (BA80C30) [MultiMaster 10] (rev 01) 0000:00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10) Server:~#
Maybe somone can help me again, regards Darko
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 2 lines
My Todolist is not finished, because i have on my Wish list an Emulator there i can share some PCI devices with them.
What do you mean by "share"?
You can share e.g. a network card using the Xen virtual network interface, a disk driver using the virtual block interface.
In the unstable tree there's some support for giving domUs control of individual USB ports (like doing USB passthrough in VMWare), although this only works for Linux 2.4 at the moment.
Note that you can't have two domains controlling a PCI card directly - this will only end in tears. You have to go through one of the virtual drivers.
Quoted 6 lines
In the Moment i run XEN
inside VMware and i want to share the USB Controller simple for testing.After them i will install one Debian on a real Hardware there i need to share one ISDN Controller ( Fritz Card DSL from AVM ) and one DVB Card on virtual Computers.
You can presumably share access to the ISDN controller using virtual network devices and NAT.
For sharing the DVB card, you'd need to find some sort of e.g. network based solution. There must be some sort of daemon for streaming video between computers that you can use for this. Just treat it like the VMs were separate machines.
Quoted 11 lines
My Problem now, i didn't have really understand how i have write it correctly in the Configfile so that Guest Systems have access to the PCI Card
here the simple Config file
kernel = "
/boot/vmlinuz-2.6.10-xen0"
memory = 64
name = "sarge-test1"
nics = 1
pci = ['x',0000:00:07.2]
I think the correct syntax is:
pci = [ '0x00,0x07,0x02' ]
Note that you _have_ to hide this device from dom0 using the physdev_dom0_hide command line option to Xen (or omit the driver for the device from dom0's config). Otherwise, dom0 will try to take control of it. This is important. Allowing two domains to see a PCI device simultaneously can lead to all sorts of bad behaviour.
IIRC, the syntax for this is:
physdev_dom0_hide=(00,07.2)
but to verify it's worked, you should look for something like "hidden device (00,07.2) from domain 0". If that's not there then it didn't work!
Quoted 1 line
Maybe somone can help me again, regards Darko
HTH,
Mark
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 10 lines · Darko Hojnik
Hello List
With the help from Mark Williamson in the List here i can now start some propper virtual OS in XEN.
My Todolist is not finished, because i have on my Wish list an Emulator there i can share some PCI devices with them. In the Moment i run XEN inside VMware and i want to share the USB Controller simple for testing. After them i will install one Debian on a real Hardware there i need to share one ISDN Controller ( Fritz Card DSL from AVM ) and one DVB Card on virtual Computers.
IIRC the bridging module is only for ethernet, so you will either have to find a way to make your ISDN/DSL card appear as an ethernet device (if it isn't already - I don't have dsl), or switch over to routing. I believe there was a patch floating out there that converted ppp/dialup connections to ethernet so I believe it can be done, but I'm not sure if the patch still works or can be adapted to your needs. Check out lartc.org for the patch - maybe?
Sharing the dvb card ... can it be done?
B.
Quoted 34 lines
My Problem now, i didn't have really understand how i have write it correctly in the Configfile so that Guest Systems have access to the PCI Card
here the simple Config file
kernel = "
/boot/vmlinuz-2.6.10-xen0"
memory = 64
name = "sarge-test1"
nics = 1
pci = ['x',0000:00:07.2]
disk = ['file:/root/sarge,sda1,w']
root = "/dev/sda1ro"Server:~# lspci 0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01) 0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 08) 0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) 0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB 0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 08) 0000:00:0f.0 VGA compatible controller: VMWare Inc [VMWare SVGA II] PCI Display Adapter 0000:00:10.0 SCSI storage controller: BusLogic BT-946C (BA80C30) [MultiMaster 10] (rev 01) 0000:00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10) Server:~#Maybe somone can help me again, regards Darko
Quoted 10 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 3 lines
IIRC the bridging module is only for ethernet, so you will either have to find a way to make your ISDN/DSL card appear as an ethernet device (if it isn't already - I don't have dsl), or switch over to routing.
Using routing is probably best IMO. Didn't some configuration files for routed configurations get checked in recently?
Cheers,
Mark
Quoted 54 lines
I
believe there was a patch floating out there that converted ppp/dialup connections to ethernet so I believe it can be done, but I'm not sure if the patch still works or can be adapted to your needs. Check out lartc.org for the patch - maybe?Sharing the dvb card ... can it be done?
B.
Quoted 34 lines
My Problem now, i didn't have really understand how i have write it correctly in the Configfile so that Guest Systems have access to the PCI Card
here the simple Config file
kernel = "
/boot/vmlinuz-2.6.10-xen0"
memory = 64
name = "sarge-test1"
nics = 1
pci = ['x',0000:00:07.2]
disk = ['file:/root/sarge,sda1,w']
root = "/dev/sda1ro"Server:~# lspci 0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01) 0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 08) 0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) 0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB 0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 08) 0000:00:0f.0 VGA compatible controller: VMWare Inc [VMWare SVGA II] PCI Display Adapter 0000:00:10.0 SCSI storage controller: BusLogic BT-946C (BA80C30) [MultiMaster 10] (rev 01) 0000:00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10) Server:~#Maybe somone can help me again, regards Darko
Quoted 9 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
Quoted 9 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 8 lines
Quoted 4 lines
IIRC the bridging module is only for ethernet, so you will either have to find a way to make your ISDN/DSL card appear as an ethernet device (if it isn't already - I don't have dsl), or switch over to routing.
Using routing is probably best IMO. Didn't some configuration files for routed configurations get checked in recently?
They did: these are:
network-route
vif-route
under /etc/xen/scripts for basic routing
network-nat
vif-nat
for NAT
remember to modify /etc/xen/xend-config.sxp.
Cheers
Gregor
Quoted 73 lines
Quoted 54 lines
I
believe there was a patch floating out there that converted ppp/dialup connections to ethernet so I believe it can be done, but I'm not sure if the patch still works or can be adapted to your needs. Check out lartc.org for the patch - maybe?Sharing the dvb card ... can it be done?
B.
Quoted 34 lines
My Problem now, i didn't have really understand how i have write it correctly in the Configfile so that Guest Systems have access to the PCI Card
here the simple Config file
kernel = "
/boot/vmlinuz-2.6.10-xen0"
memory = 64
name = "sarge-test1"
nics = 1
pci = ['x',0000:00:07.2]
disk = ['file:/root/sarge,sda1,w']
root = "/dev/sda1ro"Server:~# lspci 0000:00:00.0 Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01) 0000:00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 08) 0000:00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01) 0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB 0000:00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 08) 0000:00:0f.0 VGA compatible controller: VMWare Inc [VMWare SVGA II] PCI Display Adapter 0000:00:10.0 SCSI storage controller: BusLogic BT-946C (BA80C30) [MultiMaster 10] (rev 01) 0000:00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10) Server:~#Maybe somone can help me again, regards Darko
Quoted 9 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-develQuoted 9 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel
Signature · 8 lines
Quidquid latine dictum sit, altum viditur --- Anon ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Mark Williamson wrote:
I think the correct syntax is:
pci = [ '0x00,0x07,0x02' ]
This doesn't work but i experimented based on this Idea with other syntaxes and the right syntax is "pci = ['00,07,02']" thank you again :) .
so here my Configfile:
kernel = "/boot/vmlinuz-2.6.10-xen0"
memory = 64
name = "sarge-test"
nics = 1
disk = ['file:/root/sarge,sda1,w']
root = "/dev/sda1 ro"
physdev_dom0_hide=(00,07,2)
pci = ['00,07,02']
In the Test machine maybe i have accsess to the Controller
test:~# lspci 0000:00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB test:~#
I didn´t try it really because in the moment anything is loading automaticly some Modules on the Host within the USB Modules too. I do not know what for an fuc.... Program is doing that. First i tryed these Modules to add in /etc/hotplug/blacklist and after them, it doesn´t work, i have removed hotplug. The File /etc/modules are controlled too, but there are still loading the USB Modules again, grrrrr :)
If that realy works so here is my Goal
I want to install one System there only Job is it to be a Host, harded with the Greysecurity Patch and other Stoff. One Guest have directly access to the ISDN/DSL Controller and will be the Router, Firewall and Gateway for the Network. Another Guest get access to the On board ATI 9200 and the ATI Soundcard to be a Desktop ( sometimes i get guests to play Americas Army in a LAN :) ). And the Rest are normal Guests, one NFS,SMB and DHCP Server, and one is a LAMP System and for some other Services.
Now i have installed VMware, i have installed X to use it and the Router is the Host too, because i don´t get access to the ISDN Controller.with VMware Maybe with XEN it will be more saver and stabler hopefully too
really thank you Guys :)
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click