Subject: Re: xen_read_console doesn't show any output?
To: Juan RP <juan@xtraeme.unixbsd.org>
From: Christian Limpach <chris@pin.lu>
List: port-xen
Date: 05/09/2004 12:00:54
Hi,

On Sun, May 09, 2004 at 08:28:41AM +0200, Juan RP wrote:
> I created an empty partition for NetBSD/Xen (wd0i) ffs, should I use newfs
> there? I'm not really sure about what I should do (I mean, if when a new
> domain is created, you have to install NetBSD or something like this...).

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...

> All steps I made were from:
> http://mail-index.netbsd.org/port-xen/2004/04/27/0012.html
> Same IP, etc.

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?

    christian