Hi I managed to successfully run a Windows 7 DomU guest. I''m using Harper James''s GPLPV drivers. I also managed to attach a floppy disk image to the DomU. It shows up in Windows as expected and I can read the files stored on the disk image. However, any attempts to write to the disk fail stating that it''s write protected. I''m using these two lines in the DomU configuration for the floppy disk and the hard disk: fda = ''/root/xen/floppy'' disk = [ ''file:/root/xen/win.img,hda,w'' ] Is it expected behavior that I can''t write to the floppy? The underlying image files for "fda" and "disk" have the same permissions in Dom0, so I think I can rule that out as the source of the problem. Thanks Oskar.
Hi I managed to successfully run a Windows 7 DomU guest. I''m using James Harper''s GPLPV drivers. I also managed to attach a floppy disk image to the DomU. It shows up in Windows as expected and I can read the files stored on the disk image. However, any attempts to write to the disk fail stating that it''s write protected. I''m using these two lines in the DomU configuration for the floppy disk and the hard disk: fda = ''/root/xen/floppy'' disk = [ ''file:/root/xen/win.img,hda,w'' ] Is it expected behavior that I can''t write to the floppy? The underlying image files for "fda" and "disk" have the same permissions in Dom0, so I think I can rule that out as the source of the problem. Thanks Oskar.
Any thoughts on that? Anyone? Thanks Oskar. Am 06.07.2012 19:00, schrieb Oskar Senft:> Hi > > I managed to successfully run a Windows 7 DomU guest. I''m using James > Harper''s GPLPV drivers. > > I also managed to attach a floppy disk image to the DomU. It shows up in > Windows as expected and I can read the files stored on the disk image. > However, any attempts to write to the disk fail stating that it''s write > protected. > > I''m using these two lines in the DomU configuration for the floppy disk > and the hard disk: > fda = ''/root/xen/floppy'' > disk = [ ''file:/root/xen/win.img,hda,w'' ] > > Is it expected behavior that I can''t write to the floppy? The underlying > image files for "fda" and "disk" have the same permissions in Dom0, so I > think I can rule that out as the source of the problem. > > Thanks > Oskar. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xen.org > http://lists.xen.org/xen-users
On Fri, 13 Jul 2012 00:08:14 +0200 Oskar Senft <xen@senft-net.com> wrote:> > I''m using these two lines in the DomU configuration for the floppy > > disk and the hard disk: > > fda = ''/root/xen/floppy'' > > disk = [ ''file:/root/xen/win.img,hda,w'' ]What happens when you try: disk = [''file:/root/xen/floppy,fda,w'', ''file:/root/xen/win.img,hda,w'' ] Alternatively you could try fda = [''file:/root/xen/floppy,fda,w'',] HTH, Mark
Hi thanks for the ideas, but unofrunately neither of both worked. Here''s what I''m getting:> disk = [''file:/root/xen/floppy,fda,w'', ''file:/root/xen/win.img,hda,w'' ]Error: Unable to find number for device (fda) Unfortunately Google has 0 results for that specific error message.> fda = [''file:/root/xen/floppy,fda,w'',]Error: ''list'' object has no attribute ''startswith'' I think this means that it doesn''t like the parameter being formatted as a list. When I remove the brackets [ ], I''m getting Error: Floppy file file:/root/xen/floppy,fda,w does not exist. So I think it expects the literal file name for the fda parameter and nothing else. Any other ideas? I''m getting the feeling that this is simply a bug ... Thanks Oskar.
At 00:08 13.07.2012, you wrote:> > I also managed to attach a floppy disk image to the DomU. It shows up in > > Windows as expected and I can read the files stored on the disk image. > > However, any attempts to write to the disk fail stating that it''s write > > protected. > > > > I''m using these two lines in the DomU configuration for the floppy disk > > and the hard disk: > > fda = ''/root/xen/floppy'' > > disk = [ ''file:/root/xen/win.img,hda,w'' ] > > > > Is it expected behavior that I can''t write to the floppy? The underlying > > image files for "fda" and "disk" have the same permissions in Dom0, so I > > think I can rule that out as the source of the problem.Move /xen/floppy out of /root. At least it''s worth a try. > Error: Unable to find number for device (fda) Google says: it may mean that you''ve run out of block loops http://wiki.prgmr.com/mediawiki/index.php/Troubleshooting#Error:_Unable_to_find_number_for_device_.28cdrom.29 Christian -- Markt-Apotheke Christian Holpert e.K., Mömbris http://www.marktapotheke.org - info@marktapotheke.org http://www.blue-essentials-shop.de - info@blue-essentials-shop.de Apotheker Christian Holpert Im Markthof 5 63776 Mömbris Tel.: 06029-1379 Fax: 9986589 Amtsgericht Aschaffenburg, HR.A, Registernummer 2165
Hi thanks for the ideas.> Move /xen/floppy out of /root. At least it''s worth a try.No difference, I''m afraid.> > Error: Unable to find number for device (fda) > > Google says: it may mean that you''ve run out of block loops > http://wiki.prgmr.com/mediawiki/index.php/Troubleshooting#Error:_Unable_to_find_number_for_device_.28cdrom.29 >That was not the case in my scenario. I also tried to "losetup" the image file and then mount it in Dom0: That worked without problems and I could write to it as expected. From my testing, the only way I could find to add a "floppy" drive to a Xen VM is by using the "fda" config rule and then either reference a file or a block device. Any other ideas? Thanks Oskar.
At 16:45 15.07.2012, you wrote:>could write to it as expected. From my testing, the only way I could >find to add a "floppy" drive to a Xen VM is by using the "fda" config >rule and then either reference a file or a block device. > >Any other ideas?last idea I have: fda = [ ''rw:/opt/xen/floppy'' ] fda = [ ''/opt/xen/floppy,rw'' ] fda = [ ''/opt/xen/floppy:rw'' ] all untested. I''d put most hope in the first version. qemu uses this syntax, so I was trying to put this into the config-file: # qemu linux.img -fda fat:floppy:rw:/my_directory http://lab.ks.uni-freiburg.de/projects/digital-preservation/wiki/Hints_QEMU?version=13 Regards, Christian -- Markt-Apotheke Christian Holpert e.K., Mömbris http://www.marktapotheke.org - info@marktapotheke.org http://www.blue-essentials-shop.de - info@blue-essentials-shop.de Apotheker Christian Holpert Im Markthof 5 63776 Mömbris Tel.: 06029-1379 Fax: 9986589 Amtsgericht Aschaffenburg, HR.A, Registernummer 2165
Hi thanks for the suggestions.> last idea I have: > fda = [ ''rw:/opt/xen/floppy'' ] > fda = [ ''/opt/xen/floppy,rw'' ] > fda = [ ''/opt/xen/floppy:rw'' ]Xen seems to not like this parameter to be in "list" style at all. As soon as I start with a ''['' it errors with this: Error: ''list'' object has no attribute ''startswith'' I guess I''ll have to dig into the Xen source code to see what''s going on there. Does anyone have an idea where to start looking? Thanks Oskar.
On Mon, 16 Jul 2012 20:29:29 +0200 Oskar Senft <osk@senft-net.com> wrote:> > last idea I have: > > fda = [ ''rw:/opt/xen/floppy'' ] > > fda = [ ''/opt/xen/floppy,rw'' ] > > fda = [ ''/opt/xen/floppy:rw'' ] > > Xen seems to not like this parameter to be in "list" style at all. As > soon as I start with a ''['' it errors with this: > > Error: ''list'' object has no attribute ''startswith'' > > I guess I''ll have to dig into the Xen source code to see what''s going > on there. Does anyone have an idea where to start looking?No idea, you could grep -rIs ''fda'' but in all honesty I thought this mailing list would be the right place. So I added xen-devel as a recepient, perhaps there is somebody reading this who can help you with how to configure a floppy drive image? Mark
On Mon, 16 Jul 2012 20:29:29 +0200 Oskar Senft <osk@senft-net.com> wrote:> > last idea I have: > > fda = [ ''rw:/opt/xen/floppy'' ] > > fda = [ ''/opt/xen/floppy,rw'' ] > > fda = [ ''/opt/xen/floppy:rw'' ] > > Xen seems to not like this parameter to be in "list" style at all. As > soon as I start with a ''['' it errors with this: > > Error: ''list'' object has no attribute ''startswith'' > > I guess I''ll have to dig into the Xen source code to see what''s going > on there. Does anyone have an idea where to start looking?No idea, you could grep -rIs ''fda'' but in all honesty I thought this mailing list would be the right place. So I added xen-devel as a recepient, perhaps there is somebody reading this who can help you with how to configure a floppy drive image? Mark