OpenSSI under Xen HVM

John Hughes <[email protected]> Tue, 20 Oct 2009 12:52:54 +0200
Newsgroups gmane.linux.cluster.ssic.user
Message-ID <[email protected]>
Anyone wanting to play with OpenSSI but doesn't want to dedicate a 
machine or machines, just a little notice that it seesm to work OK under 
Xen HVM (hardware virtual machine, on modern hardware that has HVM 
instructions, e.g. Intel Core or recent AMD's).  To run in PVM mode the 
old OpenSSI/Xen patches would need resurrection.

Example Xen config:

kernel = '/usr/lib/xen-3.2-1/boot/hvmloader'
builder = 'hvm'
memory = '256'
vcpus = 2
device_model='/usr/lib/xen-3.2-1/bin/qemu-dm'

# Disks
disk = [ 
	'file:/home/xen/node1.img,hda,w',
	'phy:/dev/some_vg/openssi.img,hdb,w' ]

# Hostname
name = 'node1'

# Networking, one RTL 8139+ for external network and one for
# interconnect.
# Need specialised bridge script.
vif = ['type=ioemu, bridge=eth0, mac=00:16:3E:52:c1:9B',
	'type=ioemu, bridge=eth1, mac=00:16:3E:52:d1:9B' ]

# Behaviour
boot='c'

# console
sdl=0

vnc=1
vnclisten='0.0.0.0'


Here's my /etc/xen/scripts/openssi-bridge script to set up two bridges:

#!/bin/sh
# network-xen-custom
# Exit if anything goes wrong
set -e

interfaces="calvaedi openssi"
dir=`dirname $0`
script=$dir/network-bridge

for i in ${interfaces}
do
	$script $1 netdev=$i
done





------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference