From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfvbH-0002yF-S6 for qemu-devel@nongnu.org; Wed, 17 Sep 2008 07:53:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfvbG-0002xW-Cy for qemu-devel@nongnu.org; Wed, 17 Sep 2008 07:53:39 -0400 Received: from [199.232.76.173] (port=55812 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfvbG-0002xT-8y for qemu-devel@nongnu.org; Wed, 17 Sep 2008 07:53:38 -0400 Received: from mx1.redhat.com ([66.187.233.31]:37019) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KfvbF-0002fZ-Gk for qemu-devel@nongnu.org; Wed, 17 Sep 2008 07:53:37 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m8HBra1i032287 for ; Wed, 17 Sep 2008 07:53:36 -0400 Received: from file.fab.redhat.com (file.fab.redhat.com [10.33.63.6]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m8HBraxc014033 for ; Wed, 17 Sep 2008 07:53:36 -0400 Received: from file.fab.redhat.com (localhost.localdomain [127.0.0.1]) by file.fab.redhat.com (8.13.1/8.13.1) with ESMTP id m8HBrZFP032455 for ; Wed, 17 Sep 2008 12:53:35 +0100 Received: (from berrange@localhost) by file.fab.redhat.com (8.13.1/8.13.1/Submit) id m8HBrZkb032451 for qemu-devel@nongnu.org; Wed, 17 Sep 2008 12:53:35 +0100 Date: Wed, 17 Sep 2008 12:53:35 +0100 From: "Daniel P. Berrange" Subject: Re: [Qemu-devel] Problem with `change' monitor command Message-ID: <20080917115335.GC27699@redhat.com> References: <48D0EE05.574440C9@bttr-software.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48D0EE05.574440C9@bttr-software.de> Reply-To: "Daniel P. Berrange" , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Wed, Sep 17, 2008 at 01:46:13PM +0200, Robert Riebisch wrote: > Hi! > > I'm using QEMU 0.9.1 and SVN on Win32 to emulate an x86 PC environment. > > With `change floppy0 foo.img' I'm able to use another floppy image on > the fly, but this will only work, if the new floppy image is of the same > size as the old one. Switching from, e.g., 1.44M to 2.88M is not > recognized by the guest OS. Even rebooting the VM doesn't help, because > CMOS value 0x10 ("Floppy Drive Type") won't be adjusted. > (http://www.brl.ntt.co.jp/people/takehiko/interrupt/CMOS.LST.txt) > > This is also a big problem when you omit "-fda bar.img" from the command > line. You can still change the image file in QEMU monitor, but guest OS > (here: DOS) will never recognize it, because CMOS value 0x10 still holds > "0" (= "none" for floppy0 and floppy1). Btw: It would be more > consistently to also change command-line option "-fda" to "-floppy0". The -fdXX, -hdXX, etc args are all legacy syntax. The recommended way to specify disks is via the -drive parameter, so no change to -floppy0 is required. Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|