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: Jose Betancourt <jbetancourt@xxxxxxxxxx>
Subject: Re: [Xen-users] Adding Devices to a running DomU
From: Andrej Radonic <andrej.radonic@xxxxxxxx>
Date: Wed, 12 Jul 2006 17:03:59 +0200
Cc: Xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 12 Jul 2006 08:04:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44B4CFFD.BA77.0095.0@xxxxxxxxxx>
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.4 (Windows/20060516)
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