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