[CentOS-devel] interest in Cloud Instance SIG (from the Synnefo and Ganeti side)

Thu Feb 20 14:00:48 UTC 2014
Manuel Wolfshant <wolfy at nobugconsulting.ro>

On 02/20/2014 02:42 PM, Jim Perrin wrote:
>
> On 02/20/2014 06:18 AM, Constantinos Venetsanopoulos wrote:
>> Hello Jim,
>> Unfortunately, my team comes from a Debian background and
>> we have zero experience with kickstart :(
>> However, we are willing to help however we can.
>>
>> So, what do you think are the next steps?
>
> I'm traveling to scale12x this weekend, but when I get back, I can work
> with you on generating an appropriate kickstart filed that we can run
> through our build system. We'll probably go back and forth a bit between
> generating and testing images, and then we'll be able to push to
> cloud.centos.org.
>
> If anyone else on the devel list wants to pick this up before Tuesday
> that would work also.
>
Hello

     Something along the attached kickstart file should do it. It needs 
a bit of tweaking ( especially partitions wise and obviously 
password-wise) and maybe for persuading it to not install all the 
firmware meant for Wi-Fi cards.

     Manuel
-------------- next part --------------
#pay attention to the comments inline !!


install
reboot
#use a mirror close to you or even better, the local one provided by your organization
url --url http://mirror.centos.org/centos/6/os/x86_64
repo --name=updates --baseurl=http://mirror.centos.org/centos/6/updates/x86_64/
lang en_US.UTF-8
keyboard us
skipx
network --device eth0 --bootproto dhcp
#do not forget to change the password !
#rootpw test1234
rootpw --iscrypted  $1$.A66cJ18$2YhwhpQs.fRNno/PAzqc7/
firewall --enabled
selinux --enforcing
authconfig --enableshadow --passalgo=sha512 --enablefingerprint
services --enabled auditd,cups,ntpd,ntpdate,acpid,
timezone --utc Europe/London
bootloader --location=mbr
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --all --initlabel --drives=sda
part /boot --fstype ext3 --size=250
part pv.2 --size=5000 --grow 
volgroup VolGroup00 --pesize=32768 pv.2
logvol / --fstype ext4 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=256 --grow --maxsize=512

%packages --nobase
#use the next line instead of the previous one if you do not care about the doc files
#%packages --nobase --excludedocs
coreutils
yum
rpm
e2fsprogs
lvm2
grub
openssh-server
openssh-clients
dhclient
yum-presto
irqbalance
-atmel-firmware-1.3-7.el6.noarch
-b43-openfwwf-5.2-4.el6.noarch
-ipw2100-firmware-1.3-11.el6.noarch
-ipw2200-firmware-3.1-4.el6.noarch
-ivtv-firmware-20080701-20.2.noarch
-iwl1000-firmware-128.50.3.1-1.1.el6.noarch
-iwl3945-firmware-15.32.2.9-4.el6.noarch
-iwl4965-firmware-228.61.2.24-2.1.el6.noarch
-iwl5000-firmware-8.24.2.12-3.el6.noarch
-iwl5150-firmware-8.24.2.2-1.el6.noarch
-iwl6000-firmware-9.176.4.1-2.el6.noarch
-iwl6050-firmware-9.201.4.1-2.el6.noarch
-libertas-usb8388-firmware-5.110.22.p23-3.1.el6.noarch
-mysql-libs-5.1.47-4.el6.i686
-rt61pci-firmware-1.2-7.el6.noarch
-rt73usb-firmware-1.8-7.el6.noarch
-sysstat-9.0.4-11.el6.i686
-yum-utils-1.1.26-11.el6.noarch
-zd1211-firmware-1.4-4.el6.noarch
-info
-cyrus-sasl
sudo
crontabs
cronie-anacron
postfix
NetworkManager
acpid
%end
%post
/bin/echo "multilib_policy=best" >> /etc/yum.conf >> /root/postinstall.log 2>&1
rm /etc/udev/rules.d/70-persistent-net.rules
sed -i "/HWADDR/d" /etc/sysconfig/network-scripts/ifcfg-eth0
tune2fs -i 0 /dev/vda1
%end