ia64/xen-unstable

annotate tools/examples/xend-config.sxp @ 8326:4aa340c5bf6e

Added xend-relocation-hosts-allow option.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Dec 12 16:48:24 2005 +0000 (2005-12-12)
parents 31d86fc0a271
children 3f3d53c3b327
rev   line source
emellor@7467 1 # -*- sh -*-
emellor@7467 2
emellor@7467 3 #
mjw@1723 4 # Xend configuration file.
emellor@7467 5 #
mjw@1723 6
emellor@7467 7 # This example configuration is appropriate for an installation that trusts
emellor@7467 8 # only localhost connections, and is otherwise fully functional, with a
emellor@7467 9 # bridged network configuration.
emellor@7467 10
emellor@7467 11 # Commented out entries show the default for that entry, unless otherwise
emellor@7467 12 # specified.
emellor@7467 13
emellor@7467 14 #(logfile /var/log/xend.log)
emellor@7467 15 #(loglevel DEBUG)
mjw@1723 16
emellor@7467 17 #(xend-http-server no)
emellor@7467 18 (xend-http-server yes)
emellor@7467 19 #(xend-unix-server yes)
emellor@7467 20 #(xend-relocation-server no)
emellor@7467 21 (xend-relocation-server yes)
emellor@7467 22
emellor@7467 23 #(xend-unix-path /var/lib/xend/xend-socket)
mjw@4095 24
emellor@7467 25 # Port xend should use for the HTTP interface, if xend-http-server is set.
emellor@7467 26 #(xend-port 8000)
emellor@7467 27
emellor@7467 28 # Port xend should use for the relocation interface, if xend-relocation-server
emellor@7467 29 # is set.
emellor@7467 30 #(xend-relocation-port 8002)
emellor@7467 31
emellor@7467 32 # Address xend should listen on for HTTP connections, if xend-http-server is
emellor@7467 33 # set.
mjw@1723 34 # Specifying 'localhost' prevents remote connections.
emellor@7467 35 # Specifying the empty string '' (the default) allows all connections.
emellor@7467 36 #(xend-address '')
emellor@7467 37 (xend-address localhost)
mjw@1723 38
emellor@7467 39 # Address xend should listen on for relocation-socket connections, if
emellor@7467 40 # xend-relocation-server is set.
emellor@7467 41 # Meaning and default as for xend-address above.
emellor@7467 42 #(xend-relocation-address '')
emellor@8326 43
emellor@8326 44 # The hosts allowed to talk to the relocation port. If this is empty (the
emellor@8326 45 # default), then all connections are allowed (assuming that the connection
emellor@8326 46 # arrives on a port and interface on which we are listening; see
emellor@8326 47 # xend-relocation-port and xend-relocation-address above). Otherwise, this
emellor@8326 48 # should be a space-separated sequence of regular expressions. Any host with
emellor@8326 49 # a fully-qualified domain name or an IP address that matches one of these
emellor@8326 50 # regular expressions will be accepted.
emellor@8326 51 #
emellor@8326 52 # For example:
emellor@8326 53 # (xend-relocation-hosts-allow '^localhost$ ^.*\.example\.org$')
emellor@8326 54 #
emellor@8326 55 #(xend-relocation-hosts-allow '')
emellor@8326 56 (xend-relocation-hosts-allow '^localhost$')
mjw@4095 57
emellor@7441 58 # The limit (in kilobytes) on the size of the console buffer
emellor@7467 59 #(console-limit 1024)
emellor@7441 60
emellor@7557 61 ##
emellor@7557 62 # To bridge network traffic, like this:
emellor@7557 63 #
emellor@7557 64 # dom0: fake eth0 -> vif0.0 -+
emellor@7557 65 # |
emellor@7557 66 # bridge -> real eth0 -> the network
emellor@7557 67 # |
emellor@7557 68 # domU: fake eth0 -> vifN.0 -+
emellor@7557 69 #
emellor@7557 70 # use
emellor@7557 71 #
emellor@7557 72 # (network-script network-bridge)
emellor@7557 73 #
emellor@7557 74 # Your eth0 is used as the outgoing interface, by default. To use a different
emellor@7557 75 # one (e.g. eth1) use
emellor@7557 76 #
emellor@7557 77 # (network-script 'network-bridge netdev=eth1')
emellor@7557 78 #
emellor@7557 79 # The bridge is named xenbr0, by default. To rename the bridge, use
emellor@7557 80 #
emellor@7557 81 # (network-script 'network-bridge bridge=<name>')
emellor@7557 82 #
emellor@7557 83 # It is possible to use the network-bridge script in more complicated
emellor@7557 84 # scenarios, such as having two outgoing interfaces, with two bridges, and
emellor@7557 85 # two fake interfaces per guest domain. To do things like this, write
emellor@7557 86 # yourself a wrapper script, and call network-bridge from it, as appropriate.
emellor@7557 87 #
emellor@7557 88 (network-script network-bridge)
kaf24@3431 89
emellor@7557 90 # The script used to control virtual interfaces. This can be overridden on a
emellor@7557 91 # per-vif basis when creating a domain or a configuring a new vif. The
emellor@7557 92 # vif-bridge script is designed for use with the network-bridge script, or
emellor@7557 93 # similar configurations.
emellor@7557 94 #
emellor@7557 95 # If you have overridden the bridge name using
emellor@7557 96 # (network-script 'network-bridge bridge=<name>') then you may wish to do the
emellor@7557 97 # same here. The bridge name can also be set when creating a domain or
emellor@7557 98 # configuring a new vif, but a value specified here would act as a default.
emellor@7557 99 #
emellor@7557 100 # If you are using only one bridge, the vif-bridge script will discover that,
emellor@7557 101 # so there is no need to specify it explicitly.
emellor@7557 102 #
emellor@7557 103 (vif-script vif-bridge)
emellor@7557 104
emellor@7557 105
emellor@7557 106 ## Use the following if network traffic is routed, as an alternative to the
emellor@7557 107 # settings for bridged networking given above.
emellor@7557 108 #(network-script network-route)
emellor@7557 109 #(vif-script vif-route)
emellor@7557 110
emellor@7557 111
emellor@7557 112 ## Use the following if network traffic is routed with NAT, as an alternative
emellor@7557 113 # to the settings for bridged networking given above.
emellor@7557 114 #(network-script network-nat)
emellor@7557 115 #(vif-script vif-nat)
emellor@7557 116
mjw@1723 117
kaf24@5932 118 # Dom0 will balloon out when needed to free memory for domU.
kaf24@5932 119 # dom0-min-mem is the lowest memory level (in MB) dom0 will get down to.
kaf24@5932 120 # If dom0-min-mem=0, dom0 will never balloon out.
iap10@8218 121 (dom0-min-mem 196)
kaf24@5932 122
cl349@6916 123 # In SMP system, dom0 will use dom0-cpus # of CPUS
kaf24@5932 124 # If dom0-cpus = 0, dom0 will take all cpus available
kaf24@5932 125 (dom0-cpus 0)
emellor@7467 126
emellor@7467 127 # Whether to enable core-dumps when domains crash.
emellor@7467 128 #(enable-dump no)