: blktap2 : control function
PATCH 1/1 : blktap2 : control function
Hi.
I tried to create small patch for blktap2 : control function:
tools/python/xen/xend/XendDomainInfo.py Fri May 21 20:17:15 2010 +0400 renamed from tools/python/xen/xend/XendDomainInfo.py Wed May 19 22:59:52 2010 +0100 +2 -1
@@ -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
[email protected]
http://lists.xensource.com/xen-devel
Quoted 24 lines · On Friday 21 May 2010 18:51:12 eXeC001er wrote:
Hi.
I tried to create small patch for blktap2 : control function:
diff -r
840f269d95fbtools/python/xen/xend/XendDomainInfo.py---a/tools/python/xen/xend/XendDomainInfo.pyWed May 19 22:59:52 2010
+0100 +++b/tools/python/xen/xend/XendDomainInfo.pyFri May 21 20:17:15 2010 +0400 @@ -3292,6 +3292,7 @@
fn =BOOTLOADER_LOOPBACK_DEVICEtry:
tools/python/xen/xend/XendDomainInfo.py Fri May 21 20:17:15 2010 +0400 renamed from tools/python/xen/xend/XendDomainInfo.py Wed May 19 22:59:52 2010 +0100 +2
-1+ 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:
Quoted 2 lines
msg = "Had a bootloader specified, but can't find disk"
I have same error and I resolved it in similar way. It only happens when I'm using pygrub.
Quoted 8 lines
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".
Quoted 9 lines
but i found workaround:
stop
blktap2_mount: echo 1 >/sys/class/blktap2/blktapX/removeremove records from xenstore:
xenstore-rm /vm/00000000-0000-0000-0000-000000000000 xenstore-write /local/domain/0/vm ""Now i can run my DomU again.
I found it too, it's bug in script xen-hotplug-cleanup but I also doesn't know right way to solve it.
regards,
Łukasz Oleś
Quoted 3 lines · On Fri, May 21, 2010 at 08:51:12PM +0400, eXeC001er wrote:
Hi.
I tried to create small patch for blktap2 : control function:
This patch is horribly broken at least for me.. It looks really weird. You might want to re-send it in a proper format..
.. Or if it works for others just forget about this rant:)
-- Pasi
Quoted 48 lines
diff -r
840f269d95fbtools/python/xen/xend/XendDomainInfo.py
---a/tools/python/xen/xend/XendDomainInfo.pyWed May 19 22:59:52 2010
+0100
+++b/tools/python/xen/xend/XendDomainInfo.pyFri 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 @@ Â Â Â Â Â Â Â Â Â Â Â [1]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'tfind 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 "raiseVmError("Device %s is already connected." % dev_str)" in "DevController.py".
but i found workaround:
stopblktap2_mount: echo 1 >Â/sys/class/blktap2/blktapX/removeremove records from xenstore:Â
xenstore-rm /vm/00000000-0000-0000-0000-000000000000 xenstore-write /local/domain/0/vm ""
Now i can run my DomU again.References
Visible links
1. http://log.info/_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
resend.
with additional
2010/5/22 Pasi Kärkkäinen <[email protected]>
Quoted 26 lines · On Fri, May 21, 2010 at 08:51:12PM +0400, eXeC001er wrote:
Quoted 3 lines
Hi.
I tried to create small patch for blktap2 : control function:This patch is horribly broken at least for me.. It looks really weird. You might want to re-send it in a proper format..
.. Or if it works for others just forget about this rant:)
-- Pasi
Quoted 2 lines
diff -r
840f269d95fbtools/python/xen/xend/XendDomainInfo.py
---a/tools/python/xen/xend/XendDomainInfo.pyWed May 19 22:59:522010
Quoted 2 lines
+0100 +++ b/tools/python/xen/xend/XendDomainInfo.py Fri May 21 20:17:152010
Quoted 8 lines
+0400
@@ -3292,6 +3292,7 @@
         fn =BOOTLOADER_LOOPBACK_DEVICEÂ
       try:
+ Â Â Â Â Â Â Â Âtime.sleep(5)Â Â Â Â Â Â Â Â Â blcfg = bootloader(blexec, fn, self, False, Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
Quoted 40 lines
bootloader_args,Quoted 4 lines
kernel, ramdisk, args)
       finally:
