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

[Xen-devel] [PATCH]: blktap2 : control function


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: eXeC001er <execooler@xxxxxxxxx>
  • Date: Fri, 21 May 2010 20:51:12 +0400
  • Delivery-date: Fri, 21 May 2010 09:52:13 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Lkbluy4ZwFRYlRsOL/bVDxm2Lr0QpnLZTYqpTptXjnmyEBiegoPPTN2lwngP3g4fe8 Mfs/Rtwj+UdJcTqNrNxnQ93qHBGrot9FIzB51PLTog61dvcAOKebg6ozdBlLP8CLEWOj SI7vyiLcSPFcweCErr0YpgizYtakh/0ek/35k=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi.

I tried to create small patch forÂblktap2 : control function:

diff -r 840f269d95fb tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Wed May 19 22:59:52 2010 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Fri May 21 20:17:15 2010 +0400
@@ -3292,6 +3292,7 @@
ÂÂ Â Â Â Â Â Â Â fn = BOOTLOADER_LOOPBACK_DEVICE
Â
ÂÂ Â Â Â Â Â try:
+ Â Â Â Â Â Â Â Âtime.sleep(5)
ÂÂ Â Â Â Â Â Â Â blcfg = bootloader(blexec, fn, self, False,
ÂÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Âbootloader_args, kernel, ramdisk, args)
ÂÂ Â Â Â Â Â finally:
@@ -3299,7 +3300,7 @@
ÂÂ Â Â Â Â Â Â Â Â Â log.info("Unmounting %s from %s." %
ÂÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â(fn, BOOTLOADER_LOOPBACK_DEVICE))
Â
- Â Â Â Â Â Â Â Â Â Âdom0.destroyDevice('tap', BOOTLOADER_LOOPBACK_DEVICE)
+ Â Â Â Â Â Â Â Â Â Âdom0.destroyDevice(devtype, BOOTLOADER_LOOPBACK_DEVICE)
Â
ÂÂ Â Â Â Â Â if blcfg is None:
ÂÂ Â Â Â Â Â Â Â msg = "Had a bootloader specified, but can't find disk"


With this patch DomU boot from VHD disk without error.

But i can not fix other bug:

if after DomU (boot disk is blktap2-type) stopped i can not startÂit again, because i get error "raise VmError("Device %s is already connected." % dev_str)" in "DevController.py".

but i found workaround:

stop blktap2_mount: echo 1 >Â/sys/class/blktap2/blktapX/remove
remove records from xenstore:Â
xenstore-rm /vm/00000000-0000-0000-0000-000000000000
xenstore-write /local/domain/0/vm ""

Now i can run my DomU again.
_______________________________________________
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®.