Rex
Rex copied to clipboard
LibVirt: Initial support for virtio-scsi virtual drives (read: ssd trim)
User story
As an engineer I would like to add support for virtio-scsi devices in Libvirt.pm so I can automate usage of para-virtualized SCSI controller devices
Describe the solution you'd like
- Honour
driver_cache
anddriver_discard
keys in storage disk config. - Add a SCSI controller if any of the storage disks have SCSI as the target bus.
Such that we could do e.g:
vm create => 'foo',
type => 'kvm',
storage => [
{
dev => 'sda',
bus => 'scsi',
driver_cache => 'writeback',
driver_discard => 'unmap',
}
],
...
Describe alternatives you've considered
N/A
Additional context
N/A