VMware
3 Replies Last post: Aug 10, 2006 6:26 PM by petr  

Floppy image fails with FreeBSD 6.1 guest posted: Aug 8, 2006 8:13 PM

Click to view MrMoo's profile Lurker 2 posts since
Aug 8, 2006
VMware Server 1.0.0.
VMware Server Console 1.0.0 build-28343.

When I create a floppy image in the console and try to mount in a FreeBSD 6.1 guest it fails with a read error. The drive is detected on startup:

fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0

But mount causes a long delay and finally an error and quit. The floppy device seems to end up locked and I cannot shutdown FreeBSD completely afterwards.

# mount /dev/fd0 /mnt
g_vfs_done():fd0[READ(offset=65536, length=8192)]error = 5

If I try to reformat the disk another error occurs.

# newfs_msdos -f 1440 -L moo fd0
/dev/fd0: 2847 sectors in 2847 FAT12 clusters (512 bytes/cluster)
bps=512 spc=1 res=1 nft=2 rde=224 sec=2880 mid=0xf0 spf=9 spt=18 hds=2 hid=0
newfs_msdos: /dev/fd0: Input/output error

Re: Floppy image fails with FreeBSD 6.1 guest

1. Aug 9, 2006 4:11 PM in response to: MrMoo
Click to view petr's profile Champion VMware Employees 7,223 posts since
Jul 10, 2003
Check 'run with debugging information' checkbox, and then look at vmware.log around the time fdc driver in the guest was loading, and around time you run mount (and eventually around time you've run newfs).

Re: Floppy image fails with FreeBSD 6.1 guest

3. Aug 10, 2006 6:26 PM in response to: MrMoo
Click to view petr's profile Champion VMware Employees 7,223 posts since
Jul 10, 2003
Thanks. FreeBSD disables DMAIRQ bit (0x08) in floppy output register (0x3F2). On real hardware it is supposed to immediately assert IRQ, as disabling that pin actually pulls IRQ high... If FreeBSD relies on that IRQ being delivered, it is not going to work :-(

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities