-
Senior Member
registered user
Mini HowTo: Create flash from 7.0.5 ISO using qemu/kvm
Prerequisites: Kvm must be running well. In 7.0.5, is does out of the box. Modules may otherwise have to be loaded. Qemu without kvm is rather slow, only for testing and emergencies IMHO. There have been bug problems in recent versions, so it's good practice to run package update of qemu-kvm first.
Code:
sudo modprobe kvm && sudo modprobe kvm-intel
Of course, you need to have the ISO, check downloading by md5sum or similar.
Log into the download directory.
1. Have USB media inserted, you can use fdisk -l to check what it identifies as:
Code:
knoppix@Microknoppix:/store/download/iso$ fdisk -l
.....
Disk /dev/sdc: 31.6 GB, 31608274944 bytes
64 heads, 32 sectors/track, 30144 cylinders, total 61734912 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6f20736b
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 61734911 30866432 c W95 FAT32 (LBA)
2. Make qemu boot the ISO
Code:
sudo qemu -machine accel=kvm -cdrom KNOPPIX_V7.0.5DVD-2012-12-21-EN.iso -hdb /dev/sdc -m 1024 -boot d
Now you get the booting screen where you can just type knoppix (not Knoppix64 unless you run a full 64-bits system) and eventual keyboard modifications etc, just like booting a DVD.
It may be a bit confusing with all the different drive designations, and inside Knoppix under qemu, /dev/sdc1 becomes sda1, but if you use flash-knoppix to install to that medium, you will get a bootable stick by this procedure - at least I did.
(3. - eventually)
To have a basic Poor Man's Install of the ISO, you can boot the stick, do some tweaks, mount a suitable harddisk partition, and copy the system to a basic Knoppix directory on the disk:
Here, I used the Win7 partition:
Code:
mount /media/sda2
sudo rsync -ax /mnt-system/KNOPPIX/* /media/sda2/KNOPPIX705ISO &
Next time I boot from the stick, I use the command line
Code:
knoppix64 fromhd=/dev/sda2 knoppix_dir=KNOPPIX705ISO
Plus eventual other cheatcodes applicable.
The reason I make a separate directory for the ISO version, is all the problems I have had with purging and remastering 7.0.5. I can easily back up to this point.
-
Senior Member
registered user
Update: Works fine for 7.20 too
I have just created a bootable 7.2.0 USB stick in the way described. There is a small change in Knoppix defaults: When asked about persistent storage, Knoppix now repartitions the drive, creates a Reiserfs partition the size of the selected storage, and creates the loop-image there.
Usually, the loop-image (knoppix-data.img) is created in the KNOPPIX directory, now there is created a file there, knoppix-data.inf, that points to the persistent store.
But if this file is deleted (as I did), Knoppix will ask about creation of persistent image on booting, and in that case create it in the KNOPPIX directory - which I BTW tag with release and remastering, so the directory with the basic version of 7.2.0 I just call KNOPPIX720.
It may also be handy to do basic updates and program installs in the virtual machine - plus tweaks like setting the screensaver to blank screen (may otherwise draw a LOT of resources), disable wobbly windows etc.
I haven't used the USB stick for this, rather I have copied the KNOPPIX directory to an otherwise unused HD partition, and created a GRUB entry for it. Then booted it up with the simple qemu command
Code:
sudo qemu -machine accel=kvm -hda /dev/sda -m 1024 &
Here, the -hda /dev/sda parameter tells Qemu to boot from the main harddisk. Note that the new KNOPPIX should NOT be placed on the partition you already run Knoppix from when it is to be run under Qemu, at least unless you place the persistent image on another partition.
-
There is a small change in Knoppix defaults: When asked about persistent storage, Knoppix now repartitions the drive, creates a Reiserfs partition the size of the selected storage, and creates the loop-image there.
You have still the possibility to select where the persistent memory shall be.
Hard drive installation
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard picture](/store/img/g/oXIAAOSwCn1k30lD/s-l225/ASRock-B550M-Pro-SE-AM4-DDR4-SATA-6Gb-s-1-PCIe-4-0.jpg)
ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard
$84.99
![ASRock Z170M-ITX/ac LGA 1151 Intel Z170 HDMI USB 3.0 Mini ITX Intel Motherboard picture](/store/img/g/4lIAAOSwc8Fmc3LR/s-l225/ASRock-Z170M-ITX-ac-LGA-1151-Intel-Z170-HDMI-USB-3.jpg)
ASRock Z170M-ITX/ac LGA 1151 Intel Z170 HDMI USB 3.0 Mini ITX Intel Motherboard
$49.99
![MSI H81M-P33 Desktop Motherboard Intel MicroATX Socket LGA1150 USB 3.0 W/IO picture](/store/img/g/gFAAAOSwLi5hKOrA/s-l225/MSI-H81M-P33-Desktop-Motherboard-Intel-MicroATX-So.jpg)
MSI H81M-P33 Desktop Motherboard Intel MicroATX Socket LGA1150 USB 3.0 W/IO
$26.99
![Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard (No I/O Plate) picture](/store/img/g/G68AAOSwFDFmX0vt/s-l225/Gigabyte-GA-Q170M-D3H-GSM-LGA1151-DDR4-Desktop-Mot.jpg)
Gigabyte GA-Q170M-D3H-GSM LGA1151 DDR4 Desktop Motherboard (No I/O Plate)
$39.99
![Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3 picture](/store/img/g/CZ4AAOSwg8pmYirU/s-l225/Asus-H81M-C-Intel-LGA1150-DDR3-Desktop-Motherboard.jpg)
Asus H81M-C Intel LGA1150 DDR3 Desktop Motherboard MicroATX Socket H3
$23.99
![Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard picture](/store/img/g/ld0AAOSw7q5mV2ql/s-l225/Asus-Prime-H310M-A-R2-0-Intel-LGA-1151-DDR4-Deskto.jpg)
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
![Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th) picture](/store/img/g/QrkAAOSwMGNmLxf0/s-l225/Gigabyte-Z370P-D3-ATX-Z370-LGA1151-Motherboard-Sup.jpg)
Gigabyte Z370P D3 ATX Z370 LGA1151 Motherboard (Support Intel 6/7th 8th 9th)
$59.99
![ASUS ROG Strix X670E-F AMD X670 DDR5 Socket AM5 Wi-Fi Gaming Motherboard picture](/store/img/g/11MAAOSwDAxmdKBS/s-l225/ASUS-ROG-Strix-X670E-F-AMD-X670-DDR5-Socket-AM5-Wi.jpg)
ASUS ROG Strix X670E-F AMD X670 DDR5 Socket AM5 Wi-Fi Gaming Motherboard
$189.99
![MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard picture](/store/img/g/egYAAOSw1q5mPOza/s-l225/MSI-PRO-B650-P-WiFi-AMD-AM5-DDR5-WiFi-6E-ProSeries.jpg)
MSI PRO B650-P WiFi AMD AM5 DDR5 WiFi 6E ProSeries Motherboard
$107.30
![GIGABYTE MF51-ES0 Motherboard Intel LGA 2066 C422 Chipset 2x 10GbE , 3x PCIe x16 picture](/store/img/g/zxcAAOSwgHNlhXzz/s-l225/GIGABYTE-MF51-ES0-Motherboard-Intel-LGA-2066-C422-.jpg)
GIGABYTE MF51-ES0 Motherboard Intel LGA 2066 C422 Chipset 2x 10GbE , 3x PCIe x16
$150.00