aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-10-27 09:55:14 +0100
committerIan Campbell <ian.campbell@citrix.com>2011-10-27 09:55:14 +0100
commit737d28ae5466e1f3e79da8713866dcd1a1dc39a5 (patch)
tree5edd331f66c483387326bd5cd0db5bf45e71f806 /tools/examples
parent370af44e14991d71516440b94a6c09b5c5083050 (diff)
downloadxen-737d28ae5466e1f3e79da8713866dcd1a1dc39a5.tar.gz
xen-737d28ae5466e1f3e79da8713866dcd1a1dc39a5.tar.bz2
xen-737d28ae5466e1f3e79da8713866dcd1a1dc39a5.zip
xl: add some example configuration files
These are much more minimal than the equivalent xmexamples but should eventually reference a more complete document describing the available options. These are based on the guest configuration files that I actually use day-to-day. There is an unresolved reference to a document describing the complete syntax. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'tools/examples')
-rw-r--r--tools/examples/xlexample.hvm39
-rw-r--r--tools/examples/xlexample.pvlinux44
2 files changed, 83 insertions, 0 deletions
diff --git a/tools/examples/xlexample.hvm b/tools/examples/xlexample.hvm
new file mode 100644
index 0000000000..77a7f99dc1
--- /dev/null
+++ b/tools/examples/xlexample.hvm
@@ -0,0 +1,39 @@
+# =====================================================================
+# Example HVM guest configuration
+# =====================================================================
+#
+# This is a fairly minimal example of what is required for an
+# HVM guest. For a more complete guide see <XXX Document TBD>
+
+# Guest name
+name = "example.hvm"
+
+# 128-bit UUID for the domain as a hexadecimal number.
+# Use "uuidgen" to generate one if required.
+# The default behavior is to generate a new UUID each time the guest is started.
+#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
+
+# Initial memory allocation (MB)
+memory = 128
+
+# Maximum memory (MB)
+# If this is greater than `memory' then the slack will start ballooned
+# (this assumes guest kernel support for ballooning)
+#maxmem = 512
+
+# Number of VCPUS
+vcpus = 2
+
+# Network devices
+# A list of 'vifspec' entries as described in
+# docs/misc/xl-network-configuration.markdown
+vif = [ '' ]
+
+# Disk Devices
+# A list of `diskspec' entries as described in
+# docs/misc/xl-disk-configuration.txt
+disk = [ '/dev/vg/guest-volume,raw,xvda,rw' ]
+
+# Guest VGA console configuration, either SDL or VNC
+sdl = 1
+#vnc = 1
diff --git a/tools/examples/xlexample.pvlinux b/tools/examples/xlexample.pvlinux
new file mode 100644
index 0000000000..a5fad4767c
--- /dev/null
+++ b/tools/examples/xlexample.pvlinux
@@ -0,0 +1,44 @@
+# =====================================================================
+# Example PV Linux guest configuration
+# =====================================================================
+#
+# This is a fairly minimal example of what is required for a
+# Paravirtualised Linux guest. For a more complete guide see <XXX Document TBD>
+
+# Guest name
+name = "example.pvlinux"
+
+# 128-bit UUID for the domain as a hexadecimal number.
+# Use "uuidgen" to generate one if required.
+# The default behavior is to generate a new UUID each time the guest is started.
+#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
+
+# Kernel image to boot
+kernel = "/boot/vmlinuz"
+
+# Ramdisk (optional)
+#ramdisk = "/boot/initrd.gz"
+
+# Kernel command line options
+extra = "root=/dev/xvda1"
+
+# Initial memory allocation (MB)
+memory = 128
+
+# Maximum memory (MB)
+# If this is greater than `memory' then the slack will start ballooned
+# (this assumes guest kernel support for ballooning)
+#maxmem = 512
+
+# Number of VCPUS
+vcpus = 2
+
+# Network devices
+# A list of 'vifspec' entries as described in
+# docs/misc/xl-network-configuration.markdown
+vif = [ '' ]
+
+# Disk Devices
+# A list of `diskspec' entries as described in
+# docs/misc/xl-disk-configuration.txt
+disk = [ '/dev/vg/guest-volume,raw,xvda,rw' ]