Backlog #3061
Add ability to modify disk target bus
Status: | Pending | Start date: | 07/17/2014 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Drivers - VM | |||
Target version: | - |
Description
ONE provides a TARGET option in the Disks section of a VM definition. This results in libvirt XML:
<disk ...>
<target dev='[TARGET]'/>
...
</disk>
libvirt will automatically determine the bus type from the target name, i.e hd = ide, sd = scsi, vd = virtio etc* However the bus can also be explicitly specified.
Can ONE provide an explicit BUS option in the DISK section of a vm definition to allow this to be set? This would give access to other BUS types such as 'sata' which are needed for some OS, especially some versions of Windows:
<target dev='[TARGET]' bus='[BUS]'/>
"The optional bus attribute specifies the type of disk device to emulate; possible values are driver specific, with typical values being "ide", "scsi", "virtio", "xen", "usb", "sata", or "sd" "sd" since 1.1.2. If omitted, the bus type is inferred from the style of the device name (e.g. a device named 'sda' will typically be exported using a SCSI bus)."
History
#1 Updated by Ruben S. Montero almost 7 years ago
- Tracker changed from Feature to Backlog
- Category set to Core & System
- Priority changed from Normal to High
Moving it to backlog to plan it after 4.8
#2 Updated by Ruben S. Montero almost 7 years ago
- Category changed from Core & System to Drivers - VM
#3 Updated by Matthew Richardson almost 7 years ago
Looking at the code there used to be a BUS option, but it was removed when DEV_PREFIX was added - presumably with the idea that libvirt would always pick the bus automatically, so there was no need to explicitly specify it?
The relevant commit is: a26fad7fe510269ba3072e9e67a936c6b1440cd0
#4 Updated by Ruben S. Montero almost 7 years ago
Matthew Richardson wrote:
Looking at the code there used to be a BUS option, but it was removed when DEV_PREFIX was added - presumably with the idea that libvirt would always pick the bus automatically, so there was no need to explicitly specify it?
The relevant commit is: a26fad7fe510269ba3072e9e67a936c6b1440cd0
Yes that was the idea, but maybe there are options that cannot be selected otherwise, e.g. sata/scsi would be sd for both?