Initially, I had a tough time installing QubesOS on a Thinkpad. Qubes wouldn’t boot at all from the installation medium, and after I doctored the installer on an USB stick, it did boot, but froze immediately with a blinking cursor. The only Linux distribution which did boot from DVD or USB stick was Fedora.
This is how I finally got QubesOS 3.2 running on a Thinkpad:
- Create a Fedora 27 Live DVD using the Fedora LiveCD creator available at: https://getfedora.org/workstation/download/
- Start Thinkpad, press F12 (or, on a Thinkpad X61s, the blue ThinkAdvantage button followed by F12). Make sure the function lock key is activated on a 102-key-notebook like the 540 to access function keys
- Enter BIOS and set the following things:
- USB UEFI BIOS Support: Enabled
- UEFI/Legacy Boot: UEFI Only
- Secure Boot: Disabled
- Boot Thinkpad from Fedora DVD to get a live system, skipping the installer
- Write the Qubes installer image onto an USB stick of 16G size:
- First, install “livecd-tools” into the Fedora live system: # dnf install livecd-tools
- Make sure the root file system of the Fedory live installation did not run out of space
- Download the Qubes OS 3.2 ISO image at: https://mirrors.kernel.org/qubes/iso/Qubes-R3.2-x86_64.iso into the live system using Firefox or better wget. It will not fit into the live system disk, but you can format and mount the Thinkpads internal HDD to obtain space. I just installed a Fedora Linux onto the Thinkpad useing the install DVD before, but you might also just use fdisk and create a new partition, or use any existing partition of the noteboosks internal disk (which will of course be deleted in this process)
- Within Fedora, attach the USB stick that you would like to turn into your Qubes Installation USB Stick. Use
dmesgto figure out what the device name of that stick is. For these instructions, I assume it’s /dev/sdb
- Umount any volumes of the USB stick which might have been mounted: # umount /dev/sdb*
- Use livecd-tools to copy the image:
# livecd-iso-to-disk --format --efi /mnt/Qubes-R4.0-rc3-x86_64.iso /dev/sdb.
- When imaging is complete, change the partition label to BOOT:
# dosfslabel /dev/sdd1 BOOT
- Now create a mount point and mount the partition:
# mkdir /mnt/qinst
- # mount /dev/sdd1 /mnt/qinst/
- Use your favorite editor to edit the file /mnt/qinst/EFI/BOOT/xen.cfg: Replace all instances of
LABEL=BOOT. There is typically no space in front of
LABEL, but there is a space at the end of the portion you replace.
- Unmount the Qubes Installation USB stick:
# umount /dev/sdb*and disconnect it
- Reboot, remove DVD and USB stick, boot from the stick, but dont run the installer, but in GRUB menu, select “Troubleshoot”, then “Boot from device”, then press “
- At the end of the “
chainloader"line add the text: “
- Perform the Qubes OS installation normally. After installation, reboot. In my case, the notebook froze on trying to get a shell after the installation by pressing CTRL-Alt-F2. Now, the system will not boot.
- Reboot from the Fedora live DVD
- Mount the Thinkpads disk, where Qubes has been installed onto, like, /mnt
/mnt/sysimage/boot/efi/EFI/qubes/xen.cfgand add to every kernel section:
You must add these parameters on two separate new lines (one paramater on each line) at the end of each section that includes a kernel line
- Copy /mnt/sysimage
- Rename /mnt/sysimage
- Rename /mnt/sysimage
- Unmount /mnt and reboot
- Your Qubes will hopefully boot now.