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. Regards, Jose Betancourt _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> 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@lists.xensource.com http://lists.xensource.com/xen-users
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@koeln.de>, Andrej Radonic <andrej.radonic@koeln.de> wrote:>> What is the right sequence of steps to add new devices to arunning>> DomU? >> >> For example: Make the CD/DVD unit on a physical machinevisible/usable>> by a DomU or adding a new physical device (hdX/sdX) for future useas 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@lists.xensource.com http://lists.xensource.com/xen-users
Looks like it doesn''t work for HVM domains though. xm block-add runs withouth error and xm block-list shows new device attache, but WinXP DomU doesn''t see it. On 7/12/06, Jose Betancourt <jbetancourt@novell.com> wrote:> 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@koeln.de>, > Andrej Radonic <andrej.radonic@koeln.de> 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@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Serge Dubrouski schrieb:> Looks like it doesn''t work for HVM domains though. xm block-add runs > withouth error and xm block-list shows new device attache, but WinXP > DomU doesn''t see it.Correct - this functionality is not (yet) avaible for HVM domains. Developers: any comments on availability or planning? Andrej _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed July 12 2006 10:26, Serge Dubrouski wrote:> Looks like it doesn''t work for HVM domains though. xm block-add runs > withouth error and xm block-list shows new device attache, but WinXP > DomU doesn''t see it.What is "it"? What did you do in WinXP to look for it? jerry _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Wed July 12 2006 10:41, Andrej Radonic wrote:> Serge Dubrouski schrieb: > > Looks like it doesn''t work for HVM domains though. xm block-add > > runs withouth error and xm block-list shows new device attache, but > > WinXP DomU doesn''t see it. > > Correct - this functionality is not (yet) avaible for HVM domains.Oh, I see I should have read through the entire thread first. My bad... jerry _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
actually, i was able to pass a lvm to a native Windows OS (using VXM), recognize a raw drive, and then format it as NTFS drive after of course assigning a drive letter. Launching the disk manager gui in Windows walked me thru the config quite easily. i was able to pass in a dummy ethernet interface using ioemu which was picked up by Windows and when enabled w/ Dhcp it was assigned yet another ip address which was pingable by the lan on dom0-lan. since it was all possible in windows, i presume this is all easily doable in linux-distros... -- On 7/12/06, Andrej Radonic <andrej.radonic@koeln.de> wrote:> > > Serge Dubrouski schrieb: > > Looks like it doesn''t work for HVM domains though. xm block-add runs > > withouth error and xm oblock-list shows new device attache, but WinXP > > DomU doesn''t see it. > Correct - this functionality is not (yet) avaible for HVM domains. > Developers: any comments on availability or planning? > > Andrej > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users