想问下,用qemu命令行安装完成之后,启动的命令是啥?从百度龙芯吧 磨牙大辉郎
关于 qemu,不支持从 usb cdrom 启动,而 debian iso 的启动 kernel 不支持 scsi cdrom。为了满足双方需求,需要挂载两次 iso,指令如下,供参考:
qemu-system-loongarch64 \
-boot order=d \
-drive file=debian-12.0.0-loong64-NETINST-1.iso,media=cdrom,readonly=on,if=none,id=cdrom1 \
-drive file=debian-12.0.0-loong64-NETINST-1.iso,media=cdrom,readonly=on,if=none,id=cdrom2 \
-drive file=debian.qcow2,media=disk,format=qcow2,if=none,id=disk1 \
-device virtio-scsi-pci,id=scsi \
-device scsi-hd,drive=disk1 \
-device scsi-cd,drive=cdrom1 \
-m 4G \
-accel kvm \
-device VGA \
-bios /usr/share/edk2/loongarch64/QEMU_EFI.fd \
-device qemu-xhci,id=xhci \
-device usb-ehci,id=ehci2 \
-device usb-uas,id=uas,bus=xhci.0 \
-device scsi-cd,bus=uas.0,scsi-id=0,lun=5,drive=cdrom2 \
-device usb-kbd,bus=ehci2.0 \
-device usb-mouse,bus=ehci2.0