WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] NetBSD on Xen

Subject: 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
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:subject :cc:in-reply-to:mime-version:content-type:content-transfer-encoding :content-disposition:references; bh=lzJHlsANiHUm4tVQ5QhYCbc1shCyP38RVtVCa5GEH/U=; b=EYQ5CIRixewYpNC9OgqHaexdtI18CfnNBpcEBtl/nlc+xWsecqHwy25vXpyDADywO9 SL+wDMR1DtLMK0SabB47W0fuyruQ+GecqsjSSRiKsPxpIZjplL3oOcK2nNELpuW2XXx+ p/pJXe/aj7FE7O5nzhsuItqsDoNjSa9g5ti3E=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <489336EE.8050204@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <ec6593600808010841y421ed1ep4c2effc89f2581a2@xxxxxxxxxxxxxx> <20fe3cf60808010852hfebaec7x5b7d9bf2d936371b@xxxxxxxxxxxxxx> <489336EE.8050204@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>