How to install & configure Xen Virtualization in openSUSE 11.0

67 Comments

  1. Hmm, it’s not so easy if the hardware is not fully supported by Xen. I have ACER AMD64 dual core and yet I wasn’t able to successfully build a single virtual system on it using Xen (no problems with VMware or Virtual Box).

    I had numerous issues booting to Xen kernel (for example with USB storage) and once booted, the only option available was paravirtualization and full virtualization wasn’t an option.

    All and all, I would venture out and say that Xen is not fully mature yet for the big time, even though, some try to push and make you want to believe it is so.

  2. @Bolek: its even easier than this if you install it from the beginning 🙂 I have several xen guests all paravirtualized that didn’t take that much effort to get up and running. XEN has worked great for me on my servers. Almost 100% uptime since I installed them.

    6:20pm up 246 days 18:11, 1 user, load average: 0.13, 0.05, 0.01

    I think its ready, at least for my purposes. I’m not saying that your average joe can do it with just click buttons and checking checkboxes. At the same time, I don’t believe that it necessarily should be that way. Would you hire an average joe to setup and maintain an enterprise data center? I should clarify that i don’t really view xen as a desktop solution.

  3. I have heard the “average Joe” argument many times. However, knowing current trend in IT industry it no longer holds water. Unless you have tools to easily configure guests, reconfigure them, migrate and so on, it will be always on the fringes of enterprise deployment. It goes nowhere near the ease of use when you compare it to VMware. And I am not advocating for one or the other. I merely point out the obvious. Part of growing is the recognition of strengths and weaknesses. Management of Xen is still its Achilles heel (providing you are lucky enough to make it work).

    What might work for you, might not work in the enterprise. Again, I hope you read my comment about Xen kernel having problems with off the shelve hardware. It’s not an ‘average’ Joe issue. That was my point.

    I am glad that it is working for you, but this is not the argument nor the criteria that makes it ready for everyone else.

  4. I’ve followed all the steps outlined but when i click ok after selecting the OS (OpenSuSE 11), i get an alert that there’s not enough memory. What to do?

  5. Author

    I think you should check the space on your /var FS

  6. If I have the Nvidia and atl2 driver modules configured (as installed via Yast), how easily can I create a Xen kernel with both Nvidia and atl2 modules?
    Is there a shortcut, or I will have to do it the manual (hard :)) way?

  7. I used the same process described above and tried to configure a winxp guest OS with the option “I have a disk or disk image with an installed OS”. Basically my pc is a dual-boot system with opensuse installed on one drive (/dev/sdb) and winxp installed on another drive (/dev/sda). On opensuse the winxp partition (NTFS) is mounted on /mnt/windows. So, in the virtualization “Disks” option, I specified “file:/mnt/windows” and clicked ok. This totally destroyed the winxp partition. Now my pc just does not boot from winxp. On top of that the winxp drive can’t even be mounted as a data drive become the filesystem itself is damaged. Why has opensuse released such a buggy tool that can end up destroying the user’s windows OS?

    Destroyed windows partition

  8. hi all,

    i used exactly the same process described above, but when i apply :
    ” the installation source is unusable
    /boot/i386/vmlinuz-xen
    /boot/i586/vmlinuz-xen
    /INDEX.gz”

    I’m using the same iso that i’ve used for installing my suse

    thank you

  9. Author

    Are you mounting an DVD or a CD ISO image? Is it a 64bit or a 32bit OS iso?

  10. hi,

    i’m mounting a cd 32bits os iso image.

    thx again.

  11. Hello,

    Is opensuse 11 support paravirtualisation?

    also, I try to run Opensuse 11 on SLES 10sp1 but I don’t have the right os type choice…
    ( I only see opensuse, not opensuse 11)

    How could I Update the list?

    Thanks!

  12. Hello,

    I did everything written above but when; Quote [ Reboot your PC and select “Xen — openSUSE 11.0 – 2.6.25.11-0.1″. This will boot openSUSE with the modified kernel which supports Xen virtualization and everything else loads normally.] End quote
    I didn’t load normally but hangs in the nongraphical mode (textmode) in runlevel 5. I can’t do anything from here. Does anyone know a solution??
    Thanks.

  13. Author

    may sound stupid, but do u have ur network cable connected to ur NIC …


  14. Xen and nVidia do NOT MIX.

    Fix Xen for nVIDIA use

  15. I have the same problem with Xen and nVidia drivers on openSUSE 11 x64(booting with Xen kernel leaving me in console mode with low resolution).

    Did anybody know a working alternative for Xen?
    I have tried VirtualBOX but it didn’t work(I can only create a virtual hard drive, but it want to load a module that can’t be loaded).

    Regards

  16. I get the same as rob, grub option sends me to cli login – what’s going on?

  17. After Installation of XEN and Reboot my PC and select “Xen — openSUSE 11.0 – 2.6.25.11-0.1″I am in command mode but not in KDE 4 menu. How can I swap to KDE 4 menu?

  18. @HS you probobly have nVidia drivers installed on your machine… Try to change name NVidia to nv in xorg.conf file. it might help, but you will lose 3d acceleration.

  19. Thanks Ravi, Xen now boots into KDE

  20. Thanks Ravii. But in which folder can I find xorg.conf?

  21. I’m glad that it helps. Could you tell me please, do you have acceleration now(I’ve tried to change nVidia to nv some time ago)?
    Btw. I’m running now on virtualBOX it’s stable like Xen.

    Regards

  22. Author

    @HS its /etc/X11/xorg.conf

  23. Ravii, 3d acceleration not available for me when I replace nvidia with nv. I may try virtual box but i kept getting the kernal not found error running the setup

  24. The installation was great and it runs but!!!! I reboot and I have to start all over and rebuild my guest machines again. Granted I can use the hard drive file to rebuild but is there a way to just restart the virtual machines?

    I have SuSE 11.0 running with 4 Gig of ram in a software RAID on an ASUS board M2N-LR


  25. I just installed OpenSuse 11 on my pc.

    It installs just fine. I have a Foxconn 780G mobo, AMD X25000+ with 4G ram. The OS is installed over 2 250G SATA drives in raid 1 (boot, root and swap have their own raid 1 devices). I had just a plain VESA 1024×768 at 16bit color. No AMD Catalyst Drivers installed. Booted up perfectly and I had installed the virtialization with the OS.

    Upon installing the hypervisor and rebooting into the Xen Kernel I too am dropping into the CLI after the X server fails to start. I am not using any aftermarket X drivers for display its set for VESA at 1024×768. I will install it on my HP Proliant server at work with an intel chipset this week to see if that works.

    This really sucks because I can get Xen 3.2 working fine in Ubuntu 8.04 Server but VNC doesn’t work well at all to install windows 2k3 and the X windows needs a generic, non server/xen, kernel. OpenSuse 11 works wonders for GUI but I can’t get Xen to work.

    Bah I say.

  26. @DC-K, I have also that error, but you must do(as a root):
    1) go to: /etc/init.d/ and run: vboxdrv setup
    2) modprobe vboxdrv(after every reboot;( )
    3) add users to vbox users group
    4) run virtualBox.
    Now it will work fine(but I don’t know how to run it whitout doing modprobe vboxdrv). Now on my laptop(c2d 2GHz, 2GB RAM, GF8600) I have running on OpenSUSE 11(as a host), Windows Xp, Windows Server 2008 as a guest systems, it’s works great and You don’t loose 3d acceleration on openSUSE.

    Regards

  27. thanks again Ravii, I’ll give it a go

    D

  28. 2) modprobe vboxdrv(after every reboot;( )

    -yast > system > system services(runlevel)
    -tick “expert mode”
    -wait a while so the services status can get refreshed, scroll down and click on “vboxdrv”
    -at the bottom, tick “2”, “3” and “5” (starts vboxdrv in runlevels 2 / 3 / 5)
    -click finish

    done!

  29. Thanks Will, I’ll need to try this

    Regards

  30. Getting Opensuse 11 up and running was no problem. But, when I install Xen and boot with the xen kernel (2.6.25.16-0.1-xen) the network connection is lost. Booting with the normal kernel everything works fine. People are having similar network problems with the Xen kernel in Ubuntu 8.04.

    Any ideas? Is there a problem in this specific version of the kernel? How can I try out different xen kernel versions?

  31. Found asolution to my own problem. the OS was resetting my DNS addresses in /etc/resolv.conf. Added the immutable attribute to this file to prevent it from being overwritten.

  32. I have the same problem like Peter. which attribute can make DNS addresses immutable?
    In /etc/resolv.conf I have correct DNS addresses!

  33. @HS: sudo chattr +i /etc/resolv.conf

    After I did this, the DNS settings were intact even after reboot.

  34. you mean after DNS addresses I have to write +i ?

  35. @HS: No, you make the whole resolv.conf file immutable. Type it on the command line. Please note that this means that you have to set correct DNS IP-addresses in resolv.conf first. And, if you want to change DNS servers you have to edit this file manually from now on.

  36. thank you Peter. I will try it.

  37. I tried, but I have no connection to internet. Server is directly connected to the router (DSL).

  38. Ok, I got Xen up and running as well and created three VM:s (all Opensuse 11). However, the server becomes very unstable after a while and will lock up completely after an hour or so although there is no activity on the VM:s. I decided to try the free VMWare server and was up and running in under an hour. It has been stable for 24 hours now.

  39. I tried a new setup, openSuse 11.0, Linux 2.6.25.5-1.1-xen i686, kde 4.0.4 on a Pentium4, 2.8GHz,
    I installed the Hypervisor and Tools from YaST and tried to setup a new virtual machine with:

    Type: other
    Initial Mem: 256
    Max Mem: 16384
    Virt Proz: 1

    Graphics: Papavirtualized Graphics Adapter

    Disks:
    1: 0.7 GB CD-ROM (file:/home/alex/ubuntu 8.10 i386.iso)
    2: 4.0 GB Hard Disk (file:/var/lib/xen/images/Ubuntu/disk0

    Network Adapters:
    1: Paravirt. : Random MAC

    So, all very much default and according to the above HowTo….

    Click OK: Error: The installationsource is unusable, Details: 0.7 GB CD-ROM (file:/home/alex/ubuntu 8.10 i386.iso)

    If I insert this burned on CD at least it comes to the boot-screen, so what I am doing wrong???? Is this setup out of the box not working with other linux-images?

    Has anyone an idea, what stupid mistake I did or what I have to do to get that running. It’s already frustrating to see on various HowTo’s how easy it is to get VM’s running and I am always unlucky getting non-commented error-messages in the very beginning….

    Thank’s for any hint,

    Alex

  40. I’m trying to install a first guest into Xen, my server is a openSuse11 and the is a redhat, when I finished the configuration and click OK, the CDRom starts and this message appears:

    [Errono 2] No such file or directory: ‘/tmp/tmpXXXXXX/images/xen/vmlinuz”, where XXXXXX is not the same, if I click in OK again.

    Thanks,

    Jeferson

  41. Hey I have the Rob bug,

    I did everything written above but when; Quote [ Reboot your PC and select “Xen — openSUSE 11.0 – 2.6.25.11-0.1″. This will boot openSUSE with the modified kernel which supports Xen virtualization and everything else loads normally.] End quote
    I didn’t load normally but hangs in the nongraphical mode (textmode) in runlevel 5.

    I like opensuse 11.0. After reading the above feedback and all the problems you techs and admins have I think me “a regular joe” is going to stay with the seperate hdd booting of my favorite Windows and OpenSuse 11.0 is the way to go, the effortless pushing of the f-8 key is not as bad as driving my fist through the monitor. I would like to add that OpenSuse is probably the best user friendly linux gui OS out there. V is for Vmware tbh 😉

  42. hey everyone! im kinda new to openSUSE and im stuck at black welcome to openSUSE11.0 screen with login prompt, i tried to login but never works when booting into xen. did i do something wrong or just type the wrong password like 15 times???

  43. Well I managed to get it all working (thanks for the tip about Nvidia!) only to find out that my Athlon 1700 won’t support the virtualization mode for Windows. Sigh.

    I am looking for a way to support those nasyt Windows apps that won’t work under Wine or Mono. There are not many of them but the few I have are essential, e.g. Quickbooks.

    So far the free VMware tools look like the way to go, they do run on ALL of my machines!

  44. I have a problem with this Xen virtualization. Yes I am new to this whole Linux experience, but I am learning very fast. I have one problem with the Xen setup. When I reboot my machine in Xen it only takes me to a prompt and not to the logon screen. Why is this happening and can anybody help me with this.

  45. I have the same problem as Roger – Xen doesn’t recognize the monitor I have and so the X session doesn’t start. Any solutions?

  46. Hey, after installing xen and rebooting in GRUB to the Xen option. I have no graphical user interface, just a command prompt, and do not know how to create VM’s and such with only the command prompt. Is this because I am using an ATI card?

    Any help would be appreciated

    Thanks

    Abe

Leave a Reply

Your email address will not be published. Required fields are marked *