Jan Bakuwel
2011-Oct-11 04:58 UTC
[Xen-users] Debian 6/Squeeze with Xen 4.0.1 doesn''t work out of the box
Hi, Recently installed Debian Squeeze 64-bits on an older (Dell) server and installed xen-linux-system-2.6-xen-amd64 from the standard repositories. After a reboot, the Xen kernel is running. However, xend isn''t starting. Further inspection suggests that this might be caused by the fact that the xen_evtchn module cannot be loaded. Any suggestions? Jan # uname -a Linux camsvr11 2.6.32-5-xen-amd64 #1 SMP Fri Sep 9 22:23:19 UTC 2011 x86_64 GNU/Linux # modprobe xen-evtchn FATAL: Error inserting xen_evtchn (/lib/modules/2.6.32-5-xen-amd64/kernel/drivers/xen/xen-evtchn.ko): No such device # file /lib/modules/2.6.32-5-xen-amd64/kernel/drivers/xen/xen-evtchn.ko /lib/modules/2.6.32-5-xen-amd64/kernel/drivers/xen/xen-evtchn.ko: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped # lsmod | grep xen xenfs 9616 0 # dpkg --list | grep xen ii libxenstore3.0 4.0.1-2 Xenstore communications library for Xen ii linux-image-2.6.32-5-xen-amd64 2.6.32-35squeeze2 Linux 2.6.32 for 64-bit PCs, Xen dom0 support ii xen-hypervisor-4.0-amd64 4.0.1-2 The Xen Hypervisor on AMD64 ii xen-linux-system-2.6-xen-amd64 2.6.32+29 Xen system with Linux 2.6 for 64-bit PCs (meta-package) ii xen-linux-system-2.6.32-5-xen-amd64 2.6.32-35squeeze2 Xen system with Linux 2.6.32 on 64-bit PCs (meta-package) ii xen-utils-4.0 4.0.1-2 XEN administrative tools ii xen-utils-common 4.0.0-1 XEN administrative tools - common files ii xenstore-utils 4.0.1-2 Xenstore utilities for Xen _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com lists.xensource.com/xen-users
Joseph Glanville
2011-Oct-11 09:28 UTC
Re: [Xen-users] Debian 6/Squeeze with Xen 4.0.1 doesn''t work out of the box
Hi Jan, Are you booting via the correct grub entry? (Linux 2.6 with Xen 4.1) Also if you modprobe xen_evtchn can you start xend afterwards? Joseph. On 11 October 2011 15:58, Jan Bakuwel <jan.bakuwel@gmail.com> wrote:> Hi, > > Recently installed Debian Squeeze 64-bits on an older (Dell) server and > installed xen-linux-system-2.6-xen-amd64 from the standard repositories. > After a reboot, the Xen kernel is running. However, xend isn''t starting. > Further inspection suggests that this might be caused by the fact that > the xen_evtchn module cannot be loaded. > > Any suggestions? > > Jan > > # uname -a > Linux camsvr11 2.6.32-5-xen-amd64 #1 SMP Fri Sep 9 22:23:19 UTC 2011 > x86_64 GNU/Linux > # modprobe xen-evtchn > FATAL: Error inserting xen_evtchn > (/lib/modules/2.6.32-5-xen-amd64/kernel/drivers/xen/xen-evtchn.ko): No > such device > # file /lib/modules/2.6.32-5-xen-amd64/kernel/drivers/xen/xen-evtchn.ko > /lib/modules/2.6.32-5-xen-amd64/kernel/drivers/xen/xen-evtchn.ko: ELF > 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped > # lsmod | grep xen > xenfs 9616 0 > > # dpkg --list | grep xen > ii libxenstore3.0 4.0.1-2 > Xenstore communications library for Xen > ii linux-image-2.6.32-5-xen-amd64 2.6.32-35squeeze2 > Linux 2.6.32 for 64-bit PCs, Xen dom0 support > ii xen-hypervisor-4.0-amd64 4.0.1-2 The > Xen Hypervisor on AMD64 > ii xen-linux-system-2.6-xen-amd64 2.6.32+29 Xen > system with Linux 2.6 for 64-bit PCs (meta-package) > ii xen-linux-system-2.6.32-5-xen-amd64 2.6.32-35squeeze2 Xen > system with Linux 2.6.32 on 64-bit PCs (meta-package) > ii xen-utils-4.0 4.0.1-2 XEN > administrative tools > ii xen-utils-common 4.0.0-1 XEN > administrative tools - common files > ii xenstore-utils 4.0.1-2 > Xenstore utilities for Xen > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > lists.xensource.com/xen-users >-- * Founder | Director | VP Research Orion Virtualisation Solutions* | orionvm.com.au | Phone: 1300 56 99 52 | Mobile: 0428 754 846 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com lists.xensource.com/xen-users
Steve Allison
2011-Oct-11 12:30 UTC
Re: [Xen-users] Debian 6/Squeeze with Xen 4.0.1 doesn''t work out of the box
On 11/10/2011 09:17, Jan Bakuwel wrote:>>> # uname -a >>> Linux camsvr11 2.6.32-5-xen-amd64 #1 SMP Fri Sep 9 22:23:19 UTC 2011 >>> x86_64 GNU/Linux > > See above, uname -a shows that I''m indeed running the Xen kernel. > > Jan >uname -a doesn''t say if you are booting the with the Hypervisor. There is a distinct difference between running just the *-xen kernel and actually running the correct grub entry with the extra Xen 4.0 entry. Add the following to /etc/default/grub and then let the boot process select the correct entry: GRUB_DEFAULT=''Debian GNU/Linux, with Linux 2.6.32-5-xen-amd64 and XEN 4.0-amd64'' -- May the ping be with you .. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com lists.xensource.com/xen-users
Jan Bakuwel
2011-Oct-11 21:14 UTC
Re: [Xen-users] Debian 6/Squeeze with Xen 4.0.1 doesn''t work out of the box
Hi Steve, On 12/10/11 01:30, Steve Allison wrote:> On 11/10/2011 09:17, Jan Bakuwel wrote: >>>> # uname -a >>>> Linux camsvr11 2.6.32-5-xen-amd64 #1 SMP Fri Sep 9 22:23:19 UTC 2011 >>>> x86_64 GNU/Linux >> >> See above, uname -a shows that I''m indeed running the Xen kernel. >> >> Jan >> > > uname -a doesn''t say if you are booting the with the Hypervisor.Thanks for persisting with me. I don''t know why but my (un?)conscious mind insisted that the Debian package xen-linux-system-2.6-xen-amd64 would "naturally" put the right entries in the grub config (as it did) and in the right order (as it didn''t) so it would boot the hypervisor by default. All good now - thanks and apologies for having bothered you; should have double checked that myself. Jan _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com lists.xensource.com/xen-users
Paul Muster
2011-Oct-12 05:23 UTC
Re: [Xen-users] Debian 6/Squeeze with Xen 4.0.1 doesn''t work out of the box
On 11.10.2011 23:14, Jan Bakuwel wrote:> I don''t know why but my (un?)conscious mind insisted that the Debian > package xen-linux-system-2.6-xen-amd64 would "naturally" put the right > entries in the grub config (as it did) and in the right order (as it > didn''t) so it would boot the hypervisor by default.This behaviour is documented: debian.org/releases/squeeze/i386/release-notes/ch-information.en.html#xen-upgrades | If you installed Xen on lenny, the default kernel booted by GRUB | Legacy was the one providing a Xen hypervisor and dom0 support. | This behavior has changed with GRUB 2 in squeeze: the non-Xen | kernel will boot by default. wiki.debian.org/Xen#Dom0_.28host.29 | Debian Squeeze uses Grub 2 whose default is to list normal kernels | first, and only then list the Xen hypervisor and its kernels. with solution: | mv -i /etc/grub.d/10_linux /etc/grub.d/21_linux Paul _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com lists.xensource.com/xen-users