FS#17601 - Error in netinstall installer when using "Auto-Prepare" partitioning mode

Attached to Project: Release Engineering
Opened by Marti (intgr) - Friday, 25 December 2009, 02:56 GMT
Last edited by Dieter Plaetinck (Dieter_be) - Friday, 05 March 2010, 20:11 GMT
Task Type Bug Report
Category AIF
Status Closed
Assigned To Dieter Plaetinck (Dieter_be)
Architecture All
Severity Low
Priority Normal
Reported Version 2009.08
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: While trying to install a new virtual machine with QEMU/KVM/libvirt, I chose the "Auto-Prepare" option from the Arch Linux installer. This, however, made the installer crash with the following error:
ERROR: get_blockdevice_size needs a blockdevice as $1 (MiB given)

I am using following image: archlinux-2009.08-netinstall-x86_64.iso

I don't know if this is somehow specific to QEMU or a generic error.
This task depends upon

Closed by  Dieter Plaetinck (Dieter_be)
Friday, 05 March 2010, 20:11 GMT
Reason for closing:  Fixed
Comment by Marti (intgr) - Friday, 25 December 2009, 03:03 GMT
Apparently this happens when the installer cannot find any hard drives.

This is because I'm using VirtIO in my virtual machine -- the Arch installer does not recognize /dev/vda as a disk even after running 'modprobe virtio_blk'
Comment by Marti (intgr) - Friday, 25 December 2009, 03:11 GMT
Here's a workaround to get Arch to recognize the virtual disks at all in manual partitioning mode:

# cfdisk /dev/vda
# cd /dev/mapper
# ln -s ../vda? ./
Comment by Dieter Plaetinck (Dieter_be) - Monday, 18 January 2010, 20:59 GMT
thanks. I'll look into this.
so basically we should also look for devices called /dev/vd*, this is easy

the loading of the module, should this happen automatically?
Comment by Marti (intgr) - Tuesday, 19 January 2010, 11:41 GMT
> the loading of the module, should this happen automatically?
Actually the module is already loaded automatically. When booting this ISO file, 'lsmod' lists virtio_blk straight after boot and /dev/vda* devices exist.

Apart from adding /dev/vd* support, you should also prevent the installer from crashing when there are no disks at all. :)
Comment by Dieter Plaetinck (Dieter_be) - Friday, 05 March 2010, 20:11 GMT
* virtio device recognition implemented in  FS#16050 
* crashing when there are no disks fixed in git (untested): http://projects.archlinux.org/aif.git/commit/?h=experimental&id=b7a87de6512d3864b4b6dec5b0a6f91fc832e131

Loading...