xl vs. xm, possible bug in xl
Hi,
xl is supposed to superseed xm, is this correct? How mature is xl, actually? I'm asking, because the maintainers of the gentoo's xen packages are migrating the init.d-scripts from xm to xl, but xl is causing a lot of trouble.
Well, xl basically fails to start domains on my system.
Quoted 6 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold failed to free memory for the domain
Consider, that autobaloon=1 in xl.conf.
With the autobaloon=0 the errors change to
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup
Note, that I use dom0_mem=512M in grub.conf. Also, xm top states, that there are 2139432k free memory. Considering the first issue, it seems like xl is trying to baloon memory away from dom0, which fails - which seems obvious wrong considering that I use dom0_mem. CONFIG_XEN_BALLOON is enabled for dom0
The second issue sounds more severe, and I'm pretty clueless.
Is this a bug in xl?
Starting the very same domain with xm works without a hassle.
dom0:
vanilla 3.0.0 with vga patch
xen 4.1.1
domU config:
kernel = "/usr/src/linux-domU/_domU/vmlinux"
memory = 2048
vcpus = 8
root = "/dev/xvda1"
extra = "ro"
disk = [
"phy:/dev/md2,xvda1,w", "phy:/dev/md5,xvda2,w", ] vif = [ "bridge=xenbr0,mac=00:16:3E:00:00:01", "bridge=xenbr1,mac=00:16:3E:00:01:01",
]
Quoted 24 lines · Sven Köhler
Hi,
xl is supposed to superseed xm, is this correct? How mature is xl, actually? I'm asking, because the maintainers of the gentoo's xen packages are migrating the init.d-scripts from xm to xl, but xl is causing a lot of trouble.
Well, xl basically fails to start domains on my system.
Quoted 6 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold failed to free memory for the domainConsider, that autobaloon=1 in xl.conf.
With the autobaloon=0 the errors change toQuoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup
Quoted 5 lines
Note, that I use dom0_mem=512M in grub.conf. Also, xm top states, that there are 2139432k free memory. Considering the first issue, it seems like xl is trying to baloon memory away from dom0, which fails - which seems obvious wrong considering that I use
dom0_mem.CONFIG_XEN_BALLOONis enabled for dom0
Yeah, there is a bug there (in Linux kernel) that just got integrated in 3.1-rc5. Will show up in 3.0.5.
Hm, but the migrating memory away from dom0 seems bizzare. Lets ping David who has been in the thick of this. I have a feeling it is the "delta" patches ..
Quoted 10 lines
The second issue sounds more severe, and I'm pretty clueless.
Is this a bug in xl?
Starting the very same domain with xm works without a hassle.
dom0:
vanilla 3.0.0 with vga patch
You could upgrade to 3.0.4 and then you get the VGA patch for free (and some bug-fixes too).
Quoted 24 lines
xen 4.1.1
domU config:
kernel = "/usr/src/linux-domU/_domU/vmlinux"
memory = 2048
vcpus = 8root = "
/dev/xvda1"
extra = "ro"disk = [
"phy:/dev/md2,xvda1,w", "phy:/dev/md5,xvda2,w", ] vif = [ "bridge=xenbr0,mac=00:16:3E:00:00:01", "bridge=xenbr1,mac=00:16:3E:00:01:01",]
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 31 lines · Konrad Rzeszutek Wilk
Quoted 24 lines · Sven Köhler
Hi,
xl is supposed to superseed xm, is this correct? How mature is xl, actually? I'm asking, because the maintainers of the gentoo's xen packages are migrating the init.d-scripts from xm to xl, but xl is causing a lot of trouble.
Well, xl basically fails to start domains on my system.
Quoted 6 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold failed to free memory for the domainConsider, that autobaloon=1 in xl.conf.
With the autobaloon=0 the errors change toQuoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupQuoted 5 lines
Note, that I use dom0_mem=512M in grub.conf. Also, xm top states, that there are 2139432k free memory. Considering the first issue, it seems like xl is trying to baloon memory away from dom0, which fails - which seems obvious wrong considering that I use
dom0_mem.CONFIG_XEN_BALLOONis enabled for dom0
Quoted 6 lines
Yeah, there is a bug there (in Linux kernel) that just got integrated in 3.1-rc5. Will show up in 3.0.5.
Hm, but the migrating memory away from dom0 seems bizzare. Lets ping David who has been in the thick of this. I have a feeling it is the "delta" patches ..
This patch:
http://lists.xensource.com/archives/html/xen-devel/2011-08/msg00813.html
is only relevant if the initial number of pages overlaps with gaps in the memory map (typically more than 3 GB). With dom0_mem=512M you shouldn't be hitting this. So I don't think any of the patches in that series are relevant here (but you could give them a try anyway).
Quoted 31 lines
Quoted 9 lines
The second issue sounds more severe, and I'm pretty clueless.
Is this a bug in xl?
Starting the very same domain with xm works without a hassle.
dom0:
vanilla 3.0.0 with vga patchYou could upgrade to 3.0.4 and then you get the VGA patch for free (and some bug-fixes too).
Quoted 18 lines
xen 4.1.1
domU config:
kernel = "/usr/src/linux-domU/_domU/vmlinux"
memory = 2048
vcpus = 8root = "
/dev/xvda1"
extra = "ro"disk = [
"phy:/dev/md2,xvda1,w", "phy:/dev/md5,xvda2,w", ] vif = [ "bridge=xenbr0,mac=00:16:3E:00:00:01", "bridge=xenbr1,mac=00:16:3E:00:01:01",]
Am 08.09.2011 19:07, schrieb Konrad Rzeszutek Wilk:
Quoted 25 lines · Sven Köhler
Quoted 24 lines
Hi,
xl is supposed to superseed xm, is this correct? How mature is xl, actually? I'm asking, because the maintainers of the gentoo's xen packages are migrating the init.d-scripts from xm to xl, but xl is causing a lot of trouble.
Well, xl basically fails to start domains on my system.
Quoted 6 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold failed to free memory for the domainConsider, that autobaloon=1 in xl.conf.
With the autobaloon=0 the errors change toQuoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup
Quoted 8 lines
Quoted 5 lines
Note, that I use dom0_mem=512M in grub.conf. Also, xm top states, that there are 2139432k free memory. Considering the first issue, it seems like xl is trying to baloon memory away from dom0, which fails - which seems obvious wrong considering that I use
dom0_mem.CONFIG_XEN_BALLOONis enabled for dom0Yeah, there is a bug there (in Linux kernel) that just got integrated in 3.1-rc5. Will show up in 3.0.5.
A bug will show up in 3.0.5/3.1-rc5 or the fix for it?
Also, you seem to be replying to the first problem, the on about memory.
Any clue, that the second problem is about?
Quoted 11 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupQuoted 2 lines
dom0:
vanilla 3.0.0 with vga patchYou could upgrade to 3.0.4 and then you get the VGA patch for free (and some bug-fixes too).
Done. No improvement.
Am 09.09.2011 13:27, schrieb Stefano Stabellini:
Quoted 8 lines
Quoted 5 lines
Any clue, that the second problem is about?
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupThat means that qemu failed to start. Could you please cat
/var/log/xen/qemu-dm-domainname.log?
There is no such file (my domain config lacks a name="something" line). However qemu-dm-test.log does exist and is of recent date, and it says that qemu cannot be started. This is very plausible, since qemu is not even installed. This machine is supposed to start paravirt guests only. And xen has been compiled without support for hvm guests. (Not sure right now, what the gentoo people do to disable support support for hvm guests).
Does my config file for the domain (see one of my previous emails in this thread) indicate, that the machine is a hvm domain? How can I tell xl that this a paravirt domain, and qemu is not needed and should not be used?
(As previously mentioned, xm works just fine with the very same domain config file)
Regards,
Sven
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 32 lines · Sven Köhler
Am 08.09.2011 19:07, schrieb Konrad Rzeszutek Wilk:
Quoted 31 lines · Sven Köhler
Quoted 29 lines
Hi,
xl is supposed to superseed xm, is this correct? How mature is xl, actually? I'm asking, because the maintainers of the gentoo's xen packages are migrating the init.d-scripts from xm to xl, but xl is causing a lot of trouble.
Well, xl basically fails to start domains on my system.
Quoted 6 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold libxl: error: libxl.c:2145:libxl_set_memory_target new target 0 for dom0 is below the minimum threshold failed to free memory for the domainConsider, that autobaloon=1 in xl.conf.
With the autobaloon=0 the errors change toQuoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupNote, that I use dom0_mem=512M in grub.conf. Also, xm top states, that there are 2139432k free memory. Considering the first issue, it seems like xl is trying to baloon memory away from dom0, which fails - which seems obvious wrong considering that I use
dom0_mem.CONFIG_XEN_BALLOONis enabled for dom0
Quoted 12 lines
Quoted 2 lines
Yeah, there is a bug there (in Linux kernel) that just got integrated in 3.1-rc5. Will show up in 3.0.5.
A bug will show up in 3.0.5/3.1-rc5 or the fix for it?
Also, you seem to be replying to the first problem, the on about memory.
Any clue, that the second problem is about?
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup
That means that qemu failed to start. Could you please cat /var/log/xen/qemu-dm-domainname.log?
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Stefano Stabellini
Acked-by Ian JacksonQuoted 18 lines · Sven Köhler
Am 09.09.2011 13:27, schrieb Stefano Stabellini:
Quoted 8 lines
Quoted 5 lines
Any clue, that the second problem is about?
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupThat means that qemu failed to start. Could you please cat
/var/log/xen/qemu-dm-domainname.log?There is no such file (my domain config lacks a name="something" line). However qemu-dm-test.log does exist and is of recent date, and it says that qemu cannot be started. This is very plausible, since qemu is not even installed. This machine is supposed to start paravirt guests only. And xen has been compiled without support for hvm guests. (Not sure right now, what the gentoo people do to disable support support for hvm guests).
Quoted 4 lines
Does my config file for the domain (see one of my previous emails in this thread) indicate, that the machine is a hvm domain? How can I tell xl that this a paravirt domain, and qemu is not needed and should not be used?
I think I have found the issue: if blktap2 is not enabled xl is going to start qemu (to provide a disk backend) even if it is not actually needed because the user wants to use blkback.
We have a patch upstream to fix this issue but it hasn't been backported to 4.1:
# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1300213187 0
# Node ID d4ca456c0c25c3c3daedc216c657296f2895482a
# Parent 3caed2112c65791855e8bf0fd34c15e3160bbc78
libxl: do not start a xenpv qemu solely for tap devices if blktap is available
qemu is used as a fallback for DISK_BACKEND_TAP if no blktap is available but if blktap is available, or for DISK_BACKEND_PHY, we don't need a qemu process.
tools/libxl/libxl_dm.c +23 -2
@@ -828,8 +828,29 @@ int libxl__need_xenpv_qemu(libxl_ctx *ct goto out; } -if (nr_disks >0 && !libxl__blktap_enabled (&gc)) - ret =1 ; +if (nr_disks >0 ) { +int blktap_enabled =-1 ; +for (i =0 ; i < nr_disks; i++) { +switch (disks[i].backend) { +case DISK_BACKEND_TAP : +if (blktap_enabled ==-1 ) + blktap_enabled =libxl__blktap_enabled (&gc); +if (!blktap_enabled) { + ret =1 ; + goto out; + } +break ; + +case DISK_BACKEND_QDISK : + ret =1 ; + goto out; + +case DISK_BACKEND_PHY : +case DISK_BACKEND_UNKNOWN : +break ; + } + } + } out:LIbxl__free_all (&gc);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
CC'ing IanJ to make sure he is going to read this
Quoted 73 lines · Stefano Stabellini
Quoted 18 lines · Sven Köhler
Am 09.09.2011 13:27, schrieb Stefano Stabellini:
Quoted 8 lines
Quoted 5 lines
Any clue, that the second problem is about?
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupThat means that qemu failed to start. Could you please cat
/var/log/xen/qemu-dm-domainname.log?There is no such file (my domain config lacks a name="something" line). However qemu-dm-test.log does exist and is of recent date, and it says that qemu cannot be started. This is very plausible, since qemu is not even installed. This machine is supposed to start paravirt guests only. And xen has been compiled without support for hvm guests. (Not sure right now, what the gentoo people do to disable support support for hvm guests).
Quoted 4 lines
Does my config file for the domain (see one of my previous emails in this thread) indicate, that the machine is a hvm domain? How can I tell xl that this a paravirt domain, and qemu is not needed and should not be used?
I think I have found the issue: if blktap2 is not enabled xl is going to start qemu (to provide a disk backend) even if it is not actually needed because the user wants to use blkback.
We have a patch upstream to fix this issue but it hasn't been backported to 4.1:
# HG changeset patch
# User Ian Campbell <[email protected]>
# Date 1300213187 0
# Node IDd4ca456c0c25c3c3daedc216c657296f2895482a
# Parent3caed2112c65791855e8bf0fd34c15e3160bbc78
libxl: do not start a xenpv qemu solely for tap devices if blktap is availableqemu is used as a fallback for
DISK_BACKEND_TAPif no blktap is available but if blktap is available, or forDISK_BACKEND_PHY, we don't need a qemu process.Signed-off-by Ian Campbell <[email protected]>Acked-by Ian Jackson <[email protected]>Committed-by Ian Jackson <[email protected]>diff -r
3caed2112c65-rd4ca456c0c25tools/libxl/libxl_dm.ctools/libxl/libxl_dm.c +16
-2@@ -828,8 +828,29 @@ int libxl__need_xenpv_qemu(libxl_ctx *ct goto out; } -if (nr_disks >0 && !libxl__blktap_enabled (&gc)) - ret =1 ; +if (nr_disks >0 ) { +int blktap_enabled =-1 ; +for (i =0 ; i < nr_disks; i++) { +switch (disks[i].backend) { +case DISK_BACKEND_TAP : +if (blktap_enabled ==-1 ) + blktap_enabled =libxl__blktap_enabled (&gc); +if (!blktap_enabled) { + ret =1 ; + goto out; + } +break ; + +case DISK_BACKEND_QDISK : + ret =1 ; + goto out;
tools/libxl/libxl_dm.c int libxl__need_xenpv_qemu(libxl_ctx *ct · line 856
Quoted 10 lines
tools/libxl/libxl_dm.c +7
-0+ +case DISK_BACKEND_PHY : +case DISK_BACKEND_UNKNOWN : +break ; + } + } + } out:LIbxl__free_all (&gc);
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Am 09.09.2011 14:05, schrieb Stefano Stabellini:
Quoted 24 lines · Sven Köhler
Quoted 18 lines
Am 09.09.2011 13:27, schrieb Stefano Stabellini:
Quoted 8 lines
Quoted 5 lines
Any clue, that the second problem is about?
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupThat means that qemu failed to start. Could you please cat
/var/log/xen/qemu-dm-domainname.log?There is no such file (my domain config lacks a name="something" line). However qemu-dm-test.log does exist and is of recent date, and it says that qemu cannot be started. This is very plausible, since qemu is not even installed. This machine is supposed to start paravirt guests only. And xen has been compiled without support for hvm guests. (Not sure right now, what the gentoo people do to disable support support for hvm guests).
Quoted 4 lines
Does my config file for the domain (see one of my previous emails in this thread) indicate, that the machine is a hvm domain? How can I tell xl that this a paravirt domain, and qemu is not needed and should not be used?
Quoted 6 lines
I think I have found the issue: if blktap2 is not enabled xl is going to start qemu (to provide a disk backend) even if it is not actually needed because the user wants to use blkback.
We have a patch upstream to fix this issue but it hasn't been backported to 4.1:
Thanks, sounds like this will fix my problem.
Is there any chance that this is going to be in 4.1.2 final?
Regards,
Sven
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 29 lines · Sven Köhler
Am 09.09.2011 14:05, schrieb Stefano Stabellini:
Quoted 28 lines · Sven Köhler
Quoted 18 lines
Am 09.09.2011 13:27, schrieb Stefano Stabellini:
Quoted 8 lines
Quoted 5 lines
Any clue, that the second problem is about?
Quoted 4 lines
# xl create /etc/xen/xen-sk1 Parsing config file /etc/xen/xen-sk1 libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startupThat means that qemu failed to start. Could you please cat
/var/log/xen/qemu-dm-domainname.log?There is no such file (my domain config lacks a name="something" line). However qemu-dm-test.log does exist and is of recent date, and it says that qemu cannot be started. This is very plausible, since qemu is not even installed. This machine is supposed to start paravirt guests only. And xen has been compiled without support for hvm guests. (Not sure right now, what the gentoo people do to disable support support for hvm guests).
Quoted 4 lines
Does my config file for the domain (see one of my previous emails in this thread) indicate, that the machine is a hvm domain? How can I tell xl that this a paravirt domain, and qemu is not needed and should not be used?
I think I have found the issue: if blktap2 is not enabled xl is going to start qemu (to provide a disk backend) even if it is not actually needed because the user wants to use blkback.
Quoted 6 lines
Quoted 2 lines
We have a patch upstream to fix this issue but it hasn't been backported to 4.1:
Thanks, sounds like this will fix my problem.
Is there any chance that this is going to be in 4.1.2 final?
I think it should be!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · Stefano Stabellini
Quoted 6 lines
Quoted 2 lines
We have a patch upstream to fix this issue but it hasn't been backported to 4.1:
Thanks, sounds like this will fix my problem.
Is there any chance that this is going to be in 4.1.2 final?
I think it should be!
Ack!
I'm sure I asked for it before, must've fallen through the cracks.
Ian.
Re: Re: xl vs. xm, possible bug in xl (fwd) [and 1 more messages]
In reply to a message not in the archiveStefano Stabellini writes ("Re: [Xen-devel] Re: xl vs. xm, possible bug in xl (fwd)"):
Quoted 6 lines
I think I have found the issue: if blktap2 is not enabled xl is going to start qemu (to provide a disk backend) even if it is not actually needed because the user wants to use blkback.
We have a patch upstream to fix this issue but it hasn't been backported to 4.1:
Thanks, I have applied it to 4.1.
Ian.