Port-xen archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Getting started...
* How to start a NetBSD domain
- prepare and export an nfs root filesystem for the domain using the i386
sets
- build a NetBSD/xen kernel
- boot Xen with Xenolinux in DOM0
- start the NetBSD domain from the Xenolinux domain with the
xc_dom_create.py utility and the netbsd config file included with Xen:
xc_dom_create.py -f netbsd -D
'vmid=VM_ID;ip=DOMAIN_IP;nfsserv=SERVER_IP;nfsroot=/path/to/nfsroot' -m
MEM_MB -k /path/to/netbsd
e.g.: xc_dom_create.py -f netbsd -D
'vmid=1;ip=172.20.4.17;nfsserv=172.20.4.13;nfsroot=/netboot/qube' -m 32 -k
/boot/netbsd
- alternatively modify the config file to match your environment
* How to get Xen in the first place:
1st option:
- use the Xen 1.2 DemoCD
2nd option:
- have already a Linux installation
- get the Xen 1.2 sources
- build the Xen kernel (run make in the xen subdir)
- get the linux-2.4.24 kernel source
- mangle the linux kernel source into a xenolinux source (run mkbuildtree
/path/to/linux-2.4.24 in the xenolinux-2.4.24-sparse subdir)
- build xenolinux: (run the following in the xenolinux source tree)
ARCH=xeno make oldconfig
ARCH=xeno make dep
ARCH=xeno make bzImage
=> the kernel will be at arch/xeno/boot/xenolinux.gz
- install Grub and use an entry like this to boot Xen
title Xen / XenoLinux 2.4.24
kernel /boot/image.gz dom0_mem=65536
module /boot/xenolinux.gz root=/dev/hda1 console=tty0 console=xencons0
The 1st option needs an NFS server on a 2nd machine to hold the nfs root
for
the NetBSD domain(s). With the 2nd option you can use the Linux running in
domain0 as NFS server.
Good Luck...
--
Christian Limpach <chris%pin.lu@localhost>
Home |
Main Index |
Thread Index |
Old Index