David G. Miller
2008-Sep-03 15:41 UTC
[CentOS] USB flash drive and VMs (Was Curmudgeoning)
Anne Wilson <cannewilson at googlemail.com> wrote:> Can't argue with you :-) It does seem likely, as 1GB flash drives wouldn't > have been a possibility at that time. I never owned one at all until > relatively recently. > > >>> > > They didn't work in 98 first edition, nor in NT4 or Win2000 - again, from >>> > > memory, which could be faulty. >>> >> > >> > In Win2k, Micro$oft finally got up to speed and most flash drives >> > will work with it, but XP is better. >> > >> > Fair enough. Out of curiosity - do they work in W2K out of the box, or > require some update? I ask because I'm considering W2K as a > VM. > > AnneFlash support under qemu seems to be about the same as CD-ROM support. That is, you can access a device present at start up but it's not swappable. Given: [dave at bend ~]# lsusb Bus 001 Device 002: ID 154b:0005 PNY Bus 001 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 you can attach the device to a W2K qemu session by starting qemu with something like: qemu -usb -usbdevice tablet -hda w2k.img -usbdevice host:001.002 -m 256 -localtime & I tried swapping two different 1GB thumb drives and the content of the drive wasn't visible after the swap. If you decide to go the qemu route for a VM with W2K, I wrote about the problems I ran into on my blog at: http://davenjudy.org/wordpress/?p=29 Getting a basic W2K VM working was fairly easy but getting it fully updated was a real pain. I still have a couple of MS updates that I can't apply since W2K stops working if I do. Cheers, Dave -- Politics, n. Strife of interests masquerading as a contest of principles. -- Ambrose Bierce
On Wednesday 03 September 2008 16:41:18 David G. Miller wrote:> Anne Wilson <cannewilson at googlemail.com> wrote: > > Can't argue with you :-) It does seem likely, as 1GB flash drives > > wouldn't have been a possibility at that time. I never owned one at all > > until relatively recently. > > > >>> > > They didn't work in 98 first edition, nor in NT4 or Win2000 - > >>> > > again, from memory, which could be faulty. > >> > > >> > In Win2k, Micro$oft finally got up to speed and most flash drives > >> > will work with it, but XP is better. > > > > Fair enough. Out of curiosity - do they work in W2K out of the box, or > > require some update? I ask because I'm considering W2K as a > > VM. > > > > Anne > > Flash support under qemu seems to be about the same as CD-ROM support. > That is, you can access a device present at start up but it's not > swappable. Given: > > [dave at bend ~]# lsusb > Bus 001 Device 002: ID 154b:0005 PNY > Bus 001 Device 001: ID 0000:0000 > Bus 002 Device 001: ID 0000:0000 > > you can attach the device to a W2K qemu session by starting qemu with > something like: > > qemu -usb -usbdevice tablet -hda w2k.img -usbdevice host:001.002 -m 256 > -localtime & > > I tried swapping two different 1GB thumb drives and the content of the > drive wasn't visible after the swap. > > If you decide to go the qemu route for a VM with W2K, I wrote about the > problems I ran into on my blog at: > > http://davenjudy.org/wordpress/?p=29 > > Getting a basic W2K VM working was fairly easy but getting it fully > updated was a real pain. I still have a couple of MS updates that I > can't apply since W2K stops working if I do. >Thanks Dave. I'm pushed for time just at the moment, but I do hope to try something like this in a few days. If I go for qemu I'll use your notes for guidance. I don't think I'd bother updating W2K. I don't intend doing any work other than the embroidery machine software, so it shouldn't be vulnerable to Internet nasties. Anne -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. URL: <http://lists.centos.org/pipermail/centos/attachments/20080903/214827e8/attachment-0002.sig>
Marcelo Roccasalva
2008-Sep-04 19:15 UTC
[CentOS] USB flash drive and VMs (Was Curmudgeoning)
On Wed, Sep 3, 2008 at 12:41 PM, David G. Miller <dave at davenjudy.org> wrote:> Anne Wilson <cannewilson at googlemail.com> wrote: > >> Can't argue with you :-) It does seem likely, as 1GB flash drives >> wouldn't have been a possibility at that time. I never owned one at all >> until relatively recently. >> >> >>>> >>>> > > They didn't work in 98 first edition, nor in NT4 or Win2000 - again, >>>> > > from >>>> > > memory, which could be faulty. >>>> >>> >>> > >>> > In Win2k, Micro$oft finally got up to speed and most flash drives >>> > will work with it, but XP is better. >>> > >>> >> >> Fair enough. Out of curiosity - do they work in W2K out of the box, or >> require some update? I ask because I'm considering W2K as a VM. >> >> Anne > > Flash support under qemu seems to be about the same as CD-ROM support. That > is, you can access a device present at start up but it's not swappable.You can swap cdrom from qemu monitor. I haven't tried, but I think the same thing can be applied to usb.. -- Marcelo "?No ser? acaso que ?sta vida moderna est? teniendo m?s de moderna que de vida?" (Mafalda)
David G. Miller
2008-Sep-05 14:59 UTC
[CentOS] USB flash drive and VMs (Was Curmudgeoning)
"Marcelo Roccasalva" <marcelo-centos at irrigacion.gov.ar> wrote:> > Flash support under qemu seems to be about the same as CD-ROM support. That > > is, you can access a device present at start up but it's not swappable. > > > You can swap cdrom from qemu monitor. I haven't tried, but I think the > same thing can be applied to usb..It looks like the qemu monitor should let you either eject the device or delete/add the USB drive using usb_del and usb_add. I wasn't able to get it to work. W2K gives me a control to unmount the thumb drive in the system tray which makes the drive "disappear" from W2K. Unfortunately, attaching a new drive or just reattaching the old drive isn't recognized by W2K. qemu monitor tells me it unable to add the new device or delete the old device. If hot swapping a USB drive can be made to work with qemu, swapping a USB drive will still be ugly. The USB device number assigned by the kernel changes each time I swap thumb drives. This isn't too bad but access to /proc/bus/usb/<usb_bus_number>/<usb_dev_number> is root:root with permissions rw-r--r--. This means that each time I swap the drive I have to chmod the "new" USB device entry. I don't see this changing even if I can get qemu to let me add the new device. I'll have to try using qemu monitor to swap a CD-ROM at some point in the future. Usually I only use W2K and IE under qemu to access those few sites that still only work with IE (e.g., my state's income tax site). Cheers, Dave -- Politics, n. Strife of interests masquerading as a contest of principles. -- Ambrose Bierce