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/
Home Products Support Community News


Re: [Xen-users] Opensolaris domU unable to get dhcp lease

To: xen-users@xxxxxxxxxxxxxxxxxxx, Michael Ralston <michael@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] Opensolaris domU unable to get dhcp lease
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Sun, 19 Jul 2009 02:50:56 -0700 (PDT)
Delivery-date: Sun, 19 Jul 2009 02:51:54 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1247997057; bh=ER7mXtxrMzJxVf1gfOqrBfOZC8FzsWT7cxWnbDzIfiU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=F3KIIhe5av2PIAhCd2AY9vnkiB1PGjFtrcn5Y9caFCgKOMceFI0PL2YljmTICO4bpWwCc8uSljBQiCRPgAOki56zFwu9BRxDSan4RFioyJFAWr+/VSv1pMNjmgDOOwTgxf7163YZ4+swKathqGC+xf4Wh17eZVEoYhHpuLQ72mQ=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=IifqNokj4924FbxKndmWGHnxQzfiJyUEHnEKcnBPxWq6OepjrftxhTDkVYR9fD8rFMwLnPEdaD0QBnGcCoKf6p0g/nat9wdNFaWtFqNhmN6Ul8A9DHjcuYJhkj/G/q+T2PkrTL69npgdg711JGME4Z2Sr1IFmHq2GU4fORN8lp4=;
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
Just now after reset ADSL modem i've succeeded with dhcp lease ( just
once with unpatched kernel is enough) :-

To select desktop language, enter a number [default is 6]:
User selected: English
Configuring devices.
Mounting cdroms
Reading ZFS config: done.

opensolaris console login: jack
Sun Microsystems Inc.   SunOS 5.11      snv_111b        November 2008
jack@opensolaris:~$ mkdir .vnc   
jack@opensolaris:~$ cp .Xclients .vnc/stJul 19 02:38:08 opensolaris in.routed[785]: route --> nexthop is not directly connected
jack@opensolaris:~$ pfexec ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
        inet netmask ff000000
xnf0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2
        inet netmask ffffff00 broadcast
        ether 0:16:3e:60:e8:fb
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
        inet6 ::1/128
xnf0: flags=2004841<UP,RUNNING,MULTICAST,DHCP,IPv6> mtu 1500 index 2
        inet6 fe80::216:3eff:fe60:e8fb/10
        ether 0:16:3e:60:e8:fb

Then before click on "REBOOT" button i will  drop to root shell :-

# beadm list
# beadm mount opensolaris /a
# export TERM=vt100
# vi /a/etc/system
set xnf:xnf_cksum_offload = 0
bootadm update-archive -R /a
# /a/usr/bin/shutdown -y -i0 -g0

All set

--- On Sun, 7/19/09, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Subject: Re: [Xen-users] Opensolaris domU unable to get dhcp lease
To: xen-users@xxxxxxxxxxxxxxxxxxx, "Michael Ralston" <michael@xxxxxxxxxxxxx>
Date: Sunday, July 19, 2009, 3:12 AM

It's well known bug - failure checksum offloading at xnf0.
Run tcpdump at any host on the LAN. Due to DHCPDISCOVER is a broadcast request you'll capture wrong udp packages.

Way to fix :-



2009/6/3 PGNet Dev :
> iiuc, i believe that'd be,
> pfexec svcadm disable network/physical:nwam && \
> pfexec svcadm enable  network/physical:default
> pfexec ifconfig xnf0 down
> pfexec ifconfig xnf0 netmask mtu 1492
> pfexec ifconfig xnf0 up
> pfexec route add default
> which i can/do @ installer time to use static IP assignements.  i just
> can't seem to get them to 'stick' or 'be happy' after reboot and xen,
> run-time launch.

Use the same commands with the installed system.

To make the settings permanent you also need:

echo netmask mtu 1492 > /etc/hostname.xnf0
rm /etc/dhcp.xnf0

echo > /etc/defaultrouter

Qoute ends

You also still have to disable checksum offloading at OSOL DomU :-

Add to /etc/system

set xnf:xnf_cksum_offload = 0

and reboot .


P.S. Personally, i was able to path throw initial install and just :-

Add to /etc/system
set xnf:xnf_cksum_offload = 0


--- On Sun, 7/19/09, Michael Ralston <michael@xxxxxxxxxxxxx> wrote:

From: Michael Ralston <michael@xxxxxxxxxxxxx>
Subject: [Xen-users] Opensolaris domU unable to get dhcp lease
To: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Sunday, July 19, 2009, 1:26 AM

I'm running a ubuntu 9.04 64 bit dom0 with kernel and xen
3.4.0. My eth0 is bridged to br0 and to my guest VMs. The dom0 is
running a dhcp server on br0 which is able to provide leases to
physical machines on eth0, and also to a windows xp domU which is
bridged to br0. However my open solaris 2009.6 domU is unable to
obtain a dhcp lease.

On the opensolaris side I can see this:
michael@opensolaris:~$ pfexec ifconfig xnf0 dhcp start
ifconfig: xnf0: wait timed out, operation still pending...

With tcpdump I can see the dhcp request coming in br0, but no dhcp
offer going back out.

In the syslog of my dom0 I can see this when the opensolaris domU
requests a lease:
==> syslog <==
Jul 19 15:20:03 allendale dhcpd: 19 bad udp checksums in 37 packets

This also occurs with xen 3.3.0

Anyone had a similar problem? Any ideas what could be causing this?

-- Michael

Xen-users mailing list

-----Inline Attachment Follows-----

Xen-users mailing list

Xen-users mailing list
<Prev in Thread] Current Thread [Next in Thread>