Re: [CentOS] USB flash drive and VMs (Was Curmudgeoning)

2008-09-05 Thread David G. Miller

Marcelo Roccasalva [EMAIL PROTECTED] 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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] USB flash drive and VMs (Was Curmudgeoning)

2008-09-04 Thread Marcelo Roccasalva
On Wed, Sep 3, 2008 at 12:41 PM, David G. Miller [EMAIL PROTECTED] wrote:
 Anne Wilson [EMAIL PROTECTED] 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)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] USB flash drive and VMs (Was Curmudgeoning)

2008-09-03 Thread David G. Miller

Anne Wilson [EMAIL PROTECTED] 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:


[EMAIL PROTECTED] ~]# lsusb
Bus 001 Device 002: ID 154b:0005 PNY
Bus 001 Device 001: ID : 
Bus 002 Device 001: ID : 

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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] USB flash drive and VMs (Was Curmudgeoning)

2008-09-03 Thread Anne Wilson
On Wednesday 03 September 2008 16:41:18 David G. Miller wrote:
 Anne Wilson [EMAIL PROTECTED] 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:

 [EMAIL PROTECTED] ~]# lsusb
 Bus 001 Device 002: ID 154b:0005 PNY
 Bus 001 Device 001: ID :
 Bus 002 Device 001: ID :

 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




signature.asc
Description: This is a digitally signed message part.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos