Due to this topic I've done some Proxmox Perl Hacking and managed to make Floppies work in KVM. It's still a little bit dirty, but it took me 30 min to make it working so maybe implementing it as a FEATURE wouldn't be so hard.
So let's get to work. You have to edit /usr/share/perl5/PVE/QemuServer.pm as file attached. It's few small changes (look for 'floppy' in content). To ad a floppy to VM you need to have .raw image. Then edit file /etc/qemu-server/[VMID].conf and add at the end one line:
My file is floppy.raw and it's located on "local" storage in VM's 101 folder. That's all - reboot VM.
For developers - could you add "floppy" as a BUS in hard drive creation next to IDE, SCSI and VIRTIO? That's simply what I have done and it's working.
--edit
To create empty floppy RAW image:
--edit 10.04.2010@00:50GMT
Features:
- Management via WebUI;
- Auto image creation (size 1,44MB) and no need of editing files;
- 3 formats (vmdk, raw and qcow2); // i've only tested raw so far... feedback would be nice
- Up to two floppies;
Full patch can be done by:
So let's get to work. You have to edit /usr/share/perl5/PVE/QemuServer.pm as file attached. It's few small changes (look for 'floppy' in content). To ad a floppy to VM you need to have .raw image. Then edit file /etc/qemu-server/[VMID].conf and add at the end one line:
Code:
floppy0: local:101/floppy.raw
For developers - could you add "floppy" as a BUS in hard drive creation next to IDE, SCSI and VIRTIO? That's simply what I have done and it's working.
--edit
To create empty floppy RAW image:
Code:
qemu-img create floppy.raw 1440K
--edit 10.04.2010@00:50GMT
Features:
- Management via WebUI;
- Auto image creation (size 1,44MB) and no need of editing files;
- 3 formats (vmdk, raw and qcow2); // i've only tested raw so far... feedback would be nice
- Up to two floppies;
Full patch can be done by:
Code:
cd /tmp
wget http://maciek.wojcikowski.pl/proxmox/QemuServer.pm.diff
wget http://maciek.wojcikowski.pl/proxmox/hardware.htm.diff
patch -p1 -i QemuServer.pm.diff /usr/share/perl5/PVE/QemuServer.pm
patch -p1 -i hardware.htm.diff /usr/share/pve-manager/root/qemu/hardware.htm
Last edited: