Re: Install Mkisofs Centos

1 view
Skip to first unread message
Message has been deleted

Carey Jangam

unread,
Jul 13, 2024, 6:59:55 PM7/13/24
to imvanpademn

And in every case, mkisofs still won't make a bootable USB drive. The USB drive is readable, once the regular OS is running and it's bootable if I dd the existing ISO onto it. I think I've ruled out everything except for something missing in this command. (The -V volume name is taken directly from running the blkid command on the downloaded base ISO.)

So, the solution was basically to quit trying to out-think the documentation. Don't edit the mkisofs command! Run it the way it's given in the documentation. The only modification I've made is to add the -v for verbose output. This was the page that I wound up working from.

Install Mkisofs Centos


Download https://lomogd.com/2yWdmQ



These steps get me a bootable ISO on a USB flash drive. It does not yet give me a usable installer. I'm still working my through getting usable isolinux.cfg or grub.cfg modifications. I'm keeping my notes at my github project.

From research and experience making Linux bootable ISOs, I know that I need to use something like this 'mkisofs -o winsrv.iso -b [UNKNOWN] -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T WinSvr/' to make the ISO bootable, but I have no idea what file on the install disc to use for the -b flag.

Recently, I was trying to follow RH documentation to create a custom boot iso for kickstarting. All documentation says to use mkisofs to create the actual ISO. I have done this in the past without much problem. But I am now working on a RHEL6 system. When I went to run mkisofs I get "-bash: mkisofs: command not found".

To make a long story short, there is no mkisofs package available for RHEL6, nor cdrtools. (Nor cdrkit which was forked from cdrtools.) From my googling and wikipedia-ing, this seems to be because of a licensing change on cdrtools.

Mkisofs is a utility that creates an ISO 9660 image from files on disk. It is effectively a pre-mastering program to generate an ISO9660/JOLIET/HFS hybrid filesystem capable of generating the System Use Sharing Protocol records (SUSP) specified by the Rock Ridge Interchange Protocol. This is used to further describe the files in the iso9660 filesystem to a unix host, and provides information such as longer filenames, uid/gid, posix permissions, symbolic links, block and character devices. mkisofs takes a snapshot of a directory tree and generates a binary image that corresponds to an ISO9660 or HFS filesystem when it is written to a block device. Each specified pathspec describes the path of a directory tree to be copied into the ISO9660 filesystem; if multiple paths are specified, the files in all the paths are merged to form the image.

Next, if you have additional packages that you want to install, you can copy them into the custom image directory. This way they will be included in the image when we create the new ISO. You can then put a postinstall script in place to install and configure those packages automatically at install time. As long as you do not exceed the capacity of a CD or DVD, then you can add as much as you want.

I am trying to create a custom ISO image which would install the minimal required RPMS along with some custom written RPM of my app. and Also wants to perform some post install steps like configuring my App and VPN configuration etc.

You can display and modify the individual options in any order. If a configuration option was automatically configured correctly, no further action is required. However, if items are marked with an exclamation point icon, you must complete the configuration for these items before you can begin the installation.

If you installed the server using the Server with GUI base environment, the Initial Setup application is started automatically. Review and accept the license agreement to exit Initial Setup and start using your system. For details, see Initial Setup.

This section describes a simple procedure on how to add a Kickstart file to the installation USB drive, which automatically installs CentOS. You can use this procedure to deploy CentOS on multiple machines.

I'm trying to run `mkisofs` in BL but I receive "command not found". I can't find it using `apt show` either. It recommends to install `genisoimage` as it is contained within that package, however the `mkisofs` within that package is just a symlink back to `genisoimage` and I read that `genisoimage` is dead and can create filesystems with defects so I'd just prefer to get hold of the actual `mkisofs`.

This looks even more complicated than building cdrtools from source
and running mkisofs from the place where it was built. I.e. without
installation as superuser and thus no risk to interfere with the system.

Install tomcat6, note that the version of tomcat6 in the defaultCentOS 6.4 repo is 6.0.24, so we will grab the 6.0.35 version. The6.0.24 version will be installed anyway as a dependency to cloudstack.

Of course the community provides a repository for these packages and youcan use it instead of building your own packages and putting them inyour own repo. Instructions on how to use this community repository areavailable in the installation book.

