This varies per domU type. In general, you should use xvda
, xvdb
, etc, for disks with partitions, and xvda1
, xvdb1
, etc, for raw partitions/filesystems.
-
xvdX
, where X
= an alphabetic character, represents a native Xen Virtual Block Device (VDB).
-
xvdXY
, where X
= an alphabetic character, and Y
= a number, represents a native Xen Virtual Block Device (VDB) partition.
-
hdX
, where X
= an alphabetic character, represents an IDE drive emulated using QEMU (maximum of 4, see below) and also exposed as a VDB.
-
sdX
, where X
= an alphabetic character, represents a SCSI drive emulated using QEMU (maximum of 4, see below) and also exposed as a VDB.
X
must be unique, ie. hda
and xvda
refer to the same drive, so the configuration can only define one of them. The emulated drives a
, b
, c
, and d
are the only drive letters that support hdX
and sdX
names. hdf
is invalid; it must be defined using xvdf
.
It is recommend to expose names without a partition number: xvda
, xvdb
, xvdd
. Note that the names can be in any arbitrary order, including skipping letters, but we recommend keeping them sequential except in cases where you are hiding or reassembling a drive on HVM systems.
It isn’t recommended as they are not fully compatible with HVM, but if you are exposing a partition on a Xen VDB, you can use names with a partition number: xvda1
, xvdb7
, xvdf1
. Note that the partition number can be arbitrary, though we recommend sticking to just 1. Additionally, as with disk names, do note that the names can also be in any arbitrary order, including skipping letters, but we recommend keeping them sequential.
PV & PVH
Uxe xvd*
style names. hdX
and sdX
names are NOT supported.
Assembling a "disk" from partitions is supported, but not recommended, as HVM doesn’t support this setup. For example: xvda1
xvda2
xvda3
HVM without drivers (Non-Linux)
Use sdX
names if your guest supports SCSI, or hdX
otherwise. xvd*
isn’t supported.
Expose sda
, sdb
, sdc
, etc.
#TODO: someone tell me any juicy Windows details?
HVM with PV or PVHVM drivers - BIOS & Direct Kernel Boot
Uxe xvd*
style names. hdX
and sdX
names are supported, but only recommmended for the boot drives if you are using BIOS booting. Linux will automatically switch to xvd*
variants, as Xen exposes all drives both through QEMU and Xen VDBs.
Assembling a "disk" from partitions is NOT supported for disks *a
-*d
. This list of disks will fail: xvda1
xvda2
xvda3
.
Only the first 4 drives (a
-*d
) may be hdX
, the rest are forced to be xvd
HVM with PV or PVHVM drivers - UEFI
Uxe xvdX
style names for the boot disk, and hdX
or xvdX
style names for all other disks. sdX
names are NOT supported. Using sda
will cause a boot hang. Linux will automatically switch to xvd*
variants, as Xen exposes all drives both through QEMU and Xen VDBs.
If using xvd*
style names for the boot disk fails, you are using a version of OVMF without Xen support (Debian 12 packages such a version). This may prevent seeing any progress on the console in grub.
Assembling a "disk" from partitions is NOT supported for disks *a
-*d
. This list of disks will fail: xvda1
xvda2
xvda3
Only the first 4 drives (a
-*d
) may be hdX
, the rest are forced to be xvd
.