Thursday, June 19, 2008


Install SNV91 DomU at SNV91 Dom0 on boards with integrated NIC RTL8110SC



ASUS boards P5K Premium/WIFI, P5K3 Deluxe, P5E3 Deluxe have as second
NIC integrated on the board RTL8110SC.
RTL8110SC (vs Marvell 88E8056 first NIC integrated on the board) is GLDv3 NIC and may be used for Solaris xVM PV and HVM DomUs creation at Solaris (Nevada) Dom0.
However, straight forward attempt to install SNV DomU in DHCP mode
will time out at DHCP request phase due to failure checksum offloading on Realtek 8110SC.
Core idea of network troubleshooting and modification of /etc/system
in SNV DomU were suggested by Jurgen Keil in the thread at xen-discuss
forum@opensolaris.org. Utility "tcpdump -s 1600 -vv" running on another host of the LAN (where SNV Dom0 is located) during SNV DomU DHCP request will register bad UDP checksums:-


08:38:01.361741 arp who-has 192.168.1.1 tell 192.168.1.39
08:38:02.220179 IP (tos 0x0, ttl 255, id 19410, offset 0, flags [DF], proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps: [bad udp cksum 19ae!] BOOTP/DHCP, Request from 00:16:3e:29:b2:18 (oui Unknown), length: 300, xid:0x872bd9e3, secs:124, flags: [none] (0x0000)
Client Ethernet Address: 00:16:3e:29:b2:18 (oui Unknown)
Vendor-rfc1048:
DHCP:DISCOVER
MSZ:1472
LT:4294967295
VC:"SUNW.i86xpv"
PR:SM+DG+NS+HN+DN+BR+VO
08:38:18.970232 arp who-has 192.168.1.40 (Broadcast) tell 192.168.1.40
08:39:05.790989 IP (tos 0x0, ttl 255, id 19411, offset 0, flags [DF], proto: UDP (17), length: 328) 0.0.0.0.bootpc > 255.255.255.255.bootps: [bad udp cksum daad!] BOOTP/DHCP, Request from 00:16:3e:29:b2:18 (oui Unknown), length: 300, xid:0x872bd9e3, secs:187, flags: [none] (0x0000)
Client Ethernet Address: 00:16:3e:29:b2:18 (oui Unknown)
Vendor-rfc1048:
DHCP:DISCOVER
MSZ:1472
LT:4294967295
VC:"SUNW.i86xpv"
PR:SM+DG+NS+HN+DN+BR+VO


Due to DHCP request is a broadcast request same thing happens
on DSL Modem, acting as a DHCP bridge for the LAN.
DSL Modem just discards every DHCP request sent by xnf0 (DomU)
via rge0 interface (Dom0). Switching rge0 to rtls0 fixes
problem immediately. Box has a third NIC RTL8139 plugged into
PCI slot.
Procedure following bellow is a workaround for mentioned issue for Solaris rge0 Ethernet interface.
1. Install DomU with static IP address
2. After reboot modify /etc/system and add the line :
set xnf:xnf_cksum_offload = 0
3. Run sys-unconfig


This program will unconfigure your system. It will cause it
to revert to a "blank" system - it will not have a name or know
about other systems or networks.
This program will also halt the system.
Do you want to continue (y/n) ? y
Then the system will shutdown and when you reboot,
it asks all new server questions out of the box:
What your server name is ?
Are you on the network ?
Ask for DHCP or IP ?
What is your netmask ?
Do you have a defaultrouter ?
Root passwd?
Finally it run the kdmconfig and tries to configure
your X-display adapter and monitor size,mouse ps/2 USB or serial


4. During boot up specify request IP address via DHCP
and this time DHCP request won't be timed out.
Created SNV DomU may communicate with internet
with no problems.