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

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).


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 ...


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

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 ... ...


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.



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