Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Moderator: Forum moderators

Post Reply
User avatar
rockedge
Site Admin
Posts: 5815
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2073 times
Been thanked: 2166 times
Contact:

Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Post by rockedge »

For some time I have been curious to see how successful creating ISO and SFS images would be when working from a KLV Pseudo Full Install running in a QEMU virtual machine. If working with virtual HDD's would still create accurate file system images.

This method is fully manual and requires creativity. @fredx181 's remaster utility will most likely do the same job and is far less complicated to use.

Note: I am using Tigervnc-client to connect to the VM

The test entails using KLV-Airdale-rc4.1.iso booted with QEMU. First steps are creating the VM using the aqemu wizard to set up a basic VM with 4 gb of RAM and these extra arguments in the Advance Options -cpu host -vnc 192.168.254.13:0 which selects using the CPU from the host machine and setting up the VNC feed so it is accessible from any machine on the LAN using a VNC client. Not that important but allows working on the QEMU machine from a remote host.

Screenshot(11).jpg
Screenshot(11).jpg (20.98 KiB) Viewed 429 times

In aqemu added in the Media section the ISO for rc4.1 as a CD-ROM drive. I immediatley used the aqemu option to generate a start script for the virtual machine. Now ready for a first system start, by executing the KLV VM start script and the Tigervnc-client and the boot selection menu appears, from which I selected RAM0 mode. At this point the VM HDD has no partitions and is not formatted so RAM0 mode is perfect for this point of the project.
Image

User avatar
rockedge
Site Admin
Posts: 5815
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2073 times
Been thanked: 2166 times
Contact:

Re: Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Post by rockedge »

2nd step is to run GParted from Application->System and create a new partition table in the MSDOS protocol.
The virtual HDD has been created with 10 gb capacity.
Image

User avatar
rockedge
Site Admin
Posts: 5815
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2073 times
Been thanked: 2166 times
Contact:

Re: Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Post by rockedge »

3rd Step begins now that a virtual hard drive partition is ready. New directories are created /mnt/sda1/KLV-Airedale-rc4.1 and /mnt/sda1/KLV-rc4.2.

With Thunar open up /mnt/sr0 and copy the contents EXCEPT for the 07KLV-airedale_rootfs.sfs image file into the
/mnt/sda1/KLV-rc4.2 directory. With Thunar click on the /mnt/sr0/]07KLV-airedale_rootfs.sfs to mount the SFS. Create a new directory:
/mnt/sda1/KLV-Airedale-rc4.1/upper_changes and copy the contents of the mounted SFS into upper_changes. Once finished umount the SFS by clicking on it in Thunar.

Create a dummy rootfs directory: /mnt/sda1/KLV-Airedale-rc4.1/06Dummy_rootfs.

The Pseudo Full Install setup of KLV-Airedale-rc4.1 will look similar to this:

Screenshot.jpg
Screenshot.jpg (28.92 KiB) Viewed 404 times

Open a terminal from /mnt/sda1/KLV-Airedale-rc4.1 and run:

Code: Select all

./wd_grubconfig

Copy the boot stanza's resulting from the run and save as a file for later insertion into the menu.lst produced by Grub4Dos.

User avatar
rockedge
Site Admin
Posts: 5815
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2073 times
Been thanked: 2166 times
Contact:

Re: Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Post by rockedge »

Running Applications->System->Grub4Dos and let it install the boot loader and create the menu.lst.

Replace the contents of menu.lst with those in the grub_config.txt file or the copied terminal results.

Now it is possible to reboot and run from the CD-ROM drive (iso) or for the HDD installation.

User avatar
rockedge
Site Admin
Posts: 5815
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2073 times
Been thanked: 2166 times
Contact:

Re: Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Post by rockedge »

reserved

User avatar
rockedge
Site Admin
Posts: 5815
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2073 times
Been thanked: 2166 times
Contact:

Re: Steps to Create a KLV ISO with a QEMU KLV Virtual Machine

Post by rockedge »

reserved

Post Reply

Return to “KL-Dev_Work”