How to create a bootable ISO from running Linux box?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to create a bootable ISO from running Linux box?
# 1  
Old 08-27-2012
MySQL How to create a bootable ISO from running Linux box?

Hi All,

I have one query on creating bootable ISO.

I have installed Centos 5.6 and done few configuration changes which is needed for deploying my App. Later I have deployed my app. Now Centos is up and running in a dedicated box along with my app.

Now I want to create the bootable ISO out of this box. Is it possible to create a bootable ISO image out of running Centos Box if so could you please help me in this.

Thanks,
Kalai
# 2  
Old 08-27-2012
They're really not the same. Hard disks have partitions, ISO's do not. Hard disks are writable, ISO's are not.

It's possible certainly but there's not a direct translation -- you can't just boot an iso and get all your partitions, you have to have a special bootloader which arranges them for you, and then boots your system somehow in a manner it won't try to mount them again -- and it'd mean putting a ton of stuff into ram or unionfs so you don't get read-only-filesystem errors everywhere.

Besides, will your system even fit on ISO?

Last edited by Corona688; 08-27-2012 at 12:19 PM..
# 3  
Old 08-27-2012
I believe your goal is to automate the installation of OS including the application so that it starts working out of the box.

Well, for OS installation, the good old kickstart should do the job. For the application installation and configuration, you may automate it with puppet. It scales really good when the configuration is complicated and has lots of dependencies.

If puppet is not an option for you, go ahead and write a shell script which would mount an NFS export with all the configs, executables, etc required for your app and will install them locally.

If you want, you can make P2V (physical to virtualized) image (to be used as a VM later) for the physical machine with the app installed.
# 4  
Old 10-11-2012
I think what you are looking for is something comparable to the AIX mksysb, the HP-UX Ignite tape make_recovery etc. so that you can clone / DR your server without having a Kickstart/Jumpstart (Solaris)/NIM (AIX) server that you would have to build first.

From what I have seen so far, there is no easy process, but when running Solaris many years ago, we had to do a set of filesystem saves. Our recovery process was a bit convoluted, but was basically:-
  1. Boot the new server to single user from install CD
  2. Slice the target boot disk according to our documentation
  3. Restore the filesystems to the correct slices with ufsrestore
  4. Delete and re-create the device mappings (can't remember how now)
  5. Remove the encrypted password for root
  6. Unmount all restored filesystems and boot.


I'm informed that I will have to build and manage Red Hat servers in future, so I too am after a sensible process to follow, but at worst I will probably end up doing something like the above, but that relies on documentation to be kept up to date and can get messey.

Our aim has always been to just put back a base operating system, but our operating system not just a plain install. We then would rebuild the volume groups definitions (AIX saveg/restvg excluding all files) we saved into the root filesystem before the DR backup was taken and then used the 3rd party backup tool to put back the data to the non-system filesystems and databases.

I hope that this helps that someone else can make some suggestions.




Robin
Liverpool/Blackburn
UK
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

RHEL Linux 6.2 to 7.3 - Bootable iso

Hi All On one of my sandbox machine, I want to replace RHEL 6.2 to RHEL 7.3. I am using both developer editions. rhel-server-7.3-x86_64-dvd.iso ... This is what I have downloaded from Red Hat Enterprise Linux Download | Red Hat Developers My understanding is this file would work as a... (1 Reply)
Discussion started by: videsh77
1 Replies

2. SuSE

How To make bootable USB with multiple ISO Files?

Hi All, I would need your assistance to make a bootable USB with SUSE LINUX Enterprise Server I have already downloaded relevant OS (Trail Version) packages @ 1) SLES-11-SP4-DVD-i586-GM-DVD1 2) SLES-11-SP4-DVD-i586-GM-DVD2 when I tried to open these packages with PowerISO one of the... (7 Replies)
Discussion started by: Leaner_963
7 Replies

3. Boot Loaders

Is Unetbootin capable of making any iso file bootable

1)It is a great experience to achieve what I got today. I had downloaded GParted iso file (135 MB size). Now to make a bootable usb of it, I used unetbootin and to surprise I succeded in entering Gparted application and modified my partitions. Earlier I was in a notion that it is used only for... (0 Replies)
Discussion started by: ravisingh
0 Replies

4. Red Hat

how to re-create kick start bootable ISO

Hi All, I want to create kick start bootable ISO file. I have Centos 5.4 ISO and customized ks.cfg file. Now I need to recreate ISO with ks.cfg and content of existing ISO. During installation, it automatically should pick the kick start file and need to proceed with the installation. ... (0 Replies)
Discussion started by: kalpeer
0 Replies

5. Fedora

make bootable usb from iso

I need to boot the ultimate boot cd from an usb stick. Do I just copy the iso image to the usb key? How do I make the usb stick bootable? (4 Replies)
Discussion started by: locoroco
4 Replies

6. Linux

Running bootable iso image with kexec

I just tried to run the command kexec memtest86-4.0.iso To boot into memtest86 using kexec. This is the output: Cannot determine the file type of memtest86-4.0.iso How am I supposed to do this? (2 Replies)
Discussion started by: locoroco
2 Replies

7. Linux

A working bootable Linux XP Desktop 4.0.31 ISO image?

Hi everyone, I want to run on VMWare the Linux XP 2010 Desktop 4.0.31 distro, Iīve downloaded the latest realese from its website (Trustverse Desktop 4.0 RC1 -build 31)-->http://www.linux-xp.com/desktop/download/. Itīs 4.47 GB in size, but when I mount on an ISO software, the size is 2.75GB... (0 Replies)
Discussion started by: cgkmal
0 Replies

8. UNIX for Dummies Questions & Answers

Unable to create a bootable tape

Good morning, I have no unix training. My daily backup failed with the following error. ' Cannot create /tmp/tape.bootimage because it already exists. I am using smit to run a rootvg and SAPvg backup. What should I do? (1 Reply)
Discussion started by: ubyankees
1 Replies

9. Solaris

iso files to make bootable dvd image

Hey all, I'm a newbie to iso files and I just downloaded the 2 iso files for *cough* ms2003 R2 *cough* trial software. After I downloaded the iso files I just dragged them to my burn software gui and sure enough it burned to dvd 2 iso files. When I attempted to boot the image using VMware... (0 Replies)
Discussion started by: bdsffl
0 Replies
Login or Register to Ask a Question