-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.bash
66 lines (58 loc) · 1.54 KB
/
config.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#
# Configuration
#
# After editing this file run 'guest.bash' to setup the
# environment used to create the guest.
#
# U_RELEASE -- Ubuntu release, see: http://releases.ubuntu.com/
# U_ARCH -- Ubuntu architecture: i386, amd64
# U_MIRROR -- The Ubuntu mirror to download packages from.
# See:
# Official Archive Mirrors for Ubuntu
# https://launchpad.net/ubuntu/+archivemirrors
#
# Note: this is the configuration tested.
# Ubuntu Release
if [ -z $U_RELEASE ]; then
U_RELEASE=maverick
fi
export U_RELEASE
# Ubuntu Architecture
if [ -z $U_ARCH ]; then
U_ARCH=i386
fi
export U_ARCH
# Ubuntu Source Package Mirror
U_MIRROR="http://gb.archive.ubuntu.com/ubuntu"
export U_MIRROR
echo "Using Ubuntu"
echo " Release : $U_RELEASE"
echo " Architecture : $U_ARCH"
echo " Mirror : $U_MIRROR"
echo
#
# Guest defaults for the host and network.
#
# These can be overriden when executing `guest.bash`.
#
# See: `guest.bash --help`
#
DEFAULT_KVM_DOMAIN="example.com"
DEFAULT_KVM_HOSTNAME="vm-001"
DEFAULT_KVM_IP_STATIC=10.80.20.201
DEFAULT_KVM_IP_NETMASK=255.255.255.0
DEFAULT_KVM_IP_GATEWAY=10.80.20.1
DEFAULT_KVM_IP_NAMESERVER=10.80.20.10
#
# Disk Image Parameters units: MiB
#
# Note: Leave 1 MiB for the MBR, and specify sizes in whole MiB only.
#
export KVM_IMAGE_SIZE=2000
export KVM_IMAGE_BOOT=60
export KVM_IMAGE_ROOT=$(( $KVM_IMAGE_SIZE - $KVM_IMAGE_BOOT - 1 ))
export KVM_SWAP_IMAGE_SIZE=500
# This is a marker to ensure this file
# is only loaded once.
UB_CONFIGURED=true
export UB_CONFIGURED