Phil Winterfield (winterfi)
2009-Sep-24 18:38 UTC
[Xen-devel] mkinitrd fails to include ''pciback'' module on openSUSE 11.1
I have installed openSUSE 11.1 w/ xen and then updated it to latest xen-3.4-testing. It boots fine and is running linux-2.6.27-9 OK, except that pci passthrough does not work, presumably because the ''pciback'' module was not included in the initrd-2.6.27.7-9-xen image. To correct this I did the following steps: In /etc/sysconfig/kernel I have changed this line to now include the pciback module: INITRD_MODULES="pciback ahci processor thermal fan jbd ext3 edd" I recompile mkinitrd: greencity01:/home # mkinitrd Kernel image: /boot/vmlinuz-2.6.27.7-9-xen Initrd image: /boot/initrd-2.6.27.7-9-xen Root device: /dev/disk/by-id/ata-ST31000528AS_9VP009RT-part5 (/dev/sda5) (mounted on / as ext3) Resume device: /dev/disk/by-id/ata-ST31000528AS_9VP009RT-part3 (/dev/sda3) Kernel Modules: xenbus_be pciback dock scsi_mod libata ahci hwmon thermal_sys processor thermal fan jbd mbcache ext3 edd xennet cdrom xenblk crc-t10dif sd_mod usbcore ohci-hcd uhci-hcd ehci-hcd ff-memless hid usbhid Features: block usb resume.userspace resume.kernel Bootsplash: No bootsplash for kernel flavor xen 22687 blocks Everything looks fine: greencity01:/home # ls -l /boot/initrd-2.6.27.7-9-xen -rw-r--r-- 1 root root 5634405 Sep 24 11:20 /boot/initrd-2.6.27.7-9-xen Except that when I reboot, no pci back module: greencity01:/home # lsmod | grep pciback greencity01:/home # Anyone have any ideas on how to correct this? Thanks, Phil _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jan Beulich
2009-Sep-25 08:14 UTC
Re: [Xen-devel] mkinitrd fails to include ''pciback'' module on openSUSE 11.1
>>> "Phil Winterfield (winterfi)" <winterfi@cisco.com> 24.09.09 20:38 >>> >Except that when I reboot, no pci back module: > >greencity01:/home # lsmod | grep pcibackAnd there are no respective messages in /var/log/boot.msg? Otoh I can''t see why you need this done from the initrd in the first place... Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Phil Winterfield (winterfi)
2009-Sep-25 16:38 UTC
RE: [Xen-devel] mkinitrd fails to include ''pciback'' module on openSUSE 11.1
The solution, for those who need it, is this: In /boot/grub/menu.lst: title Xen -- openSUSE 11.1 - 2.6.27.7-9 root (hd0,4) kernel /boot/xen.gz loglvl=all guest_loglvl=all vtd=1 iommu=1 module /boot/vmlinuz-2.6.27.7-9-xen root=/dev/disk/by-id/ata-ST31000528AS_9VP009RT-part5 resume=/dev/disk/by-id/ata-ST31000528AS_9VP009RT-part3 splash=silent showopts vga=0x31d apic=debug maxcpus=8, pciback.hide=(0000:03:00.0)(0000:03:00.1) module /boot/initrd-2.6.27.7-9-xen In /etc/init.d/boot.local: modprobe pciback hide=''(03:00.0)(03:01.0)'' echo -n 0000:03:00.0 > sys/bus/pci/drivers/pciback/permissive echo -n 0000:03:01.0 > sys/bus/pci/drivers/pciback/permissive It is important to note that you now need the ''0000:'' prefix to all of the pci device addresses used for grub in openSUSE. Then the usual entry in your domain config file: pci = [ ''03:00.0'', ''03:00.1'' ] Cheers, Phil> -----Original Message----- > From: Jan Beulich [mailto:JBeulich@novell.com] > Sent: Friday, September 25, 2009 1:15 AM > To: Phil Winterfield (winterfi) > Cc: xen-devel@lists.xensource.com;xen-users-request@lists.xensource.com> Subject: Re: [Xen-devel] mkinitrd fails to include ''pciback'' module on > openSUSE 11.1 > > >>> "Phil Winterfield (winterfi)" <winterfi@cisco.com> 24.09.09 20:38 >>> > >Except that when I reboot, no pci back module: > > > >greencity01:/home # lsmod | grep pciback > > And there are no respective messages in /var/log/boot.msg? > > Otoh I can''t see why you need this done from the initrd in the first > place... > > Jan_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel