-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathCentOS-6-x86_64-OpenNebula.cfg
98 lines (88 loc) · 1.91 KB
/
CentOS-6-x86_64-OpenNebula.cfg
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Build a basic CentOS 6 Image for OpenNebula
lang en_US.UTF-8
keyboard us
timezone UTC
auth --useshadow --enablemd5
selinux --permissive
firewall --enabled --ssh
bootloader --timeout=1
network --bootproto=dhcp --device=eth0 --onboot=on
services --enabled=network
zerombr yes
clearpart --all
part / --grow --size 1 --fstype ext3
rootpw --iscrypted $1$xNiXY22.$U1axaH.1SkO6zy8YAqX4S/
poweroff
# Repositories
repo --name=CentOS6-Base --baseurl=http://mirrors.karan.org/centos/6/os/x86_64/
repo --name=CentOS6-Updates --baseurl=http://mirrors.karan.org/centos/6/updates/x86_64/
repo --name=CentOS-ONE --baseurl=https://nazar.karan.org/results/opennebula/
#
#
# Add all the packages after the base packages
#
%packages --nobase --instLangs=en --excludedocs
@core
system-config-securitylevel-tui
system-config-firewall-base
audit
pciutils
bash
coreutils
kernel
grub
e2fsprogs
passwd
policycoreutils
chkconfig
rootfiles
yum
vim-minimal
acpid
openssh-clients
openssh-server
curl
#Allow for dhcp access
dhclient
iputils
#stuff we really done want
-kernel-firmware
-xorg-x11-drv-ati-firmware
-iwl6000g2a-firmware
-aic94xx-firmware
-iwl6000-firmware
-iwl100-firmware
-ql2200-firmware
-libertas-usb8388-firmware
-ipw2100-firmware
-atmel-firmware
-iwl3945-firmware
-ql2500-firmware
-rt61pci-firmware
-ipw2200-firmware
-iwl6050-firmware
-iwl1000-firmware
-bfa-firmware
-iwl5150-firmware
-iwl5000-firmware
-ql2400-firmware
-rt73usb-firmware
-ql23xx-firmware
-iwl4965-firmware
-ql2100-firmware
-ivtv-firmware
-zd1211-firmware
#for opennebula
opennebula-context
%end
#
# Add custom post scripts after the base post.
#
%post
sed -i -e 's/^ACTIVE_CONSOLES=\/dev\/tty\[1-6\]/ACTIVE_CONSOLES=\/dev\/tty1/' /etc/sysconfig/init
sed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth*
# clear out the serial console stuff, sine that messes up VNC
# sessions
sed -i -e 's/^serial.*$//' /etc/grub.conf
sed -i -e 's/console=ttyS0,115200//' /etc/grub.conf
%end