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

Re: [Xen-users] NetBSD on Xen


  • From: "Marco Sinhoreli" <msinhore@xxxxxxxxx>
  • Date: Fri, 1 Aug 2008 18:07:44 -0300
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 01 Aug 2008 14:08:22 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Ggaaf3sQP2JAIAIAHWYZYkEWRAb+5yyIcMV6kAxBRDvh+y9AkQW7ROwgj8fiauF4R0 U5yqvmIgD9gKWrg99LY5EDIfqz+3s/wjAuCVSiZi2/BsJb6dBrlueMjbTjdvr4ceQMdM t/tORmgo+IAB7n3aQy5cnGsZjO9Q5tNHCzYT8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.