I installed the 'experimental' packages and run 'make-fai-nfsroot'. The 'raw- disk' option for 'setup-storage' seems to work, but I bumped onto another problem.
I'm using this config; note there's no 'raw-disk' here, just to be sure that it's unrelated. disk_config /dev/vda fstabkey:uuid primary /boot 100% ext3 defaults disk_config /dev/vdb fstabkey:uuid primary / 100% ext3 rw,errors=remount-ro disk_config /dev/vdc primary swap 100% swap rw "task_partition" finishes correctly, but then I've got this from "task_mountdisks": Calling task_mountdisks Enable swap device /dev/vdc1 Mounting UUID=f703c0b7-51d2-4de2-8b5e-102a31b2c087 to /target/ Mounting UUID=f4670a96-f30f-4094-a8df-9cde3efcc465 to /target/boot mount: mount point /target/dev does not exist Error in task mountdisks. Traceback: task_error task_mountdisks task task_install task task_action task main $LOGUSER is undefined. Not saving log files to remote. FATAL ERROR. Installation stopped. I attach some log files from '/tmp/fai'. -- ############################## ### Jordi Funollet ### http://www.terraquis.net
disk_var.sh
Description: application/shellscript
------------------------------------------------- Fully Automatic Installation - FAI FAI 4.0~beta2+experimental34, 16 Oct 2010 (c) 1999-2010 Thomas Lange <la...@informatik.uni-koeln.de> ------------------------------------------------- Calling task_confdir Kernel currently running: Linux 2.6.26-2-amd64 x86_64 GNU/Linux Kernel parameters: initrd=initrd.img-2.6.26-2-amd64 ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot boot=live FAI_FLAGS=verbose,sshd,reboot FAI_ACTION=install BOOT_IMAGE=vmlinuz-2.6.26-2-amd64 Kernel parameters: initrd=initrd.img-2.6.26-2-amd64 ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot boot=live FAI_FLAGS=verbose,sshd,reboot FAI_ACTION=install BOOT_IMAGE=vmlinuz-2.6.26-2-amd64 Reading /tmp/fai/boot.log FAI_FLAGS: verbose sshd reboot No monitor daemon defined. FAI_CONFIG_SRC is set to nfs://coahuila/srv/fai/config Configuration space coahuila:/srv/fai/config mounted to /var/lib/fai/config Calling task_setup FAI_FLAGS: verbose sshd reboot Starting FAI execution - 20101022_133954 Calling task_defclass fai-class: Defining classes. Executing /var/lib/fai/config/class/10-base-classes. 10-base-classes OK. Executing /var/lib/fai/config/class/20-hwdetect.source. loading kernel module usbkbd loading kernel module ide-disk loading kernel module ide-cd loading kernel module ohci-hcd loading kernel module usbhid loading kernel module usbmouse loading kernel module ide-generic loading kernel module mptspi loading kernel module ata_piix loading kernel module dm-mod loading kernel module md-mod loading kernel module aes loading kernel module dm-crypt 20-hwdetect.source OK. Executing /var/lib/fai/config/class/50-host-classes. 50-host-classes OK. List of all classes: DEFAULT LINUX AMD64 FAIBASE KVM GRUB faitest LAST Calling task_defvar Executing FAIBASE.var ++ FAI_ALLOW_UNSIGNED=1 ++ CONSOLEFONT= ++ KEYMAP=es ++ UTC=yes ++ TIMEZONE=Europe/Madrid ++ ROOTPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1' ++ MODULESLIST='usbkbd ehci-hcd ohci-hcd uhci-hcd usbhid psmouse' ++ STOP_ON_ERROR=700 ++ USE_SETUP_STORAGE=1 Loading keymap(s) es ...done. Calling task_action FAI_ACTION: install Performing FAI installation. All data may be overwritten! Calling task_install Calling task_partition WARNING: The variable USE_SETUP_STORAGE is not needed any more. setup-storage is now the default tool for partitioning. Starting setup-storage 1.3+exp Using config file: /var/lib/fai/config/disk_config/KVM Executing: parted -s /dev/vda unit TiB print Parted could not read a disk label (new disk?) Executing: parted -s /dev/vda mklabel msdos Executing: parted -s /dev/vda unit TiB print Executing: parted -s /dev/vda unit B print free Executing: parted -s /dev/vda unit chs print free Executing: parted -s /dev/vdb unit TiB print Parted could not read a disk label (new disk?) Executing: parted -s /dev/vdb mklabel msdos Executing: parted -s /dev/vdb unit TiB print Executing: parted -s /dev/vdb unit B print free Executing: parted -s /dev/vdb unit chs print free Executing: parted -s /dev/vdc unit TiB print Parted could not read a disk label (new disk?) Executing: parted -s /dev/vdc mklabel msdos Executing: parted -s /dev/vdc unit TiB print Executing: parted -s /dev/vdc unit B print free Executing: parted -s /dev/vdc unit chs print free Finding all volume groups Executing: mdadm --examine --scan --verbose -c partitions Executing: parted -s /dev/vda mklabel msdos Executing: parted -s /dev/vda mkpart primary "ext3" 32256B 134217727B Executing: mkfs.ext3 /dev/vda1 Executing: parted -s /dev/vdb mklabel msdos Executing: parted -s /dev/vdb mkpart primary "ext3" 32256B 21474836479B Executing: mkfs.ext3 /dev/vdb1 Executing: parted -s /dev/vdc mklabel msdos Executing: parted -s /dev/vdc mkpart primary "linux-swap" 32256B 1073741823B Executing: mkswap /dev/vdc1 Executing: fai-vol_id -u /dev/vda1 Executing: fai-vol_id -l /dev/vda1 /dev/vda1 UUID=f4670a96-f30f-4094-a8df-9cde3efcc465 Executing: fai-vol_id -u /dev/vdb1 Executing: fai-vol_id -l /dev/vdb1 /dev/vdb1 UUID=f703c0b7-51d2-4de2-8b5e-102a31b2c087 Executing: fai-vol_id -u /dev/vdc1 Executing: fai-vol_id -l /dev/vdc1 /dev/vdc1 UUID=b7df9350-c3ce-42cf-a6bb-69232914d130 Calling task_mountdisks Enable swap device /dev/vdc1 Mounting UUID=f703c0b7-51d2-4de2-8b5e-102a31b2c087 to /target/ Mounting UUID=f4670a96-f30f-4094-a8df-9cde3efcc465 to /target/boot mount: mount point /target/dev does not exist Error in task mountdisks. Traceback: task_error task_mountdisks task task_install task task_action task main $LOGUSER is undefined. Not saving log files to remote. FATAL ERROR. Installation stopped. bash: no job control in this shell r...@faitest:/#
Starting setup-storage 1.3+exp Using config file: /var/lib/fai/config/disk_config/KVM Executing: parted -s /dev/vda unit TiB print Parted could not read a disk label (new disk?) Executing: parted -s /dev/vda mklabel msdos Executing: parted -s /dev/vda unit TiB print Executing: parted -s /dev/vda unit B print free Executing: parted -s /dev/vda unit chs print free Executing: parted -s /dev/vdb unit TiB print Parted could not read a disk label (new disk?) Executing: parted -s /dev/vdb mklabel msdos Executing: parted -s /dev/vdb unit TiB print Executing: parted -s /dev/vdb unit B print free Executing: parted -s /dev/vdb unit chs print free Executing: parted -s /dev/vdc unit TiB print Parted could not read a disk label (new disk?) Executing: parted -s /dev/vdc mklabel msdos Executing: parted -s /dev/vdc unit TiB print Executing: parted -s /dev/vdc unit B print free Executing: parted -s /dev/vdc unit chs print free Finding all volume groups Executing: mdadm --examine --scan --verbose -c partitions Executing: parted -s /dev/vda mklabel msdos Executing: parted -s /dev/vda mkpart primary "ext3" 32256B 134217727B Executing: mkfs.ext3 /dev/vda1 Executing: parted -s /dev/vdb mklabel msdos Executing: parted -s /dev/vdb mkpart primary "ext3" 32256B 21474836479B Executing: mkfs.ext3 /dev/vdb1 Executing: parted -s /dev/vdc mklabel msdos Executing: parted -s /dev/vdc mkpart primary "linux-swap" 32256B 1073741823B Executing: mkswap /dev/vdc1 Executing: fai-vol_id -u /dev/vda1 Executing: fai-vol_id -l /dev/vda1 /dev/vda1 UUID=f4670a96-f30f-4094-a8df-9cde3efcc465 Executing: fai-vol_id -u /dev/vdb1 Executing: fai-vol_id -l /dev/vdb1 /dev/vdb1 UUID=f703c0b7-51d2-4de2-8b5e-102a31b2c087 Executing: fai-vol_id -u /dev/vdc1 Executing: fai-vol_id -l /dev/vdc1 /dev/vdc1 UUID=b7df9350-c3ce-42cf-a6bb-69232914d130
# /etc/fstab: static file system information. # # <file sys> <mount point> <type> <options> <dump> <pass> UUID=f703c0b7-51d2-4de2-8b5e-102a31b2c087 / ext3 rw,errors=remount-ro 0 1 UUID=f4670a96-f30f-4094-a8df-9cde3efcc465 /boot ext3 defaults 0 2 /dev/vdc1 none swap rw 0 0