Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xen_read_console doesn't show any output?



On Sun, 9 May 2004 12:00:54 +0200
"Christian Limpach" <chris%pin.lu@localhost> wrote:

> You have to newfs the partition and then extract at least base.tgz and
> etc.tgz to it.  You'll also have to configure a few things like:
> (it's easiest to mount wd0i and then chroot to it to make the changes)
> - /etc/fstab
>   inside the new domain wd0i appears as wd0 with partitions wd0a and wd0d,
>   you'll want to use wd0a as root:
>   /dev/wd0a / ffs rw 1 1
> - /etc/rc.conf
>   you need to configure the network:
>     rc_configured=YES
>     ifconfig_xennet0="inet 1.2.3.4"
>     defaultroute="5.6.7.8"
>   and enable sshd:
>     sshd=YES
> - /etc/ssh/sshd_conf
>   you probably want to enable PermitRootLogin
> - set a password or install a ssh authorized_key in /root/.ssh
> 
> Hope I didn't forget anything...

Ok, done.

> Did you add the 169.254.1.0 alias to domain0's xennet0 interface?
> It is needed for xen_read_console and you should run xen_read_console
> in the background or in another window before starting the domain as
> it will only show new output.  What gets output when you run
> xc_dom_create.py and what options are you using?

In domain0 I do:

[juan@Nocturno][~]> sudo xc_dom_create.py -f netbsd -D 'vmid=1;ip=172.20.4.19'
-m 32 -k /grub/xen12netbsd.gz
 Parsing config file '/usr/pkg/etc/xc12/netbsd'
/usr/pkg/lib/python2.3/site-packages/XenoUtil.py:115: FutureWarning: x<<y losing
bits or changing sign will return a long in Python 
((string.atoi(l[0])<<24) | (string.atoi(l[1])<<16) |
VM image:"/grub/xen12netbsd.gz"
VM ramdisk: ""
VM memory (MB): "32"
VM IP address(es): "172.20.4.19; 169.254.1.1"
VM block device(s): "phy:wd0i,sda1,w"
VM cmdline: "ip=172.20.4.19:169.254.1.0:192.168.1.1:255.255.255.0::eth0:off
nfsroot=169.254.1.0:/netboot/netbsd bootdev=wd0a"
 VM started in domain 5
[juan@Nocturno][~]>

And now xen_read_console shows the output, but doesn't seem to boot fine:

[juan@Nocturno][~]> sudo xen_read_console
[5] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
[5]     The NetBSD Foundation, Inc.  All rights reserved.
[5] Copyright (c) 1982, 1986, 1989, 1991, 1993
[5]     The Regents of the University of California.  All rights reserved.
[5] 
[5] NetBSD 2.0E (Nocturno-Xen) #0: Sun May  9 07:21:52 CEST 2004
[5] juan@Nocturno:/usr/src-HEAD/sys/arch/xen/compile/Nocturno-Xen
[5] total memory = 30184 KB
[5] avail memory = 29468 KB
[5] mainbus0 (root)
[5] cpu0 at mainbus0: (uniprocessor)
[5] cpu0: AMD Athlon XP 2400+ (686-class), 2104.84 MHz, id 0x681
[5] cpu0: features c3c3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
[5] cpu0: features c3c3fbff<PGE,MCA,CMOV,PAT,PSE36,MMXX,MMX>
[5] cpu0: features c3c3fbff<FXSR,SSE,3DNOW2,3DNOW>
[5] cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
[5] cpu0: L2 cache 256 KB 64b/line 16-way
[5] cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries
fullyassociative[5] cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries
4-way[5] cpu0: 8 page colors
[5] hypervisor0 at mainbus0
[5] xenkbc at hypervisor0 not configured
[5] vga_xen at hypervisor0 not configured
[5] xencons0 at hypervisor0: Xen Virtual Console Driver
[5] xencons0: console major 143, unit 0
[5] xennet0 at hypervisor0: Xen Virtual Network Interface
[5] xennet0: MAC address aa:00:00:a1:66:71 
[5] sd0 at hypervisor0: Xen Virtual Block Device 6000 MB
[5] npx0 at hypervisor0: using exception 16
[5] boot device:<unknown>

wd0i contains in rc.conf:

rc_configured=yes
wscons=yes
ifconfig_xennet0="169.254.1.1"
defaultroute="192.168.1.1" # This is my "real" gateway.
sshd=yes # root login was enabled too.
inetd=no

and /etc/fstab:

/dev/wd0a       /       ffs     rw,softdep      1       1

ifconfig -a in domain0:

[juan@Nocturno][~]> ifconfig -a
xennet0: flags=63<UP,BROADCAST,NOTRAILERS,RUNNING> mtu 1500
        address: aa:04:75:ca:25:03
        inet 192.168.1.3 netmask 0xffffff00 broadcast 192.168.1.255
        inet alias 169.254.1.0 netmask 0xffff0000 broadcast 169.254.255.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 33196
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
[juan@Nocturno][~]>

All the sets were extracted into wd0i. Can you please tell me what I'm missing
there?

Cheers.

-- 
        Juan RP <juan%xtraeme.unixbsd.org@localhost>

Attachment: pgptnMsYON5yx.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index