Results 1 to 7 of 7
  1. #1
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default Xenserver 6.0 and Debian Lenny

    I'm in the process of migrating off ESXi 4.0 to Xenserver 6.0. Citrix's tools for moving my 2k8 VMs worked flawlessly in one go. The challenge oddly enough has been the Debian Lenny VM.

    Moving the VM from VMWare to Citrix can be done in two ways.

    1.) Use the XenConvert on the VMDK to import the VM
    2.) Use CloneZilla to image the original VM, make a new VM in Xenserver and image it back. (Clonezilla sees the hard disk as /dev/sda)

    I did both in two separate runs, the results were identical. So take your pick.

    Here's the fun part.

    VMWare with tools installed:
    Hard drive dev flag: /dev/sda
    CDRom Dev Flag: /dev/hda

    So, when you boot in Xen, the server can't find the kernel and the boot bails out. You can modify grub to point the hard disk at /dev/hda1 instead of /dev/sda1 and it will crank right up. A quick look in /dev reveals the dev flags for hard disk and cdrom are now:

    Hard Drive: /dev/hda
    CDRom: /dev/hdd

    This is where I get confused because CloneZilla saw /dev/sda, but the storage tab in XenCenter shows the drive's device path as /dev/hda. So after modifying /etc/fstab and /boot/grub/menu.lst to point at the appropriate dev flags, the VM boots properly.

    So then you think you're going to be brilliant and install the Xentools! Reboot... and you're back to square one. Xentools's installation script put menu.list back to /dev/sda1 and no such dev flag exists.

    Not only have the dev flags moved again, but apparently Citrix's Debian 5 specific installation script thinks they should be sda when they aren't. Mind you, the info in the storage tab in XenCenter still says /dev/hda

    Hard Drive: /dev/xvda
    CDRom: /dev/sr0

    Modify /etc/fstab and /boot/grub/menu.list again to point at the new dev flags and it will boot again with the paravirtual tools happy and working.

    Here's hoping that saves someone some time, it's been a few days of arguing to get this information out of this system. Overall I like Xenserver more than ESXi, it's two lines of instructions on my console to export a VM to a Samba share (eat that VMWare!). But the lack of a window to show a defined series of virtual hardware that you can customize makes Xen a little harder to use. The only things you can really add / remove from the VM's hardware are the NICs.

    Also, Xen emulates Realtek interfaces... and you all know how I feel about those!

    And before anyone asks, yes I have tried to get Xentools installed in Untangle. No, they will never work.

    Why? Untangle has a custom kernel, with some special stuff in it. Xen does the exact same thing to do what it does. So if you want Xentools you have to run a Xentools kernel.

    So unless there is a way to compile a kernel that has both Xentools customizations AND Untangle customizations at the same time, Xentools is a no go. VMWare's use of basic drivers in this case is a superior implementation IMHO. I haven't played with Hyper-V yet to see how that works, but I will soon.

    Fortunately, I don't see any real performance loss with my tests of Untangle operating within Xen without the tools installed. And since Untangle has very specific hardware requirements, I don't see much of an advantage to ever having them. VMWare was similar to be honest, VMTools are nice, but there is little benefit to having them in an Untangle VM beyond having the graphical environment let go of the mouse.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

  2. #2
    Untangle Junkie dmorris's Avatar
    Join Date
    Nov 2006
    Location
    San Mateo, CA
    Posts
    11,691

    Default

    Did you try the untangle+xen kernel?
    I dont know if it will work, but its worth a try...

    apt-cache show linux-image-2.6.26-2-untangle+xen-686
    Package: linux-image-2.6.26-2-untangle+xen-686
    Source: linux-2.6
    Version: 2.6.26-22untangle6
    Architecture: i386
    Maintainer: Debian Kernel Team <debian-kernel@lists.debian.org>
    Installed-Size: 1820
    Depends: linux-modules-2.6.26-2-untangle+xen-686 (= 2.6.26-22untangle6), initramfs-tools (>= 0.55)
    Recommends: libc6-i686
    Suggests: linux-doc-2.6.26, grub | lilo
    Conflicts: initramfs-tools (<< 0.55)
    Provides: linux-image, linux-image-2.6, linux-image-2.6-untangle, linux-image-2.6-untangle+xen, linux-image-2.6-untangle+xen-486, linux-image-2.6-untangle-686, linux-untangle, untangle-linux-image
    Priority: standard
    Section: admin
    Filename: pool/upstream/l/linux-2.6/linux-image-2.6.26-2-untangle+xen-686_2.6.26-22untangle6_i386.deb
    Size: 1776762
    SHA256: 2c6578789d6359ba3d08573fdc7c90bf4a77b866d86dc9a69a 722d5cb563f7e6
    SHA1: 50b177a21fc954c91c587ff6a91df411219c83ba
    MD5sum: ea5d90bb399b97fd8c6587d9d8f158f7
    Description: Linux 2.6.26 image on PPro/Celeron/PII/PIII/P4, Untangle kernel (with Xen)
    This package provides the binary image for Linux kernel 2.6.26 on Pentium
    Pro/Celeron/Pentium II/Pentium III/Pentium 4 machines.
    .
    Enables Untangle Virtual Networking. Intended for IP network gateways
    (with Xen).
    Attention: Support and help on the Untangle Forums is provided by volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  3. #3
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default

    I didn't, but that's worth a shot! Installing Untangle now.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

  4. #4
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default

    Double post, but what the heck.

    Installed a fresh Untangle 9.1.1 32bit.

    Hit up the console and did apt-cache search xen, saw some interesting stuff. I really should learn to play with apt first.

    apt-get install linux-image-2.6.26-2-untangle+xen-686

    It installs, updates grub, I rebooted the VM.

    lspci indicates no changes in the NIC driver used (I think this is normal)
    /etc/fstab is pointed at the /dev/hda drive expected.
    General tab in XenCenter reports tools aren't installed.

    If this kernel does something different beyond stock I'm not seeing it on the UI. If it's simply a network tweak it may allow for better network performance. I'll do some packet tests on it when I get a chance.

    It doesn't "break" the VM as far as I can tell, so there doesn't appear to be any harm done at least.

    Ok I take it back, the boot menu didn't default to the new kernel. When I manually selected the +xen kernel it reported "invalid executable format" or something similar... I need to reboot the VM to get the actual error message. I'm trying to boot Untangle with the Xentools kernel now by force just to see what it does.
    Last edited by sky-knight; 01-18-2012 at 10:42 PM.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

  5. #5
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default

    The error returned by the 2.6.26-2-untangle+xen-686 kernel is:

    Error 13: Invalid or Unsupported executable format

    The Xen kernel crashed with an fsck error.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

  6. #6
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default

    Forcibly starting Untangle with the Xentools supplied 2.6.32-5-686-bigmem kernel, breaks with an fsk error on /dev/hda5.

    The error is due to the same problem I was having with my other debian lenny VM, the dev flags for /dev/hda are gone. Manually editing /etc/fstab to point at the proper dev flags allows the VM to boot. However, while Xen is reporting the tools are present, the UVM never starts and on login you get the "service unavailable" error in the UI.

    Not to mention several nasty errors on boot referencing missing drivers. So as expected the non-Untangle custom kernel does bad things.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

  7. #7
    Untangle Ninja sky-knight's Avatar
    Join Date
    Apr 2008
    Location
    Phoenix, AZ
    Posts
    16,913

    Default

    Did the Xen kernel go away in 9.2?

    I just did an apt-cache search linux-image and all I see is linux-image-2.6.26-2-untangle-686 kernel.
    Rob Sandling, BS:SWE, MCP
    Intouch Technology
    Phone: 480-272-9889
    rob@intouchtechllc.com

    UntangleAppliances.com
    Phone: 866-794-8879

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2