FS#21231 - AIF does not detect partitions at /dev/xvda on a Xen virtual machine
Attached to Project:
Release Engineering
Opened by Sven (avanc) - Wednesday, 13 October 2010, 06:39 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:50 GMT
Opened by Sven (avanc) - Wednesday, 13 October 2010, 06:39 GMT
Last edited by Gerardo Exequiel Pozzi (djgera) - Monday, 26 November 2012, 04:50 GMT
|
Details
I wanted to install Arch Linux in virtual environment. The
harddisk are located at /dev/vxd*. aif doesn't detect these
partitions during "Prepare Hard Drive". Therefore, the setup
fails and I cannot continue the installation.
A workaround is to mount the partition manually at /mnt/ and patch aif so it doesn't insist on setting up the partitions: http://colinux.wikia.com/wiki/Howto:_ArchLinux_install_from_iso_with_rescue_fs#Stage_2:_Prepare_the_final_filesystem_and_install_ArchLinux_on_it There should be an option to set the partitions by hand. |
This task depends upon
Closed by Gerardo Exequiel Pozzi (djgera)
Monday, 26 November 2012, 04:50 GMT
Reason for closing: Deferred
Monday, 26 November 2012, 04:50 GMT
Reason for closing: Deferred
I.e. like https://github.com/Dieterbe/aif/commit/f7aa729579c4f81392446a9a775376f8438ab776
but now we should do:
- #scsi/sata devices, and virtio blockdevices (/dev/vd*)
- for dev in $(ls | egrep '^[sv]d')
+ #scsi/sata devices (sd*), virtio (vd*) and xen (vxd*) block devices
+ for dev in $(ls | egrep '^(s|vx?)d')
However, I don't like how we're "running behind" the kernel's blockdevice naming. I wonder if there is a more generic, robust way to find blockdevices like these.
and can you tell me what /sys/block/xvda/device/type contains? (if it exists) Maybe cat all files in /sys/block/xvda/device/
/sys/block/xvda/device/devtype says "vbd"
if so, this fix should work:
https://github.com/Dieterbe/aif/commit/7d9f34b3bf2be04b6cf6ec5ccd3efed6b5c1a08d
can anyone running Xen confirm?
MAJOR=202
MINOR=0
DEVNAME=xvda
DEVTYPE=disk