From 67ef94950fda026c401026af36203afe4054e377 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Sat, 4 Aug 2007 20:21:17 -0400 Subject: [PATCH 1/1] New package to represent dom0 configuration svn path=/trunk/packages/sipb-xen-dom0/sipb-xen-dom0/; revision=59 --- debian/changelog | 6 ++ debian/compat | 1 + debian/control | 13 ++++ debian/copyright | 3 + debian/rules | 4 ++ debian/sipb-xen-dom0.dirs | 1 + debian/sipb-xen-dom0.install | 2 + files/etc/modprobe.d/loop-maxloop | 1 + xend-config.sxp | 135 +++++++++++++++++++++++++++++++++++++ 9 files changed, 166 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/sipb-xen-dom0.dirs create mode 100644 debian/sipb-xen-dom0.install create mode 100644 files/etc/modprobe.d/loop-maxloop create mode 100644 xend-config.sxp diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..a3d8ae8 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +sipb-xen-dom0 (1) unstable; urgency=low + + * First version + + -- Sam Hartman Sat, 4 Aug 2007 20:20:32 -0400 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..915d5e3 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: sipb-xen-dom0 +Section: base +Priority: extra +Maintainer: SIPB Xen Project +Build-Depends: cdbs (>= 0.4.23-1.1), debhelper (>= 4.1.0) +Standards-Version: 3.7.2 + +Package: sipb-xen-dom0 +Architecture: all +Depends: ${misc:Depends}, emacs21, dhcp3-server, nullmailer, xen-hypervisor-3.1.0-1-amd64, xen-ioemu-3.1.0-1, xen-utils-3.1.0-1, xen-utils-common, lvm2, grub, linux-image-2.6.18-4-xen-amd64 +Description: SIPB Xen domain 0 configuration + This package includes the dependencies and configuration for + a domain 0 sipb-xen server. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..7bddd1a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,3 @@ +This package was created for internal use of the SIPB Xen Project of +the MIT Student Information Processing Board. Ask tabbott@mit.edu if +you have questions about redistribution. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..18d5e2c --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + + +include /usr/share/cdbs/1/rules/debhelper.mk diff --git a/debian/sipb-xen-dom0.dirs b/debian/sipb-xen-dom0.dirs new file mode 100644 index 0000000..b4a3120 --- /dev/null +++ b/debian/sipb-xen-dom0.dirs @@ -0,0 +1 @@ +usr/share/sipb-xen-dom0 diff --git a/debian/sipb-xen-dom0.install b/debian/sipb-xen-dom0.install new file mode 100644 index 0000000..32bacf2 --- /dev/null +++ b/debian/sipb-xen-dom0.install @@ -0,0 +1,2 @@ +files/* . +xend.config.sxp usr/share/sipb-xen-dom0 diff --git a/files/etc/modprobe.d/loop-maxloop b/files/etc/modprobe.d/loop-maxloop new file mode 100644 index 0000000..d8b6bd4 --- /dev/null +++ b/files/etc/modprobe.d/loop-maxloop @@ -0,0 +1 @@ +options loop max_loop=64 diff --git a/xend-config.sxp b/xend-config.sxp new file mode 100644 index 0000000..855ada3 --- /dev/null +++ b/xend-config.sxp @@ -0,0 +1,135 @@ +# -*- sh -*- + +# +# Xend configuration file. +# + +# This example configuration is appropriate for an installation that +# utilizes a bridged network configuration. Access to xend via http +# is disabled. + +# Commented out entries show the default for that entry, unless otherwise +# specified. + +#(logfile /var/log/xen/xend.log) +#(loglevel DEBUG) + +#(xend-http-server no) +#(xend-unix-server no) +#(xend-tcp-xmlrpc-server no) +#(xend-unix-xmlrpc-server yes) +#(xend-relocation-server no) + +#(xend-unix-path /var/lib/xend/xend-socket) + +# Port xend should use for the HTTP interface, if xend-http-server is set. +#(xend-port 8000) + +# Port xend should use for the relocation interface, if xend-relocation-server +# is set. +#(xend-relocation-port 8002) + +# Address xend should listen on for HTTP connections, if xend-http-server is +# set. +# Specifying 'localhost' prevents remote connections. +# Specifying the empty string '' (the default) allows all connections. +#(xend-address '') +#(xend-address localhost) + +# Address xend should listen on for relocation-socket connections, if +# xend-relocation-server is set. +# Meaning and default as for xend-address above. +#(xend-relocation-address '') + +# The hosts allowed to talk to the relocation port. If this is empty (the +# default), then all connections are allowed (assuming that the connection +# arrives on a port and interface on which we are listening; see +# xend-relocation-port and xend-relocation-address above). Otherwise, this +# should be a space-separated sequence of regular expressions. Any host with +# a fully-qualified domain name or an IP address that matches one of these +# regular expressions will be accepted. +# +# For example: +# (xend-relocation-hosts-allow '^localhost$ ^.*\.example\.org$') +# +#(xend-relocation-hosts-allow '') + +# The limit (in kilobytes) on the size of the console buffer +#(console-limit 1024) + +## +# To bridge network traffic, like this: +# +# dom0: fake eth0 -> vif0.0 -+ +# | +# bridge -> real eth0 -> the network +# | +# domU: fake eth0 -> vifN.0 -+ +# +# use +# +# (network-script network-bridge) +# +# Your default ethernet device is used as the outgoing interface, by default. +# To use a different one (e.g. eth1) use +# +# (network-script 'network-bridge netdev=eth1') +# +# The bridge is named xenbr0, by default. To rename the bridge, use +# +# (network-script 'network-bridge bridge=') +# +# It is possible to use the network-bridge script in more complicated +# scenarios, such as having two outgoing interfaces, with two bridges, and +# two fake interfaces per guest domain. To do things like this, write +# yourself a wrapper script, and call network-bridge from it, as appropriate. +# +(network-script network-bridge) + +# The script used to control virtual interfaces. This can be overridden on a +# per-vif basis when creating a domain or a configuring a new vif. The +# vif-bridge script is designed for use with the network-bridge script, or +# similar configurations. +# +# If you have overridden the bridge name using +# (network-script 'network-bridge bridge=') then you may wish to do the +# same here. The bridge name can also be set when creating a domain or +# configuring a new vif, but a value specified here would act as a default. +# +# If you are using only one bridge, the vif-bridge script will discover that, +# so there is no need to specify it explicitly. +# +(vif-script vif-bridge) + + +## Use the following if network traffic is routed, as an alternative to the +# settings for bridged networking given above. +#(network-script network-route) +#(vif-script vif-route) + + +## Use the following if network traffic is routed with NAT, as an alternative +# to the settings for bridged networking given above. +#(network-script network-nat) +#(vif-script vif-nat) + + +# 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 196) + +# In SMP system, dom0 will use dom0-cpus # of CPUS +# If dom0-cpus = 0, dom0 will take all cpus available +(dom0-cpus 0) + +# Whether to enable core-dumps when domains crash. +#(enable-dump no) + +# The tool used for initiating virtual TPM migration +#(external-migration-tool '') + +# The interface for VNC servers to listen on. Defaults +# to 127.0.0.1 To restore old 'listen everywhere' behaviour +# set this to 0.0.0.0 +#(vnc-listen '127.0.0.1') -- 1.7.9.5