Port-xen archive

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

Re: XEN 3 on NetBSD 4 as Dom0



Hi Sam:

The procedure I used is listed below at the end of this email. I tried it on a Toshiba Tecra M5 laptop with an Intel T7200 processor and ran into APIC issues. Dom0 will not boot. Its might be a newer ACPI hardware issue; not sure. If anyone here can help me get the log files I will post them here. I looked under /var/log/xen and could not find any log entries. I was put on a "db>" prompt but I am not sure how I can export the data.

I am also running NetBSD 4.0 RC2 with Xen 3.03 stuff. Maybe Xen 3.1 might work better. Not sure but will try. Anyone else have any advice?

Good luck.

-Kuruvai

PS: Checkout the mail archives. There are some questions regarding Xen HVM performance. I am not sure if the newer Qemu changes have been incorporated into NetBSD XEN HVM. Take some basic benchmarks with FreeBSD Qemu and keep them for comparison. If someone on the list can provide more insight it would be very helpful for those of us trying the NetBSD/Xen platform out.

....................................................................................................................

Here are the steps I took to get a basic Xen3 /NetBSD 4.0RC2 system working

1. NetBSD RC2 Install
=====================

Install a basic NetBSD 4.0 RC2 install. Do not install the XFree86 sets.
Install everything but that. Also make sure your / partition is about 2GB.
Below is my "df -h"

Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 2.0G 87M 1.8G 4% /
/dev/wd0f 2.0G 8.2M 1.9G 0% /var
/dev/wd0e 96G 341M 91G 0% /usr
/dev/wd0g 9.8G 2.0K 9.4G 0% /home
kernfs 1.0K 1.0K 0B 100% /kern


Boot in to the new install.

Now copy all the kernel stuff from the installation CD into a root
directory (jsu for making things afster later on)

mount_cd9660 /dev/cd0a /mnt
cp -R /mnt/i386/binary/kernel /root
eject cd0

2. Install Software
===================

I had already created binaries for Xorg 7.2 and so I used them to install
it. Once X is installed, I also installed xen 3.0.3 over the network.

setenv PKG_PATH
ftp://ftp.netbsd.org/pub/pkgsrc/packages-2007Q2/NetBSD-4.0/i386/All

pkg_add grub
pkg_add xentools30
pkg_add xenkernel30
pkg_add e2fsprogs

cd /usr/pkg/share/examples/rc.d/
cp * /etc/rc.d

Add the following lines to /etc/rc.conf

nano /etc/rc.conf
xend=YES
xenbackendd=YES
xendomains=YES

3. Install the Kernel
=====================

Backup old kernel

mv /netbsd /netbsd.old

cd /root/kernel

gunzip netbsd-XEN3_DOM0.gz

cp netbsd-XEN3_DOM0 /netbsd

cd /usr/pkg/xen-kernel

gunzip xen.gz

cp xen /

4. Install and Config GRUB
==========================

mkdir /grub

Below is my menu.lst that is stored in /grub


..................................................................

default=0
timeout=10

title XEN3
root (hd0,0)
kernel (hd0,a)/xen dom0_mem=65536
module (hd0,a)/netbsd root=/dev/hda1 ro console=tty0

title NetBSD 4.0
root (hd0,0,a)
kernel /netbsd.old

title NetBSD (BACK)
root (hd0,0,a)
chainloader +1

..................................................................

Then execute the following:

grub-install --no-floppy /dev/rwd0d

grub --nofloppy
> root (hd0,a)
> setup (hd0)
> quit


5. General Configurations
=========================

cd /dev
sh MAKEDEV all
sh MAKEDEV xen

nano /etc/ifconfig.bridge0

create
!brconfig $int add ex0 up

6. Reboot
=========

Now reboot into your xen system. Good Luck!

7. Machines
===========

Consult manuals to create Xen Guest machines.


..............................................................................................................................................................




Home | Main Index | Thread Index | Old Index

AltStyle によって変換されたページ (->オリジナル) /