Package: fai-setup-storage Version: 5.0.1 Using debian 8.2 for the faiserver, installing to the default debian jessie target. The server and install target are both vms within a machine running arch linux (qemu 2.4.1-2, libvirt 1.3.0-1).
root@faiserver:/srv/fai/config/disk_config# cat DEFAULT disk_config disk1 disklabel:msdos bootable:1 fstabkey:uuid primary / 100% ext4 noatime,errors=remount-ro # qemu-img create -f qcow2 /var/lib/libvirt/images/demohost 10G # virt-install --cpu host -n demohost --pxe -r 2048 --vcpus 1 --disk path=/var/lib/libvirt/images/demohost -w bridge=br0,mac=52:54:00:9c:ef:ad Install fails. The last thing printed to stdout is the same as the saved format.log on the faiserver: # cat format.log Starting setup-storage 2.0 Using config file: /var/lib/fai/config/disk_config/DEFAULT Parted could not read a disk label (new disk?) Executing: parted -s /dev/sda mklabel msdos DEGRADED MODE. Incomplete RAID LVs will be processed. Creating directory "/run/lock/lvm" Finding all volume groups No volume groups found INTERNAL ERROR in setup-storage: convert_unit -851456B Please report this error to the Debian Bug Tracking System. at /usr/share/fai/setup-storage/Parser.pm line 382. FAI::convert_unit("-851456B") called at /usr/share/fai/setup-storage/Sizes.pm line 52 FAI::make_range("100%-100%", "-851456B") called at /usr/share/fai/setup-storage/Sizes.pm line 471 FAI::do_partition_real(1, "PHY_/dev/sda", "/dev/sda", 1048576, 512, "-851456B", ARRAY(0x312dc00)) called at /usr/share/fai/setup-storage/Sizes.pm line 742 FAI::compute_partition_sizes called at /usr/sbin/setup-storage line 204 Comparatively, using a raw disk file, the install succeeds # qemu-img create /var/lib/libvirt/images/demohost 10G This time format.log looks good: # cat format.log Starting setup-storage 2.0 Using config file: /var/lib/fai/config/disk_config/DEFAULT Parted could not read a disk label (new disk?) Executing: parted -s /dev/sda mklabel msdos DEGRADED MODE. Incomplete RAID LVs will be processed. Creating directory "/run/lock/lvm" Finding all volume groups No volume groups found Executing: parted -s /dev/sda mklabel msdos Executing: parted -s /dev/sda mkpart primary "ext3" 1048576B 10737418239B Executing: parted -s /dev/sda set 1 boot on Executing: mkfs.ext4 /dev/sda1 /dev/sda1 UUID=a28598c0-7046-42fd-9392-b490c0cb7844 Other info which might be useful: # qemu-img info /var/lib/libvirt/images/demohost image: /var/lib/libvirt/images/demohost file format: qcow2 virtual size: 10G (10737418240 bytes) disk size: 196K cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false refcount bits: 16 corrupt: false