ia64/xen-unstable

view stubdom/README @ 17588:892ae66ed82f

minios: drop volatile qualifier from some status variables
since we already use memory barriers as approriate to prevent
concurrent access with event handlers.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue May 06 16:35:44 2008 +0100 (2008-05-06)
parents 14b2319d6126
children 6c5b9b355ce8
line source
1 To compile
2 ==========
4 Just run make -j 4, that will download / patch / compile
5 Then make install to install the result.
7 Also, run make and make install in $XEN_ROOT/tools/fs-back
9 General Configuration
10 =====================
12 In your HVM config "hvmconfig",
14 - use /usr/lib/xen/bin/stubdom-dm as dm script
16 device_model = '/usr/lib/xen/bin/stubdom-dm'
18 - comment the disk statement:
20 #disk = [ 'file:/tmp/install.iso,hdc:cdrom,r', 'phy:/dev/sda6,hda,w', 'file:/tmp/test,hdb,r' ]
23 Create /etc/xen/stubdom-hvmconfig (where "hvmconfig" is the name of your HVM
24 guest) with
26 kernel = "/usr/lib/xen/boot/stubdom.gz"
27 vif = [ '', 'ip=10.0.1.1,mac=aa:00:00:12:23:34']
28 disk = [ 'file:/tmp/install.iso,hdc:cdrom,r', 'phy:/dev/sda6,hda,w', 'file:/tmp/test,hdb,r' ]
30 where
31 - the first vif ('') is reserved for VNC (see below)
32 - 'ip=10.0.1.1,mac= etc...' is the same net configuration as in the hvmconfig
33 script,
34 - and disk = is the same block configuration as in the hvmconfig script.
36 Display Configuration
37 =====================
39 There are three posibilities
41 * Using SDL
43 In hvmconfig, disable vnc:
45 vnc = 0
47 In stubdom-hvmconfig, set a vfb:
49 vfb = [ 'type=sdl' ]
51 * Using a VNC server in the stub domain
53 In hvmconfig, set vnclisten to "172.30.206.1" for instance. Do not use a host
54 name as Mini-OS does not have a name resolver. Do not use 127.0.0.1 since then
55 you will not be able to connect to it.
57 vnc = 1
58 vnclisten = "172.30.206.1"
60 In stubdom-hvmconfig, fill the reserved vif with the same IP, for instance:
62 vif = [ 'ip=172.30.206.1', 'ip=10.0.1.1,mac=aa:00:00:12:23:34']
64 * Using a VNC server in dom0
66 In hvmconfig, disable vnc:
68 vnc = 0
70 In stubdom-hvmconfig, set a vfb:
72 vfb = [ 'type=vnc' ]
74 and any other parameter as wished.
76 To run
77 ======
79 mkdir -p /exports/usr/share/qemu
80 ln -s /usr/share/qemu/keymaps /exports/usr/share/qemu
81 mkdir -p /exports/var/lib
82 ln -s /var/lib/xen /exports/var/lib
83 /usr/sbin/fs-backend &
85 xm create hvmconfig