While the native CloudStack API is not a standard, CloudStack provides aAWS EC2 compatible interface. It has the great advantage that existingtools written with EC2 libraries can be re-used against a CloudStackbased cloud. In the installation books we described how to run thisinterface from installing packages. In this section we show you how tocompile the interface with maven and test it with Python botomodule.

CloudStack is a mostly Java application running with Tomcat and Mysql.It consists of a management server and depending on the hypervisorsbeing used, an agent installed on the hypervisor farm. To complete aCloud infrastructure however you will also need some Zone wide storagea.k.a Secondary Storage and some Cluster wide storage a.k.a Primarystorage. The choice of hypervisor, storage solution and type of Zone(i.e Basic vs. Advanced) will dictate how complex your installation canbe. As a quick start, you might want to consider KVM+NFS and a BasicZone.

Modify the settings as you want, and save it to a file in the end. Notice that the Package Selection panel may be disabled. Therefore, you have to manually add that section in the kickstart file if you want to install any extra packages (Core and Base groups are selected by default)

Now that you have a bootable USB drive, insert it into a computer and boot from it. The installation process will begin automatically. After the installation has finished, the system will be rebooted. Remember to remove the bootable device (or select not to boot from it) after the system reboots so that you can boot into the newly installed CentOS 7. Otherwise, you will install CentOS again!

If you need to install CentOS 7 frequently, with the same configuration, build your own DVD media for unattended kickstart installation. We show you how to make it work. As of CentOS 7 this only works for clean installs. We assume you know how to burn your own .iso files to a DVD-ROM.

We need two machines. The first one can be a MacOS, CentOS, or Linux computer, and to burn you final custom DVD-ROM it will need to have an optical drive. The other machine can be a VM (we assume you are using VirtualBox) or a second computer, and is used as a CentOS installation target, and to perform most of the customization and ISO building work.

This attended custom installation becomes the starting point for your unattended custom installer. You can install CentOS from the downloaded original CentoOS installer iso image in MacOS onto a VirtualBox VM, or install from a DVD onto a VM, or another machine.

Go through the installation and configure things they way you want them for future unattended installations. You may want to enable Ethernet, set a default host name and domain, set timezone, root password, and create a userid (as administrator) and password. Later we will be able to edit the details. This is just to create a convenient starting point.

Next we will prepare a staging directory on our CentOS system for our customized installer ISO image. We will mount an ISO image of the installer, or a DVD-ROM drive with installer disk inserted, copy files to the staging directory, and edit some files before we finalize the custom image.

You can skip first to Section Build ISO Image, to check if you can reconstruct an image that boots and installs correctly on VirtualBox without making any modifications. Once that works, you can return to this point, and continue with configuring and customizing kickstart.

If you want to use UEFI mode boot and run kickstart from there, you need to edit a different menu definition file. The UEFI mode menu is defined in /var/tmp/media/mydrive/EFI/BOOT/grub.cfg and the format is different. To add a menu option that starts kickstart installation insert this:

There also is an image under /var/tmp/media/mydrive/images/ called efiboot.img with containing the same files, but those did not seem used when installing from DVD ROM. However, in case you want to modify those, you can create a mounting point, say /point , and then mount the image file with:

Copy the iso file from your CentOS machine to the machine with VirtualBox installed on it for testing. Using secure copy command (scp) on MacOS for instance, substituting by your id on the CentOS machine, and with the ip address of the CentOS machine. Enter the following on the machine you are copying to, from the directory you want to copy to.

Start the VM. The initial installer menu should now include the Kickstart option. Select K and let the unattended install complete. Then detach the virtual DVD drive and reboot. If the installation stops you can switch to shell using on a MacOS keyboard.

I wanted a quick way to provision a Centos VM in my Lab at home (Fedora host). Until now I was using virt-manager (GUI) to create a VM, attach the Centos DVD, boot it and go through the installer. It is ok but it takes too long. Luckily there is a faster way: download a cloud image, boot a VM based on it and very quickly we have a new guest ready. Furthermore this can be automated because everything is done at the command line.

aa06259810
Reply all
Reply to author
Forward
0 new messages