Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Problem using bouyer-xen2 netbsd as guest domain
I am having a
problem using the netbsd kernel built from the bouyer-xen2 branch (latest as of
yesterday) in an unpriviledged domain. I built the netbsd kernel using the
XEN config and built the sets for the i386 architecture. SInce I am
running linux in domain 0, I created a partition on my disk (/dev/sda3) and
formatted it with the ext2 FS. I mounted the partition and then extracted
the sets I built unto this partition.
After unmounting the
partition from linux, I then created a domain using the following config
script:
kernel =
"/root/xen/netbsd/netbsd-xenU"
memory = 48
name = "netbsd-xen"
nics =
1
ip = "192.168.2.11"
vif = ['mac=00:06:AA:F6:BB:B4']
disk =
[('phy:/dev/sda3,sda1,w')]
root = "/dev/sda1"
The first attempt
stuck at the line "init: copying out path `/sbin/init' 11" so I destroyed it,
re-mounted the partition on linux and created the /dev/console character device
(as suggested in the email today) using the linux mknod command. I then
unmounted and created the domain again. This time I got past the hang and
was able to get into single user mode.
I now want to run
the MAKEDEV script in /dev, add /etc/rc.conf, and other initialization
tasks but my root file system is mounted as read only:
#
mount
root_device on / type ext2fs (read-only, local)
I tried using 'mount
-u -w /' but get the following errors:
# mount -u -w
/
mount: Cannot open `/etc/fstab': No such file or directory
mount_ext2fs:
"root_device" is a relative path.
mount_ext2fs: using "/root_device"
instead.
mount_ext2fs: /root_device on /: No such file or
directory
Any help on how to
change the read-only attribute so I can finish setting up the disk
image?
Thanks in
advance!
Dave
Thompson
Here is the boot
messages:
Loaded initial
symtab at 0xc02fa984, strtab at 0xc0318968, # entries 7609
Copyright (c)
1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982,
1986, 1989, 1991, 1993
The Regents of the University of
California. All rights reserved.
NetBSD 2.99.16 (XEN)
#0: Tue Feb 22 22:35:22 CST 2005
root@dually:/root/netbsd/src/sys/arch/xen/compile/obj/XEN
total
memory = 46796 KB
avail memory = 45620 KB
mainbus0 (root)
cpu0 at
mainbus0: (uniprocessor)
cpu0: Intel Pentium III (686-class), 999.81 MHz, id
0x68a
cpu0: features
383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0:
features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features
383fbff<FXSR,SSE>
cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB
32B/line 4-way
cpu0: L2 cache 256 KB 32B/line 8-way
cpu0: ITLB 32 4 KB
entries 4-way, 2 4 MB entries fully associative
cpu0: DTLB 64 4 KB entries
4-way, 8 4 MB entries 4-way
cpu0: 8 page colors
hypervisor0 at
mainbus0
xencons0 at hypervisor0: Xen Virtual Console Driver
xencons0:
console major 143, unit 0
Initialising Xen virtual ethernet frontend
driver.
npx0 at hypervisor0: using exception 16
xennet0 at hypervisor0:
Xen Virtual Network Interface
xennet0: MAC address
00:06:aa:f6:bb:b4
IPsec: Initialized Security Association Processing.
xbd0
at hypervisor0: Xen Virtual Block Device 4188 MB
boot device: xbd0
root on
xbd0a dumps on xbd0b
mountroot: trying nfs...
mountroot: trying
ext2fs...
root file system type: ext2fs
init: copying out path
`/sbin/init' 11
/etc/rc.conf is not configured. Multiuser boot
aborted.
Enter pathname of shell or RETURN for /bin/sh:
Home |
Main Index |
Thread Index |
Old Index