There is also KVM mailing list.
And also http://unix.stackexchange.com/ has often given me good answers to development questions (User adrelanos - Unix & Linux Stack Exchange) - just need to ask them in a generic, non-Whonix way.
I am not sure what to ask. Could you please post what it is you are trying to find out on SE?
The patching works and is stable after the many conditionsI tested above kernel, grub upgrades and the update-grub command all in that order. From what I’ve seen its a problem that doesn’t depend so much on KVM as it does on the way the qcow2 image partition identifiers are generated in the images.
Is VirtualBox a dependency for Whonix builds? Why else would the disk id had VBOX_HARDDISK in there?
What I’ve posted above is what I am seeing before changing all root paths to vda based nomenclature. Same works if that uuid is inserted instead in these three files.
What is needed is just the patching of root paths in /boot/grub/device.map /boot/grub/grub.cfg /etc/fstab
What my files look like now:
/boot/grub/device.map
After update-grub the file is blank
/boot/grub/grub.cfg
[code]#
DO NOT EDIT THIS FILE
It is automatically generated by grub-mkconfig using templates
from /etc/grub.d and settings from /etc/default/grub
BEGIN /etc/grub.d/00_header
if [ -s $prefix/grubenv ]; then
load_env
fi
set default=“0”
if [ “${prev_saved_entry}” ]; then
set saved_entry=“${prev_saved_entry}”
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z “${boot_once}” ]; then
saved_entry=“${chosen}”
save_env saved_entry
fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root=‘(/dev/vda,msdos1)’
search --no-floppy --fs-uuid --set=root 040e91c3-400d-406c-bbfd-b5e08b5945b6
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
set timeout=5
END /etc/grub.d/00_header
BEGIN /etc/grub.d/05_debian_theme
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
END /etc/grub.d/05_debian_theme
BEGIN /etc/grub.d/10_linux
menuentry ‘Debian GNU/Linux, with Linux 3.2.0-4-686-pae’ --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=‘(/dev/vda,msdos1)’
search --no-floppy --fs-uuid --set=root 040e91c3-400d-406c-bbfd-b5e08b5945b6
echo ‘Loading Linux 3.2.0-4-686-pae …’
linux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=040e91c3-400d-406c-bbfd-b5e08b5945b6 ro selinux=1 enforcing=1 vga=0x0317
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-3.2.0-4-686-pae
}
menuentry ‘Debian GNU/Linux, with Linux 3.2.0-4-686-pae (recovery mode)’ --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=‘(/dev/vda,msdos1)’
search --no-floppy --fs-uuid --set=root 040e91c3-400d-406c-bbfd-b5e08b5945b6
echo ‘Loading Linux 3.2.0-4-686-pae …’
linux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=040e91c3-400d-406c-bbfd-b5e08b5945b6 ro single selinux=1 enforcing=1
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-3.2.0-4-686-pae
}
menuentry ‘Debian GNU/Linux, with Linux 3.2.0-4-486’ --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=‘(/dev/vda,msdos1)’
search --no-floppy --fs-uuid --set=root 040e91c3-400d-406c-bbfd-b5e08b5945b6
echo ‘Loading Linux 3.2.0-4-486 …’
linux /boot/vmlinuz-3.2.0-4-486 root=UUID=040e91c3-400d-406c-bbfd-b5e08b5945b6 ro selinux=1 enforcing=1 vga=0x0317
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-3.2.0-4-486
}
menuentry ‘Debian GNU/Linux, with Linux 3.2.0-4-486 (recovery mode)’ --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root=‘(/dev/vda,msdos1)’
search --no-floppy --fs-uuid --set=root 040e91c3-400d-406c-bbfd-b5e08b5945b6
echo ‘Loading Linux 3.2.0-4-486 …’
linux /boot/vmlinuz-3.2.0-4-486 root=UUID=040e91c3-400d-406c-bbfd-b5e08b5945b6 ro single selinux=1 enforcing=1
echo ‘Loading initial ramdisk …’
initrd /boot/initrd.img-3.2.0-4-486
}
END /etc/grub.d/10_linux
BEGIN /etc/grub.d/20_linux_xen
END /etc/grub.d/20_linux_xen
BEGIN /etc/grub.d/30_os-prober
END /etc/grub.d/30_os-prober
BEGIN /etc/grub.d/40_custom
This file provides an easy way to add custom menu entries. Simply type the
menu entries you want to add after this comment. Be careful not to change
the ‘exec tail’ line above.
END /etc/grub.d/40_custom
BEGIN /etc/grub.d/41_custom
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
END /etc/grub.d/41_custom
[/code]
/etc/fstab
[code]/dev/disk/by-uuid/040e91c3-400d-406c-bbfd-b5e08b5945b6 / auto defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/cdrom /mnt/cdrom0 iso9660 ro,user,noauto 0 0
some other examples:
/dev/sda2 none swap sw,pri=0 0 0
/dev/hda1 /Grml ext3 dev,suid,user,noauto 0 2
//1.2.3.4/pub /smb/pub smbfs defaults,user,noauto,uid=grml,gid=grml 0 0
linux:/pub /beer nfs defaults 0 0
tmpfs /tmp tmpfs size=300M 0 0
/dev/sda5 none swap sw 0 0
Whonix /etc/fstab changes.
Swap file created by Whonix.
UUID=0615ba72-85b0-4183-8d54-300bb0d2e491
/swapfile1 swap swap defaults 0 0
End of Whonix /etc/fstab changes.
[/code]