Hello everyone, I´m trying to attach a NIC to a Domu, I have the following setup: Fedora 8, updated with yum, Xen 3.1 installed via yum installed CentOS on one DOmU I have hidden the NIC with this text in modprobe.conf: # hide (0000:04:00.0) options pciback hide=(04:00.0) install via-rhine /sbin/modprobe pciback ; /sbin/modprobe --first-time --ignore How do I attach the NIC to a DomU? I have been trying now for maybe a couple of days riding anything I could find about this. I can´t find any config files to edit, I did a virsh dumpxml but could not find an example of what to write into the XML-file. All I found was to convert the XML file to a plain file, but no instructions howto to do that. I´m grateful of any ideas you might have. Kenneth Lundström _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello everyone, I´m trying to attach a NIC to a Domu, I have the following setup: Fedora 8, updated with yum, Xen 3.1 installed via yum installed CentOS on one DOmU I have hidden the NIC with this text in modprobe.conf: # hide (0000:04:00.0) options pciback hide=(04:00.0) install via-rhine /sbin/modprobe pciback ; /sbin/modprobe --first-time --ignore How do I attach the NIC to a DomU? I have been trying now for maybe a couple of days trying anything I could find on the net about this. I can´t find any config files to edit, I did a virsh dumpxml but could not find an example of what to write into the XML-file. All I found was to convert the XML file to a plain file, but no instructions howto to do that. I´m grateful of any ideas you might have. Kenneth Lundström _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kenneth Lundström schrieb:> Hello everyone, > > I´m trying to attach a NIC to a Domu, I have the following setup: > > Fedora 8, updated with yum, > Xen 3.1 installed via yum > installed CentOS on one DOmU > > I have hidden the NIC with this text in modprobe.conf: > # hide (0000:04:00.0) > options pciback hide=(04:00.0) > install via-rhine /sbin/modprobe pciback ; /sbin/modprobe --first-time > --ignore > > How do I attach the NIC to a DomU?1st. take a look in your /var/log/syslog, dmesg, /var/log/messages ... (sorry, currently don''t know where exactly this shows up) there should be a line containing "seizing" (...device). 2nd. add a line to your PV domU config file: pci = [ ''04:00.0'' ] after starting the domU, you should have this pci device available.> I have been trying now for maybe a couple of days trying anything I > could find on the net about this. > > I can´t find any config files to edit, I did a virsh dumpxml but could > not find an example of what to write into the XML-file. All I found was > to convert the XML file to a plain file, but no instructions howto to do > that. > > I´m grateful of any ideas you might have. > > > > Kenneth Lundström > > > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kenneth Lundström
2008-Feb-22 20:41 UTC
Re: [Xen-users] Xen 3.1, Fedora 8 and PCI passthrough
> 1st. take a look in your /var/log/syslog, dmesg, /var/log/messages ...> (sorry, currently don''t know where exactly this shows up) > there should be a line containing "seizing" (...device). Can´t check right now, will check later but if I remember right there is a line like that. > 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. Kenneth Lundström _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> > > 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/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Kenneth Lundström
2008-Feb-23 01:08 UTC
Re: [Xen-users] Xen 3.1, Fedora 8 and PCI passthrough
> I don''t know the favorite way on fedora, but I like xen-tools [1] tocreate a domU including this config file. I think I finally start to understand the problem I have. I have used virt-install and virt-manager to create new domU:s, that way I have newer needed to write a config file. The program has just asked some questions and then created the new DomU. No need for a config file. Is there a way to find out what config file would ha looked like if I would ha used that instead of the program? Only config file I could get my hands on is in XML format. Kenneth Lundström _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hi, On Fri, Feb 22, 2008 at 8:08 PM, Kenneth Lundström < kenneth.lundstrom@nudata.fi> wrote:> > I don''t know the favorite way on fedora, but I like xen-tools [1] to > create a domU including this config file. > > I think I finally start to understand the problem I have. I have used > virt-install and virt-manager to create new domU:s, that way I have > newer needed to write a config file. The program has just asked some > questions and then created the new DomU. No need for a config file. > > Is there a way to find out what config file would ha looked like if I > would ha used that instead of the program? > > Only config file I could get my hands on is in XML format. > >The configuration in both python and SXP format is covered in the xen user manual [0]. Fedora still does make a config file, I don''t have a system on hand to check the location of it. According to this post [1] there are in /var/lib/xend/domains [0] http://www.cl.cam.ac.uk/research/srg/netos/xen/readmes/user/user.html#SECTION03230000000000000000 [1] http://forums.fedoraforum.org/showthread.php?t=179944 Best Regards, Todd> > Kenneth Lundström > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users