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] Adding Devices to a running DomU

To: "Andrej Radonic" <andrej.radonic@xxxxxxxx>
Subject: Re: [Xen-users] Adding Devices to a running DomU
From: "Jose Betancourt" <jbetancourt@xxxxxxxxxx>
Date: Wed, 12 Jul 2006 09:12:13 -0600
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 12 Jul 2006 08:12:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44B50F5F.5000404@xxxxxxxx>
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>
References: <44B4CFFD.BA77.0095.0@xxxxxxxxxx> <44B50F5F.5000404@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thank you very, very much.  Exactly what I needed.

Thanks again.

Jose Betancourt

>>> On Wed, Jul 12, 2006 at 11:03 AM, in message
<44B50F5F.5000404@xxxxxxxx>,
Andrej Radonic <andrej.radonic@xxxxxxxx> wrote: 
>>  What is the right sequence of steps to add new devices to a
running
>> DomU?
>> 
>> For example: Make the CD/DVD unit on a physical machine
visible/usable
>> by a DomU or adding a new physical device (hdX/sdX) for future use
as a
>> file system?
>> 
>> I would like to be able to do it without shutting down the DomU, if
>> possible.
> 
> Jose,
> 
> yes, this is possible without interrupting domU.
> 
> Do it like this:
> 
> xm block- attach <DomId> <BackDev> <FrontDev> <Mode>
> 
> Example:
> 
> xm block- attach 7 file:/home/xen/knoppix.iso hdc rw
> 
> Export /home/xen/knoppix.iso as hdc and read- write into domain 7.
> 
> Check with xm block- list 7
> 
> Detach with
> 
> xm block- detach 7 <BlockDeviceID>
> 
> You get BlockDeviceID with xm block- list <domid>
> 
> BTW: you can do this also with network- interfaces
> => network- attach
> => network- list
> => network- detach
> 
> Good luck,
> Andrej


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