LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Problems configuring FAI for installation on clients (https://www.linuxquestions.org/questions/linux-server-73/problems-configuring-fai-for-installation-on-clients-4175631086/)

CLS. 06-03-2018 05:30 AM

Problems configuring FAI for installation on clients
 
Hi

I'm trying to use FAI (http://fai-project.org) to install a new Ubuntu System to my computer. I just had two days of headache and bug fixes with the configuration files, so maybe there is someone who could help:

The task partition reads a particular disk_config file from the config archive given over FAI_CONFIG_SRC boot option from my local installation server. I'm currently using localhost for testing purposes.

The partition scheme consists of a logical volume layer to create one logical volume out of all clients' disks.
On that there should be a layer of LUKS (cryptsetup) for a full disk encryption with AES.
On the third layer (encrypted) should be another LVM system defining the usable partitions like /, /home, /var etc.

I installed some clients with exactly this layout and the inner Debian / Ubuntu systems work great (the installation process is a lot better with Debian in this case).

After having fixed a thousand of this nasty bugs with the configuration file, I get struggled.

Error message by LVM:
Code:

Cannot determine size of /dev/crypt_format_system-volume - scheme unknown
Current config file for a client with three disks:
Code:

disk_config disk1 disklabel:msdos fstabkey:uuid align-at:512B bootable:1
primary  /boot/efi  512M  vfat  ro
primary  /boot      2G    ext2  ro
primary  -          200G-  -    -

disk_config disk2 disklabel:msdos fstabkey:uuid align-at:512B
primary  -          100%  -    -

# no config for disk3 - don't touch it

disk_config lvm
vg            system  disk1.3,disk2.1
system-volume  -      100%  -  -

disk_config cryptsetup
luks  -  system-volume  -  -  createopts="-c aes-xts-plain64 -v"

disk_config lvm
vg          ubuntu  crypt_format_system-volume
ubuntu-root  /      32G  ext4  rw,noatime,error=remount-ro
ubuntu-home  /home  4G  ext4  rw,noatime
ubuntu-usr  /usr    64G  ext4  rw,noatime
ubuntu-var  /var    8G  ext4  rw,noatime
ubuntu-tmp  /tmp    2G  ext2  rw,noatime
ubuntu-swap  swap    16G  swap  defaults

Thanks in advance for reading this long post :)


All times are GMT -5. The time now is 03:17 PM.