Results 1 to 8 of 8

Thread: unable to boot system after starting a QEMU-KVM virtual machine

  1. #1

    Question unable to boot system after starting a QEMU-KVM virtual machine

    I have a weird problem with QEMU-KVM that I had never had be four.

    So I have a HP ProLiant server that runs OpenSUSE tumbleweed. The server runs QEMU-KVM as a virtual server. The server can make virtual machines and run them perfectly (remotely made with virt-manager). However, once virtual machines are ruing, and the host server is rebooted, a device /dev/disk-by-id** (I don't remember the details, but I don't want to recreate the problem and half to reinstall everything) hang the entire system by 90 seconds and puts the system in rescue mode.

    When no virtual machines are even made on the system, the server can be rebooted flawlessly a million times and not have any errors. But when one virtual machine is made and the server goes down and back up however, the system only boots to rescue mode. The only theory I have that it would be the RAID controller becasue the device that holds the system from booting is /dev/disk-by-id** with a really long name and hard to remember. And the whole OS is installed on a RAID controller. There are only three partitions, the root (/) as EXT4, a swap partition, and a btrfs home partition (/home).

    And like I said, the issue only occurs when QEMU-KVM is active with a virtual machine. So any help with this issue will help because I had researched the issue and had not come up with what I needed.

    And BTW: the HP server has the issue, but i have a dell server that is setup exactly the same way and the dell server boot fine with no issues either. So maybe its a miss configuration?
    Last edited by Weezle; 11-Apr-2018 at 20:56. Reason: Added a side note

  2. #2
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,287

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    What guest do you run???

    Maybe a bad setting in /etc/fstab of the guest if Linux.

  3. #3

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    Quote Originally Posted by gogalthorp View Post
    What guest do you run???

    Maybe a bad setting in /etc/fstab of the guest if Linux.
    The Guest VMs are windows server 2008 R2/ 2012R2/ and 2016 with a Xubuntu running a server.
    The unfortunate issue I have is that the server running Open SUSE wont boot on a reboot or shutdown when virtual machines are made or active.

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,287

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    Well dev/disk-by-id** error indicates that some where a Linux OS is looking for a partition that may no longer be available. SO check ALL /etc/fstabs being used.. Best to try and capture the exact error since we can not look over your shoulder.

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    Need more info,

    A Guest causing a HostOS problem like unable to boot is highly unusual. Is your Guest configured to start on boot? If so, then you might take a look at timing... Whether the Guest is launching before all dependencies are met, particular mount points.

    Speaking of mount points,
    As Gogalthorp describes, perhaps the most common cause of any system not booting the way you describe is a broken mount point. You should consider everything related to mount points, including the suggestion to inspect the fstab file. Especially in Enterprise setups, mount points might point to different physical disks for performance, isolation and management purposes. If for instance you're deploying an OpenStack or similar, you might also be launching instances from a common image but storing machine-specific differences in a different volume.

    And,
    Keep in mind that the fstab is only a starting point. It's the most common place to describe mounts during system boot, but Linux today supports numerous ways to mount, and in every case you need to make sure that dependencies (like a subsystem, network functionality, etc) are met.

    Aside from understanding and analyzing your virtualization and physical setup from a management perspective, as always you should also start collecting concrete information about your error. Nowadays in openSUSE, that begins and might end with inspecting your bootlog. The following is an example that displays the bootlog from the previous boot, and displays it in reverse order (last entry first)
    Code:
    journalctl -rb -1
    HTH,
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    Ok, here is what I have

    So with having two servers that function the same, the Dell server that uses QEMU on RAID dose not have a
    Code:
    resume=/dev/disk-by..
    line on the kernel parameters in yast boot loader tool. But the server that has boot issues has a resume line to the parameters.

    The second one I have is the fstab. The original fstab uses UUID in the boot options as follow
    Code:
    UUID=e678ece9-1ce9-4439-956c-b681366d1941  /      ext4   acl,user_xattr  0  0
    UUID=803cad09-86b4-4986-8190-1257568d14c9  /home  btrfs  defaults        0  0
    # UUID=DC7E24F67E24CB5A                    /disk  ntfs   defaults        0  0
    UUID=96e95a65-a914-479e-b92c-4526648375d1  swap   swap   defaults        0  0
    As I edit the file (and made a backup be four hand)
    Code:
    /dev/sda1  /      ext4   acl,user_xattr  0  0
    /dev/sda3  /home  btrfs  defaults        0  0
    # UUID=DC7E24F67E24CB5A                    /disk  ntfs   defaults        0  0
    /dev/sda2  swap   swap   defaults        0  0
    In addition too, the server I have at home boots guest virtual machines when the system starts.
    Last edited by Weezle; 19-Apr-2018 at 10:15. Reason: typo

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    This means that you somehow changed the mounting settings, or that some program/script changed the fstab. Both versuins should work, if they're from the same machine/hardware
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    13,295
    Blog Entries
    2

    Default Re: unable to boot system after starting a QEMU-KVM virtual machine

    What has been posted might only be partial information.

    What is/are the physical subsystems of the machine? eg. Are all the drives internal SATA? Any RAID arrays and if so are there more than one? A combination of drive sub-systems, perhaps? Are there any iSCSI, SAN or network shares, or other remote/external drive sub-systems?

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Posting Permissions

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