Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to create an image of my existing CentOS from hard drive to a livecd.

I don't want to customize an installation cd, because I have many installed software which does not have RPM's.

I kind of know how to do it Debian, but I am clueless in CentOS.

Can someone help with a starting point(s)?

share|improve this question
up vote 5 down vote accepted

OK ... I hate answering my own questions :-) but here is what I found out ...

the script livecd-creator from the live-tools, has too very appealing options which are suppressed when calling the script with -h flag. I had to dig into the python code to find it ...

if you call the script with the option --shell, you will get a shell, so you could play and customize your cd - this is a chrooted shell..., before it is created...:

Therefore, to create a live-cd based on your system:

customize the following file:

add all your repositories, get a list of your packages from your system - don't forget vim and ssh. call the script like this: LANG=C livecd-creator --config=centos-livecd-minimal.ks -f --shell

this will give you a shell to play with:

edit all the files you want, if you have another server you can copy before hand all your configuration files, and then scp them from that server into your chroot.

when you finish type exit, this will pack your system into a livecd ...

if you are just testing and you want to save time, add the flag --skip-minimize for the above command.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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