mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
- Enforce the number of CPUs dom0 will take. See the new variable "dom0-cpus" in xend-config.sxp (you will want to set this variable to 1 on SMP systems) - Balloon out dom0 memory when creating domU, if there is not enough free memory. The lowest level we will balloon out is configured via the new variable "dom0-min-mem" in xend-config.sxp I still have a doubt: where to put the code to enforce dom0-cpus. At the moment I put it into python/xen/xend/server/SrvDaemon.py, and hopefully that is resonable enough. Any comment? Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
# Xend configuration file.
|
|
|
|
# Port xend should use for the HTTP interface.
|
|
(xend-port 8000)
|
|
|
|
# Port xend should use for the event interface.
|
|
(xend-event-port 8001)
|
|
|
|
# Address xend should listen on for HTTP connections.
|
|
# Specifying 'localhost' prevents remote connections.
|
|
# Specifying the empty string '' allows all connections.
|
|
(xend-address 'localhost')
|
|
|
|
# The port xend should start from when allocating a port
|
|
# for a domain console.
|
|
(console-port-base 9600)
|
|
|
|
# Address xend should listen on for console connections.
|
|
# Specifying 'localhost' prevents remote connections.
|
|
# Specifying the empty string '' allows all connections.
|
|
(console-address 'localhost')
|
|
|
|
## Use the following if VIF traffic is routed.
|
|
# The script used to start/stop networking for xend.
|
|
#(network-script network-route)
|
|
# The default script used to control virtual interfaces.
|
|
#(vif-script vif-route)
|
|
|
|
## Use the following if VIF traffic is bridged.
|
|
# The script used to start/stop networking for xend.
|
|
(network-script network)
|
|
# The default bridge that virtual interfaces should be connected to.
|
|
(vif-bridge xen-br0)
|
|
# The default script used to control virtual interfaces.
|
|
(vif-script vif-bridge)
|
|
|
|
# Whether iptables should be set up to prevent IP spoofing for
|
|
# virtual interfaces. Specify 'yes' or 'no'.
|
|
(vif-antispoof no)
|
|
|
|
# Setup script for file-backed block devices
|
|
(block-file block-file)
|
|
|
|
# Setup script for enbd-backed block devices
|
|
(block-enbd block-enbd)
|
|
|
|
# Dom0 will balloon out when needed to free memory for domU.
|
|
# dom0-min-mem is the lowest memory level (in MB) dom0 will get down to.
|
|
# If dom0-min-mem=0, dom0 will never balloon out.
|
|
(dom0-min-mem 0)
|
|
|
|
# In SMP system, dom0 will use only CPUs in range [1,dom0-cpus]
|
|
# If dom0-cpus = 0, dom0 will take all cpus available
|
|
(dom0-cpus 0)
|