root / trunk / shell / templates / etc / xen / xend-config.sxp @ 18
Historique | Voir | Annoter | Télécharger (10,13 ko)
1 | 18 | storres | # -*- sh -*- |
---|---|---|---|
2 | 18 | storres | |
3 | 18 | storres | # |
4 | 18 | storres | # Xend configuration file. |
5 | 18 | storres | # |
6 | 18 | storres | |
7 | 18 | storres | # This example configuration is appropriate for an installation that |
8 | 18 | storres | # utilizes a bridged network configuration. Access to xend via http |
9 | 18 | storres | # is disabled. |
10 | 18 | storres | |
11 | 18 | storres | # Commented out entries show the default for that entry, unless otherwise |
12 | 18 | storres | # specified. |
13 | 18 | storres | |
14 | 18 | storres | #(logfile /var/log/xen/xend.log) |
15 | 18 | storres | #(loglevel DEBUG) |
16 | 18 | storres | |
17 | 18 | storres | # Uncomment the line below. Set the value to flask, acm, or dummy to |
18 | 18 | storres | # select a security module. |
19 | 18 | storres | |
20 | 18 | storres | #(xsm_module_name dummy) |
21 | 18 | storres | |
22 | 18 | storres | # The Xen-API server configuration. |
23 | 18 | storres | # |
24 | 18 | storres | # This value configures the ports, interfaces, and access controls for the |
25 | 18 | storres | # Xen-API server. Each entry in the list starts with either unix, a port |
26 | 18 | storres | # number, or an address:port pair. If this is "unix", then a UDP socket is |
27 | 18 | storres | # opened, and this entry applies to that. If it is a port, then Xend will |
28 | 18 | storres | # listen on all interfaces on that TCP port, and if it is an address:port |
29 | 18 | storres | # pair, then Xend will listen on the specified port, using the interface with |
30 | 18 | storres | # the specified address. |
31 | 18 | storres | # |
32 | 18 | storres | # The subsequent string configures the user-based access control for the |
33 | 18 | storres | # listener in question. This can be one of "none" or "pam", indicating either |
34 | 18 | storres | # that users should be allowed access unconditionally, or that the local |
35 | 18 | storres | # Pluggable Authentication Modules configuration should be used. If this |
36 | 18 | storres | # string is missing or empty, then "pam" is used. |
37 | 18 | storres | # |
38 | 18 | storres | # The final string gives the host-based access control for that listener. If |
39 | 18 | storres | # this is missing or empty, then all connections are accepted. Otherwise, |
40 | 18 | storres | # this should be a space-separated sequence of regular expressions; any host |
41 | 18 | storres | # with a fully-qualified domain name or an IP address that matches one of |
42 | 18 | storres | # these regular expressions will be accepted. |
43 | 18 | storres | # |
44 | 18 | storres | # Example: listen on TCP port 9363 on all interfaces, accepting connections |
45 | 18 | storres | # only from machines in example.com or localhost, and allow access through |
46 | 18 | storres | # the unix domain socket unconditionally: |
47 | 18 | storres | # |
48 | 18 | storres | # (xen-api-server ((9363 pam '^localhost$ example\\.com$') |
49 | 18 | storres | # (unix none))) |
50 | 18 | storres | # |
51 | 18 | storres | # Optionally, the TCP Xen-API server can use SSL by specifying the private |
52 | 18 | storres | # key and certificate location: |
53 | 18 | storres | # |
54 | 18 | storres | # (9367 pam '' xen-api.key xen-api.crt) |
55 | 18 | storres | # |
56 | 18 | storres | # Default: |
57 | 18 | storres | # (xen-api-server ((unix))) |
58 | 18 | storres | |
59 | 18 | storres | |
60 | 18 | storres | #(xend-http-server no) |
61 | 18 | storres | #(xend-unix-server no) |
62 | 18 | storres | #(xend-tcp-xmlrpc-server no) |
63 | 18 | storres | #(xend-unix-xmlrpc-server yes) |
64 | 18 | storres | #(xend-relocation-server no) |
65 | 18 | storres | #(xend-relocation-ssl-server no) |
66 | 18 | storres | #(xend-udev-event-server no) |
67 | 18 | storres | |
68 | 18 | storres | #(xend-unix-path /var/lib/xend/xend-socket) |
69 | 18 | storres | |
70 | 18 | storres | |
71 | 18 | storres | # Address and port xend should use for the legacy TCP XMLRPC interface, |
72 | 18 | storres | # if xend-tcp-xmlrpc-server is set. |
73 | 18 | storres | #(xend-tcp-xmlrpc-server-address 'localhost') |
74 | 18 | storres | #(xend-tcp-xmlrpc-server-port 8006) |
75 | 18 | storres | |
76 | 18 | storres | # SSL key and certificate to use for the legacy TCP XMLRPC interface. |
77 | 18 | storres | # Setting these will mean that this port serves only SSL connections as |
78 | 18 | storres | # opposed to plaintext ones. |
79 | 18 | storres | #(xend-tcp-xmlrpc-server-ssl-key-file xmlrpc.key) |
80 | 18 | storres | #(xend-tcp-xmlrpc-server-ssl-cert-file xmlrpc.crt) |
81 | 18 | storres | |
82 | 18 | storres | |
83 | 18 | storres | # Port xend should use for the HTTP interface, if xend-http-server is set. |
84 | 18 | storres | #(xend-port 8000) |
85 | 18 | storres | |
86 | 18 | storres | # Port xend should use for the relocation interface, if xend-relocation-server |
87 | 18 | storres | # is set. |
88 | 18 | storres | #(xend-relocation-port 8002) |
89 | 18 | storres | |
90 | 18 | storres | # Port xend should use for the ssl relocation interface, if |
91 | 18 | storres | # xend-relocation-ssl-server is set. |
92 | 18 | storres | #(xend-relocation-ssl-port 8003) |
93 | 18 | storres | |
94 | 18 | storres | # SSL key and certificate to use for the ssl relocation interface, if |
95 | 18 | storres | # xend-relocation-ssl-server is set. |
96 | 18 | storres | #(xend-relocation-server-ssl-key-file xmlrpc.key) |
97 | 18 | storres | #(xend-relocation-server-ssl-cert-file xmlrpc.crt) |
98 | 18 | storres | |
99 | 18 | storres | # Whether to use ssl as default when relocating. |
100 | 18 | storres | #(xend-relocation-ssl no) |
101 | 18 | storres | |
102 | 18 | storres | # Address xend should listen on for HTTP connections, if xend-http-server is |
103 | 18 | storres | # set. |
104 | 18 | storres | # Specifying 'localhost' prevents remote connections. |
105 | 18 | storres | # Specifying the empty string '' (the default) allows all connections. |
106 | 18 | storres | #(xend-address '') |
107 | 18 | storres | #(xend-address localhost) |
108 | 18 | storres | |
109 | 18 | storres | # Address xend should listen on for relocation-socket connections, if |
110 | 18 | storres | # xend-relocation-server is set. |
111 | 18 | storres | # Meaning and default as for xend-address above. |
112 | 18 | storres | #(xend-relocation-address '') |
113 | 18 | storres | |
114 | 18 | storres | # The hosts allowed to talk to the relocation port. If this is empty (the |
115 | 18 | storres | # default), then all connections are allowed (assuming that the connection |
116 | 18 | storres | # arrives on a port and interface on which we are listening; see |
117 | 18 | storres | # xend-relocation-port and xend-relocation-address above). Otherwise, this |
118 | 18 | storres | # should be a space-separated sequence of regular expressions. Any host with |
119 | 18 | storres | # a fully-qualified domain name or an IP address that matches one of these |
120 | 18 | storres | # regular expressions will be accepted. |
121 | 18 | storres | # |
122 | 18 | storres | # For example: |
123 | 18 | storres | # (xend-relocation-hosts-allow '^localhost$ ^.*\\.example\\.org$') |
124 | 18 | storres | # |
125 | 18 | storres | #(xend-relocation-hosts-allow '') |
126 | 18 | storres | |
127 | 18 | storres | # The limit (in kilobytes) on the size of the console buffer |
128 | 18 | storres | #(console-limit 1024) |
129 | 18 | storres | |
130 | 18 | storres | ## |
131 | 18 | storres | # NOTE: |
132 | 18 | storres | # Please read /usr/share/doc/xen-utils-common/README.Debian for Debian specific |
133 | 18 | storres | # informations about the network setup. |
134 | 18 | storres | |
135 | 18 | storres | ## |
136 | 18 | storres | # To bridge network traffic, like this: |
137 | 18 | storres | # |
138 | 18 | storres | # dom0: ----------------- bridge -> real eth0 -> the network |
139 | 18 | storres | # | |
140 | 18 | storres | # domU: fake eth0 -> vifN.0 -+ |
141 | 18 | storres | # |
142 | 18 | storres | # use |
143 | 18 | storres | # |
144 | 18 | storres | # (network-script network-bridge) |
145 | 18 | storres | # Use a modified script to create an internal bridge. ST-2012-03-06. |
146 | 18 | storres | __CLUSTER_BRIDGE_CLAUSE__ |
147 | 18 | storres | # Your default ethernet device is used as the outgoing interface, by default. |
148 | 18 | storres | # To use a different one (e.g. eth1) use |
149 | 18 | storres | # |
150 | 18 | storres | # (network-script 'network-bridge netdev=eth1') |
151 | 18 | storres | # |
152 | 18 | storres | # The bridge is named xenbr0, by default. To rename the bridge, use |
153 | 18 | storres | # |
154 | 18 | storres | # (network-script 'network-bridge bridge=<name>') |
155 | 18 | storres | # |
156 | 18 | storres | # It is possible to use the network-bridge script in more complicated |
157 | 18 | storres | # scenarios, such as having two outgoing interfaces, with two bridges, and |
158 | 18 | storres | # two fake interfaces per guest domain. To do things like this, write |
159 | 18 | storres | # yourself a wrapper script, and call network-bridge from it, as appropriate. |
160 | 18 | storres | # |
161 | 18 | storres | |
162 | 18 | storres | # The script used to control virtual interfaces. This can be overridden on a |
163 | 18 | storres | # per-vif basis when creating a domain or a configuring a new vif. The |
164 | 18 | storres | # vif-bridge script is designed for use with the network-bridge script, or |
165 | 18 | storres | # similar configurations. |
166 | 18 | storres | # |
167 | 18 | storres | # If you have overridden the bridge name using |
168 | 18 | storres | # (network-script 'network-bridge bridge=<name>') then you may wish to do the |
169 | 18 | storres | # same here. The bridge name can also be set when creating a domain or |
170 | 18 | storres | # configuring a new vif, but a value specified here would act as a default. |
171 | 18 | storres | # |
172 | 18 | storres | # If you are using only one bridge, the vif-bridge script will discover that, |
173 | 18 | storres | # so there is no need to specify it explicitly. |
174 | 18 | storres | # |
175 | 18 | storres | (vif-script vif-bridge) |
176 | 18 | storres | |
177 | 18 | storres | |
178 | 18 | storres | ## Use the following if network traffic is routed, as an alternative to the |
179 | 18 | storres | # settings for bridged networking given above. |
180 | 18 | storres | #(network-script network-route) |
181 | 18 | storres | #(vif-script vif-route) |
182 | 18 | storres | |
183 | 18 | storres | |
184 | 18 | storres | ## Use the following if network traffic is routed with NAT, as an alternative |
185 | 18 | storres | # to the settings for bridged networking given above. |
186 | 18 | storres | #(network-script network-nat) |
187 | 18 | storres | #(vif-script vif-nat) |
188 | 18 | storres | |
189 | 18 | storres | # dom0-min-mem is the lowest permissible memory level (in MB) for dom0. |
190 | 18 | storres | # This is a minimum both for auto-ballooning (as enabled by |
191 | 18 | storres | # enable-dom0-ballooning below) and for xm mem-set when applied to dom0. |
192 | 18 | storres | (dom0-min-mem 1024) |
193 | 18 | storres | |
194 | 18 | storres | # Whether to enable auto-ballooning of dom0 to allow domUs to be created. |
195 | 18 | storres | # If enable-dom0-ballooning = no, dom0 will never balloon out. |
196 | 18 | storres | # ST 2012-03-06: ballooning is disabled since memory of dom0 is set |
197 | 18 | storres | # in GRUB. |
198 | 18 | storres | (enable-dom0-ballooning no) |
199 | 18 | storres | |
200 | 18 | storres | # 32-bit paravirtual domains can only consume physical |
201 | 18 | storres | # memory below 168GB. On systems with memory beyond that address, |
202 | 18 | storres | # they'll be confined to memory below 128GB. |
203 | 18 | storres | # Using total_available_memory (in GB) to specify the amount of memory reserved |
204 | 18 | storres | # in the memory pool exclusively for 32-bit paravirtual domains. |
205 | 18 | storres | # Additionally you should use dom0_mem = <-Value> as a parameter in |
206 | 18 | storres | # xen kernel to reserve the memory for 32-bit paravirtual domains, default |
207 | 18 | storres | # is "0" (0GB). |
208 | 18 | storres | (total_available_memory 0) |
209 | 18 | storres | |
210 | 18 | storres | # In SMP system, dom0 will use dom0-cpus # of CPUS |
211 | 18 | storres | # If dom0-cpus = 0, dom0 will take all cpus available |
212 | 18 | storres | __DOM0_CPUS_CLAUSE__ |
213 | 18 | storres | |
214 | 18 | storres | # Whether to enable core-dumps when domains crash. |
215 | 18 | storres | #(enable-dump no) |
216 | 18 | storres | |
217 | 18 | storres | # The tool used for initiating virtual TPM migration |
218 | 18 | storres | #(external-migration-tool '') |
219 | 18 | storres | |
220 | 18 | storres | # The interface for VNC servers to listen on. Defaults |
221 | 18 | storres | # to 127.0.0.1 To restore old 'listen everywhere' behaviour |
222 | 18 | storres | # set this to 0.0.0.0 |
223 | 18 | storres | #(vnc-listen '127.0.0.1') |
224 | 18 | storres | |
225 | 18 | storres | # The default password for VNC console on HVM domain. |
226 | 18 | storres | # Empty string is no authentication. |
227 | 18 | storres | (vncpasswd '') |
228 | 18 | storres | |
229 | 18 | storres | # The VNC server can be told to negotiate a TLS session |
230 | 18 | storres | # to encryption all traffic, and provide x509 cert to |
231 | 18 | storres | # clients enabling them to verify server identity. The |
232 | 18 | storres | # GTK-VNC widget, virt-viewer, virt-manager and VeNCrypt |
233 | 18 | storres | # all support the VNC extension for TLS used in QEMU. The |
234 | 18 | storres | # TightVNC/RealVNC/UltraVNC clients do not. |
235 | 18 | storres | # |
236 | 18 | storres | # To enable this create x509 certificates / keys in the |
237 | 18 | storres | # directory ${XEN_CONFIG_DIR} + vnc |
238 | 18 | storres | # |
239 | 18 | storres | # ca-cert.pem - The CA certificate |
240 | 18 | storres | # server-cert.pem - The Server certificate signed by the CA |
241 | 18 | storres | # server-key.pem - The server private key |
242 | 18 | storres | # |
243 | 18 | storres | # and then uncomment this next line |
244 | 18 | storres | # (vnc-tls 1) |
245 | 18 | storres | |
246 | 18 | storres | # The certificate dir can be pointed elsewhere.. |
247 | 18 | storres | # |
248 | 18 | storres | # (vnc-x509-cert-dir vnc) |
249 | 18 | storres | |
250 | 18 | storres | # The server can be told to request & validate an x509 |
251 | 18 | storres | # certificate from the client. Only clients with a cert |
252 | 18 | storres | # signed by the trusted CA will be able to connect. This |
253 | 18 | storres | # is more secure the password auth alone. Passwd auth can |
254 | 18 | storres | # used at the same time if desired. To enable client cert |
255 | 18 | storres | # checking uncomment this: |
256 | 18 | storres | # |
257 | 18 | storres | # (vnc-x509-verify 1) |
258 | 18 | storres | |
259 | 18 | storres | # The default keymap to use for the VM's virtual keyboard |
260 | 18 | storres | # when not specififed in VM's configuration |
261 | 18 | storres | #(keymap 'en-us') |
262 | 18 | storres | |
263 | 18 | storres | # Script to run when the label of a resource has changed. |
264 | 18 | storres | #(resource-label-change-script '') |
265 | 18 | storres | |
266 | 18 | storres | # Rotation count of qemu-dm log file. |
267 | 18 | storres | #(qemu-dm-logrotate-count 10) |
268 | 18 | storres | |
269 | 18 | storres | # Path where persistent domain configuration is stored. |
270 | 18 | storres | # Default is /var/lib/xend/domains/ |
271 | 18 | storres | #(xend-domains-path /var/lib/xend/domains) |
272 | 18 | storres | |
273 | 18 | storres | # Number of seconds xend will wait for device creation and |
274 | 18 | storres | # destruction |
275 | 18 | storres | #(device-create-timeout 100) |
276 | 18 | storres | #(device-destroy-timeout 100) |
277 | 18 | storres | |
278 | 18 | storres | # When assigning device to HVM guest, we use the strict check for HVM guest by |
279 | 18 | storres | # default. (For PV guest, we use loose check automatically if necessary.) |
280 | 18 | storres | # When we assign device to HVM guest, if we meet with the co-assignment |
281 | 18 | storres | # issues or the ACS issue, we could try changing the option to 'no' -- however, |
282 | 18 | storres | # we have to realize this may incur security issue and we can't make sure the |
283 | 18 | storres | # device assignment could really work properly even after we do this. |
284 | 18 | storres | #(pci-passthrough-strict-check yes) |