You are not logged in.
Hi guys,
i'm trying install archlinux LVM on luks in virtualbox.
I'm following the example of fromminttoarch.
https://bbs.archlinux.org/viewtopic.php?id=246628
There are some things that i don't understand.
The partition /dev/sda1 is a type "Linux" bootable.
Is the boot folder in /dev/mapper/vg-root/home ?
regards
Last edited by archdom (2020-03-09 21:36:13)
Offline
According to that post, the partitions are mounted as /mnt and /mnt/home
mount /dev/mapper/vg-root /mnt
mkdir /mnt/home
mount /dev/mapper/vg-home /mnt/home
pacstrap -i /mnt base base-devel
genfstab -U /mnt > /mnt/etc/fstab
arch-chroot /mnt /bin/bashThen further down grub is installed
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sdaThe boot folder should be /mnt/boot, though you'll be chrooted into the system after the arch-chroot command, so it should just be /boot.
Last edited by Steo (2020-03-07 17:20:07)
Offline
I was in doubt because all the examples in the wiki have two partitions.
1) unencrypted boot partition /dev/sda1
2) encrypted partition /dev/sda2
Fromminttoarch's example is very interesting because it uses a single encrypted partition.
The only limitation is the use of --type luks1 because grub is not compatible with luks2.
I'm trying to do the same with gpt (UEFI).
Tomorrow I will try to repeat the steps because I have an error when I run
grub-install /dev/sda/I get this error:
grub-install error /boot doesn't look like an efi partitionI tried adding --efi-directory = / boot without success.
I remembered that one of the requirements of a "Linux EFI System" partition is to format in fat 32.
I didn't do this.
Tomorrow I will try.
Last edited by archdom (2020-03-07 20:30:01)
Offline
it doesn't work.
Repeat all
Run archlinux.iso (UEFI mode ) in virtualbox
I have a disk of 12 GB /dev/sda
the steps are:
1) Create an EFI system partition /dev/sda1
2) mkfs.fat -F32 /dev/sda1
3) cryptsetup luksFormat --type luks1 /dev/sda1
4) cryptsetup open /dev/sda1 cryptlvm
5) pvcreate /dev/mapper/cryptlvm
6) vgcreate vg0 /dev/mapper/cryptlvm
7) lvcreate -C y -L xxG vg0 -n swap
lvcreate -L xxG vg0 -n root
lvcreate -l 100%FREE vg0 -n home
8) mkfs.ext4 /dev/vg0/root
mkfs.ext4 /dev/vg0/home
mkswap /dev/vg0/swap
9) mount /dev/vg0/root /mnt
mkdir /mnt/home
mount /dev/vg0/home /mnt/home
swapon /dev/MyVolGroup/swap
10) pacstrap -i /mnt base base-devel
11) genfstab -U /mnt > /mnt/etc/fstab
12) arch-chroot /mnt /bin/bash
13) install linux linux-headers lvm2
14) modify mkinitcpio.conf
HOOKS=(base udev autodetect .... block encrypt lvm2 filesystems fsck)
15) run mkinitcpio -p linux
16) modify /etc/default/grub
- GRUB_ENABLE_CRYPTODISK=y
- kernel parameter cryptdevice=UUID=device-UUID:cryptlvm
nb: device-UUID of /dev/sda1
17) grub-mkconfig -o /boot/grub/grub.cfg
correctly generated
18) grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUBERROR:
grub-install error: /boot doesn't look like an EFI partitionWhat do i wrong?
Perhaps in uefi mode doesn't work.... ![]()
appreciated help
Last edited by archdom (2020-03-08 11:03:30)
Offline
So you didn't do what the template you followed did and only mention that now...
fromminttoarch install in MBR/BIOS mode.
If you intend to do UEFI mode the ESP partition you create should not be encrypted and not part of your LUKS setup but a standalone partition you install at least GRUB into. See: https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS
Offline
If you intend to do UEFI mode the ESP partition you create should not be encrypted and not part of your LUKS setup but a standalone partition you install at least GRUB into. See: https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS
OK. the guide https://wiki.archlinux.org/index.php/Dm … VM_on_LUKS is user-firendly.
Is there a possibility of protect ESP partition by a unauthorized chroot?
thanks V1del for answer
Offline
The EFI implementation of VirtualBox is buggy. Make sure to take a look at https://wiki.archlinux.org/index.php/Vi … n_EFI_mode
Never argue with an idiot, they will drag you down to their level and then beat you with experience.
It is better to light a candle than curse the darkness.
A journey of a thousand miles begins with a single step.
Offline
The EFI implementation of VirtualBox is buggy. Make sure to take a look at https://wiki.archlinux.org/index.php/Vi … n_EFI_mode
thanks for advice. The 6.1 version is ok.
Offline
ok guys, as expected works with an external EFI partition not encrypted.
In uefi mode, there isn't the mode of an entire system encrypted.
In bios mode that is possible.
close the topic.
regards
Offline
Please don't use [CLOSED], it's reserved for threads locked by mods from any more posts.
Edit your post to use [SOLVED] instead.
Offline
Please don't use [CLOSED], it's reserved for threads locked by mods from any more posts.
Edit your post to use [SOLVED] instead.
Done
Offline