Skip to contentSkip to conversation

stubdom: add example config file

PATCH New Samuel Thibault 1 participant 1 message Jul 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: add example config file

stubdom: add example config file

tools/examples/stubdom-ExampleHVMDomain new file +21 -0
diff -r e69570f85e85 tools/examples/stubdom-ExampleHVMDomain
@@ -0,0 +1,21 @@
+# Not to be started directly,
+# See xmexample.hvm-stubdom and stubdom/README for more details
+
+import os, re
+arch = os.uname()[4]
+if re.search('64', arch):
+    arch_libdir = 'lib64'
+else:
+    arch_libdir = 'lib'
+
+kernel = "/usr/" + arch_libdir + "/xen/boot/ioemu-stubdom.gz"
+
+# Must be the same as in xmexample.hvm-stubdom, with a prepended vif for TCP/IP
+# networking in the stubdomain itself, here just ''
+vif = [ '', 'type=ioemu, bridge=xenbr0' ]
+
+# Set here instead of in xmexample.hvm-stubdom
+disk = [ 'file:/var/images/min-el3-i386.img,hda,w', ',hdc:cdrom,r' ]
+
+# Actual output via PVFB
+vfb = [ 'type=sdl' ]
tools/examples/xmexample.hvm +2 -2
diff -r e69570f85e85 tools/examples/xmexample.hvm
@@ -15,7 +15,7 @@
 
 #----------------------------------------------------------------------------
 # Kernel image file.
-kernel = "/usr/lib/xen/boot/hvmloader"
+kernel = "/usr/" + arch_libdir + "/xen/boot/hvmloader"
 
 # The domain build function. HVM domain uses 'hvm'.
 builder='hvm'
@@ -119,7 +119,7 @@
 
 #============================================================================
 
-# New stuff
+# Device Model to be used
 device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
 
 #-----------------------------------------------------------------------------
tools/examples/xmexample.hvm-stubdom new file +325 -0

325 lines not on this page · raw message