Results 1 to 3 of 3

Thread: Ubuntu Server 12.04 + Xen - Trouble with creating PV Guests

  1. #1
    Join Date
    Oct 2006

    Ubuntu Server 12.04 + Xen - Trouble with creating PV Guests


    I'm going nuts on this stuff. Been testing whole weekend without getting it to work.

    I can't create DomU's using PV and LVM setup. My testcomputer is old and doesn't support HVM, but I don't want to use that anyway.

    My setup is as follows:

    Install a clean Ubuntu Server 12.04

    Partitioning using LVM:
    /boot = ext2 @ 300MB
    / = ext4 @ 6GB
    swap = swap @ 1GB

    After installation, doing a dist upgrade > reboot.

    Then I install Xen using this guide:

    but I change amd64 to i386 as of my old CPU.

    I then want to install ubuntu server as ParaVirtualized guest.
    As kernel and ramdisk I've been using this mirror:

    But also tried others.

    I create a LV as told.

    My /etc/xen/ubuntu.cfg:
    name = "Merkurius"
    memory = 256
    disk = ['phy:/dev/Uranus/Merkurius,xvda,w']
    vif = [' ']
    #bootloader = "pygrub"
    kernel = "/var/lib/xen/images/ubuntu-netboot/vmlinuz"
    ramdisk = "/var/lib/xen/images/ubuntu-netboot/initrd.gz"
    extra = "debian-installer/exit/always_halt=true -- console=hvc0"
    I can install Ubuntu Server without issues. When complete I create a symlink to pygrub and change ubuntu.cfg as the guide says (# before kernel, ramdisk & extra and remove the # from bootloader)

    Then when I try to start it with
    sudo xm create /etc/xen/ubuntu.cfg -c
    it says:
    Using config file "/etc/xen/ubuntu.cfg".
    Error: (2, 'Invalid kernel', 'elf_xen_note_check: ERROR: Will only load images built for the generic loader or Linux images')
    I've been reinstalling everything tons of times testing.
    Searched around and a lot of people seems to have this problem, but I don't really find a solution? Most say it needs to be a kernel with xen support, but shouldn't ubuntu have this? And I use a mirror that is up-to-date.

    Testing different partitioning setups as well. Tested with XL toolstack. Same thing all the time.

    Thanks for your time,

  2. #2
    Join Date
    Oct 2006

    Re: Ubuntu Server 12.04 + Xen - Trouble with creating PV Guests


    I got my new computer parts today and built a new server which had 64bit CPU. I installed ubuntu server x64 and xen x64, and now it working perfect!

    I don't know if x86 of ubuntu/xen is bugged, or if you have to anything else outside the guide I've followed. Anyway it works!

  3. #3
    Join Date
    Dec 2012

    Re: Ubuntu Server 12.04 + Xen - Trouble with creating PV Guests

    Hi guys, I have the very same situation but cannot afford changing over to a 64 bit machine. Can someone point me to a solution using 32 bit kernel?

Tags for this Thread


Posting Permissions

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