欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > IT业 > qemu虚拟机安装麒麟v10 arm版系统

qemu虚拟机安装麒麟v10 arm版系统

2024/10/24 21:20:28 来源:https://blog.csdn.net/mhbsoft/article/details/139460278  浏览:    关键词:qemu虚拟机安装麒麟v10 arm版系统

截止目前,安装v10 sp1版本系统,,v10 sp3系统无法安装。

1.// 创建虚拟机 最好大于65G
qemu-img create -f qcow2 D:\Kylin\Kylindisk.qcow2 70G
2.// 使用qemu-system-aarch64.exe命令安装麒麟操作系统:
qemu-system-aarch64.exe -m 8192 -cpu cortex-a72 -smp 8,sockets=4,cores=2 -M virt -bios D:\Kylin\QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=D:\Kylin\Kylindisk.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -drive if=none,file=D:\Kylin\Kylin-Server-10-SP1-Release-Build04-20200711-arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -net nic -net tap,ifname=tap1
3.// 使用qemu-system-aarch64命令启动kylin系统
qemu-system-aarch64.exe -m 8192 -cpu cortex-a72 -smp 8,sockets=4,cores=2 -M virt -bios D:\Kylin\QEMU_EFI.fd -device VGA -device nec-usb-xhci -device usb-mouse -device usb-kbd -drive if=none,file=D:\Kylin\Kylindisk.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -device virtio-scsi-device -net nic -net tap,ifname=tap1

启动与安装时间稍长,等待即可。有需要sp1版本的可留言或者私信,分享即可。

注意:-net nic -net tap,ifname=tap1 安装的时候可能会出现问题,那么可以后续再安装网卡。

主要参数说明如下:
qemu-system-aarch64.exe:QEMU的可执行文件,用于模拟ARM64架构的虚拟机。
-m 8192:指定虚拟机的内存大小为8192MB(8GB)。
-cpu cortex-a72:指定虚拟机使用Cortex-A72处理器。
-smp 8,sockets=4,cores=2:指定虚拟机的处理器拓扑结构,其中有8个处理器线程(线程数)、4个物理插槽(sockets)、每个物理插槽有2个核心(cores)。
-M virt:指定虚拟机的模拟器类型为virt。
-bios D:\qemuReady\QEMU_EFI.fd:指定虚拟机的BIOS文件路径,这里使用的是QEMU的EFI固件文件。
-device VGA:为虚拟机添加VGA设备,用于显示图形界面。
-device nec-usb-xhci:为虚拟机添加NEC USB控制器设备,用于支持USB设备。
-device usb-mouse:为虚拟机添加USB鼠标设备。
-device usb-kbd:为虚拟机添加USB键盘设备。
-drive if=none,file=D:\virtual-machines\qemu\kylinV10\kylindisk.qcow2,id=hd0:定义虚拟机的硬盘驱动器,使用的磁盘映像文件为D:\virtual-machines\qemu\kylinV10\kylindisk.qcow2,并将其标识为hd0。
-device virtio-blk-device,drive=hd0:为虚拟机添加VirtIO块设备,并将驱动器hd0连接到该设备。
-drive if=none,file=D:\qemuReady\Kylin-Server-10-SP2-aarch64-Release-Build09-20210524.iso,id=cdrom,media=cdrom:定义虚拟机的光驱设备,使用的光盘映像文件为D:\qemuReady\Kylin-Server-10-SP2-aarch64-Release-Build09-20210524.iso,并将其标识为cdrom。
-device virtio-scsi-device:为虚拟机添加VirtIO SCSI设备。
-device scsi-cd,drive=cdrom:将光驱设备cdrom连接到SCSI设备。
-net nic:为虚拟机添加网络适配器。
-net tap,ifname=tap0:将tap0作为虚拟机的网络接口。
:::
此时会启动一个图形界面。

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com