Subject: console problem
To: None <port-xen@netbsd.org>
From: Luis Furquim <luisfurquim@gmail.com>
List: port-xen
Date: 12/22/2007 18:12:24
Dear Sirs:
I am developing a FUSE based filesystem in Linux. I received
a patch from Antti Kantee porting it to NetBSD. Now, I want
to support this platform.
So, I tried to install NetBSD 3.1 in a Xen 3.1 HVM running
over Ubuntu Gutsy X86_64. The NetBSD installer fails during
kernel boot because it can't find /dev/console.
I googled around and couldn't find anything to solve this.
Below is my configuration file.
Thank you
Best Regards
Luis Otavio
---
# -*- mode: python; -*-
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
# Python configuration setup for 'xm create'.
# This script sets the parameters used when a domain is created using
'xm create'.
# You use a separate script for each domain you want to create, or
# you can set the parameters for the domain on the xm command line.
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
import os, re
arch =3D os.uname()[4]
if re.search('64', arch):
arch_libdir =3D 'lib64'
else:
arch_libdir =3D 'lib'
#--------------------------------------------------------------------------=
--
# Kernel image file.
kernel =3D "/usr/lib/xen-ioemu-3.1/boot/hvmloader"
# The domain build function. HVM domain uses 'hvm'.
builder=3D'hvm'
# Initial memory allocation (in megabytes) for the new domain.
memory =3D 512
shadow_memory =3D 16
# A name for your domain. All domains must have different names.
name =3D "netbsd"
#--------------------------------------------------------------------------=
---
# the number of cpus guest platform has, default=3D1
vcpus=3D1
# enable/disable HVM guest PAE, default=3D0 (disabled)
#pae=3D0
# enable/disable HVM guest ACPI, default=3D0 (disabled)
#acpi=3D1
# enable/disable HVM guest APIC, default=3D0 (disabled)
#apic=3D1
# Optionally define mac and/or bridge for the network interfaces.
vif =3D [ 'type=3Dioemu, mac=3D32:f4:00:e2:00:27, bridge=3Dxenbr0' ]
#--------------------------------------------------------------------------=
--
# Define the disk devices you want the domain to have access to, and
# what you want them accessible as.
# Each disk entry is of the form phy:UNAME,DEV,MODE
# where UNAME is the device, DEV is the device name the domain will see,
# and MODE is r for read-only, w for read-write.
disk =3D [ 'file:/data3/xen/disks/netbsd.img,ioemu:sda,w',
'file:/data3/down/netbsd-amd64cd-3.1.iso,sdc:cdrom,r' ]
root=3D'/dev/cd0a'
on_poweroff =3D 'destroy'
on_reboot =3D 'restart'
on_crash =3D 'destroy'
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
# New stuff
device_model =3D '/usr/lib/xen-ioemu-3.1/bin/qemu-dm'
#--------------------------------------------------------------------------=
---
# boot on floppy (a), hard disk (c) or CD-ROM (d)
boot=3D'd'
#--------------------------------------------------------------------------=
---
# write to temporary files instead of disk image files
#snapshot=3D1
#--------------------------------------------------------------------------=
--
# enable SDL library for graphics, default =3D 0
sdl=3D1
#sdl=3D0
#--------------------------------------------------------------------------=
--
# enable VNC library for graphics, default =3D 1
vnc=3D0
#vnc=3D1
#--------------------------------------------------------------------------=
--
# enable spawning vncviewer(only valid when vnc=3D1), default =3D 1
vncviewer=3D0
#--------------------------------------------------------------------------=
--
# no graphics, use serial port
#nographic=3D0
#--------------------------------------------------------------------------=
--
# enable stdvga, default =3D 0 (use cirrus logic device model)
#stdvga=3D1
#--------------------------------------------------------------------------=
---
# serial port re-direct to pty deivce, /dev/pts/n
# then xm console or minicom can connect
serial=3D'pty'
#--------------------------------------------------------------------------=
--
# enable ne2000, default =3D 0(use pcnet)
ne2000=3D0
#ne2000=3D1
--=20
Luis Ot=E1vio de Colla Furquim
N=E3o alimente os pingos
Don't feed the tribbles
http://www.furquim.org/chironfs/