Tag Info

Hot answers tagged

5

The dhcp server doesn't actually serve the file. The dhcp server assigns an IP address to a host (pxe client) which lacks an operating system when it boots. In addition to the IP address, the dhcp server can tell the pxe client that it should contact a separate server for a boot loader and then the pxe client downloads the boot loader (usually using tftp) ...


3

What are the differences between %pre and %post sections of a kickstart script in CentOS? The %pre section runs prior to when anaconda evaluates the rest of the kickstart file, after the second stage of the installer has started. This means that you can create files in %pre that can be included with a %include /tmp/somefile in the kickstart ...


3

You can gently nudge the installation but telling the Kernel not to install drivers related to USB storage. This has the effect of stopping these devices from ever coming into the driveorder in the first place. From the GRUB menu: linux nousbstorage .... Kickstart Example From a Kickstart .cfg file: # Kickstart file automatically generated by anaconda. ...


3

As noted above, the tool you want is Kickstart. See Ubuntu notes on Kickstart for important tips. To get the IP address of the newly installed server, one simple approach might be to just put something in the Kickstart Post-Install Script that could be as simple as hitting a web server you control with a bogus request (you'd see the IP address in the Apache ...


3

Possibly you need to load the ipmi_devintf kernel module. Also, note that you don't need the Dell software to get the model. You can get it from IPMI with ipmitool # ipmitool fru FRU Device Description : Builtin FRU Device (ID 0) Board Mfg Date : Sun Dec 31 23:00:00 1995 Board Mfg : DELL Board Product : PowerEdge R515 or ...


2

Method #1 You can do this in the %post section: echo "configuring epel repository" rpm -Uvh http://download.fedora.redhat.com/pub/epel/beta/6/x86_64/epel-release-6-5.noarch.rpm Method #2 I think the more formal way of doing this is like this though in your .ks file: repo --name=epel --baseurl=http://LOCALEPELMIRROR/.../epel/6/x86_64/ %package ... ...


2

Build a kickstart server and a kickstart configuration file that specifies your disk layout, packages to be installed and a %post section. In this later section you can deploy any number of scripts (shell, Perl, etc.) from your kickstart server that will be executed to customize your basic configuration. The time you invest setting up a kickstart server ...


2

According to the docs, it seems you can't get rid of it from Kickstart: http://fedoraproject.org/wiki/Anaconda/Kickstart#bootloader But what you can do is get the command line and the grub config replaced in the post-install (%post) section and delete it from there. I think this should do: %post sed -i -e 's/quiet//' ...


2

Not being a CentOS user, I can't say why /tmp/cdrom would have existed in the first place, but it seems weird. Presumably it was a symlink to a real device node. You might try grep -R cdrom /etc/udev/ to see if someone set this up. There's probably a parallel symlink at /dev/cdrom, so you should be able to use that instead.


2

I have solved it... %post --log=/root/ks-post.log exec < /dev/tty6 > /dev/tty6 2> /dev/tty6 chvt 6 #mount the cd (ISO in my case) to copy files from it #since this is chrooted environment mount /dev/cdrom /mnt cp -rf /mnt/JOTC/src/jotc/ /opt/ cp -f /mnt/JOTC/src/service /etc/init.d/jotc #starting a service is dead simple chkconfig iptables on ...


2

The code was my spin from the following projects into an integrated "best-effort" - the scripts from Aqueduct, USGCB, etc. were tuned to RHEL 5 - I had to make a lot of modification to make it all work for RHEL 6 - so it is a fork in that sense. Anyway, I've merged and unified the code from the projects listed in the README of the stig-fix-el6 project: ...


2

You want to provide the following lines in the kickstart file: firewall --enable --ssh --port=mysql:tcp The %post section only does things during the installation process. You should let the install finish and reboot the machine and that firewall line should set the firewall rules for the box to allow only ssh and mysql (port 3306).


1

The %pre section(s) of your kickstart run inside the installer environment. Here's a list of helpful commands that are available in the installer environment in RHEL6.5: Shell utils: arch awk basename bash cat chattr chgrp chmod chown chroot clear clock consoletype cp cut date df dmesg du echo egrep env expr false fgrep find getopt grep head hwclock id ...


1

Commands such as these are typically not available in the %pre section of kickstart. excerpt - http://narrabilis.com/book/export/s5/6 %pre The %pre section is where you can specify commands to run before the system is installed. Commands placed here are not run in the chrooted install environment. %pre must come at the end of the kickstart file. ...


1

The packages listed are actually yum package groups. Groups are used to that they don't have to list out the individual packages (or necessarily know which packages are recommended for a particular effect) manually. For example, on RHEL 6 (and I would presume CentOS 6) if you're text-only you can do yum groupinstall Desktop which installs all the packages ...


1

I have some scripts that are probably still "beta" from a project on GitHub by the RedHatGov organization (Red Hat, Inc. government sector employees). https://github.com/RedHatGov While their project is not complete, nor universally applicable, it is a great start and I plan on forking, contributing, and requesting pulls for the projects. Frank Cavvigia ...


1

Not sure if this is your issue but I would change this line: echo "vagrant" | passwd --stdin vagrant To this line: echo -n "vagrant" | passwd vagrant --stdin


1

As @WarrenYoung mentioned in the comments, on 64-bit distros it's typically the case that you can install both the 32 & 64 bit versions of libraries. Case in point, here's my Fedora 14 system. Example Here's my architecture info. $ getconf LONG_BIT 64 Here's my OS architecture info. $ uname -a Linux grinchy 2.6.35.14-106.fc14.x86_64 #1 SMP Wed Nov ...


1

Turns out that the nousbstorage would not work when placed in the ks.cfg file. While installing CentOS 5.5, I would receive a 'Unknown command' error. Turns out that nousbstorage needs to be added to the isolinux.cfg file: default linux prompt 1 timeout 0 display boot.msg F1 boot.msg F2 options.msg F3 general.msg F4 param.msg F5 rescue.msg label linux ...


1

You need to specify the dd option to kickstart and provide the driver disk locally. See https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Installation_Guide/s1-kickstart2-startinginstall.html for the dd option, and ...


1

There is the redhat satellite server, or its opensource version spacewalk, which could help you with managing these systems. http://spacewalk.redhat.com


1

The "cdrom" line is telling kickstart to do a CD-ROM based install. Remove it and it should use the URL you gave it for the install.


1

I had exactly the same need as you, to capture the %pre log for later analysis. You're right, by the time you're in %post Anaconda has already chrooted you to the newly-built filesystem, so it's not possible to access the %pre log. You could run %post with --nochroot, but IMO that makes paths in %post a pain. I managed to get what I wanted by using %include ...


1

You were very close to the solution. Anaconda (the installer) is written in Python, so I went digging into the code. Ultimately, it executes the script like this: rc = iutil.execWithRedirect(self.interp, ["/tmp/%s" % os.path.basename(path)], stdin = messages, stdout = messages, stderr = messages, ...


1

You pass NFS options to RHEL 6's kickstart process the same way you do in Fedora. See https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html for details.


1

The answer seems simple. You used the wrong syntax. "-" instead of "--".



Only top voted, non community-wiki answers of a minimum length are eligible