From: eXeC001er <execooler@gmail.com>
To: Boris Derzhavets <bderzhavets@yahoo.com>
Cc: Xen-devel <xen-devel@lists.xensource.com>,
Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [PATCH] Re: blktap2 problem with pvops kernel 2.6.32.13 and xen 4.0-rc1
Date: Mon, 31 May 2010 20:28:27 +0400 [thread overview]
Message-ID: <AANLkTikb6xBlDSiUCLhAqErxxGmSxl_ler1Avqi_Stjo@mail.gmail.com> (raw)
In-Reply-To: <140338.31157.qm@web56107.mail.re3.yahoo.com>
[-- Attachment #1.1: Type: text/plain, Size: 9809 bytes --]
I have same error with xen-unstable.
in attach patch for xen-4.0-testing.hg </xen-4.0-testing.hg>
</xen-4.0-testing.hg>Signed-off-by: eXeC001er <execooler@gmail.com>
---
2010/5/31 Boris Derzhavets <bderzhavets@yahoo.com>
> Xen-unstable patched via yours patch , built and installed on top of
> Ubuntu 10.04.
> Dom0 loaded with 2.6.32.14 pvops ( 2.6.32.10 same results)
> Environment:-
>
> host : LucidSRV
> release : 2.6.32.14
> version : #6 SMP Mon May 31 18:08:00 MSD 2010
> machine : x86_64
> nr_cpus : 4
> nr_nodes : 1
> cores_per_socket : 4
> threads_per_core : 1
> cpu_mhz : 2833
> hw_caps :
> bfebfbff:20100800:00000000:00000940:0408e3fd:00000000:00000001:00000000
> virt_caps : hvm
> total_memory : 8190
> free_memory : 2052
> free_cpus : 0
> xen_major : 4
> xen_minor : 1
> xen_extra : -unstable
> xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
> hvm-3.0-x86_32p hvm-3.0-x86_64
> xen_scheduler : credit
> xen_pagesize : 4096
> platform_params : virt_start=0xffff800000000000
> xen_changeset : Fri May 28 10:54:07 2010 +0100 21492:96917cf25bf3
> xen_commandline :
> cc_compiler : gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
> cc_compile_by : root
> cc_compile_domain :
> cc_compile_date : Mon May 31 19:00:21 MSD 2010
> xend_config_format : 4
>
> Attempted to load F13 PV DomU ( working fine inder Xen 4.0 & 2.6.32.14)
>
>
> ┌────────────────────────────────────────────────────────────────────────┐
> │ Fedora (2.6.33.3-85.fc13.x86_64) │
> │ │
> │ │
> │ │
> │ │
> │ │
> │ │
> │ │
> └────────────────────────────────────────────────────────────────────────┘
> Use the ^ and v keys to select which entry is highlighted.
> Press enter to boot the selected OS, 'e' to edit the
> commands before booting, 'a' to modify the kernel arguments
> before booting, or 'c' for a command line.
>
> root@LucidSRV:/home/boris/fedora# Error: (4, 'Out of memory', "panic:
> xc_dom_boot.c:144: xc_dom_boot_mem_init: can't allocate low memory for
> domain")
>
>
> Boris.
>
> --- On *Mon, 5/31/10, eXeC001er <execooler@gmail.com>* wrote:
>
>
> From: eXeC001er <execooler@gmail.com>
> Subject: Re: [Xen-devel] [PATCH] Re: blktap2 problem with pvops kernel
> 2.6.32.13 and xen 4.0-rc1
> To: "Boris Derzhavets" <bderzhavets@yahoo.com>
> Cc: "Xen-devel" <xen-devel@lists.xensource.com>, "Keir Fraser" <
> keir.fraser@eu.citrix.com>
> Date: Monday, May 31, 2010, 6:27 AM
>
>
> Patch for xen-unstable.hg
>
> 2010/5/31 Boris Derzhavets <bderzhavets@yahoo.com<http://mc/compose?to=bderzhavets@yahoo.com>
> >
>
>> I've attempted to process patch for xen-4.0.0-0.7.f12.src.rpm it gives an
>> errors.
>> Is it written for xen 4.0 ? I did some manual check .
>>
>> Boris.
>>
>>
>> --- On *Sun, 5/30/10, eXeC001er <execooler@gmail.com<http://mc/compose?to=execooler@gmail.com>
>> >* wrote:
>>
>>
>> From: eXeC001er <execooler@gmail.com<http://mc/compose?to=execooler@gmail.com>
>> >
>> Subject: Re: [Xen-devel] [PATCH] Re: blktap2 problem with pvops kernel
>> 2.6.32.13 and xen 4.0-rc1
>> To: "Keir Fraser" <keir.fraser@eu.citrix.com<http://mc/compose?to=keir.fraser@eu.citrix.com>
>> >
>> Cc: "Boris Derzhavets" <bderzhavets@yahoo.com<http://mc/compose?to=bderzhavets@yahoo.com>>,
>> "Xen-devel" <xen-devel@lists.xensource.com<http://mc/compose?to=xen-devel@lists.xensource.com>
>> >
>> Date: Sunday, May 30, 2010, 11:00 AM
>>
>>
>> this patch remove problems with blktap2 devices:
>> 1. If we use blktap2 disk device then DomU does not boot. Returned error: File
>> 'vhd:/path/.../disk.img' doesn't exist.
>> 2. Created blktap2 disk device does not accessible immediately after
>> connecting: If we use pygrub then DomU does not boot. Returned error: Disk
>> is not accessible.
>>
>> Signed-off-by: eXeC001er <execooler@gmail.com<http://mc/compose?to=execooler@gmail.com>
>> >
>> ---
>>
>> 2010/5/30 Keir Fraser <keir.fraser@eu.citrix.com<http://mc/compose?to=keir.fraser@eu.citrix.com>
>> >
>>
>>> Needs a patch description and a signed-off-by line.
>>>
>>> -- Keir
>>>
>>> On 30/05/2010 13:21, "eXeC001er" <execooler@gmail.com<http://mc/compose?to=execooler@gmail.com>>
>>> wrote:
>>>
>>> > My python-experience is small, but i tied to rewrite.
>>> > New in attach.
>>> >
>>> > 2010/5/30 Keir Fraser <keir.fraser@eu.citrix.com<http://mc/compose?to=keir.fraser@eu.citrix.com>
>>> >
>>> >> On 30/05/2010 11:37, "Pasi Kärkkäinen" <pasik@iki.fi<http://mc/compose?to=pasik@iki.fi>>
>>> wrote:
>>> >>
>>> >>> On Sun, May 30, 2010 at 02:02:06PM +0400, eXeC001er wrote:
>>> >>>> I have already sent a patch 1 weak ago.
>>> (blktap2_control_func.patch)
>>> >>>> repeat in attach.
>>> >>>> Thanks.
>>> >>>
>>> >>> Ok, thanks.
>>> >>>
>>> >>> Keir: I guess this is not committed yet?
>>> >>
>>> >> I'm not too happy about the sleep(5). I guess if there's no better
>>> solution
>>> >> coming up I should just whack this patch in?
>>> >>
>>> >> -- Keir
>>> >>
>>> >>> -- Pasi
>>> >>>
>>> >>>> 2010/5/30 Pasi Kärkkäinen <[1]pasik@iki.fi<http://mc/compose?to=pasik@iki.fi>
>>> >
>>> >>>>
>>> >>>> On Sun, May 30, 2010 at 11:17:51AM +0400, eXeC001er wrote:
>>> >>>>> I've attempted to install Nexenta Core 3 image under Xen 4.0
>>> >>>> (2.6.32.13
>>> >>>>> pvops) on top of F13. Sample nexenta3.cfg profile contains 4
>>> >>>> lines like
>>> >>>>> this:-
>>> >>>>>
>>> >>>>> disk=['tat:tapdisk:vhd:/path/../disk.img,xvda,w'] ( from
>>> sample)
>>> >>>>>
>>> >>>>> It generates message
>>> >>>>> Â File 'vhd:/path/.../disk.img' doesn't exist.
>>> >>>>>
>>> >>>>> Boris.
>>> >>>>> P.S. It was already in one of the threads @xen-users.
>>> >>>>>
>>> >>>>> This bug in "def _parse_uname(uname):"
>>> >>>> (tools/python/xen/util/blkif.py)
>>> >>>>> (taptype, fn) = fn.split(":", 1) >>>>>>Â (taptype, fn) =
>>> >>>> fn.split(":",
>>> >>>>> 2)[1:3]
>>> >>>>
>>> >>>> Can you send a proper patch, as unified diff (diff -u), with a
>>> >>>> Signed-off-by line?
>>> >>>> -- Pasi
>>> >>>>
>>> >>>> References
>>> >>>>
>>> >>>> Visible links
>>> >>>> 1. mailto:pasik@iki.fi <http://mc/compose?to=pasik@iki.fi>
>>> >>>
>>> >>>> diff -r d0420ab97345 tools/python/xen/util/blkif.py
>>> >>>> --- a/tools/python/xen/util/blkif.py Fri May 21 16:21:39 2010 +0100
>>> >>>> +++ b/tools/python/xen/util/blkif.py Sat May 22 01:21:15 2010 +0400
>>> >>>> @@ -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 d0420ab97345 tools/python/xen/xend/XendDomainInfo.py
>>> >>>> --- a/tools/python/xen/xend/XendDomainInfo.py Fri May 21 16:21:39
>>> 2010
>>> >>>> +0100
>>> >>>> +++ b/tools/python/xen/xend/XendDomainInfo.py Sat May 22 01:21: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 <http://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"
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>>
>>
>> -----Inline Attachment Follows-----
>>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com<http://mc/compose?to=Xen-devel@lists.xensource.com>
>> http://lists.xensource.com/xen-devel
>>
>>
>>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com<http://mc/compose?to=Xen-devel@lists.xensource.com>
> http://lists.xensource.com/xen-devel
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 16159 bytes --]
[-- Attachment #2: blktap2_control_func-xen-4.0-testing.hg.patch --]
[-- Type: text/x-patch, Size: 1932 bytes --]
diff -r 370fd9f97c70 tools/python/xen/util/blkif.py
--- a/tools/python/xen/util/blkif.py Sat May 22 07:18:16 2010 +0100
+++ b/tools/python/xen/util/blkif.py Mon May 31 20:28:20 2010 +0400
@@ -87,7 +87,7 @@
fn = "/dev/%s" %(fn,)
if typ in ("tap", "tap2"):
- (taptype, fn) = fn.split(":", 1)
+ (taptype, fn) = fn.split(":", 2)[1:3]
return (fn, taptype)
def blkdev_uname_to_file(uname):
diff -r 370fd9f97c70 tools/python/xen/xend/XendBootloader.py
--- a/tools/python/xen/xend/XendBootloader.py Sat May 22 07:18:16 2010 +0100
+++ b/tools/python/xen/xend/XendBootloader.py Mon May 31 20:28:20 2010 +0400
@@ -38,10 +38,16 @@
msg = "Bootloader isn't executable"
log.error(msg)
raise VmError(msg)
- if not os.access(disk, os.R_OK):
- msg = "Disk isn't accessible"
- log.error(msg)
- raise VmError(msg)
+ attempt = 0
+ while True:
+ if not os.access(disk, os.R_OK) and attempt > 3:
+ msg = "Disk isn't accessible"
+ log.error(msg)
+ raise VmError(msg)
+ else:
+ break
+ time.sleep(1)
+ attempt = attempt + 1
if os.uname()[0] == "NetBSD" and disk.startswith('/dev/'):
disk = disk.replace("/dev/", "/dev/r")
diff -r 370fd9f97c70 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py Sat May 22 07:18:16 2010 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py Mon May 31 20:28:20 2010 +0400
@@ -3269,7 +3269,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"
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2010-05-31 16:28 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-30 7:17 blktap2 problem with pvops kernel 2.6.32.13 and xen 4.0-rc1 eXeC001er
2010-05-30 9:09 ` Pasi Kärkkäinen
2010-05-30 10:02 ` eXeC001er
2010-05-30 10:37 ` [PATCH] " Pasi Kärkkäinen
2010-05-30 11:36 ` Keir Fraser
2010-05-30 12:21 ` eXeC001er
2010-05-30 12:24 ` Keir Fraser
2010-05-30 13:28 ` Sander Eikelenboom
2010-05-30 15:00 ` eXeC001er
2010-05-31 7:59 ` Boris Derzhavets
2010-05-31 10:27 ` eXeC001er
2010-05-31 16:04 ` Boris Derzhavets
2010-05-31 16:28 ` eXeC001er [this message]
2010-05-31 20:06 ` Boris Derzhavets
2010-06-01 8:30 ` eXeC001er
2010-06-04 7:57 ` eXeC001er
2010-06-06 20:21 ` eXeC001er
2010-05-30 12:45 ` Łukasz Oleś
2010-06-01 7:54 ` XenWiki Xen 4.0 Tutorials for Ubuntu 10.04 Boris Derzhavets
2010-06-01 12:08 ` Pasi Kärkkäinen
2010-06-01 14:26 ` Boris Derzhavets
2010-06-01 17:22 ` Pasi Kärkkäinen
2010-06-02 15:14 ` Re: XenWiki Xen 4.0 Tutorials for Ubuntu 10.04 Libvirt 0.8.0 Boris Derzhavets
2010-06-02 18:35 ` XenWiki Xen 4.0 Tutorials for Ubuntu 10.04 & " Boris Derzhavets
2010-06-02 18:41 ` Pasi Kärkkäinen
2010-06-02 19:23 ` Boris Derzhavets
2010-06-02 19:28 ` Pasi Kärkkäinen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikb6xBlDSiUCLhAqErxxGmSxl_ler1Avqi_Stjo@mail.gmail.com \
--to=execooler@gmail.com \
--cc=bderzhavets@yahoo.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).