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] Xen 3.1, Fedora 8 and PCI passthrough

To: Kenneth Lundström <kenneth.lundstrom@xxxxxxxxx>
Subject: Re: [Xen-users] Xen 3.1, Fedora 8 and PCI passthrough
From: Stephan Seitz <s.seitz@xxxxxxxxxxxx>
Date: Fri, 22 Feb 2008 22:08:16 +0100
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 22 Feb 2008 13:09:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47BF3397.6030005@xxxxxxxxx>
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: <47BEF2C6.3000808@xxxxxxxxx> <47BF21F5.3090102@xxxxxxxxxxxx> <47BF3397.6030005@xxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.6 (X11/20071022)


 > 2nd. add a line to your PV domU config file:
 > pci = [ '04:00.0' ]

But where do I find this domU config file. Only file I can get is the XML config file when doing the virsh dumpxml. In every documentation it says they are in /etc/xen/vm but I have no vm directory.

I don't know which documentation you've read, but these doc's might be read
as there should be a 'vm' file inside /etc/xen.

a minimal example file could be:

###

#kernel = '/path/to/your/domU_kernel'
kernel = '/boot/vmlinuz-2.6.18.8-xen'

#ramdisk = '/path/to/your/domU_initrd'
ramdisk = '/boot/initrd.img-2.6.18.8-xen'

#root = '/path/to/root_device/as_seen_from_domU additional_kernel_boot_params'
root = '/dev/xvda2 ro'

#disk = [ 'file:/path/to/an/example/domU_imagefile.img,device,accessmode', 'phy:/example/lv_or_partition,device,accessmode', '...' ]
disk = [ 'phy:/dev/vg0/vm-swap,xvda1,w', 'phy:/dev/vg0/vm-disk,xvda2,w' ]

#name = 'hostname'
name = 'vm'

#vif = [ 'mac=SO:ME:_M:AC:AD:DR,bridge=bridgename,ip=some.ip.add.ress', '...' ]
vif = [ 'max=00:16:3e:eb:b7:d1,bridge=eth0' ]

#pci = [ 'xx:xx.x', '...' ] # pci passthrough
#pci = [ '04:00.0' ]

on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'

###

You can start this domU by using the filename. For this example:

xm create vm



I don't know the favorite way on fedora, but I like xen-tools [1] to create a 
domU
including this config file.

Hope this helps,

Stephan



[1] http://www.xen-tools.org/




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