@@ -3299,7 +3300,7 @@
           [1]log.info("Unmounting %s from %s."%
Quoted 32 lines
                (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'tfind 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 "raiseVmError("Device %s is already connected." % dev_str)" in "DevController.py".
but i found workaround:
stopblktap2_mount: echo 1 >Â/sys/class/blktap2/blktapX/removeremove records from xenstore:Â
xenstore-rm /vm/00000000-0000-0000-0000-000000000000 xenstore-write /local/domain/0/vm ""
Now i can run my DomU again.References
Visible links
1. http://log.info/_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
tools/python/xen/util/blkif.py +1 -1
@@ -87,7 +87,7 @@ fn = "/dev/%s" %(fn,) if typ in ("tap", "tap2"): - (taptype, fn) = fn.split(":", 1) + (taptype, fn) = fn.split(":", 2)[1:] return (fn, taptype) def blkdev_uname_to_file(uname):
tools/python/xen/xend/XendDomainInfo.py +2 -1
@@ -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"
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · On Sat, May 22, 2010 at 01:23:46AM +0400, eXeC001er wrote:
resend.
with additional
Now it's OK.
Hopefully someone familiar with the code can review it..
-- Pasi
Quoted 114 lines
2010/5/22 Pasi KÀrkkÀinen <[1][email protected]>
On Fri, May 21, 2010 at 08:51:12PM +0400, eXeC001er wrote:
> Â Â Hi.
> Â Â I tried to create small patch forÃ* blktap2 : control function:
>This patch is horribly broken at least for me.. It looks really weird. You might want to re-send it in a proper format..
.. Or if it works for others just forget about this rant:)
-- Pasi
>   diff -r840f269d95fbtools/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 @@
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã*
 [1][2]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 "raiseVmError("Device %s is already > Â Â connected." % dev_str)" in "DevController.py".
> Â Â but i found workaround:
> Â Â stopblktap2_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.
>
> References
>
> Â Â Visible links
> Â Â 1. [3]http://log.info/> _______________________________________________ > Xen-devel mailing list
> [4][email protected]
> [5]http://lists.xensource.com/xen-develReferences
Visible links
1. mailto:[email protected]
2. http://log.info/
3. http://log.info/
4. mailto:[email protected]
5. http://lists.xensource.com/xen-develdiff -r
d0420ab97345tools/python/xen/util/blkif.pytools/python/xen/util/blkif.py +1
-1@@ -87,7 +87,7 @@ fn = "/dev/%s" %(fn,) if typ in ("tap", "tap2"): - (taptype, fn) = fn.split(":", 1) + (taptype, fn) = fn.split(":", 2)[1:] return (fn, taptype) def blkdev_uname_to_file(uname):diff -r
d0420ab97345tools/python/xen/xend/XendDomainInfo.pytools/python/xen/xend/XendDomainInfo.py +2
-1@@ -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"
Quoted 9 lines · Pasi Kärkkäinen
Quoted 4 lines · On Sat, May 22, 2010 at 01:23:46AM +0400, eXeC001er wrote:
resend.
with additionalNow it's OK.
Hopefully someone familiar with the code can review it..
The sleep(5) is almost certainly not the correct fix.
J
Quoted 126 lines
-- Pasi
Quoted 108 lines
2010/5/22 Pasi KÀrkkÀinen <[1][email protected]>
On Fri, May 21, 2010 at 08:51:12PM +0400, eXeC001er wrote:
> Â Â Hi.
> Â Â I tried to create small patch forÃ* blktap2 : control function:
>This patch is horribly broken at least for me.. It looks really weird. You might want to re-send it in a proper format..
.. Or if it works for others just forget about this rant:)
-- Pasi
>   diff -r840f269d95fbtools/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 @@
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã*
 [1][2]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 "raiseVmError("Device %s is already > Â Â connected." % dev_str)" in "DevController.py".
