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-devel

Re: [Xen-devel] [PATCH] fix free of event channel in blkfront

Hi,


I boot the VM with a img file and the conf file is as follows
...
disk = [ 'file:/vm/dom3.img,sda1,w' ]

and if I want to attach another img file to the VM ,then
the VM boot img must have many partitions such as sda ,sda1, sda2 when
the img file is made and
xm block-attach file:/vm1/template/another.img sda1 w
then in the VM ,mount the sda1,and access it
I am not for sure whether I understand your mean
or do you mean that the another img file with I want to attach to the VM
needs have many partitions?

The boot image when starting has already been allocated to sda1.
(BackDev: file:/vm/dom3.img)
Therefore, it is not possible to attach to sda1 by block-attach command.
Please do not overlap with FrontEnd device that has already been used.

It is recognized as follows if there is a partition in the attached file.
# xm block-attach file:/vm1/template/another.img sdb w

 another.img file (BackDev)  |   GuestOS(FrontDev)
-------------------------------------------------------
 3 partitions(1,2,3)         |   sdb, sdb1, sdb2, sdb3
 1 partitions(1)             |   sdb, sdb1
※ 1 -> sdb1, 2 -> sdb2, 3->sdb3

It is possible to recognized as follows if there is no partition in attached file.
# xm block-attach file:/vm1/template/another.img sdb1 w

Best Regards,

--
Takanori Kasai



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