Hi,
As Qubes page “Custom installation | Qubes OS” is outdated, I’m navigating blind here.
I’v DL’ed 4.1.2 and install it clean.
I want my /boot/efi and /boot on a USB stick
I have 4 drives,
32Gb sdb with install 4.1.2
2GB sda usb for Qubes boot (computer start without usb stick goes straight to vanilla Linux Suse)
512GB NVMe0 with Linux Suse and Win
2TB Nvme1 for Qubes
2TB NVMe2 for Qubes
What I want:
sda1 /boot/efi
sda2 /boot
NVMe0p13 32GB /tmp (Covered by /inside Lucks)
NVMe0p14 32GB swap (Covered by /inside Lucks)
NVMe1+NVMe2 90% LVM Qubes with 512GB /home
-=-=-=-=-=-=-==-=-=
Qubes install has 3 options:
Automatic, Manual Cutom, manuel custom blivet-GUI
Obviously, I can’t use the Auto
But neither the custom nor custom-Bliviet allow me to do this simple set-up
In custom, I’ve added the two boot, the swap, the tmp, but I can’t get them inside the Lucks, and then when I want to set / + /home on the joint-2 NVMe, it crash
in custom-Bliviet, I can set an LVM to join the 2 NVMe but can’t set which part for / and which part for /home (I’d like to have /home separated so as to not lose it everytime I reinstall) and again, can’t get the swap and /tmp inside the lucks
The easest would be to just go with LVM on NVMe1+NVMe2 and the /boot on sda
But then I won’t have the NVMe0p13 (/tmp) + NVMe0p14 (/swap) inside the LUKS
==> How do I go with my 4 partition ?? one by one ? or do I create an LV first and then create partition within ? everthing following is untouched, as this is where I’m stuck.
-=-=-===–=-=-=-=-=-=-=—=-=
4. Open encrypted volume:
Proceed with the installer. You can do that either by pressing ctrl+alt+F6, or by rebooting and restarting the installation. At the disk selection screen, select:
[x] I will configure partitioning.
[ ] Encrypt my data.
Moving it later to the usb rather than direct it to the usb at install ?
I take note, but then what will hapen to the partition created for booton the main disk during install ? Will I be able to merge it with the / partition (inslide LUKS)
I’m confusing creating a partition and formatting a partition.
So in 2) create partitions I should NOT have any: " /xyz "
NOW, for the fun part … LUKS first or LVM first ?
=> If I follow the guide, I’m supposed to :
Create LUKS encrypted volume before the LVM, But that would mean I will end-up with SIX LUKS entry, while if I invert 3) and 5) meaning I create LVM before LUKS, I will have my 6 partition inside an LVM, and therefore only one LUKS entry
* # Example adapted from the guide:
3. Create LUKS encrypted volume:
- #cryptsetup open /dev/sda2 luks
- #cryptsetup open /dev/NVMe0p13 luks
- #cryptsetup open /dev/NVMe0p14 luks
- #cryptsetup open /dev/NVMe1p1 luks
- #cryptsetup open /dev/NVMe2p1 luks
- #cryptsetup open /dev/NVMe2p2 luks
Create LVM volumes:
-# pvcreate /dev/mapper/luks
-# vgcreate qubes_dom0 /dev/mapper/luks
-# lvcreate -n swap -L 32G qubes_dom0 (I want it on NVMe0p13)
-# lvcreate -n /tmp -L 32G qubes_dom0 (I want it on NVMe0p13)
-# lvcreate -T -l +90%FREE qubes_dom0/pool00
-# lvcreate -V1G -T qubes_dom0/pool00 -n root
-# lvextend -L <size_of_pool00> /dev/qubes_dom0/root
-# lvextend -L <size_of_pool00> /dev/qubes_dom0/home (I want it on NVMe2p2)
And there again, how would I make sure the swap and the /tmp are on the NVMe0 disk, not on the NVMe1 nor NVMe2 (NVMe0 is smaller = cheaper so I want to redirect heavy R/W to this one) and that the /home is on NVMe2p2 (so I can keep it safe away for reformatting for reinstalling)
I could be wrong but, AFAIK you are not going to be able to use this cipher for your boot volume with r4.1.2 (only luks1 is supported in the shipping grub2 version).
Remove the cipher flag & change your type flag to luks1.
Yes, I sure can, but that is secondary.
For now, I’M not focused on this 2nd chapter …
For now I’m focusing on “actually installing” Qubes according to my partition wish
Looks like you are trying to use luks2 and associated cipher for /dev/sda2 (which you’re planning to use for /boot). Current r4.1 shipping grub2 = 2.04.
Again, what you’ve plotted will not result in a booting system.
[quote=“Erica.vH, post:6, topic:18188, full:true”]
Oh ! I think I get what I’m doing wrong …
I’m confusing creating a partition and formatting a partition.
So … I sure can create partition, I certainly can format it,
But I can’t figure out how to get them all inside LUKS and LVM, while forcing some (swap, tmp, boot, home, …) to be on specific drive/partition.
Because when I do a full auto install (on one disk only) I see that /boot/efi is out of LUKS while /boot is inside LUKS, as discussed further up in this thread.