Centos Kickstart Installation From Usb

Nothing (pertinent to Centos) on the drive except the kickstart file. Linux ks=hd:sdb1:/build.cfg loads usb storage driver, initially does NOT find the file and prompts for the location of the kickstart file. Install CentOS 7 remotely using Kickstart and GRUB. I’m going to need a Kickstart file, some files from the CentOS 7 installation and create a custom GRUB boot loader entry. You can boot via the CentOS 7 DVD or USB-stick. In the menu that appears, you can hit “tab” and enter custom commands.

  1. Centos Kickstart Installation
  2. Centos 7.4 Kickstart
  3. Creating Centos Kickstart
  4. Kickstart Centos 7 Install
  5. Kickstart Script For Centos 7
  6. Centos Kickstart Usb
I'm trying to set up a custom installation of CentOS using kickstart

Create a CentOS 6 bootable USB which will support customized installation (by using kickstart configuration file). Limitations with other software UNetbootin: Bootable USB of CentOS 6 created by UNetbootin is not even booting the system using USB and not support kickstart configuration file. Install CentOS 7 remotely using Kickstart and GRUB. Some files from the CentOS 7 installation and create a custom GRUB. You can boot via the CentOS 7 DVD or USB.

How to install CentOS 6 via USB mass. USB drive from CentOS/RedHat 5.x/6.x installation disk. Installation disks (with kickstart. Kickstart file to work with USB Centos. I know how to manually restore the grub boot to the hard disk but since this is an automatic installation perhaps there is an kickstart option to explicitly specify it to the installed hard. This is much the same as I did in the linked article (Rebuild Fedora 19 ISO adding Kickstart for USB install). Thanks for your reply.


i tried many thing from how to's and tutorial web pages but nothing
worked ;(
Here is my USB key tree :
-- CentOS
`-- last rpm
-- TRANS.TBL
-- boot.cat
-- boot.msg
-- custom.iso
-- general.msg
-- images
-- README
-- TRANS.TBL
-- boot.iso
-- diskboot.img
-- minstg2.img
-- pxeboot
`-- vmlinuz
-- stage2.img `-- xen
-- TRANS.TBL
-- initrd.img
`-- vmlinuz
-- initrd.img
-- ks
-- TRANS.TBL
`-- ks.cfg
-- ldlinux.sys
-- memtest
-- options.msg
-- package-ipbx
`-- packages for postinstall
-- param.msg
-- repodata
-- TRANS.TBL
-- comps.xml
-- filelists.xml.gz
-- other.xml.gz
-- primary.xml.gz
`-- repomd.xml
-- rescue.msg
-- splash.lss
-- syslinux.cfg
-- syslinux.cfg~`-- vmlinuz
I install syslinux on the USB key and also use the following command :
dd if=/dev/sdb of=/tmp/mbr_sdb.bin bsQ2 count=1
I tried to install CentOS from my USB key but it says :
Title : 'Missing ISO 9660'
Content : 'The installer has tried to mount image #1,but cannot find it
on the hard drive .. '
Active6 years, 2 months ago

I want to install CentOS 6.2 on a laptop (Thinkpad R40) which comes without CD/DVD-drive but with USB 2.0 ports.

It seems that CentOS does not provide ready-to-use dd-able USB images for installation.

Pyramid swr 14 owners manual. With ESP™, priority vehicles are assigned without user intervention to ensure uninterrupted communications when users exit their vehicles.

Thus my question: How to install CentOS via a USB device (e.g. a 16 GB USB flash drive)?

Regarding using different available iso-images as base: the laptop has net-access - but I want to make sure that the CentOS installer is not loading unchecked packages from the net during installation - perhaps a netinstall image does not check cryptographically signed packages during installation (as with the Fedora 14 installer).

There is a CentOS InstallFromUSBkey which just provides outdated, cryptic and wrong information.

Program iPos 4.0 adalah Program Perdagangan untuk mengontrol Stok, Pembelian, Penjualan serta Keuangan yang sudah dilengkapi dengan Akuntansi sehingga pemilik usaha dapat langsung mengetahui Laba/Rugi usaha. Program Toko iPos 4.0 Edisi Profesional adalah program perdagangan retail dan grosir untuk skala iPos 4.0 mampu menangani dan memproses data yang cukup banyak karena menggunakan sistem database digunakan bersama-sama. Software Toko iPOS 4.0 / Software TOKO IPOS 4.0 ORIGINAL 'BUKAN KEY GEN ' UPDATE IPOS 4 0 4 1 Software Toko iPOS 4.0 atau Program Toko iPOS 4.0 adalah merupakan pengembangan dari Software Toko iPOS 3.3 atau Program Toko 3.3 yang terintegrasi dengan sistem Akuntansi. Program toko ipos 4 keygen idm.

Especially, the instructions for CentOS 6 are missing details and contain errors (10 MB for the first partition is not enough, syslinux device fails and what are they talking about grub?)

Community
maxschlepzigmaxschlepzig
36.3k35 gold badges150 silver badges222 bronze badges

10 Answers

Following method works with CentOS 6.2:

Requirements: USB flash drive (at least 4 GB, I used a 16 GB one)

Download an ISO image from a mirror - I chose the full 1st DVD image to avoid a network install (because it is not clear if the cryptographic package signatures are checked by the installer or not), e.g.:

Check the md5sum against a md5sum.txt file from another mirror (and check md5sum.txt against md5sum.txt.asc via gpg).

Partition your flash drive (say it is /dev/sdb), i.e. delete all partitions, create just one, set the boot-flag and perhaps the FS-type:

Create a filesystem of type VFAT:

Fetch the Fedora-LiveCD tools:

(We need livecd/tools/livecd-iso-to-disk.sh - it also supports non-livecd ISO-images as source!)

Install some packages needed by the script, e.g. under a Debian-like system:

Execute the script:

From

Test the device:

For this to work you user (temporarily) needs rw permissions on /dev/sdb.

PS: As a side node, RHEL 6 has dropped support for non PAE hardware - i.e. the kernel does not run on such an old system like a Thinkpad R40 (which is Centrino based).

maxschlepzigmaxschlepzig
36.3k35 gold badges150 silver badges222 bronze badges

This really helps:http://iso2usb.sourceforge.net/

ISO2USB utility creates bootable USB drive from CentOS/RedHat 5.x/6.x installation disk or corresponding ISO image. Created USB drive may be used to perform installation on machines that lack optical drive. Custom installation disks (with kickstart configuration files) are fully supported.

ISO2USB source code is based on UNetbootin project, but features the following distinctions:

  • Created USB drive is fully self-contained and doesn't rely on networkinstall.
  • Custom installation disks are fully supported (kickstart configuration files are adapted for USB install mode).
  • Original optical media (CD or DVD) may be used instead of ISO images.
  • Image may be adapted for installation from RS-232 serial console.
Dmitry ShostDmitry Shost

If you use windows, use unetbootin and prepare the Centos ISO. Plug the usb drive, run unetbootin and then from unetbootin burn the ISO to the usb drive.

Mat
41.2k8 gold badges129 silver badges132 bronze badges
kurniawankurniawan

The problem that you are having with Centos (Fedora & RHEL) are that they install from a kickstart (ks.cfg) file and not directly from the image/iso/CD/DVD.

Running a live CD/DVD is a different animal. Many ISO to USB tools are based on using a Live CD image and not a install image. On many Linux distros there is no difference in Live to Install, but the Centos/RHEL, Fedora distros do have different ISO's for a reason (good or not is debatable).

So far I have only found that iso2usb, unetbootin and Xboot handle this task somewhat correctly. The underlying problem is that the kickstart file contents have more information that needs changing to work correctly. There are also differences in Centos/RHEL versions 6.2 to 6.3 that change the kickstart file so that the method that I worked out for 6.2 doesn't work for 6.3.

Basically these distros install almost everything from RPM files and not binaries contained in the ISO. This RPM method works for install, upgrade, modification, updates from CD or Network or local file, but makes installing from USB tough.

Change #1, The USB stick can look like a local drive and not a CD, then that mounting location can change depending on the type/brand of USB stick you have. Some are recognized as hard drives behind a USB Hub, others are seen as a harddrive (no USB) others are not recognized at all by the BIOS and some are recognized by the BIOS and when the install process gets handed off to the Centos installer for completion then that no longer works because the USB stick changes mount point and can not be found (change #2).

I have found that different brands/types/formats of USB sticks change mounting locations during the install process and that causes two kinds of failures.

  1. Your hard drive changes mount point, or
  2. the USB changes mount point. (that is the 6.3 problem)

You can take the easier path and install from a LiveCD or LiveDVD image on a USB stick. Just boot the live image and the perform the install from the desktop or do the init 6 thing. I believe that performing an install using the net install ISO file from a USB stick should work because the point where the installer looks for the RPM files is going to be looking on the NET and not on the USB drive that has moved mount points, but I have not tried that yet.

jasonwryan
53.1k14 gold badges140 silver badges194 bronze badges
bondobondo

If you want to just put the netinstall iso on your USB device and install CentOS via URL, do this:

  1. use maxschlepzig's method above to get the netinstall iso on your USB device. That method only works with self-contained ISOs that have all the packages you need for installation.

  2. boot the USB device

  3. at the bootloader screen ('Install or upgrade an existing system' etc.), press TAB to edit boot options

  4. remove the whole stage2=.. section.

  5. add 'inst.repo=', where the url is something like http://mirror.stanford.edu/mirrors/centos/6.3/os/x86_64

  6. press Enter to boot

it will first try to find preview.img and one other file that doesn't exist, but will eventually timeout and fetch install.img and allow you to go through the netinstall.

see http://wwoods.fedorapeople.org/doc/boot-options.html for Anaconda boot options

carillonatorcarillonator

I downloaded the ISO for the LiveCD and plugged a 1 GB Kingston USB in and ran the command

When I issued an init 6, I booted into the CentOS 6 LiveCD and chose install. Not elegant, but it worked.

Stéphane Gimenez
20.7k2 gold badges57 silver badges78 bronze badges
MikeMike

If you are in Fedora/Centos Based system you can use livecd-tools.

Simple steps.

where sdg is your usb storage device.

HTH

chandankchandank

Based on the instructions, I finally got the USB install working using livecd-iso-to-disk, and posted the instructions at

The post with the commandline for livecd-iso-to-disk on this page got me to try something else than before (basically using /dev/sdb1 instead of /dev/sdb in the commandline).

Centos Kickstart Installation

ErikErik

Centos 7.4 Kickstart

First obtain the following:

  1. A valid, checked CentOS ISO. There are quite a few mirrors available.
  2. uNetBootin: This little app ROX!
  3. A 16GB Flashstick/thumbdrive, or whatever you want to call it. Keep in mind that booting from flash is ALSO dependent on the flashstick. Some wont work.. which ones? Lemme know if you find out. 7 of my 19 didn't work!
  4. Free Time. Waiting for the thing to finish drove me up the wall last night!

Once you have all your software on your machine, fire up uNetBootin. Point it at your flashstick and your ISO and tell it to go. Go make coffee, have a smoke and then go back one out.. it is going take that long. Once its done, you have one more step: copy the ISO to the Flashstick. You'll need it later! Once done, plug the flashstick into the target machine and boot it up. Considering the range of machines out there, I cannot tell you how to setup your machine to boot from flash, but you have to go into your BIOS and do this. The machine will pickup the flashstick an boot from it to a Unetbootin screen.

Go ahead and install until the installer asks for a source for the ISO. Select HDD and point it at /dev/sda.

This should then fire up Anaconda and Bobs your Aunt.

Mat
41.2k8 gold badges129 silver badges132 bronze badges
user41811user41811
  1. Create a bootable stick withcat '/path_to_iso_file >> /dev/pendrive' && sync

  2. Boot box/laptop from USB

Creating Centos Kickstart

jasonwryan

Kickstart Centos 7 Install

53.1k14 gold badges140 silver badges194 bronze badges

Kickstart Script For Centos 7

ravrav

Centos Kickstart Usb

Not the answer you're looking for? Browse other questions tagged centossystem-installationusb-drive or ask your own question.