Slackware on Slackware using QEMU

Home / Slackware on Slackware using QEMU

Slackware on Slackware using QEMU

December 5, 2015 | Article | 2 Comments

After successfully install QEMU-KVM on Slackware64 (previous article) and running a Debian for ARM on QEMU article, we will try something more.

In this article, we will discuss about installing Slackware for ARM using QEMU on Slackware64 (Slakwareception?). On this article we will use:

  1. Slackware64 14.0 (as host)
  2. QEMU 14.0 as discussed on this article
  3. Slackware for ARM (as guest)

Obtaining the Materials

If you have not installed QEMU, I suggest you to install it first following this article.

Create a working directory, for example (adjust with yours):

mkdir -p /home/xathrya/SlackARM
cd /home/xathrya/SlackARM

Then we need to download the kernel:

cd /home/xathrya/SlackwareARM
mkdir -p kernels/versatile
cd kernels/versatile
wget -c "ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-14.0/kernels/versatile/zImage-versatile"

Verify that you have finish download it. Then we will download the initial ramdisk for it, by:

cd /home/xathrya/SlackwareARM
mkdir -p isolinux
cd isolinux
wget -c "ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-14.0/isolinux/initrd-versatile.img"

Now we will create storage will be sued for our Slackware. Do it by:

cd /home/xathrya/SlackwareARM
mkdir hdd; cd hdd
qemu-img create hdd/arm.qcow 2G

A 2GB is sufficient for our experiments. Then downloads following packages from here . For simplicity, We only need a packages and l packages. But firstly, fo this command:

mkdir -p /home/xathrya/SlackwareARM/slackware
cd /home/xathrya/SlackwareARM/slackware
mkdir a l

Then download these package. The packages on a packages must be downloaded to a directory, while l package must be downloaded to l directory. The list of packages:

“a” packages

  1. aaa_base-14.0-arm-4.tgz
  2. aaa_elflibs-14.0-arm-2.tgz
  3. aaa_terminfo-5.8-arm-1.tgz
  4. bash-4.2.037-arm-1.tgz
  5. bin-11.1-arm-2.tgz
  6. coreutils-8.19-arm-1.tgz
  7. e2fsprogs-1.42.6-arm-1.tgz
  8. etc-14.0-arm-1.tgz
  9. kernel-modules-versatile-3.4.11_versatile-arm-1.tgz
  10. kernel_versatile-3.4.11-arm-1.tgz
  11. pkgtools-14.0-noarch-2.tgz
  12. shadow-4.1.4.3-arm-6.tgz
  13. sysvinit-2.88dsf-arm-2.tgz
  14. sysvinit-functions-8.53-arm-1.tgz
  15. sysvinit-scripts-2.0-noarch-9.tgz
  16. util-linux-2.21.2-arm-3.tgz

“l” packages

  1. glibc-2.15-arm-8.tgz

Then make iso files on /home/xathrya/SlackwareARM (adjust with your path) with content of isolinux, kernels, and slackware. You can do following command:

cd /home/xathrya/SlackwareARM
mkisofs -udf -o /home/xathrya/slackware-arm-14.0.iso -R -J \
-V "Slackware ARM 14.0" -hide-rr-moved -v -d -N -A "Slackware ARM 14.0" .

Notice the dot “.” on the last sentence as part of command. It will create an iso file slackware-arm-14.0.iso on /home/xathrya/.

Running the System

With initrd, kernel, and ISO file, we march to last step which is running the system (and also install it). Do the followings:

cd /home/xathrya/Slackware/ARM
qemu-system-arm -M versatilepb -kernel kernels/versatile/zImage-versatile \
-initrd isolinux/initrd-versatile.img hdd/arm.qcow \
-cdrom /home/xathrya/slackware-arm-14.0.iso

Some error messages might occurred such as

/bin/grep: No such file or directory

But don’t worry, if you follow this article you can able to install Slackware using QEMU.

,

About Author

about author

xathrya

A man who is obsessed to low level technology.

2 Comments
  1. Installing Windows XP on QEMU - Xathrya.ID

    […] other article we have discussed about running Debian ARM on QEMU, and also Slackware ARM on QEMU. Now,  in this article we will attempt install Windows XP on QEMU.  In this article I […]

  2. QEMU on Windows - Xathrya.ID

    […] previous article we have discuss many things on QEMU such as: Installing Slackware on QEMU and also Installing QEMU on Slackware64. In this article we will discuss something different. We […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Social media & sharing icons powered by UltimatelySocial