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] Exclusive allocation of network card

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Exclusive allocation of network card
From: Simon Hobson <linux@xxxxxxxxxxxxxxxx>
Date: Tue, 21 Apr 2009 11:24:45 +0100
Delivery-date: Tue, 21 Apr 2009 06:59:13 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <192744.97022.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <192744.97022.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
At 15:14 +0530 21/4/09, Fasiha Ashraf wrote:
I tried to find it but in vain... kindly send me the link or exact location where it hs been discussed.

Apologies - I stand corrected. It came up very recently, but checking the archives I see it's actually not quite so recent that it's been answered. You can search the archives for pciback like this :
http://lists.xensource.com/archives/cgi-bin/namazu.cgi?query=pciback&submit=Search%21&idxname=xen-users&max=100&result=normal&sort=date%3Alate


It's also in the Xen handbook http://bits.xensource.com/Xen/docs/user.pdf.


In summary - you need to hide the device from your Dom0 by adding pciback.hide to your boot config. This example is from one of my servers where I've hidden an ethenet card and tv tuner :
title           Xen 3.2-1-amd64 / Debian 2.6.18-6-xen-amd64 - Ext Eth hidden
root            (hd0,0)
kernel          /xen-3.2-1-amd64.gz dom0_mem=512M
module /vmlinuz-2.6.18-6-xen-amd64 root=/dev/sda3 ro console=tty0 pciback.hide=(01:07.0)(01:06.0)
module          /initrd.img-2.6.18-6-xen-amd64

Then in your guest config, you specify the device to be made available to the guest :
pci=['01:07.0']

The address to use is found with lspci and MUST be entered in exactly that format - eg 1:7:0 is not OK, 01:07:1 is OK.


--
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users