Hello, I recently installed XEN on my Gentoo Linux that I use mainly as a Desktop and I had to switch from xm to xl tool stack. Since also the gentoo-sources support XEN natively I installed XEN on my Desktop distribution too. Well, I started installing XEN as usual, and I was using it only with the xm tool stack. Now I read about the migration to the new toolstack at http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B but I have some problem and some question to do. First of all, let me list my environment: OS: Gentoo Linux 10.0 kernel: gentoo-sources-3.0.4 arch x86_64 app-emulation/xen-4.1.1-r1 app-emulation/xen-tools-4.1.1-r3 with USE flags: "hvm ioemu" I also completed the following checklist: - Configure your host networking using the configuration tools provided by your distribution. - Remove any python code from domU configuration files. - Disable xend startup script (it doesn''t exist anymore) - Use xl command instead of xm (xm doesn''t exist anymore) 1) Now the xend initscript has been removed. Well, I had some domain registered with the command ''xm new vm_name.cfg''. Actually, performing a "xm list" it was showing them in the list of the domains after the dom0. Now that xend has been removed, it is no longer running and ''xl list'' doesn''t show any domU in the list. How does it work now? I tried to put the vm configuration file in /etc/xen/auto but in this way it starts the vm and not simply it adds to the xen domain store, letting me decide if starting the vm or not. I was looking for the analogue command as "xm new config_file.cfg" in xl if exists. 2) If I try to run a gentoo linux guest (for instance) running ''xl vm_config_file.cfg -c'' I get the following error: xenconsole: Could not read tty from store: No such file or directory But the vm starts even if the networking doesn''t work now, of course. I''ve already searched and found several results on Google but the problem is still there. :( 3) the network for the guest OS doesn''t work, even the xenbr0 is up and the vm configuration file explicitly says it has to use that bridge. Furthermore, due to the error at point 2, I can''t see anything in the VM. I also tried to add the following line in the /etc/xen/xl.conf but the network doesn''t work anyway: vifscript="vif-bridge" 4) xl shutdown <domain_number> seems to be not working. I have to destroy the VM in order to have it powered off. Can somebody help me to correct these problems please? -- Flavio _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Hello, I recently installed XEN on my Gentoo Linux that I use mainly as a Desktop and I had to switch from xm to xl tool stack. Since also the gentoo-sources support XEN natively I installed XEN on my Desktop distribution too. Well, I started installing XEN as usual, and I was using it only with the xm tool stack. Now I read about the migration to the new toolstack at http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B but I have some problem and some question to do. First of all, let me list my environment: OS: Gentoo Linux 10.0 kernel: gentoo-sources-3.0.4 arch x86_64 app-emulation/xen-4.1.1-r1 app-emulation/xen-tools-4.1.1-r3 with USE flags: "hvm ioemu" I also completed the following checklist: - Configure your host networking using the configuration tools provided by your distribution. - Remove any python code from domU configuration files. - Disable xend startup script (it doesn''t exist anymore) - Use xl command instead of xm (xm doesn''t exist anymore) 1) Now the xend initscript has been removed. Well, I had some domain registered with the command ''xm new vm_name.cfg''. Actually, performing a "xm list" it was showing them in the list of the domains after the dom0. Now that xend has been removed, it is no longer running and ''xl list'' doesn''t show any domU in the list. How does it work now? I tried to put the vm configuration file in /etc/xen/auto but in this way it starts the vm and not simply it adds to the xen domain store, letting me decide if starting the vm or not. I was looking for the analogue command as "xm new config_file.cfg" in xl if exists. 2) If I try to run a gentoo linux guest (for instance) running ''xl vm_config_file.cfg -c'' I get the following error: xenconsole: Could not read tty from store: No such file or directory But the vm starts even if the networking doesn''t work now, of course. I''ve already searched and found several results on Google but the problem is still there. :( 3) the network for the guest OS doesn''t work, even the xenbr0 is up and the vm configuration file explicitly says it has to use that bridge. Furthermore, due to the error at point 2, I can''t see anything in the VM. I also tried to add the following line in the /etc/xen/xl.conf but the network doesn''t work anyway: vifscript="vif-bridge" 4) xl shutdown <domain_number> seems to be not working. I have to destroy the VM in order to have it powered off. Can somebody help me to correct these problems please? -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Sep-13 09:46 UTC
Re: [Xen-devel] Help with the migration to XEN-4.1 please
On Tue, 2011-09-13 at 04:58 -0400, Flavio wrote:> Hello, > > I recently installed XEN on my Gentoo Linux that I use mainly as a > Desktop and I had to switch from xm to xl tool stack. > Since also the gentoo-sources support XEN natively I installed XEN on > my Desktop > distribution too. Well, I started installing XEN as usual, and I was > using it only with the xm tool stack. > Now I read about the migration to the new toolstack at > http://wiki.xensource.com/xenwiki/MigrationGuideToXen4.1%2B but > I have some problem and some question to do. > > First of all, let me list my environment: > OS: Gentoo Linux 10.0 kernel: gentoo-sources-3.0.4 arch x86_64 > app-emulation/xen-4.1.1-r1 > app-emulation/xen-tools-4.1.1-r3 with USE flags: "hvm ioemu" > > I also completed the following checklist: > - Configure your host networking using the configuration tools > provided by your distribution. > - Remove any python code from domU configuration files. > - Disable xend startup script (it doesn''t exist anymore) > - Use xl command instead of xm (xm doesn''t exist anymore) > > 1) Now the xend initscript has been removed. Well, I had some domain > registered with the command ''xm new vm_name.cfg''. > Actually, performing a "xm list" it was showing them in the list of > the domains after the dom0. > Now that xend has been removed, it is no longer running and ''xl list'' > doesn''t show any domU in the list. How does it work now?I''m afraid that xl does not support this style of "managed" domain. The /etc/xen/auto type stuff ought to still work although there have been a bunch of fixes to that recently, I think they are all queued for 4.1.2 but it might be worth confirming that tools/hotplug in your tree looks similar to that in xen-unstable.hg> I tried to put the vm configuration file in /etc/xen/auto but in this > way it starts the vm and not simply it adds to the xen domain store, > letting me decide if starting the vm or not. I was looking for the > analogue command as "xm new config_file.cfg" in xl if exists. > > 2) If I try to run a gentoo linux guest (for instance) running > ''xl vm_config_file.cfg -c'' I get the following error:You mean ''xl create vm_config....''?> xenconsole: Could not read tty from store: No such file or directory > But the vm starts even if the networking doesn''t work now, of course. > I''ve already searched and found several results on Google but the > problem is still there. :(Did you start xenstored and xenconsoled? i.e. did you add the "xencommons" initscript to your startup?> 3) the network for the guest OS doesn''t work, even the xenbr0 is up > and the vm configuration file > explicitly says it has to use that bridge. Furthermore, due to the > error at point 2, I can''t see anything > in the VM. > I also tried to add the following line in the /etc/xen/xl.conf but the > network doesn''t work anyway: > vifscript="vif-bridge"> > 4) xl shutdown <domain_number> seems to be not working. I have to > destroy the VM in order to have it powered off. > > Can somebody help me to correct these problems please?Both of these sound as if xenstored is not working properly for you. Is it running? You didn''t restart it did you? (you cannot restart xenstored, unfortunately if you did this you need to reboot). Did you also change kernel when you moved to 4.1? Do you have the /dev/xen nodes, especially evtchn loaded and available? With pvops many kernels are more standard distro kernels rather than xen-specific and therefore stuff which was historically statically built in to the kernel are now modular. Ian.> > -- > Flavio > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 13 September 2011 11:46, Ian Campbell <Ian.Campbell@citrix.com> wrote:> I''m afraid that xl does not support this style of "managed" domain. > The /etc/xen/auto type stuff ought to still work although there have > been a bunch of fixes to that recently, I think they are all queued for > 4.1.2 but it might be worth confirming that tools/hotplug in your tree > looks similar to that in xen-unstable.hgThank you for replying Ian, ok.>> 2) If I try to run a gentoo linux guest (for instance) running >> ''xl vm_config_file.cfg -c'' I get the following error: > > You mean ''xl create vm_config....''?Yes, please excuse me, it was a typing error.> > Did you start xenstored and xenconsoled?Of course yes. I added xendomains in the default runlevel, which strictly depends on xenstored and xenconsoled as you know. And it has been the first check I''ve done once I encountered that problem.> i.e. did you add the > "xencommons" initscript to your startup?I don''t know if it is a bug or something missing in the gentoo package of xen-tools but I don''t have any inistscript called xencommons in my /etc/init.d directory. I only have the file /etc/xen/xencommons configuration file on my system.> >> 3) the network for the guest OS doesn''t work, even the xenbr0 is up >> and the vm configuration file >> explicitly says it has to use that bridge. Furthermore, due to the >> error at point 2, I can''t see anything >> in the VM. >> I also tried to add the following line in the /etc/xen/xl.conf but the >> network doesn''t work anyway: >> vifscript="vif-bridge" > >> >> 4) xl shutdown <domain_number> seems to be not working. I have to >> destroy the VM in order to have it powered off. >> >> Can somebody help me to correct these problems please? > > Both of these sound as if xenstored is not working properly for you. Is > it running?Of course it is. The virtual machines start, but they are not accessible via ssh due to the network issue or console for the error reported above.> You didn''t restart it did you? (you cannot restart > xenstored, unfortunately if you did this you need to reboot).:-| I can reboot, but it doesn''t solve the problem so.> > Did you also change kernel when you moved to 4.1?No, before installing XEN on this system I installed the gentoo-sources-3.0.4 kernel. To be honest, if I remember correctly I already had xen-tools and xen 4.1.1 as a first install on my system. Now I have 4.1.1-r3. At the beginning, prior the migration I was using xm and the VMs were starting without any problem, and the network was working too through the bridge.> Do you have > the /dev/xen nodes, especially evtchn loaded and available?I only have evtchn under /dev/xen.> With pvops > many kernels are more standard distro kernels rather than xen-specific > and therefore stuff which was historically statically built in to the > kernel are now modular.So do you mean I have to check my kernel configuration or add/remove something, or make it as module? Thank you very much, -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I have recently upgraded to xen-tools-4.1.1-r4 but no luck with it. On 13 September 2011 10:58, Flavio <fbcyborg@gmail.com> wrote:> 2) If I try to run a gentoo linux guest (for instance) running > ''xl create vm_config_file.cfg -c'' I get the following error: > xenconsole: Could not read tty from store: No such file or directoryI would like to know what "file or directory" that message refers to. What XEN is expecting to find as a "file or directory" and where? -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Sep-14 11:57 UTC
Re: [Xen-devel] Help with the migration to XEN-4.1 please
On Tue, 2011-09-13 at 06:07 -0400, Flavio wrote:> > > > Did you start xenstored and xenconsoled? > Of course yes. I added xendomains in the default runlevel, which > strictly depends on xenstored and xenconsoled as you know. > And it has been the first check I''ve done once I encountered that problem.xenstored and xenconsoled are provided by the xencommons script, which you state below you don''t have.> > i.e. did you add the > > "xencommons" initscript to your startup? > I don''t know if it is a bug or something missing in the gentoo package > of xen-tools > but I don''t have any inistscript called xencommons in my /etc/init.d directory. > I only have the file /etc/xen/xencommons configuration file on my system.You should have /etc/init.d/xencommons or Gentoo must provide you with some equivalent (I don''t know enough about Gentoo to know)> > Do you have > > the /dev/xen nodes, especially evtchn loaded and available? > I only have evtchn under /dev/xen.I think that is sufficient.> > With pvops > > many kernels are more standard distro kernels rather than xen-specific > > and therefore stuff which was historically statically built in to the > > kernel are now modular. > So do you mean I have to check my kernel configuration or add/remove something, > or make it as module?You need to make sure you have the relevant backend drivers available (especially netback and blkback). It''s up to you if you want to make them =y or if you want to use =m and arrange for them to be loaded on boot using whatever mechanism Gentoo provides for this. I think it would be useful if you posted your actual kernel configuration. Ian.> > Thank you very much, >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Sep-14 11:57 UTC
Re: [Xen-devel] Re: Help with the migration to XEN-4.1 please
On Tue, 2011-09-13 at 12:09 -0400, Flavio wrote:> I have recently upgraded to xen-tools-4.1.1-r4 but no luck with it. > > On 13 September 2011 10:58, Flavio <fbcyborg@gmail.com> wrote: > > 2) If I try to run a gentoo linux guest (for instance) running > > ''xl create vm_config_file.cfg -c'' I get the following error: > > xenconsole: Could not read tty from store: No such file or directory > I would like to know what "file or directory" that message refers to. > What XEN is expecting to find as a "file or directory" and where?"No such file or directory" comes from strerror() in response to, IIRC, ENOENT. The ENOENT comes from xenstore and likely refers to a missing entry in there. What is the content of your vm_config_file.cfg? In particular I am thinking that if you have "file:" or "tap:" style disks you will need qemu-xen installed and if this was missing you might get errors like the above. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 14 September 2011 13:57, Ian Campbell <Ian.Campbell@citrix.com> wrote:> xenstored and xenconsoled are provided by the xencommons script, which > you state below you don''t have.I don''t know why. I think this is a bug or an ebuild problem, because it is actually strange not having that initscript. These are the related files which are installed: /etc/conf.d/xenconsoled /etc/conf.d/xendomains /etc/conf.d/xenstored /etc/default/xencommons /etc/default/xendomains /etc/init.d/xenconsoled /etc/init.d/xendomains /etc/init.d/xenstored Could I insert the xencommons initscript by hand? Do you think it could be something safe to do?> You should have /etc/init.d/xencommons or Gentoo must provide you with > some equivalent (I don''t know enough about Gentoo to know)I don''t think there is something equivalent; maybe it''s the case to open a bug report on bugs.gentoo.org.> You need to make sure you have the relevant backend drivers available > (especially netback and blkback). It''s up to you if you want to make > them =y or if you want to use =m and arrange for them to be loaded on > boot using whatever mechanism Gentoo provides for this.I have both as y, so no problem for that.> > I think it would be useful if you posted your actual kernel > configuration.Sure. Here we go: http://pastebin.com/HC9Lsfjw Maybe it is not really optimized but I tried to do it as much as possible for my ability. On 14 September 2011 13:57, Ian Campbell <Ian.Campbell@citrix.com> wrote:> > What is the content of your vm_config_file.cfg?For instance, this is the config file I use to start the Gentoo VM (which was working very well with the XM toolstack: kernel = "/mnt/data/xen/kernel/vmlinuz-xen-3.0.4-domU" memory = "512" name = "gentoo-10.0-x86_64" vif = [''bridge=xenbr0''] dhcp = "dhcp" disk = [''file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img,xvda1,w'', ''file:/mnt/data/xen/vmstore/gentoo-10.0/swap.img,xvda2,w''] root = "/dev/xvda1 ro" vcpus = 2 extra = ''console=hvc0 xencons=tty'' ip = "off"> > In particular I am thinking that if you have "file:" or "tap:" style > disks you will need qemu-xen installed and if this was missing you might > get errors like the above.I have /usr/bin/qemu-img-xen /usr/bin/qemu-nbd-xen /usr/lib64/xen/bin/qemu-dm /usr/share/xen/qemu but not qemu-xen (I don''t know what package to install for that) and there is no package named qemu-xen in portage. Maybe that qemu-xen is called qemu-dm on Gentoo. -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Sep-14 13:45 UTC
Re: [Xen-devel] Help with the migration to XEN-4.1 please
On Wed, 2011-09-14 at 08:30 -0400, Flavio wrote:> On 14 September 2011 13:57, Ian Campbell <Ian.Campbell@citrix.com> wrote:[...]> /etc/init.d/xenconsoled > /etc/init.d/xendomains > /etc/init.d/xenstored[...]> > You should have /etc/init.d/xencommons or Gentoo must provide you with > > some equivalent (I don''t know enough about Gentoo to know) > I don''t think there is something equivalent; maybe it''s the case to > open a bug report > on bugs.gentoo.org.>From the above it looks like Gentoo has gone for separate xenconsoledand xenstored initscripts so you are probably ok.> On 14 September 2011 13:57, Ian Campbell <Ian.Campbell@citrix.com> wrote: > > > > What is the content of your vm_config_file.cfg? > For instance, this is the config file I use to start the Gentoo VM > (which was working > very well with the XM toolstack: > > kernel = "/mnt/data/xen/kernel/vmlinuz-xen-3.0.4-domU" > memory = "512" > name = "gentoo-10.0-x86_64" > vif = [''bridge=xenbr0''] > dhcp = "dhcp" > disk = [''file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img,xvda1,w'', > ''file:/mnt/data/xen/vmstore/gentoo-10.0/swap.img,xvda2,w''] > root = "/dev/xvda1 ro" > vcpus = 2 > extra = ''console=hvc0 xencons=tty'' > ip = "off" > > > > > In particular I am thinking that if you have "file:" or "tap:" style > > disks you will need qemu-xen installed and if this was missing you might > > get errors like the above. > I have > /usr/bin/qemu-img-xen > /usr/bin/qemu-nbd-xen > /usr/lib64/xen/bin/qemu-dm > /usr/share/xen/qemu > > but not qemu-xen (I don''t know what package to install for that)I think it is the thing you have as /usr/lib64/xen/bin/qemu-dm is qemu-xen. Are you seeing anything under /var/log/xen? Sepcifically the xl-* and qemu-* logs with the name of your VM in. Do you see any evidence of qemu-dm actually getting started? (does it appear in "ps" output etc) Running "xl -vvv create ..." might also print extra debugging which might be useful. Please can you post all the logs. The file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img (and the other one) is interesting. A modern kernel does not have the blktap driver (for various reasons this cannot go upstream) and so xl falls back to a qemu provided block backend if this is not present and block back. This is different to how xm/xend worked, it would setup a loop device for file:// devices and use blkback. Can you try manually setting up a loop device (losetup) and passing phy:/dev/loopN instead of the file://....*.img? This isn''t a real solution but it will be a useful datapoint. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 14 September 2011 15:45, Ian Campbell <Ian.Campbell@citrix.com> wrote:> From the above it looks like Gentoo has gone for separate xenconsoled > and xenstored initscripts so you are probably ok.OK.> Are you seeing anything under /var/log/xen?Yes, of course.> Sepcifically the xl-* andFor instance, if I look for the file related to my gentoo guest I see xl-gentoo-10.0-x86_64.log and the content is: Waiting for domain gentoo-10.0-x86_64 (domid 1) to die [pid 6250] Domain 1 is dead Unable to get domain death info, quitting It says it is dead because I issued the command xl destroy <domain_id> xl shutdown doesn''t work, as for the xl reboot.> qemu-* logs with the name of your VM in.qemu-dm-gentoo-10.0-x86_64.log and this is the content: domid: 1 Warning: vlan 0 is not connected to host network -videoram option does not work with cirrus vga device model. Videoram set to 4M. /var/tmp/portage/app-emulation/xen-tools-4.1.1-r4/work/xen-4.1.1/tools/ioemu-qemu-xen/hw/xen_blktap.c:628: Init blktap pipes Could not open /var/run/tap/qemu-read-1 xen be core: xen be core: can''t open gnttab device can''t open gnttab device xen be core: xen be core: can''t open gnttab device can''t open gnttab device xen be core: xen be core: can''t open gnttab device can''t open gnttab device xs_read(): target get error. /local/domain/1/target. (qemu) (qemu)> Do you see any evidence of > qemu-dm actually getting started? (does it appear in "ps" output etc)If no virtual machines are running no. But when the VM starts yes: root 6412 0.1 0.7 118280 16512 ? Ssl 15:53 0:00 qemu-dm -d 1 -domain-name gentoo-10.0-x86_64 -nographic -M xenpv> > Running "xl -vvv create ..." might also print extra debugging which > might be useful. Please can you post all the logs.Here it is: http://pastebin.com/t6ekJWJ7> > The file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img (and > the other one) is interesting.As you see I use loop files for the root filesystems. In what sense do you say it is interesting? I have only these files in that directory: gentoo-10.0.x86-64.cfg gentoo-10.0.x86-64.img swap.img> A modern kernel does not have the blktap > driver (for various reasons this cannot go upstream) and so xl falls > back to a qemu provided block backend if this is not present and block > back. This is different to how xm/xend worked, it would setup a loop > device for file:// devices and use blkback. > > Can you try manually setting up a loop device (losetup) and passing > phy:/dev/loopN instead of the file://....*.img? This isn''t a real > solution but it will be a useful datapoint.I''ve tried to do that but it seems to be the same thing of using the file:/ syntax. Thank you so much for your support. -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Sep-14 14:09 UTC
Re: [Xen-devel] Help with the migration to XEN-4.1 please
On Wed, 2011-09-14 at 10:05 -0400, Flavio wrote:> xen be core: xen be core: can''t open gnttab device > can''t open gnttab deviceThis is probably the issue. You need /dev/xen/gntdev, I think you need to enable CONFIG_XEN_GNTDEV.> > The file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img (and > > the other one) is interesting. > As you see I use loop files for the root filesystems.That''s the thing -- you aren''t, you are using img files. Under xend these would be setup as loop devices for you but under xl you insteasd get a userspace block backend (tap if it is available, qdisk from qemu-d, if not). Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 14 September 2011 16:09, Ian Campbell <Ian.Campbell@citrix.com> wrote:> On Wed, 2011-09-14 at 10:05 -0400, Flavio wrote: > >> xen be core: xen be core: can''t open gnttab device >> can''t open gnttab device > > This is probably the issue. You need /dev/xen/gntdev, I think you need > to enable CONFIG_XEN_GNTDEV.YESSSSSSSSSSSSS! Actually it was compiled as module but it wasn''t running. Also the xen-gntalloc module is present but it is not running. Now, simply modprobing the xen-gntdev module, the vm has started, and the console is available! Only one problem now: the guest machine doesn''t get any IP when dhcp runs.> >> > The file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img (and >> > the other one) is interesting. >> As you see I use loop files for the root filesystems. > > That''s the thing -- you aren''t, you are using img files.It was my mistake! I thought they were loop files too.> Under xend > these would be setup as loop devices for you but under xl you insteasd > get a userspace block backend (tap if it is available, qdisk from > qemu-d, if not).OK, now I understand. THANK YOU SO MUCH Ian. -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hello, Here again with a similar problem, when the xen_gntdev module is loaded: Parsing config file /mnt/dati/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.cfg xenconsole: Could not read tty from store: No such file or directory 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 I don''t know what happened but I''ve got that error starting the two linux domU guest I have on my disk. What has happened? Flavio On 14 September 2011 16:16, Flavio <fbcyborg@gmail.com> wrote:> On 14 September 2011 16:09, Ian Campbell <Ian.Campbell@citrix.com> wrote: >> On Wed, 2011-09-14 at 10:05 -0400, Flavio wrote: >> >>> xen be core: xen be core: can''t open gnttab device >>> can''t open gnttab device >> >> This is probably the issue. You need /dev/xen/gntdev, I think you need >> to enable CONFIG_XEN_GNTDEV. > YESSSSSSSSSSSSS! > Actually it was compiled as module but it wasn''t running. > Also the xen-gntalloc module is present but it is not running. > Now, simply modprobing the xen-gntdev module, the vm has started, and > the console is available! > Only one problem now: the guest machine doesn''t get any IP when dhcp runs. > >> >>> > The file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img (and >>> > the other one) is interesting. >>> As you see I use loop files for the root filesystems. >> >> That''s the thing -- you aren''t, you are using img files. > It was my mistake! I thought they were loop files too. > >> Under xend >> these would be setup as loop devices for you but under xl you insteasd >> get a userspace block backend (tap if it is available, qdisk from >> qemu-d, if not). > OK, now I understand. > > THANK YOU SO MUCH Ian._______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Hello, Here again with a similar problem, when the xen_gntdev module is loaded: Parsing config file /mnt/dati/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.cfg xenconsole: Could not read tty from store: No such file or directory 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 I don''t know what happened but I''ve got that error starting the two linux domU guest I have on my disk. What has happened? Flavio On 14 September 2011 16:16, Flavio <fbcyborg@gmail.com> wrote:> On 14 September 2011 16:09, Ian Campbell <Ian.Campbell@citrix.com> wrote: >> On Wed, 2011-09-14 at 10:05 -0400, Flavio wrote: >> >>> xen be core: xen be core: can''t open gnttab device >>> can''t open gnttab device >> >> This is probably the issue. You need /dev/xen/gntdev, I think you need >> to enable CONFIG_XEN_GNTDEV. > YESSSSSSSSSSSSS! > Actually it was compiled as module but it wasn''t running. > Also the xen-gntalloc module is present but it is not running. > Now, simply modprobing the xen-gntdev module, the vm has started, and > the console is available! > Only one problem now: the guest machine doesn''t get any IP when dhcp runs. > >> >>> > The file:/mnt/data/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.img (and >>> > the other one) is interesting. >>> As you see I use loop files for the root filesystems. >> >> That''s the thing -- you aren''t, you are using img files. > It was my mistake! I thought they were loop files too. > >> Under xend >> these would be setup as loop devices for you but under xl you insteasd >> get a userspace block backend (tap if it is available, qdisk from >> qemu-d, if not). > OK, now I understand. > > THANK YOU SO MUCH Ian.-- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-Oct-17 13:26 UTC
Re: [Xen-devel] Help with the migration to XEN-4.1 please
On Sat, 2011-10-15 at 08:33 +0100, Flavio wrote:> Hello, > > Here again with a similar problem, when the xen_gntdev module is loaded: > Parsing config file /mnt/dati/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.cfg > xenconsole: Could not read tty from store: No such file or directory > 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 > > I don''t know what happened but I''ve got that error starting the two linux domU > guest I have on my disk. > > What has happened?I''m afraid we''ll need more info on the current state of your system, per: http://wiki.xen.org/xenwiki/ReportingBugs The qemu log in particular seems likely to be interesting. Ian. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 17 October 2011 15:26, Ian Campbell <Ian.Campbell@citrix.com> wrote:> I''m afraid we''ll need more info on the current state of your system, > per: http://wiki.xen.org/xenwiki/ReportingBugs > > The qemu log in particular seems likely to be interesting.Thanks, here we go: PREMISE: I''ve solved the problem during the log file collection for the bug report submission. So, it is not due to a bug. what happened: the domU (Gentoo or Debian) doesn''t start becouse of the following error: # xl create /mnt/dati/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.cfg -c Parsing config file /mnt/dati/xen/vmstore/gentoo-10.0/gentoo-10.0.x86-64.cfg xenconsole: Could not read tty from store: No such file or directory 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 when: when I was trying to start a domU. what I was expecting: the domU should start showing the boot messages without any error. OS: Gentoo Linux arch x86_64, Linux Kernel 3.0.6 (gentoo-sources) app-emulation/xen: v. 4.1.1-r2 app-emulation/xen-tools: v. 4.1.1-r5 USE Flags: hvm and pygrub /var/log/xen/xen-hotplug.log: http://pastebin.com/4ZLmh64T The problem was here. My fault not reading this log. /var/log/xen/qemu-dm-gentoo-10.0-x86_64.log: libxl: cannot execute /usr/lib/xen/bin/qemu-dm: No such file or directory OK, qemu-dm was not present. It is strange. And this is why I didn''t think that qemu-dm was not present, because I was certain it was right there, since I''ve used it. Maybe some upgrade removed it. Now I''ve recompiled the xen-tools package with the "qemu" USE flag active and the binary is present now. The Linux domUs start without any problem. Thank you so much for giving me the input to read how to submit a bug report, since I''ve solved the problem by myself. I hope this would be useful for other people. -- Flavio _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel