[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Whonix 9 (master) build for qcow2 and 64 bit builds with no kernel

I just created a fresh VM so I could start building Whonix 9 for KVM. I am also going to write a script to encrypt partition on initial installation (will leave that for another post)

I was able to successfully build tor-gateway (build process said it was completed with no errors) but when I tried to boot it in KVM, I only got the grub prompt. So, I mounted the qcow2 container to see what the problem might be and I noticed there was no kernel images.

Here is the command I used to build:

sudo ~/Whonix/whonix_build --build --64bit-linux --whonix-apt-repository-distribution stable --qcow2 --tor-workstation

Directory listing of the root ‘/’ of the built container (no links to vmlinuz)

# ls -lh
total 513M
drwxr-xr-x  2 root root 4.0K Mar 23 07:00 bin
drwxr-xr-x  3 root root 4.0K Mar 23 05:38 boot
drwxr-xr-x 10 root root  36K Aug 29  2008 dev
drwxr-xr-x 94 root root 4.0K Mar 23 09:12 etc
drwxr-xr-x  4 root root 4.0K Mar 23 08:57 home
drwxr-xr-x 12 root root 4.0K Mar 23 06:52 lib
drwxr-xr-x  2 root root 4.0K Mar 23 04:27 lib64
drwx------  2 root root  16K Mar 23 04:19 lost+found
drwxr-xr-x  2 root root 4.0K Mar 23 04:21 media
drwxr-xr-x  4 root root 4.0K Mar 23 08:58 mnt
drwxr-xr-x  2 root root 4.0K Mar 23 04:21 opt
drwxr-xr-x  2 root root 4.0K Jan 28 05:53 proc
drwx------  4 root root 4.0K Mar 23 08:58 root
drwxr-xr-x  8 root root 4.0K Mar 23 08:58 run
drwxr-xr-x  2 root root 4.0K Mar 23 06:40 sbin
drwxr-xr-x  2 root root 4.0K Jun 10  2012 selinux
drwxr-xr-x  2 root root 4.0K Mar 23 04:21 srv
-rw-------  1 root root 512M Mar 23 08:57 swapfile1
drwxr-xr-x  2 root root 4.0K Jul 14  2013 sys
drwxrwxrwt  2 root root 4.0K Mar 23 09:12 tmp
drwxr-xr-x 10 root root 4.0K Mar 23 04:21 usr
drwxr-xr-x 11 root root 4.0K Mar 23 04:21 var

Here is a listing of the ‘/boot’ directory (no images):

# ls -lh
total 12K
drwxr-xr-x 2 root root 12K Mar 23 09:12 grub

The grub listing looks fine, although grub.cfg does not have any images listed to boot from

# ls -lh
total 2.2M
-rw-r--r-- 1 root root 7.2K Mar 23 05:38 915resolution.mod
-rw-r--r-- 1 root root  11K Mar 23 05:38 acpi.mod
-rw-r--r-- 1 root root 1.9K Mar 23 05:38 adler32.mod
-rw-r--r-- 1 root root 4.6K Mar 23 05:38 affs.mod
-rw-r--r-- 1 root root 5.0K Mar 23 05:38 afs_be.mod
-rw-r--r-- 1 root root 4.9K Mar 23 05:38 afs.mod
-rw-r--r-- 1 root root 1.2K Mar 23 05:38 aout.mod
-rw-r--r-- 1 root root 8.0K Mar 23 05:38 ata.mod
-rw-r--r-- 1 root root 2.3K Mar 23 05:38 ata_pthru.mod
-rw-r--r-- 1 root root 4.2K Mar 23 05:38 at_keyboard.mod
-rw-r--r-- 1 root root 4.9K Mar 23 05:38 befs_be.mod
-rw-r--r-- 1 root root 4.8K Mar 23 05:38 befs.mod
-rw-r--r-- 1 root root 4.7K Mar 23 05:38 biosdisk.mod
-rw-r--r-- 1 root root 2.5K Mar 23 05:38 bitmap.mod
-rw-r--r-- 1 root root 3.1K Mar 23 05:38 bitmap_scale.mod
-rw-r--r-- 1 root root 2.2K Mar 23 05:38 blocklist.mod
-rw-r--r-- 1 root root  512 Mar 23 05:38 boot.img
-rw-r--r-- 1 root root 2.6K Mar 23 05:38 boot.mod
-rw-r--r-- 1 root root  28K Mar 23 05:38 bsd.mod
-rw-r--r-- 1 root root  14K Mar 23 05:38 btrfs.mod
-rw-r--r-- 1 root root 2.0K Mar 23 05:38 bufio.mod
-rw-r--r-- 1 root root 2.4K Mar 23 05:38 cat.mod
-rw-r--r-- 1 root root  512 Mar 23 05:38 cdboot.img
-rw-r--r-- 1 root root 2.6K Mar 23 05:38 chain.mod
-rw-r--r-- 1 root root 1.7K Mar 23 05:38 cmostest.mod
-rw-r--r-- 1 root root 2.1K Mar 23 05:38 cmp.mod
-rw-r--r-- 1 root root 2.8K Mar 23 05:38 command.lst
-rw-r--r-- 1 root root 2.4K Mar 23 05:38 configfile.mod
-rw-r--r-- 1 root root 1.6K Mar 23 05:38 config.h
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 cpio.mod
-rw-r--r-- 1 root root 1.7K Mar 23 05:38 cpuid.mod
-rw-r--r-- 1 root root  842 Mar 23 05:38 crypto.lst
-rw-r--r-- 1 root root 4.4K Mar 23 05:38 crypto.mod
-rw-r--r-- 1 root root 4.2K Mar 23 05:38 cs5536.mod
-rw-r--r-- 1 root root 2.0K Mar 23 05:38 datehook.mod
-rw-r--r-- 1 root root 2.3K Mar 23 05:38 date.mod
-rw-r--r-- 1 root root 1.4K Mar 23 05:38 datetime.mod
-rw-r--r-- 1 root root   15 Mar 23 05:38 device.map
-rw-r--r-- 1 root root  512 Mar 23 05:38 diskboot.img
-rw-r--r-- 1 root root 2.0K Mar 23 05:38 dm_nv.mod
-rw-r--r-- 1 root root 5.5K Mar 23 05:38 drivemap.mod
-rw-r--r-- 1 root root 2.1K Mar 23 05:38 echo.mod
-rw-r--r-- 1 root root 7.3K Mar 23 05:38 efiemu32.o
-rw-r--r-- 1 root root  11K Mar 23 05:38 efiemu64.o
-rw-r--r-- 1 root root  24K Mar 23 05:38 efiemu.mod
-rw-r--r-- 1 root root 4.6K Mar 23 05:38 elf.mod
-rw-r--r-- 1 root root 1.7K Mar 23 05:38 example_functional_test.mod
-rw-r--r-- 1 root root 5.8K Mar 23 05:38 ext2.mod
-rw-r--r-- 1 root root 4.5K Mar 23 05:38 extcmd.mod
-rw-r--r-- 1 root root 6.0K Mar 23 05:38 fat.mod
-rw-r--r-- 1 root root  12K Mar 23 05:38 font.mod
-rw-r--r-- 1 root root 2.8K Mar 23 05:38 fshelp.mod
-rw-r--r-- 1 root root  149 Mar 23 05:38 fs.lst
-rw-r--r-- 1 root root 2.5K Mar 23 05:38 functional_test.mod
-rw-r--r-- 1 root root  512 Mar 23 05:38 g2hdr.bin
-rw-r--r-- 1 root root  512 Mar 23 05:38 g2hdr.img
-rw-r--r-- 1 root root 8.0K Mar 23 05:38 g2ldr.mbr
-rw-r--r-- 1 root root 1.8K Mar 23 05:38 gcry_arcfour.mod
-rw-r--r-- 1 root root 8.2K Mar 23 05:38 gcry_blowfish.mod
-rw-r--r-- 1 root root  34K Mar 23 05:38 gcry_camellia.mod
-rw-r--r-- 1 root root  18K Mar 23 05:38 gcry_cast5.mod
-rw-r--r-- 1 root root 3.1K Mar 23 05:38 gcry_crc.mod
-rw-r--r-- 1 root root  19K Mar 23 05:38 gcry_des.mod
-rw-r--r-- 1 root root 3.3K Mar 23 05:38 gcry_md4.mod
-rw-r--r-- 1 root root 3.9K Mar 23 05:38 gcry_md5.mod
-rw-r--r-- 1 root root 2.6K Mar 23 05:38 gcry_rfc2268.mod
-rw-r--r-- 1 root root  19K Mar 23 05:38 gcry_rijndael.mod
-rw-r--r-- 1 root root 8.6K Mar 23 05:38 gcry_rmd160.mod
-rw-r--r-- 1 root root  17K Mar 23 05:38 gcry_seed.mod
-rw-r--r-- 1 root root  18K Mar 23 05:38 gcry_serpent.mod
-rw-r--r-- 1 root root 8.7K Mar 23 05:38 gcry_sha1.mod
-rw-r--r-- 1 root root 3.6K Mar 23 05:38 gcry_sha256.mod
-rw-r--r-- 1 root root 5.8K Mar 23 05:38 gcry_sha512.mod
-rw-r--r-- 1 root root  12K Mar 23 05:38 gcry_tiger.mod
-rw-r--r-- 1 root root  39K Mar 23 05:38 gcry_twofish.mod
-rw-r--r-- 1 root root  25K Mar 23 05:38 gcry_whirlpool.mod
-rw-r--r-- 1 root root 4.0K Mar 23 05:38 gettext.mod
-rw-r--r-- 1 root root  33K Mar 23 05:38 gfxmenu.mod
-rw-r--r-- 1 root root  12K Mar 23 05:38 gfxterm.mod
-rw-r--r-- 1 root root 3.7K Mar 23 05:38 gptsync.mod
-rw-r--r-- 1 root root  10K Mar 23 05:38 grldr.img
-r--r--r-- 1 root root 1.5K Mar 23 09:12 grub.cfg
-rwxr-xr-x 1 root root  22K Mar 23 05:38 grub-install
-rwxr-xr-x 1 root root 5.7K Mar 23 05:38 grub-mknetdir
-rwxr-xr-x 1 root root  43K Mar 23 05:38 grub-ntldr-img
-rwxr-xr-x 1 root root 347K Mar 23 05:38 grub-setup
-rw-r--r-- 1 root root 8.6K Mar 23 05:38 gzio.mod
-rw-r--r-- 1 root root 4.0K Mar 23 05:38 halt.mod
-rw-r--r-- 1 root root 5.1K Mar 23 05:38 hashsum.mod
-rw-r--r-- 1 root root 7.3K Mar 23 05:38 hdparm.mod
-rw-r--r-- 1 root root 1.3K Mar 23 05:38 hello.mod
-rw-r--r-- 1 root root 2.5K Mar 23 05:38 help.mod
-rw-r--r-- 1 root root 3.3K Mar 23 05:38 hexdump.mod
-rw-r--r-- 1 root root 6.1K Mar 23 05:38 hfs.mod
-rw-r--r-- 1 root root 5.9K Mar 23 05:38 hfsplus.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 iorw.mod
-rw-r--r-- 1 root root 6.3K Mar 23 05:38 iso9660.mod
-rw-r--r-- 1 root root 6.1K Mar 23 05:38 jfs.mod
-rw-r--r-- 1 root root 5.8K Mar 23 05:38 jpeg.mod
-rw-r--r-- 1 root root  30K Mar 23 05:38 kernel.img
-rw-r--r-- 1 root root 4.5K Mar 23 05:38 keylayouts.mod
-rw-r--r-- 1 root root 2.1K Mar 23 05:38 keystatus.mod
-rw-r--r-- 1 root root  27K Mar 23 05:38 legacycfg.mod
-rw-r--r-- 1 root root 5.7K Mar 23 05:38 linux16.mod
-rw-r--r-- 1 root root  10K Mar 23 05:38 linux.mod
-rw-r--r-- 1 root root 1.0K Mar 23 05:38 lnxboot.img
-rw-r--r-- 1 root root 5.7K Mar 23 05:38 loadenv.mod
-rw-r--r-- 1 root root 3.0K Mar 23 05:38 loopback.mod
-rw-r--r-- 1 root root 3.7K Mar 23 05:38 lsacpi.mod
-rw-r--r-- 1 root root 2.3K Mar 23 05:38 lsapm.mod
-rw-r--r-- 1 root root 1.8K Mar 23 05:38 lsmmap.mod
-rw-r--r-- 1 root root 4.4K Mar 23 05:38 ls.mod
-rw-r--r-- 1 root root 4.9K Mar 23 05:38 lspci.mod
-rw-r--r-- 1 root root 7.1K Mar 23 05:38 lvm.mod
-rw-r--r-- 1 root root 8.9K Mar 23 05:38 lzopio.mod
-rw-r--r-- 1 root root 2.0K Mar 23 05:38 mdraid09.mod
-rw-r--r-- 1 root root 2.4K Mar 23 05:38 mdraid1x.mod
-rw-r--r-- 1 root root 2.1K Mar 23 05:38 memdisk.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 memrw.mod
-rw-r--r-- 1 root root 3.5K Mar 23 05:38 minicmd.mod
-rw-r--r-- 1 root root 3.8K Mar 23 05:38 minix2.mod
-rw-r--r-- 1 root root 3.8K Mar 23 05:38 minix.mod
-rw-r--r-- 1 root root 9.1K Mar 23 05:38 mmap.mod
-rw-r--r-- 1 root root 3.3K Mar 23 05:38 moddep.lst
-rw-r--r-- 1 root root 2.5K Mar 23 05:38 msdospart.mod
-rw-r--r-- 1 root root  13K Mar 23 05:38 multiboot2.mod
-rw-r--r-- 1 root root  12K Mar 23 05:38 multiboot.mod
-rw-r--r-- 1 root root 6.6K Mar 23 05:38 nilfs2.mod
-rw-r--r-- 1 root root 105K Mar 23 05:38 normal.mod
-rw-r--r-- 1 root root 3.5K Mar 23 05:38 ntfscomp.mod
-rw-r--r-- 1 root root 9.4K Mar 23 05:38 ntfs.mod
-rw-r--r-- 1 root root 2.6K Mar 23 05:38 ntldr.mod
-rw-r--r-- 1 root root  11K Mar 23 05:38 ohci.mod
-rw-r--r-- 1 root root 1.8K Mar 23 05:38 part_acorn.mod
-rw-r--r-- 1 root root 1.9K Mar 23 05:38 part_amiga.mod
-rw-r--r-- 1 root root 2.2K Mar 23 05:38 part_apple.mod
-rw-r--r-- 1 root root 2.8K Mar 23 05:38 part_bsd.mod
-rw-r--r-- 1 root root 2.4K Mar 23 05:38 part_gpt.mod
-rw-r--r-- 1 root root   82 Mar 23 05:38 partmap.lst
-rw-r--r-- 1 root root 2.4K Mar 23 05:38 part_msdos.mod
-rw-r--r-- 1 root root 1.7K Mar 23 05:38 part_sun.mod
-rw-r--r-- 1 root root 1.8K Mar 23 05:38 part_sunpc.mod
-rw-r--r-- 1 root root   17 Mar 23 05:38 parttool.lst
-rw-r--r-- 1 root root 4.5K Mar 23 05:38 parttool.mod
-rw-r--r-- 1 root root 2.1K Mar 23 05:38 password.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 password_pbkdf2.mod
-rw-r--r-- 1 root root 1.4K Mar 23 05:38 pbkdf2.mod
-rw-r--r-- 1 root root 1.3K Mar 23 05:38 pci.mod
-rw-r--r-- 1 root root 2.6K Mar 23 05:38 play.mod
-rw-r--r-- 1 root root 6.5K Mar 23 05:38 png.mod
-rw-r--r-- 1 root root 2.7K Mar 23 05:38 probe.mod
-rw-r--r-- 1 root root 1.0K Mar 23 05:38 pxeboot.img
-rw-r--r-- 1 root root 1.4K Mar 23 05:38 pxecmd.mod
-rw-r--r-- 1 root root 6.1K Mar 23 05:38 pxe.mod
-rw-r--r-- 1 root root 1.5K Mar 23 05:38 raid5rec.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 raid6rec.mod
-rw-r--r-- 1 root root 6.4K Mar 23 05:38 raid.mod
-rw-r--r-- 1 root root 1.7K Mar 23 05:38 read.mod
-rw-r--r-- 1 root root 1.2K Mar 23 05:38 reboot.mod
-rw-r--r-- 1 root root  41K Mar 23 05:38 regexp.mod
-rw-r--r-- 1 root root 9.4K Mar 23 05:38 reiserfs.mod
-rw-r--r-- 1 root root  15K Mar 23 05:38 relocator.mod
-rw-r--r-- 1 root root 4.0K Mar 23 05:38 scsi.mod
-rw-r--r-- 1 root root 3.0K Mar 23 05:38 search_fs_file.mod
-rw-r--r-- 1 root root 3.0K Mar 23 05:38 search_fs_uuid.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 search_label.mod
-rw-r--r-- 1 root root 2.6K Mar 23 05:38 search.mod
-rw-r--r-- 1 root root 7.1K Mar 23 05:38 sendkey.mod
-rw-r--r-- 1 root root 7.0K Mar 23 05:38 serial.mod
-rw-r--r-- 1 root root  706 Mar 23 05:38 setjmp.mod
-rw-r--r-- 1 root root 5.4K Mar 23 05:38 setpci.mod
-rw-r--r-- 1 root root 4.0K Mar 23 05:38 sfs.mod
-rw-r--r-- 1 root root 2.2K Mar 23 05:38 sleep.mod
-rw-r--r-- 1 root root 3.9K Mar 23 05:38 squash4.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 tar.mod
-rw-r--r-- 1 root root  132 Mar 23 05:38 terminal.lst
-rw-r--r-- 1 root root 3.8K Mar 23 05:38 terminal.mod
-rw-r--r-- 1 root root  11K Mar 23 05:38 terminfo.mod
-rw-r--r-- 1 root root 1.5K Mar 23 05:38 test_blockarg.mod
-rw-r--r-- 1 root root 2.8K Mar 23 05:38 testload.mod
-rw-r--r-- 1 root root 5.0K Mar 23 05:38 test.mod
-rw-r--r-- 1 root root 2.9K Mar 23 05:38 tga.mod
-rw-r--r-- 1 root root 1.8K Mar 23 05:38 trig.mod
-rw-r--r-- 1 root root 1.4K Mar 23 05:38 true.mod
-rw-r--r-- 1 root root 6.5K Mar 23 05:38 udf.mod
-rw-r--r-- 1 root root 4.7K Mar 23 05:38 ufs1.mod
-rw-r--r-- 1 root root 5.0K Mar 23 05:38 ufs2.mod
-rw-r--r-- 1 root root 5.9K Mar 23 05:38 uhci.mod
-rw-r--r-- 1 root root 4.2K Mar 23 05:38 usb_keyboard.mod
-rw-r--r-- 1 root root 9.5K Mar 23 05:38 usb.mod
-rw-r--r-- 1 root root 5.5K Mar 23 05:38 usbms.mod
-rw-r--r-- 1 root root 2.0K Mar 23 05:38 usbserial_common.mod
-rw-r--r-- 1 root root 2.4K Mar 23 05:38 usbserial_ftdi.mod
-rw-r--r-- 1 root root 2.8K Mar 23 05:38 usbserial_pl2303.mod
-rw-r--r-- 1 root root 3.7K Mar 23 05:38 usbtest.mod
-rw-r--r-- 1 root root 7.9K Mar 23 05:38 vbe.mod
-rw-r--r-- 1 root root 4.7K Mar 23 05:38 vga.mod
-rw-r--r-- 1 root root 2.3K Mar 23 05:38 vga_text.mod
-rw-r--r-- 1 root root 5.5K Mar 23 05:38 video_bochs.mod
-rw-r--r-- 1 root root 5.8K Mar 23 05:38 video_cirrus.mod
-rw-r--r-- 1 root root  19K Mar 23 05:38 video_fb.mod
-rw-r--r-- 1 root root 3.3K Mar 23 05:38 videoinfo.mod
-rw-r--r-- 1 root root   33 Mar 23 05:38 video.lst
-rw-r--r-- 1 root root  11K Mar 23 05:38 video.mod
-rw-r--r-- 1 root root 4.2K Mar 23 05:38 videotest.mod
-rw-r--r-- 1 root root 6.0K Mar 23 05:38 xfs.mod
-rw-r--r-- 1 root root  31K Mar 23 05:38 xnu.mod
-rw-r--r-- 1 root root 2.0K Mar 23 05:38 xnu_uuid.mod
-rw-r--r-- 1 root root  15K Mar 23 05:38 xzio.mod
-rw-r--r-- 1 root root 6.3K Mar 23 05:38 zfsinfo.mod
-rw-r--r-- 1 root root  33K Mar 23 05:38 zfs.mod

Hi! Thank you for your interest!

Builds from master are entirely unsupported. Any tags above 8.1 are currently developers-only builds.

As a user, please use 8.0 or 8.1 (due to be blessed stable soon).

As a developing interested user: we have no rule “do not break master” (yet). I currently restructure Whonix’s source code. It will be split into multiple packages. This will take a while. You’re welcome to help with development, in that case, I have no clue what the cause of this bug is. I will find out and fix this when time comes (fishing the current task first).

Have a great day!

Thanks for the reply.

I will look into it further to see what is happening.

At this point I am interested in the developer version (specifically for KVM) since I do want to inject code to encrypt the drive so I would not have to manually do it (as detailed in https://www.whonix.org/forum/index.php/topic,204.0.html ). This feature can be for me only or if desired I can contribute it back.

You don’t need versions bigger than 8 for this. qcow2 images can be created for Whonix 8, 8.1. Even with Whonix 7 they could already be converted. No need for the development version just for that.

Interesting. I’ll look into the other thread.

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]