+ Post New Thread
Results 1 to 15 of 15
Thin Client and Virtual Machines Thread, [XENSERVER] Just broken our Ubuntu VM running on XenServer in Technical; Doh! I have a Ubuntu Server running on one of my XenServers; has been happily for a couple of years ...
  1. #1

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    887
    Thank Post
    280
    Thanked 139 Times in 112 Posts
    Blog Entries
    27
    Rep Power
    42

    [XENSERVER] Just broken our Ubuntu VM running on XenServer

    Doh!

    I have a Ubuntu Server running on one of my XenServers; has been happily for a couple of years now. It's used for nothing critical, we use it to play with .php and webstuff, but I did have Limesurvey installed on it and we do currently have a survey running, anyways.....

    I just let the thing do a distribution upgrade and now it's broke. Thankfully I took a copy of all the SQL Databases and www directories before hand; should have done a snapshot first but never mind....

    Anyway, error occures on trying to start the VM. Along the lines of: Unable to find partition containing kernel

    Seems that a few peeps have had this issue, and using the Xen Console using xe-editbootloader with the -p 1 switch fixes it for most people, but I get the error: Unable to find a valid bootloader config file in:
    /boot/grub/menu.lst /grub/menu.lst

    Not sure what to do at this point! Help appreciated!

    Thanks

    Pete

  2. #2

    Join Date
    Apr 2007
    Location
    Birmingham
    Posts
    142
    Thank Post
    6
    Thanked 45 Times in 39 Posts
    Rep Power
    23
    I did the same thing today :/

    I used: xe-edit-bootloader -n "VMNAME" -p 1 and then was able to comment the submenu stuff out to get a booting system.

    I seem to remember reading that if -p 1 didn't work try -p 0 as potentially grub could be on either of these partitions, dependant on how it was installed.

  3. Thanks to andy_b from:

    FragglePete (12th November 2012)

  4. #3

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    887
    Thank Post
    280
    Thanked 139 Times in 112 Posts
    Blog Entries
    27
    Rep Power
    42
    Quote Originally Posted by andy_b View Post
    I did the same thing today :/

    I used: xe-edit-bootloader -n "VMNAME" -p 1 and then was able to comment the submenu stuff out to get a booting system.

    I seem to remember reading that if -p 1 didn't work try -p 0 as potentially grub could be on either of these partitions, dependant on how it was installed.
    Thanks for the reply, unfortunately no joy with that either; device /dev/xvda0 not found.

    It can't seem to find the menu.lst file so until I tell it where it is, I'm stuffed.

    Pete
    Last edited by FragglePete; 12th November 2012 at 04:29 PM.

  5. #4

    jinnantonnixx's Avatar
    Join Date
    Mar 2011
    Location
    In the Calamatorium.
    Posts
    1,991
    Thank Post
    114
    Thanked 507 Times in 342 Posts
    Blog Entries
    2
    Rep Power
    286
    You can rebuild grub with:
    sudo update-grub

  6. #5


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    Quote Originally Posted by FragglePete View Post
    It can't seem to find the menu.lst file so until I tell it where it is, I'm stuffed.
    The menu.lst is from a grub 1 boot loader and Ubuntu now uses grub2 so the menu.lst file doesn't exist.
    I'm still using grub1 (on redhat) so can't help much more than that. Some reading material here:
    https://help.ubuntu.com/community/Grub2
    GRUB 2 bootloader - Full tutorial

  7. Thanks to CyberNerd from:

    FragglePete (12th November 2012)

  8. #6

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    887
    Thank Post
    280
    Thanked 139 Times in 112 Posts
    Blog Entries
    27
    Rep Power
    42
    Quote Originally Posted by CyberNerd View Post
    The menu.lst is from a grub 1 boot loader and Ubuntu now uses grub2 so the menu.lst file doesn't exist.
    I'm still using grub1 (on redhat) so can't help much more than that. Some reading material here:
    https://help.ubuntu.com/community/Grub2
    GRUB 2 bootloader - Full tutorial
    Ah. Ok, now uses a /boot/grub/grub.cfg which I can get up on the Xen Console with xe-edit-bootloader... but, what to change... if anything. Sitting outside normal comfort zone now.

    Pete

  9. #7

    Join Date
    Apr 2007
    Location
    Birmingham
    Posts
    142
    Thank Post
    6
    Thanked 45 Times in 39 Posts
    Rep Power
    23
    I just commented out the whole submenu "Previous Linux versions" { ... } section in grub.cfg and it worked.

  10. #8

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    887
    Thank Post
    280
    Thanked 139 Times in 112 Posts
    Blog Entries
    27
    Rep Power
    42
    Quote Originally Posted by andy_b View Post
    I just commented out the whole submenu "Previous Linux versions" { ... } section in grub.cfg and it worked.
    Just tried that, no joy.

    Pete

  11. #9


    Join Date
    Oct 2006
    Posts
    3,413
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    149
    If you took a copy of www and sql then just provision a new server. That way it's a nice fresh clean install. IMO unless theres a specific reason not to I always build from fresh when something goes funny - you never know what else it lurking round the corner...
    Last edited by j17sparky; 12th November 2012 at 05:05 PM.

  12. #10

    SYNACK's Avatar
    Join Date
    Oct 2007
    Posts
    11,225
    Thank Post
    875
    Thanked 2,717 Times in 2,302 Posts
    Blog Entries
    11
    Rep Power
    780
    Can you actually see the files, I had many issues with Linux just dropping its filesystem and needing a full chkdsk type disk scan from the install cd to get it going again.

  13. #11

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    150
    build a fresh system and mount the old disks and shift the data over.

    Rob

  14. #12

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    887
    Thank Post
    280
    Thanked 139 Times in 112 Posts
    Blog Entries
    27
    Rep Power
    42
    Quote Originally Posted by j17sparky View Post
    If you took a copy of www and sql then just provision a new server. That way it's a nice fresh clean install. IMO unless theres a specific reason not to I always build from fresh when something goes funny - you never know what else it lurking round the corner...
    Yeah, it's an option which I'm geared up to do. It was just a bit of a pain getting Ubuntu working correctly on a XenServer in the first place but a nice fresh box always makes me feel warm and fuzzy inside.

    Pete

  15. #13

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    150
    I hate XEN when it comes to linux. Much prefer vMware..

    In fact I prefer vMware full stop, we have a mix of both though.

    Rob

  16. #14

    Join Date
    Feb 2008
    Location
    Wiltshire
    Posts
    887
    Thank Post
    280
    Thanked 139 Times in 112 Posts
    Blog Entries
    27
    Rep Power
    42
    Quote Originally Posted by twin--turbo View Post
    I hate XEN when it comes to linux. Much prefer vMware..

    In fact I prefer vMware full stop, we have a mix of both though.

    Rob
    It is a bit quirky when it comes to Linux it has to be said, which is odd being a *nix based system itself. Handles our Windows Servers nicely (have three hosts running a total of 12 VMs, all local storage). I guess its attraction for us it was free. I need to look at others though just to get myself up to speed.

    Pete

  17. #15

    twin--turbo's Avatar
    Join Date
    Jun 2012
    Location
    Carlisle
    Posts
    2,334
    Thank Post
    1
    Thanked 381 Times in 340 Posts
    Rep Power
    150
    Yes you would think XEN would handle Linux easily, it was the P2V and the "Tools" that kept giving me trouble.


    Just counted 53 Servers on Xen

    ESXi is free too although we have a mix of ESXi and ESX (we have a licence from a few years back) there's about 10 servers at present on them.

    Rob

SHARE:
+ Post New Thread

Similar Threads

  1. [Ubuntu] Ubuntu laptop running hot
    By mdench in forum *nix
    Replies: 7
    Last Post: 4th January 2012, 04:08 PM
  2. Replies: 0
    Last Post: 27th April 2011, 04:06 PM
  3. [HOWTO] Ubuntu Lucid 10.04 LTS on XenServer in PV mode
    By webman in forum Thin Client and Virtual Machines
    Replies: 4
    Last Post: 23rd February 2011, 05:36 PM
  4. Just broken my template on my live site. Can someone help please?
    By reggiep in forum EduGeek Joomla 1.5 Package
    Replies: 1
    Last Post: 5th August 2010, 05:52 PM
  5. Print Server VM hosted on Xenserver
    By wesleyw in forum Thin Client and Virtual Machines
    Replies: 4
    Last Post: 22nd October 2009, 10:33 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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