From: "Xu, Yanfei" <yanfei.xu@windriver.com>
To: qemu-devel@nongnu.org
Subject: [QUESTION] qemu: how to control the switch of floppy drive
Date: Fri, 9 Apr 2021 14:48:59 +0800 [thread overview]
Message-ID: <910b1361-3b9f-ec80-794e-fb335b0ef631@windriver.com> (raw)
Hi experts,
How can I disable the floppy controller drive when I boot a VM by qemu-
system-x86_64? I did not specify any arguments about floppy, but after
the qemu boots up, linux always can detect floppy drive and then
modprobe the matched floppy.ko.
qemu version: v5.2
command line:
qemu-system-x86_64 -device virtio-net-
pci,netdev=net0,mac=52:54:00:12:34:02 -netdev
tap,id=net0,ifname=tap0,script=no,downscript=no -object rng-
random,filename=/dev/urandom,id=rng0 -device virtio-rng-pci,rng=rng0
-drive file=/path/to/images/qemux86-64
/qemux86-64.ext4,if=virtio,format=raw -usb -device usb-tablet -cpu
core2duo -enable-kvm -m 512 -pidfile /path/to/pidfile_4167420 -m 512
-snapshot -serial mon:vc -serial null -kernel /path/to/qemux86-64
/bzImage.bin -append 'root=/dev/vda rw mem=512M
ip=192.168.7.2::192.168.7.1:255.255.255.0 oprofile.timer=1
printk.time=1'
As I konw BIOS can control the switch of floppy controller on a real
hardware, But how can I do it on qemu? And does the qemu enable that by
default?
Thanks,
Yanfei
next reply other threads:[~2021-04-09 6:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-09 6:48 Xu, Yanfei [this message]
2021-04-09 7:10 ` [QUESTION] qemu: how to control the switch of floppy drive Philippe Mathieu-Daudé
2021-04-09 8:27 ` Xu, Yanfei
2021-04-09 8:19 ` Markus Armbruster
2021-04-09 8:30 ` Xu, Yanfei
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=910b1361-3b9f-ec80-794e-fb335b0ef631@windriver.com \
--to=yanfei.xu@windriver.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).