Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
problems attempting remote NFS root
Checked out the netbsd-2-0 branch (all files up-to-date according
to CVS), built a kernel using build.sh (see attached patch) on a
NetBSD/i386 1.6W host:
./build.sh -m xen -a i386 \
-M /scratch/netbsd-2-0/xen/obj \
-D /scratch/netbsd-2-0/xen/dest \
-T /scratch/netbsd-2-0/i386 \
-U tools
./build.sh -m xen -a i386 \
-M /scratch/netbsd-2-0/xen/obj \
-D /scratch/netbsd-2-0/xen/dest \
-T /scratch/netbsd-2-0/i386 \
-U kernel=sys/arch/xen/conf/XEN
Booted on a xenolinux host installed from the xen-1.2 demo CD:
# xc_dom_create.py -f netbsd -D
'vmid=31;ip=192.168.1.31;nfsserv=192.168.1.17;nfsroot=/export/xen31' -m
64 -k /boot/netbsd-xen
Parsing config file 'netbsd'
netmask,gateway= 255.255.255.0 192.168.1.42
VM image : "/boot/netbsd-xen"
VM ramdisk : ""
VM memory (MB) : "64"
VM IP address(es) : "192.168.1.31; 169.254.1.31"
VM block device(s) : ""
VM cmdline :
"ip=192.168.1.31:192.168.1.17:192.168.1.42:255.255.255.0::eth0:off
nfsroot=192.168.1.17:/export/xen31 bootdev=xennet0"
VM started in domain 4
[4] NetBSD Xen console attached.
[4] Loaded initial symtab at 0xc03224e0, strtab at 0xc033ebbc, # entries
7233
[4] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
[4] The NetBSD Foundation, Inc. All rights reserved.
[4] Copyright (c) 1982, 1986, 1989, 1991, 1993
[4] The Regents of the University of California. All rights reserved.
[4]
[4] NetBSD 2.0_BETA (XEN) #0: Sat Apr 10 11:54:05 EDT 2004
[4]
user@localhost:/scratch/netbsd-2-0/xen/obj/export/src-2-0/sys/arch/xen/compile/XEN
[4] total memory = 63036 KB
[4] avail memory = 61620 KB
[4] Xen reported: 400.919 MHz processor.
[4] mainbus0 (root)
[4] cpu0 at mainbus0: (uniprocessor)
[4] cpu0: Intel Pentium II (686-class), 126.19 MHz, id 0x652
[4] cpu0: features 183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
[4] cpu0: features 183fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
[4] cpu0: features 183fbff<FXSR>
[4] cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
[4] cpu0: L2 cache 512 KB 32b/line 4-way
[4] cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
[4] cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
[4] cpu0: 32 page colors
[4] xenc0 at mainbus0: Xen Virtual Console Driver
[4] xenc0: console major 143, unit 0
[4] xennet0 at mainbus0: Xen Virtual Network Driver
[4] xennet0: MAC address aa:00:00:c9:24:fd
[4] npx0 at mainbus0: using exception 16
[4] IPsec: Initialized Security Association Processing.
[4] boot device: xennet0
[4] root on xennet0
[4] mountroot: trying nfs...
[4] nfs_boot: trying static
[4] nfs_boot: client_addr=192.168.1.31
[4] nfs_boot: gateway=192.168.1.42
[4] nfs_boot: netmask=255.255.255.0
[4] nfs_boot: server=192.168.1.17
[4] nfs_boot: root=192.168.1.17:/export/xen31
At this point it hangs, I see only one packet arrive at the NFS server:
13:03:22.271279 0:10:5a:15:e4:10 ff:ff:ff:ff:ff:ff 0806 60: arp who-has
192.168.1.31 tell 192.168.1.31
0x0000 0001 0800 0604 0001 0010 5a15 e410 c0a8 ..........Z.....
0x0010 011f 0000 0000 0000 c0a8 011f 0000 0000 ................
0x0020 0000 0000 0000 0000 0000 0000 0000 ..............
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
# xc_dom_control.py vif_stats 4 0
{'tx_bytes': 42L, 'rx_packets': 0L, 'tx_packets': 1L, 'rx_bytes': 0L}
Any hints on what else to look at?
-Neil
Index: build.sh
===================================================================
RCS file: /cvsroot/src/build.sh,v
retrieving revision 1.127
diff -u -r1.127 build.sh
--- build.sh 6 Feb 2004 23:19:30 -0000 1.127
+++ build.sh 10 Apr 2004 16:33:04 -0000
@@ -212,6 +212,15 @@
MACHINE_ARCH=x86_64
;;
+ xen-i386)
+ MACHINE_ARCH=i386
+ makewrappermachine=${MACHINE}
+ MACHINE=xen
+ ;;
+
+ xen) # no default MACHINE_ARCH
+ ;;
+
alpha|i386|sparc|sparc64|vax)
MACHINE_ARCH=${MACHINE}
;;
@@ -262,6 +271,10 @@
arches="sh5eb sh5el"
;;
+ xen)
+ arches="i386"
+ ;;
+
*)
oma="${MACHINE_ARCH}"
getarch
Home |
Main Index |
Thread Index |
Old Index