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

[Xen-users] Xen-4.0.1 PCI cannot get nework card to work

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Xen-4.0.1 PCI cannot get nework card to work
From: Jignesh Patel <j4sangoma@xxxxxxxxx>
Date: Wed, 22 Sep 2010 17:21:33 -0500
Delivery-date: Wed, 22 Sep 2010 15:22:58 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=L8GcYDHsncUlgHgxpgggvAWYyvQ6CYY1+KvP+2tPU/Q=; b=HV1DkGVhL/Rcqy2lDCHQxGfwAhLznOhVp0uommpNDIrjrEWvj2Rp2U5OqRp88Xl41R bxISCEej3PhfJwRkk8WeBEsuPOrSMKDPzHVuuj2aZHmwvPgnYAz0BJ07/EqWNycR0f7J JsC2yG0f3RIt1UWpneIbDQr0RFKmDNVPWuiTU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Dode4Xr8GOtu78rEKJaJkROBy6pqpCbf873xr26m2XsQF8zQ8U8cX6jJ8dIPV9rrL8 h/+d91jRoEvbBeGVSkS+YisWMzudQmUCnWCA2EVtM/jd0+oAj8cuUMDRaD05x0IJYSa1 O6q3qRavxW09p1sJNnzxdM9bC+j5uKyBXus0E=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hello,

I need help get working my NIC with Xen domU. 

I can see the NIC card from domU but cannot get it to work. The same network card will work fine on the dom0.

When I unplug and plug the network cable from the NIC, I can see in the system log:


[  151.770678] eth0: link down

 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1

But when I do "/etc/init.d/networking restart", I cannot see DHCP request coming to my router.

The same NIC will work fine on dom0. 

Can some one check my configuration ?

I know that PCI hide works as I can see

# xm pci-list-assignable-devices
0000:08:01.0


-----------dom0------------------------

o# cat menu.lst  | grep -v \#

default         0

timeout         5

color cyan/blue white/blue

title           Xen 4.0-amd64 / Debian GNU/Linux, kernel 2.6.32-5-xen-amd64
root            (hd0,0)
kernel          /boot/xen-4.0-amd64.gz loglvl=all guest_loglvl=all 
module          /boot/vmlinuz-2.6.32-5-xen-amd64 root=UUID=41b96025-ba58-4938-b118-a492542ac786 ro console=tty0  xen-pciback.permissive xen-pciback.hide=(08:01.0)
module          /boot/initrd.img-2.6.32-5-xen-amd64

title           Debian GNU/Linux, kernel 2.6.32-5-xen-amd64
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.32-5-xen-amd64 root=UUID=41b96025-ba58-4938-b118-a492542ac786 ro quiet
initrd          /boot/initrd.img-2.6.32-5-xen-amd64

title           Debian GNU/Linux, kernel 2.6.32-5-xen-amd64 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.32-5-xen-amd64 root=UUID=41b96025-ba58-4938-b118-a492542ac786 ro single
initrd          /boot/initrd.img-2.6.32-5-xen-amd64

title           Debian GNU/Linux, kernel 2.6.26-2-amd64
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-amd64 root=UUID=41b96025-ba58-4938-b118-a492542ac786 ro quiet
initrd          /boot/initrd.img-2.6.26-2-amd64

title           Debian GNU/Linux, kernel 2.6.26-2-amd64 (single-user mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.26-2-amd64 root=UUID=41b96025-ba58-4938-b118-a492542ac786 ro single
initrd          /boot/initrd.img-2.6.26-2-amd64

----------------------------------------------------------------------------------

--------------------------domU config----------------------------------------------
#
# Configuration file for the Xen instance sangomatest, created
# by xen-tools 4.2rc1 on Mon Sep 13 13:13:06 2010.
#

#
#  Kernel + memory size
#
kernel      = '/boot/vmlinuz-2.6.32-5-xen-amd64'
ramdisk     = '/boot/initrd.img-2.6.32-5-xen-amd64'

vcpus       = '1'
memory      = '1024'

#
#  Disk device(s).
#
root        = '/dev/xvda2 ro'
disk        = [
                  'file:/home/xen//domains/sangomatest/disk.img,xvda2,w',
                  'file:/home/xen//domains/sangomatest/swap.img,xvda1,w',
              ]


#
#  Physical volumes
#



#
#  Hostname
#
name        = 'sangomatest'

#
#  Networking
#
dhcp        = 'dhcp'
#vif         = [ 'mac=00:16:3E:C3:C3:95' ]

#
#  Behaviour
#
>
on_reboot   = 'restart'
on_crash    = 'restart'
iommu='soft'
pci=['08:01.0']
swiotlb='force'
-----------------------------------------------------------------------------------------------------------------------------------------------------
---additional info---
 dpkg -l | grep xen
ii  libxenstore3.0                       4.0.1-1                    Xenstore communications library for Xen
ii  linux-headers-2.6.32-5-common-xen    2.6.32-22                  Common header files for Linux 2.6.32-5-xen
ii  linux-headers-2.6.32-5-xen-amd64     2.6.32-22                  Header files for Linux 2.6.32-5-xen-amd64
ii  linux-image-2.6.32-5-xen-amd64       2.6.32-21                  Linux 2.6.32 for 64-bit PCs, Xen dom0 support
ii  xen-hypervisor-4.0-amd64             4.0.1-1                    The Xen Hypervisor on AMD64
ii  xen-linux-system-2.6.32-5-xen-amd64  2.6.32-21                  Xen system with Linux 2.6.32 on 64-bit PCs
ii  xen-shell                            1.8-3                      Console based Xen administration utility
ii  xen-tools                            4.2~rc1-1                  Tools to manage Xen virtual servers
ii  xen-utils-4.0                        4.0.1-1                    XEN administrative tools
ii  xen-utils-common                     4.0.0-1                    XEN administrative tools - common files
ii  xenstore-utils                       4.0.1-1                    Xenstore utilities for Xen


log files
------------------------------------------------------------------
dom0 system log : http://pastebin.com/dm8zah43

dom0 system info + lscpi -v : http://pastebin.com/24DjJczv
Xen  dmesg : http://pastebin.com/bkZSGsv7


--------------------------------------------------------------------------------


Let me know if additional information is needed.

Thank you,

Jignesh
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>