> Â Â but i found workaround:
> Â Â stopblktap2_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.
>
> References
>
> Â Â Visible links
> Â Â 1. [3]http://log.info/> _______________________________________________ > Xen-devel mailing list
> [4][email protected]
> [5]http://lists.xensource.com/xen-develReferences
Visible links
1. mailto:[email protected]
2. http://log.info/
3. http://log.info/
4. mailto:[email protected]
5. http://lists.xensource.com/xen-develdiff -r
d0420ab97345tools/python/xen/util/blkif.pytools/python/xen/util/blkif.py +1
-1@@ -87,7 +87,7 @@ fn = "/dev/%s" %(fn,) if typ in ("tap", "tap2"): - (taptype, fn) = fn.split(":", 1) + (taptype, fn) = fn.split(":", 2)[1:] return (fn, taptype) def blkdev_uname_to_file(uname):diff -r
d0420ab97345tools/python/xen/xend/XendDomainInfo.pytools/python/xen/xend/XendDomainInfo.py +1
-0@@ -3292,6 +3292,7 @@ fn = BOOTLOADER_LOOPBACK_DEVICE try: + time.sleep(5) blcfg = bootloader(blexec, fn, self, False, bootloader_args, kernel, ramdisk, args) finally:tools/python/xen/xend/XendDomainInfo.py line 3306
Quoted 8 lines
tools/python/xen/xend/XendDomainInfo.py +1
-1@@ -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"_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
without this 'sleep' bootloader return error: 'Disk isn't accessible' from this block:
XendBootloader.py : def bootloader (....)
if not os.access(disk, os.R_OK):
msg = "Disk isn't accessible"
log.error(msg)
raise VmError(msg)
2010/5/22 Jeremy Fitzhardinge <[email protected]>
Quoted 137 lines · Pasi Kärkkäinen
Quoted 9 lines · On Sat, May 22, 2010 at 01:23:46AM +0400, eXeC001er wrote:
Quoted 5 lines
resend.
with additionalNow it's OK.
Hopefully someone familiar with the code can review it..The sleep(5) is almost certainly not the correct fix.
J
Quoted 8 lines
-- Pasi
Quoted 5 lines
2010/5/22 Pasi KÀrkkÀinen <[1][email protected]>
On Fri, May 21, 2010 at 08:51:12PM +0400, eXeC001er wrote:
> Â Â Hi.
> Â Â I tried to create small patch forÃ* blktap2 : controlfunction:
Quoted 3 lines
Quoted 3 lines
>
This patch is horribly broken at least for me.. It looks really
weird.
Quoted 13 lines
Quoted 13 lines
You might want to re-send it in a proper format.. .. Or if it works for others just forget about this rant:) -- Pasi >   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 @@Quoted 8 lines
Quoted 8 lines
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â fn =
BOOTLOADER_LOOPBACK_DEVICE
> Â Â Ã*
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â try:
> Â Â + Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã*time.sleep(5)> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â blcfg = bootloader(blexec, fn, self, False,
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã*Â Ã*
Quoted 7 lines
Quoted 7 lines
 Ã*  Ã*  Ã*  Ã*  Ã*
bootloader_args,
> Â Â kernel, ramdisk, args)
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â finally:
> Â Â @@ -3299,7 +3300,7 @@
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â [1][2]log.info("Unmounting %s from %s." %
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã*Â Ã*
Quoted 11 lines
Quoted 11 lines
 Ã*  Ã* (fn,
> Â ÂBOOTLOADER_LOOPBACK_DEVICE))
> Â Â Ã*
> Â Â - Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* dom0.destroyDevice('tap',
> Â ÂBOOTLOADER_LOOPBACK_DEVICE)
> Â Â + Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* dom0.destroyDevice(devtype,
> Â ÂBOOTLOADER_LOOPBACK_DEVICE)
> Â Â Ã*
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â if blcfg is None:Quoted 8 lines
Quoted 8 lines
> Â Â Ã* Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â Ã* Â 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 isalready
Quoted 3 lines
Quoted 3 lines
> Â Â connected." % dev_str)" in "DevController.py". > Â Â but i found workaround: > Â Â stop blktap2_mount: echo 1 >Ã*
/sys/class/blktap2/blktapX/removeQuoted 31 lines
Quoted 31 lines
> Â Â 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. > > References > > Â Â Visible links > Â Â 1. [3]http://log.info/ > _______________________________________________ > Xen-devel mailing list > [4][email protected] > [5]http://lists.xensource.com/xen-develReferences
Visible links
1. mailto:[email protected]
2. http://log.info/
3. http://log.info/
4. mailto:[email protected]
5. http://lists.xensource.com/xen-develdiff -r
d0420ab97345tools/python/xen/util/blkif.pytools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +0
-0@@ -87,7 +87,7 @@ fn = "/dev/%s" %(fn,)Quoted 8 lines
Quoted 8 lines
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +1
-1if typ in ("tap", "tap2"): - (taptype, fn) = fn.split(":", 1) + (taptype, fn) = fn.split(":", 2)[1:] return (fn, taptype) def blkdev_uname_to_file(uname):diff -r
d0420ab97345tools/python/xen/xend/XendDomainInfo.py
---a/tools/python/xen/xend/XendDomainInfo.pyFri May 21 16:21:392010 +0100
Quoted 1 line
Quoted 1 line
+++
b/tools/python/xen/xend/XendDomainInfo.pySat May 22 01:21:152010 +0400
Quoted 7 lines
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 line 3297
Quoted 7 lines
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +1
-0@@ -3292,6 +3292,7 @@ fn = BOOTLOADER_LOOPBACK_DEVICE try: + time.sleep(5) blcfg = bootloader(blexec, fn, self, False, bootloader_args, kernel, ramdisk,args)
Quoted 5 lines
Quoted 5 lines
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +0
-0finally:@@ -3299,7 +3300,7 @@ log.info("Unmounting %s from %s." % (fn, BOOTLOADER_LOOPBACK_DEVICE))
Quoted 17 lines
Quoted 1 line
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 line 3302
Quoted 1 line
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +0
-1- dom0.destroyDevice('tap',
BOOTLOADER_LOOPBACK_DEVICE)Quoted 1 line
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 line 3303
Quoted 1 line
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +1
-0+ dom0.destroyDevice(devtype,
BOOTLOADER_LOOPBACK_DEVICE)Quoted 11 lines
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 line 3306
Quoted 4 lines
tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400 renamed from tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100 +0
-0if blcfg is None: msg = "Had a bootloader specified, but can't find disk"_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel