Bug 216009

Summary: Floppy does not work under KVM
Product: Base System Reporter: Miguel Castellanos <miguelcastellanos>
Component: kernAssignee: freebsd-virtualization (Nobody) <virtualization>
Status: New ---    
Severity: Affects Only Me CC: josh
Priority: ---    
Version: 10.3-RELEASE   
Hardware: amd64   
OS: Any   

Description Miguel Castellanos 2017-01-13 00:24:19 UTC
My KVM system uses the virtual floppy drive of KVM virtual machines to inject the network configuration into the guest operating system.

This approach works fine on Linux and Windows Virtual Machines, however FreeBSD is not able to recognize the Floppy device.

The following messages appears at dmesg:

fdc0: <floppy drive controller (FDE)> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
fdc0: No FDOUT register!

The corresponding qemu command at the Host operating system is called using the following parameters:

-drive file=/tmp/vm.floppy,if=floppy,format=raw 

where /tmp/vm.floppy is a DOS formatter floppy image file.

Thanks for your help and time.

Miguel
Comment 1 Josh Jameson 2018-09-25 13:36:53 UTC
I've ran into this issue on 11.2-RELEASE-p3
Does anyone know how to fix this? I tried disabling device hints in /boot/device.hints but no dice.