etc/xensource-inventory 0000644 0000000 0000000 00000000713 10764237742 014335 0 ustar root root PRODUCT_BRAND='XenServer'
PRODUCT_NAME='xenenterprise'
PRODUCT_VERSION='4.1.0'
BUILD_NUMBER='7390p'
KERNEL_VERSION='2.6.18-53.1.13.el5.xs4.1.0.247.268xen'
XEN_VERSION='3.1.0'
INSTALLATION_DATE='2008-03-04 02:36:55.278935'
PRIMARY_DISK='/dev/sdb'
BACKUP_PARTITION='/dev/sdb6'
INSTALLATION_UUID='00000000-0000-0000-0001-000000000001'
CONTROL_DOMAIN_UUID='00000000-0000-0000-0002-000000000001'
DEFAULT_SR_PHYSDEVS=''
DOM0_MEM='752'
MANAGEMENT_INTERFACE='xenbr2'
etc/xensource/ 0000755 0000000 0000000 00000000000 10764236762 012357 5 ustar root root etc/xensource/log.conf 0000755 0000000 0000000 00000001200 10761040165 013766 0 ustar root root reset
debug;http;nil
debug;sql;nil
debug;db_write;nil
debug;buf_io;nil
#debug;monitor;nil
debug;db_server;nil
debug;api_readonly;nil
info;api_readonly;nil
debug;dispatcher;nil
info;api_readonly;nil
debug;sm;nil
debug;xapi_event;nil
debug;locking;nil
debug;db_server;nil
debug;server_io;nil
debug;server_helpers;nil
# Set info,warn,error to log to syslog by default
info;;syslog:xapi
warn;;syslog:xapi
error;;syslog:xapi
# Also print everything (debug<->error) into xensource.log for easier debugging
debug;;file:/var/log/xensource.log
info;;file:/var/log/xensource.log
warn;;file:/var/log/xensource.log
error;;file:/var/log/xensource.log
etc/xensource/boot_time_memory 0000600 0000000 0000000 00000000013 10764236762 015635 0 ustar root root 33073135616 etc/xensource/xapi.conf 0000755 0000000 0000000 00000000310 10761040165 014147 0 ustar root root
schema_filename = /etc/xensource/db_schema.sql
license_filename = /etc/xensource/license
http-port = 80
use-ssl = true
ssl-cert = /etc/ssl/certs/xensource-rio.pem
ssl-port = 443
# dom0-mem = 128
etc/xensource/db.conf.rio 0000755 0000000 0000000 00000000112 10761040165 014363 0 ustar root root [/var/xapi/state.db]
mode:no_limit
format:sqlite
available_this_boot:true
etc/xensource/ptoken 0000600 0000000 0000000 00000000156 10763215670 013566 0 ustar root root e80312c2-cf0a-d555-4f85-21b10a90f3e5/de5b435a-b3ea-614e-670b-103cf07e740a/2d033901-2578-cb54-ec7c-c893bf59a8b0 etc/xensource/db_schema.sql 0000644 0000000 0000000 00000016301 10761040166 014772 0 ustar root root CREATE TABLE session (
_ref text,
uuid text,
this_host text,
this_user text,
last_active text,
pool text,
other_config text
);
CREATE TABLE task (
_ref text,
uuid text,
name__label text,
name__description text,
allowed_operations text,
current_operations text,
created text,
finished text,
status text,
session text,
resident_on text,
progress text,
externalpid text,
stunnelpid text,
forwarded text,
forwarded_to text,
type text,
result text,
error_info text,
other_config text
);
CREATE TABLE event (
_ref text,
id text,
timestamp text,
class text,
operation text,
ref text,
obj_uuid text
);
CREATE TABLE pool (
_ref text,
uuid text,
name_label text,
name_description text,
master text,
default_SR text,
suspend_image_SR text,
crash_dump_SR text,
other_config text
);
CREATE TABLE pool_patch (
_ref text,
uuid text,
name__label text,
name__description text,
version text,
filename text,
size text,
pool_applied text,
after_apply_guidance text,
other_config text
);
CREATE TABLE VM (
_ref text,
uuid text,
allowed_operations text,
current_operations text,
power_state text,
name__label text,
name__description text,
user_version text,
is_a_template text,
suspend_VDI text,
resident_on text,
scheduled_to_be_resident_on text,
affinity text,
memory__static_max text,
memory__dynamic_max text,
memory__dynamic_min text,
memory__static_min text,
VCPUs__params text,
VCPUs__max text,
VCPUs__at_startup text,
actions__after_shutdown text,
actions__after_reboot text,
actions__after_crash text,
PV__bootloader text,
PV__kernel text,
PV__ramdisk text,
PV__args text,
PV__bootloader_args text,
PV__legacy_args text,
HVM__boot_policy text,
HVM__boot_params text,
HVM__shadow_multiplier text,
platform text,
PCI_bus text,
other_config text,
domid text,
domarch text,
last_boot_CPU_flags text,
is_control_domain text,
metrics text,
guest_metrics text,
last_booted_record text,
recommendations text,
xenstore_data text
);
CREATE TABLE VM_metrics (
_ref text,
uuid text,
memory__actual text,
VCPUs__number text,
VCPUs__utilisation text,
VCPUs__CPU text,
VCPUs__params text,
VCPUs__flags text,
state text,
start_time text,
install_time text,
last_updated text
);
CREATE TABLE VM_guest_metrics (
_ref text,
uuid text,
os_version text,
PV_drivers_version text,
PV_drivers_up_to_date text,
memory text,
disks text,
networks text,
other text,
last_updated text
);
CREATE TABLE host (
_ref text,
uuid text,
name__label text,
name__description text,
allowed_operations text,
current_operations text,
API_version__major text,
API_version__minor text,
API_version__vendor text,
API_version__vendor_implementation text,
enabled text,
software_version text,
other_config text,
capabilities text,
cpu_configuration text,
sched_policy text,
supported_bootloaders text,
logging text,
suspend_image_sr text,
crash_dump_sr text,
hostname text,
address text,
metrics text,
license_params text,
boot_free_mem text
);
CREATE TABLE host_crashdump (
_ref text,
uuid text,
host text,
timestamp text,
size text,
filename text,
other_config text
);
CREATE TABLE host_patch (
_ref text,
uuid text,
name__label text,
name__description text,
version text,
host text,
filename text,
applied text,
timestamp_applied text,
size text,
pool_patch text,
other_config text
);
CREATE TABLE host_metrics (
_ref text,
uuid text,
memory__total text,
memory__free text,
live text,
last_updated text
);
CREATE TABLE host_cpu (
_ref text,
uuid text,
host text,
number text,
vendor text,
speed text,
modelname text,
family text,
model text,
stepping text,
flags text,
features text,
utilisation text
);
CREATE TABLE network (
_ref text,
uuid text,
name__label text,
name__description text,
allowed_operations text,
current_operations text,
other_config text,
bridge text
);
CREATE TABLE VIF (
_ref text,
uuid text,
allowed_operations text,
current_operations text,
device text,
network text,
VM text,
MAC text,
MTU text,
reserved text,
other_config text,
currently_attached text,
status_code text,
status_detail text,
runtime_properties text,
qos__algorithm_type text,
qos__algorithm_params text,
qos__supported_algorithms text,
metrics text
);
CREATE TABLE VIF_metrics (
_ref text,
uuid text,
io__read_kbs text,
io__write_kbs text,
last_updated text
);
CREATE TABLE PIF (
_ref text,
uuid text,
device text,
network text,
host text,
MAC text,
MTU text,
VLAN text,
device_name text,
metrics text,
physical text,
currently_attached text,
ip_configuration_mode text,
IP text,
netmask text,
gateway text,
DNS text,
bond_slave_of text,
VLAN_master_of text,
management text,
other_config text
);
CREATE TABLE PIF_metrics (
_ref text,
uuid text,
io__read_kbs text,
io__write_kbs text,
carrier text,
vendor_id text,
vendor_name text,
device_id text,
device_name text,
speed text,
duplex text,
pci_bus_path text,
last_updated text
);
CREATE TABLE Bond (
_ref text,
uuid text,
master text,
other_config text
);
CREATE TABLE VLAN (
_ref text,
uuid text,
tagged_PIF text,
untagged_PIF text,
tag text,
other_config text
);
CREATE TABLE SM (
_ref text,
uuid text,
name__label text,
name__description text,
type text,
vendor text,
copyright text,
version text,
required_api_version text,
configuration text,
capabilities text,
other_config text
);
CREATE TABLE SR (
_ref text,
uuid text,
name__label text,
name__description text,
allowed_operations text,
current_operations text,
virtual_allocation text,
physical_utilisation text,
physical_size text,
type text,
content_type text,
shared text,
other_config text,
default_vdi_visibility text,
sm_config text
);
CREATE TABLE VDI (
_ref text,
uuid text,
name__label text,
name__description text,
allowed_operations text,
current_operations text,
SR text,
virtual_size text,
physical_utilisation text,
type text,
sharable text,
read_only text,
other_config text,
storage_lock text,
location text,
managed text,
missing text,
parent text,
xenstore_data text,
sm_config text
);
CREATE TABLE VBD (
_ref text,
uuid text,
allowed_operations text,
current_operations text,
VM text,
VDI text,
device text,
userdevice text,
bootable text,
mode text,
type text,
unpluggable text,
storage_lock text,
empty text,
reserved text,
other_config text,
currently_attached text,
status_code text,
status_detail text,
runtime_properties text,
qos__algorithm_type text,
qos__algorithm_params text,
qos__supported_algorithms text,
metrics text
);
CREATE TABLE VBD_metrics (
_ref text,
uuid text,
io__read_kbs text,
io__write_kbs text,
last_updated text
);
CREATE TABLE PBD (
_ref text,
uuid text,
host text,
SR text,
device_config text,
currently_attached text,
other_config text
);
CREATE TABLE crashdump (
_ref text,
uuid text,
VM text,
VDI text,
other_config text
);
CREATE TABLE VTPM (
_ref text,
uuid text,
VM text,
backend text
);
CREATE TABLE console (
_ref text,
uuid text,
protocol text,
location text,
VM text,
other_config text,
port text
);
CREATE TABLE user (
_ref text,
uuid text,
short_name text,
fullname text
);
CREATE TABLE schema_version (major text, minor text);
INSERT INTO schema_version (major, minor) VALUES ('5','35');
etc/xensource/pool.conf 0000755 0000000 0000000 00000000006 10761040165 014161 0 ustar root root master etc/xensource/db.conf 0000755 0000000 0000000 00000000112 10761040165 013573 0 ustar root root [/var/xapi/state.db]
mode:no_limit
format:sqlite
available_this_boot:true
etc/xensource/boot_time_cpus 0000644 0000000 0000000 00000003771 10764236761 015324 0 ustar root root processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2210
stepping : 3
cpu MHz : 1809.271
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht nx mmxext fxsr_opt lm 3dnowext 3dnow pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid vid ttp tm stc
bogomips : 3619.58
processor : 1
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2210
stepping : 3
cpu MHz : 1809.271
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid vid ttp tm stc
bogomips : 3619.58
processor : 2
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2210
stepping : 3
cpu MHz : 1809.271
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid vid ttp tm stc
bogomips : 3619.58
processor : 3
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2210
stepping : 3
cpu MHz : 1809.271
cache size : 1024 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu tsc msr pae mce cx8 apic mtrr mca cmov pat pse36 clflush mmx fxsr sse sse2 ht nx mmxext fxsr_opt lm 3dnowext 3dnow up pni cx16 lahf_lm cmp_legacy svm extapic cr8legacy ts fid vid ttp tm stc
bogomips : 3619.58
etc/xensource/xapi-ssl.conf 0000755 0000000 0000000 00000000254 10761040165 014755 0 ustar root root pid = /var/run/xapi.ssl.pid
socket = r:TCP_NODELAY=1
socket = a:TCP_NODELAY=1
socket = l:TCP_NODELAY=1
[xapi]
accept = 443
connect = 80
cert = /etc/xensource/xapi-ssl.pem
etc/xensource/license 0000755 0000150 0165310 00000001116 10755364300 013306 0 ustar pb22 pb22 -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFHi/MMor8EvHqMeKcRAp3xAJ9yRY2m55oC7qhH6VW4XBzRgmYXaACfUtEL
QL0emqvMCANYxHXDtJktG3c=
=4EhC
-----END PGP SIGNATURE-----
etc/xensource/db-default-fields 0000644 0000000 0000000 00000001217 10761040165 015541 0 ustar root root SR.other_config=()
VDI.storage_lock=false
VBD.storage_lock=false
VBD.allowed_operations=()
VBD.current_operations=()
host.allowed_operations=()
host.current_operations=()
network.allowed_operations=()
network.current_operations=()
VDI.allowed_operations=()
VDI.current_operations=()
VBD.storage_lock=false
SR.allowed_operations=()
SR.current_operations=()
VDI.managed=true
SR.default_vdi_visibility=true
console.port=-1
PIF_metrics.carrier=false
VBD.empty=false
VBD.reserved=false
task.forwarded_task=OpaqueRef:Ref.null
VIF.other_config=()
VIF.allowed_operations=()
VIF.current_operations=()
VIF.reserved=false
VM_guest_metrics.PV_drivers_up_to_date=false etc/xensource/xapi-ssl.pem 0000400 0000000 0000000 00000002366 10763215701 014604 0 ustar root root -----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBAMSw4sQH9beP9rPbwK98Jt4pb/33xrZN7/Km3yTQ3037HL3QBbdR
j1BMSmet4ZKhGInVfXdtBDta5QYGSOqUuLcCAwEAAQJAQzio55JI2glrqSCLg+4M
YpUK32NVGG0eenGpha2VA9MaywJr7lipdIfCQSpgOyQGALP6Q1o9FL2MrF1jm7qO
kQIhAPBhTGaa8TCl9aljjg8/o799vWr/vqAP9Bk1BCkZbdEdAiEA0XjSoo3GKfv0
ZOLJ1QzJQvT7zqEM9GwzO4e+cES/vOMCICprMR1GKFvKXZCXteDw/Qd0u/Fe0hfS
2ON93I8YIq3tAiEAytYpeRi57Au7IznsYS6JcRnS/8o5xjFEBwAyK3qXBCsCICW4
798+hfEVPuYkha8Gio7TPNE82riFX1mzjiCXtYOw
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIBnDCCAUYCCQCrJemwuApTOTANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJV
UzELMAkGA1UECBMCUEExFjAUBgNVBAoTDVhlblNvdXJjZSBJbmMxITAfBgkqhkiG
9w0BCQEWEmluZm9AeGVuc291cmNlLmNvbTAeFw0wODAzMDQwOTUyMDBaFw0xODAz
MDIwOTUyMDBaMFUxCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJQQTEWMBQGA1UEChMN
WGVuU291cmNlIEluYzEhMB8GCSqGSIb3DQEJARYSaW5mb0B4ZW5zb3VyY2UuY29t
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMSw4sQH9beP9rPbwK98Jt4pb/33xrZN
7/Km3yTQ3037HL3QBbdRj1BMSmet4ZKhGInVfXdtBDta5QYGSOqUuLcCAwEAATAN
BgkqhkiG9w0BAQUFAANBADClPksD3DfMpsAmp/CTh3d8jsVo6Or1wbMzS7yvS4M4
qQb+NEIp7nZRRsLntU1VXVUtK3KSlhwxvd8cp3Ca248=
-----END CERTIFICATE-----
-----BEGIN DH PARAMETERS-----
MEYCQQDgASiFDX32C3oqDSj+IMlj6X66G1RM6hASm2GOSQb0nOAqbFE5lFo6oC5t
4GoL43i2QalbSOsLqJ5mNtNnrMLrAgEC
-----END DH PARAMETERS-----
etc/xensource/scripts/ 0000755 0000000 0000000 00000000000 10761040165 014031 5 ustar root root etc/xensource/scripts/tap 0000755 0000000 0000000 00000000464 10761040165 014547 0 ustar root root #!/bin/sh
TYPE=`echo ${XENBUS_PATH} | cut -f 2 -d '/'`
DOMID=`echo ${XENBUS_PATH} | cut -f 3 -d '/'`
DEVID=`echo ${XENBUS_PATH} | cut -f 4 -d '/'`
XAPI=/xapi/${DOMID}/hotplug/${TYPE}/${DEVID}
case "$1" in
add)
xenstore-write "${XAPI}/hotplug" "online"
;;
remove)
xenstore-rm "${XAPI}/hotplug"
;;
esac
etc/xensource/scripts/block-frontend 0000755 0000000 0000000 00000001744 10761040165 016674 0 ustar root root #!/bin/sh
# Writes to the store when this domain's frontend block device appears.
# Once this happens we should be safe opening the device.
# NB special handling of partition events:
# If we block-attach a device and then create partitions, events are
# generated with DEVPATHs of the form /block/xvde/xvde1 -- we ignore these
# If we block-attach a partition directly then events are generated
# with DEVPATHs of the form /block/xvde1 -- we act on these.
PARTITION=`echo ${DEVPATH} | cut -f 4 -d '/'`
if [ ! -z ${PARTITION} ]; then
# the bad kind of partition
exit
fi
DOMID=`xenstore-read domid`
# Extract the device type and ID from the PHYSDEVPATH eg
# PHYSDEVPATH=/devices/xen/vbd-51728
TYPE=`echo ${PHYSDEVPATH} | cut -f 4 -d '/' | cut -f 1 -d '-'`
DEVID=`echo ${PHYSDEVPATH} | cut -f 2 -d '-'`
XAPI=/xapi/${DOMID}/frontend/${TYPE}/${DEVID}
case "$1" in
add)
xenstore-write "${XAPI}/hotplug" "online"
;;
remove)
xenstore-rm "${XAPI}"
;;
esac
etc/xensource/scripts/block 0000755 0000000 0000000 00000000520 10761040165 015046 0 ustar root root #!/bin/sh
TYPE=`echo ${XENBUS_PATH} | cut -f 2 -d '/'`
DOMID=`echo ${XENBUS_PATH} | cut -f 3 -d '/'`
DEVID=`echo ${XENBUS_PATH} | cut -f 4 -d '/'`
XAPI=/xapi/${DOMID}/hotplug/${TYPE}/${DEVID}
case "$1" in
add)
xenstore-write "${XAPI}/hotplug" "online"
;;
remove)
xenstore-rm "${XAPI}/hotplug"
;;
esac
etc/xensource/scripts/vif 0000755 0000000 0000000 00000003432 10761040165 014545 0 ustar root root #!/bin/sh
TYPE=`echo ${XENBUS_PATH} | cut -f 2 -d '/'`
DOMID=`echo ${XENBUS_PATH} | cut -f 3 -d '/'`
DEVID=`echo ${XENBUS_PATH} | cut -f 4 -d '/'`
XAPI=/xapi/${DOMID}/hotplug/${TYPE}/${DEVID}
VM=$(list_domains -domid ${DOMID} -minimal)
VIF=$(xe vif-list vm-uuid=${VM} device=${DEVID} --minimal)
handle_promiscuous()
{
local arg=$(xe vif-param-get param-name=other-config param-key=promiscuous uuid=${VIF} 2>/dev/null)
if [ $? -eq 0 -a -n "${PROMISCUOUS}" ] ; then
case "${arg}" in
true|on) echo 1 > /sys/class/net/${vif}/brport/promisc ;;
*) echo 0 > /sys/class/net/${vif}/brport/promisc ;;
esac
fi
}
handle_ethtool()
{
local opt=$1
local arg=$(xe vif-param-get param-name=other-config param-key=ethtool-${opt} uuid=${VIF} 2>/dev/null)
if [ $? -eq 0 -a -n "${arg}" ] ; then
case "${arg}" in
true|on) /sbin/ethtool -K "${vif}" "${opt}" on ;;
false|off) /sbin/ethtool -K "${vif}" "${opt}" off ;;
*) logger -t scripts-vif "Unknown ethtool argument ${opt}=${arg} on ${vif}/${VIF}" ;;
esac
fi
}
handle_mtu()
{
local arg=$(xe vif-param-get param-name=other-config param-key=mtu uuid=${VIF} 2>/dev/null)
if [ -n "${arg}" ] ; then
# test returns 2 if ${arg} is not an integer
test "${arg}" -eq 0 2>/dev/null
case $? in
0|1) echo "${arg}" > "/sys/class/net/${vif}/mtu" ;;
2|*) logger -t scripts-vif "Invalid MTU \`${arg}' given for ${vif}/${VIF}" ;;
esac
fi
}
case "$1" in
online)
handle_promiscuous
handle_mtu
handle_ethtool rx
handle_ethtool tx
handle_ethtool sg
handle_ethtool tso
handle_ethtool ufo
handle_ethtool gso
xenstore-write "${XAPI}/vif" "${vif}"
xenstore-write "${XAPI}/hotplug" "online"
;;
remove)
xenstore-rm "${XAPI}/hotplug"
;;
esac
etc/xensource/master.d/ 0000755 0000000 0000000 00000000000 10761040165 014057 5 ustar root root etc/xensource/master.d/01-example 0000755 0000000 0000000 00000000713 10761040165 015657 0 ustar root root #!/bin/sh
# Example on-master-start script
# Source function library.
. /etc/init.d/functions
start() {
echo -n $"Assuming role of master: "
touch /tmp/master
echo -n $"OK"
success $"OK"
echo
return 0
}
stop() {
echo -n $"Dropping role of master: "
rm -f /tmp/master
echo
return 0
}
restart() {
stop
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
etc/xensource/xsdata_allowed_prefix 0000755 0000000 0000000 00000000011 10761040165 016630 0 ustar root root vm-data/
etc/xensource/license-Express 0000755 0000000 0000000 00000001103 10761040165 015334 0 ustar root root -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFHsuC2or8EvHqMeKcRAtpmAJ0dq5HwFKvQF03+yeuCCqMurb9eqQCeJrE2
6fQXPlqh9B27G3AcEL8y+1w=
=JimV
-----END PGP SIGNATURE-----