ia64/xen-unstable

changeset 17131:2a8eaba24bf0

stubdom: log and documentation fixes

- Document that for vnclisten names and 127.0.0.1 should not be used.
- Documentation cosmetic fixes
- Dump qemu output to the usual logs

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Feb 26 15:11:51 2008 +0000 (2008-02-26)
parents e6c3006fd9be
children f97a0b6152c3 368d3774a4b5
files stubdom/README stubdom/stubdom-dm
line diff
     1.1 --- a/stubdom/README	Tue Feb 26 15:11:07 2008 +0000
     1.2 +++ b/stubdom/README	Tue Feb 26 15:11:51 2008 +0000
     1.3 @@ -16,10 +16,12 @@ ln -s /usr/share/qemu/keymaps /exports/u
     1.4  
     1.5  In your HVM config "hvmconfig",
     1.6  
     1.7 -- use VNC, set vnclisten to "172.30.206.1" for instance:
     1.8 +- use VNC, set vnclisten to "172.30.206.1" for instance.  Do not use a host name
     1.9 +as Mini-OS does not have a name resolver.  Do not use 127.0.0.1 since then you
    1.10 +will not be able to connect to it.
    1.11  
    1.12 -vnc=1 
    1.13 -vnclisten="172.30.206.1" 
    1.14 +vnc = 1
    1.15 +vnclisten = "172.30.206.1"
    1.16  
    1.17  - use /usr/lib/xen/bin/stubdom-dm as dm script
    1.18  
    1.19 @@ -28,14 +30,15 @@ device_model = '/usr/lib/xen/bin/stubdom
    1.20  - comment the disk statement:
    1.21  #disk = [  'file:/tmp/install.iso,hdc:cdrom,r', 'phy:/dev/sda6,hda,w', 'file:/tmp/test,hdb,r' ]
    1.22  
    1.23 -Create /etc/xen/stubdom-hvmconfig ("hvmconfig" must match your main config file)
    1.24 -with
    1.25 +Create /etc/xen/stubdom-hvmconfig (where "hvmconfig" is your HVM guest domain
    1.26 +name) with
    1.27  
    1.28 -kernel="/usr/lib/xen/boot/stubdom.gz"
    1.29 -vif=[ 'ip=172.30.206.1', 'ip=10.0.1.1,mac=aa:00:00:12:23:34']
    1.30 +kernel = "/usr/lib/xen/boot/stubdom.gz"
    1.31 +vif = [ 'ip=172.30.206.1', 'ip=10.0.1.1,mac=aa:00:00:12:23:34']
    1.32  disk = [  'file:/tmp/install.iso,hdc:cdrom,r', 'phy:/dev/sda6,hda,w', 'file:/tmp/test,hdb,r' ]
    1.33  
    1.34  where
    1.35  - 172.30.206.1 is the IP for vnc,
    1.36 -- 'ip=10.0.1.1,mac=' is the same net configuration as in the hvmconfig script,
    1.37 +- 'ip=10.0.1.1,mac= etc...' is the same net configuration as in the hvmconfig
    1.38 +script,
    1.39  - and disk = is the same block configuration as in the hvmconfig script.
     2.1 --- a/stubdom/stubdom-dm	Tue Feb 26 15:11:07 2008 +0000
     2.2 +++ b/stubdom/stubdom-dm	Tue Feb 26 15:11:51 2008 +0000
     2.3 @@ -62,11 +62,12 @@ done
     2.4  
     2.5  creation="xm create -c stubdom-$domname target=$domid memory=32"
     2.6  
     2.7 -(while true ; do sleep 60 ; done) | $creation &
     2.8 +(while true ; do sleep 60 ; done) | $creation > /var/log/xen/qemu-dm-$domid.log &
     2.9  #xterm -geometry +0+0 -e /bin/sh -c "$creation ; echo ; echo press ENTER to shut down ; read" &
    2.10  consolepid=$!
    2.11  
    2.12  
    2.13 +# Wait for vnc server to appear
    2.14  while ! vnc_port=`xenstore-read /local/domain/$domid/console/vnc-port`
    2.15  do
    2.16          # Check that the stubdom job is still alive