this post was submitted on 06 Mar 2024
15 points (89.5% liked)

Linux

48338 readers
440 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I have a QCOW2 image (Homeassistant VM), that I ran for several months without problems.

A few days ago, I reinstalled the VM host,so I copied the image to a backup drive and now wanted to start a VM from this image.

However, it always end up hanging at "booting from hard disk" and takes up 100% load on one core.

On the VM host, I imported the image like this:

# copied from HAOS wiki
sudo virt-install --name hass --description "Home Assistant OS" --os-variant=generic --ram=2048 --vcpus=2 --disk /var/vm/hass.qcow2,bus=sata --import --graphics none 

To ensure that my host wasn't broken, I tried the same image on another machine, that I know can run VMs (virtual machine manager, using the GUI), but same result. One core at 100% and no change at all.

I even let it run over night, but it was still at this point.

One machine runs NixOS, the other Debian 12.

What could cause this? There are no errors in journalctl or /var/log/qemu.

you are viewing a single comment's thread
view the rest of the comments
[–] sailingbythelee@lemmy.world 2 points 8 months ago (2 children)

I have also had VMs that hang on boot-up while running a core at 100%. I use Proxmox as my host, and was always able to enter the console for the VM and observe it going through the boot sequence. When it hung as you have described, it was because of some error that I could correct in the console. So, maybe check if your host allows you to interact with the VM while it's booting.

[–] agressivelyPassive@feddit.de 1 points 8 months ago (1 children)

I already tried that using virtual machine manager, I can see the "bios screen" and the blinking cursor after "booting from disk", but that's it.

So there is nothing happening, at least vm manager doesn't even register any RAM usage, just one core at 100%.

[–] sailingbythelee@lemmy.world 1 points 8 months ago

That's frustrating. I'm no expert, but since there are no other responses and I've had my fair share of problems to solve, maybe check:

  1. Is Secure Boot disabled in your BIOS?
  2. Does your image have the right permissions? Give it chmod 777 and see if it boots.
  3. I think you said you re-installed your host OS. Try installing an older version to see if it will boot your image.