|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] NetBSD on Xen
Hello,
You need to do the same to install a fully-virt machine like Windows.
This is really simple. Below the steps to install a Netbsd system:
# hg clone http://xenbits.xensource.com/xen-unstable.hg
# cd xen-unstable.hg
# hg clone http://xenbits.xensource.com/linux-2.6.18-xen.hg
# make dist
# make install
# mkinitramfs -o /boot/initrd.img-2.6.18.8-xen 2.6.18.8-xen
# update-grub
# reboot
Create a disk/LV/backend-file to your new BSD system:
# lvcreate -L 10G -n netbsd.dsk yourvg
Download the NetBSD iso:
# wget ftp://iso2.us.netbsd.org/pub/NetBSD/iso/4.0/amd64cd-4.0.iso
Create a configuration file for netbsd virtual machine:
# /etc/xen/netbsd.cfg
name = 'netbsd'
kernel = '/usr/lib/xen/boot/hvmloader'
device_model = '/usr/lib64/xen/bin/qemu-dm'
builder = 'hvm'
memory = 128
vif = [ 'bridge=xenbr0' ]
disk = [ 'phy:/dev/yourvg/netbsd,hda,w',
'file:/home/iso/amd64cd-4.0.iso,hdd:cdrom,r' ]
boot = "dc"
sdl = 0
vnc = 1
vnclisten = "0.0.0.0"
vncconsole = 0
vncpasswd = 'sua_senha_aqui'
stdvga = 0
serial = 'pty'
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
# xm create /etc/xen/netbsd.cfg
Check the VNC port of NetBSD:
# netstat -lnpt | awk '/qemu-dm/{print $4}' | cut -d : -f 2
Connect to VNC to install processes:
# vncviewer dom0_address:590x
Install your BSD system and after fished, change in
/etc/xen/netbsd.cfg the variable boot = "dc" to boot = "c" and start
the virtual machine:
# xm create /etc/xen/netbsd.cfg
--
Marco Sinhoreli
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|
|
|
|
|