Bug 56071

Summary: VM can't be started on Kunpeng arm64 ubuntu server
Product: Branch p11 Reporter: hyzhang6639
Component: DCCAssignee: qa-team <qa-team>
Status: CLOSED FIXED QA Contact: qa-p11 <qa-p11>
Severity: blocker    
Priority: P5    
Version: unspecified   
Hardware: arm   
OS: Linux   
Attachments:
Description Flags
ATL Linux VM can't be started on Ubuntu 22.04 + Huawei Kunpeng 920 ARM64 CPU none

Description hyzhang6639 2025-09-19 17:19:00 MSK
Created attachment 19600 [details]
ATL Linux VM can't be started on Ubuntu 22.04 + Huawei Kunpeng 920 ARM64 CPU

I have an ubuntu 22.04 server based on Huawei Kunpeng 920 arm64 platform. But we failed to start an VM instance using KVM and the installation is hung on the boot stage. The screen snapshot is in the attachment. I also found the below link 

https://www.altlinux.org/Ports/aarch64/QEMU

I tried the solution in the above link and vm can be created using the below command:

sudo qemu-system-aarch64    -machine virt -cpu cortex-a57 -m 2048 -smp 4    -bios /opt/iso/alt-efi/QEMU_EFI-pflash.raw      -device virtio-scsi     -device scsi-hd,drive=sda    -drive if=none,id=sda,format=raw,file=/opt/iso/alt11-image.raw     -device scsi-hd,drive=sdb    -drive if=none,id=sdb,media=cdrom,file=/opt/iso/alt-server-11.0-aarch64.iso -device usb-ehci -device usb-kbd -device usb-mouse       -device virtio-net-device,netdev=net0 -netdev user,id=net0 -nographic -serial mon:stdio

After creating the VM, I run the command poweroff to shutdown the vm. Then the console became hung when to start the vm using the below command

qemu-system-aarch64 \
  -machine virt -cpu cortex-a57 -m 2048 \
  -drive file=/opt/iso/alt11-image.raw,format=raw \
  -nographic -serial mon:stdio

Please provide the suggestion how to start the ALT Linux vm on Ubuntu. In addition, do we have some libvirt solution, for example using the command "virt-install" to create vm.

Thanks a lot!
Comment 1 hyzhang6639 2025-09-20 07:12:30 MSK
I run the below command, slinux can be started from the image file:

virt-install   --name sl1-vm   --ram 4096   --vcpus 4 --machine virt   --disk path=/opt/iso/sl-11.0-aarch64.img,format=raw   --network network=default   --graphics spice   --boot loader=/opt/iso/alt-efi/QEMU_EFI-pflash.raw,loader_ro=yes,loader_type=pflash,nvram=/opt/iso/alt-efi/vars-template-pflash.raw   --os-variant detect=on   --import