WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] how to make usb drive work with domU ?

To: "anant" <ANigam@xxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] how to make usb drive work with domU ?
From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Date: Wed, 28 Feb 2007 11:42:49 +0100
Delivery-date: Wed, 28 Feb 2007 02:42:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <9200345.post@xxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdbGHN8bJlxtJZdSNGpDBH0+5FPtAADEFwA
Thread-topic: [Xen-users] how to make usb drive work with domU ?
 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of anant
> Sent: 28 February 2007 09:10
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] how to make usb drive work with domU ?
> 
> 
> Hi thanks for the reply..
> How can i export the phy. drive to guest. 
> Can you pls provide me with exact command and steps..

xm block-attach <domain> <backdev> <frontdev> <mode>

For example:
xm block-attach my-domain phy:/dev/sdb1 hdb r

Of course, you can also add it to the config file if you wish to do this
statically - in which case you just use the disk= statement to add the
block-device. 

--
Mats
> Thanks
> 
> Mark Williamson wrote:
> > 
> >> Hia..
> >> If i am not wrong, in past someone told me that USB Drive 
> can be accessed
> >> in virtual machine by configuring it.
> >> So could any one just let me know how to get hold of this issue....
> > 
> > In the special case of a USB drive, plug it into dom0 and 
> export the phy: 
> > device corresponding to it into the guest.  Look up what 
> device your USB 
> > drive is in dom0 (e.g. look in the dmesg output), then use 
> that as the
> > phy: 
> > device to export.  In the guest it'll appear as a normal 
> hard drive.  
> > *however* the guest won't know it's a USB drive, so you 
> need to unmount it 
> > (or equivalent) to make sure the data is flushed before you 
> remove the USB 
> > stick (and then you should probably xm block-remove before 
> you unplug the 
> > stick).
> > 
> > The other posters in this thread have been talking about 
> dedicating a host
> > USB 
> > port to guest control: that can be done in principle, but 
> support seems to
> > be 
> > buggy at the moment.
> > 
> > Cheers,
> > Mark
> > 
> > -- 
> > Dave: Just a question. What use is a unicyle with no seat?  
> And no pedals!
> > Mark: To answer a question with a question: What use is a 
> skateboard?
> > Dave: Skateboards have wheels.
> > Mark: My wheel has a wheel!
> > 
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users
> > 
> > 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/how-to-make-usb-drive-work-with-domU---t
> f3260481.html#a9200345
> Sent from the Xen - User mailing list archive at Nabble.com.
> 
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 
> 



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users