Qemu in loong64 does not boot Linux x86_64 ISO
MaxHeadroom
Hello again.
I'm trying to emulate some Linux ISOs with Qemu in my loong64, but it does not boot, not Debian or Archlinux.
It fails when it tries to load the initramfs image.
This the command I run:
qemu-system-x86_64 -display none -vnc :0 -m 4G -smp 2 -drive if=virtio,format=qcow2,file=/home/loongson/debian/debian12.qcow2 -boot d -cdrom /home/loongson/debian/debian-12.10.0-amd64-netinst.iso
orqemu-system-x86_64 -display none -vnc :0 -m 4G -smp 2 -drive if=virtio,format=qcow2,file=/home/loongson/debian/debian12.qcow2 -boot d -cdrom /home/loongson/debian/archlinux-2025.03.01-x86_64.iso
But it just loads the kernel image and I can see the CPU is used but never boots.
I Debian looks like it loads initrd.gz in expert mode, but nothing else.
-` loongson@loongson01
.o+` -------------------
`ooo/ OS: Arch Linux loongarch64
`+oooo: Host: Loongson-3A6000-HV-7A2000-1w-V0.1-EVB
`+oooooo: Kernel: 6.6.45-2-lts
-+oooooo+: Uptime: 26 mins
`/:-:++oooo+: Packages: 989 (pacman)
`/++++/+++++++: Shell: bash 5.2.32
`/++++++++++++++: Terminal: /dev/pts/1
`/+++ooooooooooooo/` CPU: Loongson-3A6000-HV (8)
./ooosssso++osssssso+` GPU: 00:06.1 Loongson Technology LLC Display Controller
.oossssso-````/ossssss+` Memory: 1077MiB / 16143MiB
-osssssso. :ssssssso.
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
Any ideas? someone managed to boot ISO images with qemu?
Thanks!
MaxHeadroom
Ubuntu server just gives a kernel panic:
杀毒软件吧
Maybe you should try this:
https://github.com/lat-opensource/lat
LATX (Loongson Architecture Translator for x86) is a high-performance user-level binary translator designed specifically for the LoongArch architecture, enabling efficient execution of x86 applications on Loongson-based systems.
Built upon QEMU 6 with substantial optimizations, LATX significantly outperforms the original QEMU implementation.
The project leverages LoongArch's advanced instruction set extensions (such as vector extensions and binary translation instructions) to achieve high-efficiency translation of x86 instructions. Key optimizations include AOT (Ahead-of-Time) compilation and runtime library pass-through, with the latter partially inspired by and referencing source code from the box64 project.
driver1998
lat-opensource/lat is not a system emulator, but an user mode emulator.
LATX extended QEMU system emulator is named LATX-SYS, which is not open source (yet, hopefully).
driver1998
Try limiting the VM to 1 core (remove -smp
).
杀毒软件吧
There is still have another way to run debian x86 enviromnent
What is Amber-CE? https://gitee.com/amber-ce
ACE x86 is based on LATX,it can run debian x86 in any other linux system. but it still have some Bug.
By the way,do U have any interest to join our QQ group? Just looks like a TG group.
QQ:922566903
MaxHeadroom
I do not use Telegram or Whatsapp or Rednote or Wechat… I just have my own xmpp server.
As I can see QQ is: Tencent QQ is an instant messaging software platform at the heart of China’s social networking scene.
Sorry, no way I install and use any of this kind of apps
MaxHeadroom
Thanks to all, I will try without SMP.
And i have LAT installed but I do not know well how it works.
MaxHeadroom
Hi again
With or without -smp makes no difference
杀毒软件吧
MaxHeadroom Okay.
MaxHeadroom
Amber CE looks nice, but it won't install:
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file http://lauosc.cn:11232/debian/dists/sid/Release
==> ERROR: A failure occurred in package().
I tried a few times, but I have not access to that site, not even to the IP, 111.2.76.236.
杀毒软件吧
MaxHeadroom Shenmo says maybe the LATX has some bugs.
杀毒软件吧
MaxHeadroom Could you install the Spark-Store?
https://gitee.com/spark-store-project/spark-store/releases/tag/4.5.2
After install,you just need to search this APP,click a button,and wait until ACE x86 finished installation.
shenmo
MaxHeadroom lauosc source is down. ACE x86 use amd64 source, you should not try anything related to loong64. There might be some misunderstand during your attempt.
Use this package please. You can extract it to see the launch script. It's purely bash and licensed under GPLV3
https://share.spark-app.store/index.php?share/folder&user=1&sid=GnktisUQ
杀毒软件吧
杀毒软件吧 Oh I misunderstand.You are using Arch Linux.
archlinux 发布了新的 iso: https://mirrors.pku.edu.cn/loongarch-lcpu/archlinux/iso/2025.04.01/
shenmo
AmberCE is a series of utilities aimed to launch super light-weight distro container via bwrap. With directory bind and binfmt, it's possible to launch amd64 distro rootfs with qemu/latx.
ACE x86 is an example. Download link is posted above
杀毒软件吧
MaxHeadroom
Thanks to all
I will check those links when I have some free time and I will come back to give some feedback.
Anyway, anyone has some idea why Qemu does not work with x86_64 Linux ISOs?
MaxHeadroom
I'm back.
Finally I fixed the package system after changing to LCPU servers.
Will try now to install Amber CE
MaxHeadroom
Qemu works now with the new packages. Very slow, but it works 🙂
I think this thread can be closed
Thanks to all