View Full Version : How do I build a Live CD?

2018-02-13, 04:20
Hi, I have Kali Linux 2 64-bit on VMware and Windows 10 Host. I'm having problems creating a Live CD. I read the other threads on Live CD's but no one has the same error as me. I try:

apt install curl git live-build cdebootstrap
git clone git://git.kali.org/live-build-config.git
cd live-build-config
./build.sh --distribution kali-rolling --verbose

After running, I get an error:

Reading package lists...
Building dependency tree...
Reading state information...
Build of kali-rolling/default/amd64 live image failed (see build.log for details)

I'm attaching a link to my build.log file. It's too large to upload to the description. Please look over it and find the problem so I can build my Live Cd. Thanks


2018-02-14, 22:34
If you look through the log file, you'll see that some packages can't be downloaded.

Try to fix any mirror problems, and update apt, before starting the build process again :)


2018-02-16, 04:54
Hi, How can I fix problems with the mirrors? I changed sources.list to http://http.kali.org/kali Etc... but it still doesn't create the Live CD. I tried changing the DNS to Google's but that didn't work either. Can I set it up to not use mirrors? I ran apt-get update && apt-get upgrade after each.

2018-02-26, 02:30
Hi, I'm checking in since it's been a week since my last post. Can anyone explain how to fix mirror problems so I can download all the packages for a Live CD? I changed my repository back to:
deb http://http.kali.org/kali kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src http://http.kali.org/kali kali-rolling main contrib non-free
It's still not working and asks me to look at the build.log file. Any ideas? Thanks

2018-03-12, 06:44
Hi, sorry for the delay :)

Well, for starters, don't build on any kind of virtual host. Install a real host, and use that as build host.
As far as I know, there aren't any problems with the mirrors you're using, so the problem have to be somewhere else (eg in your network).

If you *must* build on a virtual host, at least make sure it got enough resources available to it.

Have you read the logfile ? What did it say ?

2018-03-12, 21:30
Hi, thanks for your reply. I attached the log file above but I'm not sure what the problem is. I'm not good with log files. I'm not sure how to Install a real host because I don't want to dual-boot. I currently have it on VMware. It has 4 GB RAM and 2 CPU cores. When I attach the Kali Linux ISO to the virtual drive a "Live CD" pops up on the Kali Desktop. Is there anyway I can burn that? If I have to install host I might not be able to build a Live CD. I'm going to try to boot my PC from the Kali Linux 2018.1 DVD I made. Maybe that will have the Live CD option. Or I can try building from there. I'll report back. Thanks again

2018-03-13, 23:22
Hi, I got it to work kinda. I booted from a Kali Linux 2018.1 Image I burnt to a DVD and the option to start a Live CD is on there. Right by Install Kali. So I booted to the Live CD and it came up with the Kali Desktop. It's cool to have Kali using all my PC and not a VM. So, that works. Thanks for the help!

2018-03-14, 14:27
Yes, as you've found out. Kali can run in live mode, directly from CD/DVD/USB. It's a way to run it, when you can't install it. If you want to make changes (install software, be able to save in your /root), look into live USB with persistence)
I don't know fi you're on a desktop or laptop, but one option would be to add a second harddrive, disable the first drive, install Kali on drive two, turn drive one on again, and use the bios boot menu to choose the OS at boot up)
That way, you're not dual booting as such, since they have their own separate MBR, separate drive.
So, I guesss you were after just running it, not really to build it. That makes quite a difference :)

One of the reasons you'd want to build a custom iso,is for example to add your own tools into it, but I would recommend getting used to it first, before trying to do a build.
But I can promise you, the day the time comes for your first build, you're in for a lof of fun hours :)
And that sweet sensation when it completes it's first boot / install.. that's true magic :)