BLOG
21 February 2026

Troubleshooting Qemu VM

TTTThis

When booting, it suddenly just goes to (initramfs). NOTE this will reset the VM ie you lose everything on it. I didn't research yet a way to just recover without losing data.

  1. type blkid ... and look for something that has ext4 (ie looks like a filesystem)
  2. fsck /dev/sda1 -y (modify this for your disk path ... this should check and fix the corrupt partition
  3. reboot -f

...

When transferring from another computer, It says you are in emergency mode. .. journalctl -xb to view system logs... ... Press Enter to contimuie. This is probably because it is looking for a shared folder, which has changed.

You need to edit the boot instructions in the GRUB menu (the black screen with text that appears for a few seconds when you first start the VM).

Then

NewerMX OlderBlog page