[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



Thank you for reply

I boot the VM with a img file and the conf file is as follows

kernel = "/boot/vmlinuz-2.6.16-xenU"
memory = 256
name = "dom3"
vcpus = 1
vif = [ '' ]
disk = [ 'file:/vm/dom3.img,sda1,w' ]
netmask = "255.255.0.0"
gateway = "192.168.150.1"
hostname = "office2"
ip = "192.168.104.5"
root = "/dev/sda1 ro"
extra = "4"

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?


could you make me clear about it

Thank you in advance







Kasai Takanori 写道:
> Hi
>
>> I try to do it under your guide as follows
>> # xm block-attach dom6 file:/vm1/template/tp.img sdb2 w
>> [root@genode012 vmcserver]# xm block-list dom1
>> Vdev BE handle state evt-ch ring-ref BE-path
>> 2049 0 0 4 7 8 /local/domain/0/backend/vbd/102/2049
>> 2050 0 0 4 8 815 /local/domain/0/backend/vbd/102/2050
>>
>> and xm block-detach can work
>> but xm console dom1, then there is not the new disk in dom1
>> what is wrong with it?
>
> Perhaps, it seems that xm block-attach/detach can work. Does the
> specified file have the partition? (/vm1/template/tp.img)
>
> Please attach to sdb if there is a partition.
> dom0# xm block-attach dom6 file:/vm1/template/tp.img sdb w
>
> It is recognized with dom1 as follows.(3 partitions)
> dom1# cat /proc/diskstats
> 8 16 sdb 78 353 927 632 8 1 18 4 0 360 636
> 8 17 sdb1 173 346 9 18
> 8 18 sdb2 185 185 0 0
> 8 19 sdb3 47 188 0 0
> dom1# mount /dev/sdb3 /mnt
> dom1# ls /mnt
> bin dev home lost+found misc net proc sbin srv tmp var
> boot etc lib media mnt opt root selinux sys usr
>
> However, if SCSI driver can work on dom1, it is not possible to attach
> to sdx.
> It is because VBD overlaps with SCSI driver's majors number. In that
> case, please attach to xvda.
> dom0# xm block-attach dom6 file:/vm1/template/tp.img xvda w
>
> Best Regards,
>
> -- 
> Takanori Kasai
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.