diff --git a/releasenotes/notes/floppy-1be04ed78708caf1.yaml b/releasenotes/notes/floppy-1be04ed78708caf1.yaml new file mode 100644 index 00000000..b78f5e13 --- /dev/null +++ b/releasenotes/notes/floppy-1be04ed78708caf1.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + Fixes incorrect device name and bus when attaching a virtual floppy. diff --git a/sushy_tools/emulator/resources/systems/libvirtdriver.py b/sushy_tools/emulator/resources/systems/libvirtdriver.py index 8151abf3..652a7a2b 100644 --- a/sushy_tools/emulator/resources/systems/libvirtdriver.py +++ b/sushy_tools/emulator/resources/systems/libvirtdriver.py @@ -890,6 +890,8 @@ class LibvirtDriver(AbstractSystemsDriver): if controller_type == 'ide': tgt_dev, tgt_bus = self.DEVICE_TARGET_MAP[device] + elif lv_device == 'floppy': + tgt_dev, tgt_bus = ('fda', 'fdc') else: tgt_dev, tgt_bus = ('sdc', controller_type)