ubuntu x86_64系统上安装运行aarch系统的虚拟机

embedded/2024/12/22 2:22:19/

安装qemu-system-aarch64
创建sda.qcow2 虚拟磁盘
运行命令启动虚拟机

sudo qemu-system-aarch64 -M virt-4.0 -m 4G -cpu cortex-a57  -bios /usr/share/qemu-efi-aarch64/QEMU_EFI.fd -cdrom ~/下载/openEuler-24.03-LTS-aarch64-dvd.iso -drive if=none,file=sda.qcow2,id=hd0 -device virtio-blk-device,drive=hd0

在系统启动入口按 ‘e’,修改启动参数,删除console=tty0,这一步是为了让虚拟机进入到字符安装界面,不删除的话,默认进图形化安装界面,而apt 下载安装的qemu-system-aarch64不支持图形化
ctrl + x 继续安装
等待字符安装界面
如图输入3选择安装源
待除了8以外,其他项都是 [x],以后,配置完成,输入:b 启动安装
在这里插入图片描述

可参考文章:https://www.yjlink.cc/?id=2465

安装过程截图
在这里插入图片描述

Starting installer, one moment...
anaconda 36.16.5-34.oe2403 for openEuler 24.03-LTS started.* installation log files are stored in /tmp during the installation* shell is available on TTY2 and in second TMUX pane (ctrl+b, then press 2)* when reporting a bug add logs from /tmp as separate text/plain attachments
08:35:34 Not asking for VNC because we don't have a networkX or window manager startup failed, falling back to text mode.
================================================================================
================================================================================
Installation1) [x] Language settings                 2) [x] Time settings(English (United States))                (Asia/Shanghai timezone)
3) [!] Installation source               4) [!] Software selection(Processing...)                          (Processing...)
5) [!] Installation Destination          6) [x] Network configuration(Processing...)                          (Unknown)
7) [!] Root password                     8) [!] User creation(Root account is disabled)               (No user will be created)Please make a selection from the above ['b' to begin installation, 'q' to quit,
'r' to refresh]: 3
================================================================================
================================================================================
Installation sourceChoose an installation source type.
1) CD/DVD
2) local ISO file
3) NetworkPlease make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: 
1
================================================================================
================================================================================
Installation1) [x] Language settings                 2) [x] Time settings(English (United States))                (Asia/Shanghai timezone)
3) [!] Installation source               4) [!] Software selection(Processing...)                          (Processing...)
5) [!] Installation Destination          6) [x] Network configuration(Automatic partitioning                  (Unknown)selected)
7) [!] Root password                     8) [!] User creation(Root account is disabled)               (No user will be created)Please make a selection from the above ['b' to begin installation, 'q' to quit,
'r' to refresh]: 4
================================================================================
================================================================================
Software selectionBase environment1) [x] Minimal Install                  3) [ ] Virtualization Host
2) [ ] ServerPlease make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: c
================================================================================
================================================================================
Software selectionAdditional software for selected environment1) [ ] Container Management             6) [ ] Scientific Support
2) [ ] Development Tools                7) [ ] Security Tools
3) [ ] Headless Management              8) [ ] Standard
4) [ ] Legacy UNIX Compatibility        9) [ ] System Tools
5) [ ] Network ServersPlease make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: c
================================================================================
================================================================================
Installation1) [x] Language settings                 2) [x] Time settings(English (United States))                (Asia/Shanghai timezone)
3) [!] Installation source               4) [!] Software selection(Processing...)                          (Processing...)
5) [!] Installation Destination          6) [x] Network configuration(Automatic partitioning                  (Unknown)selected)
7) [!] Root password                     8) [!] User creation(Root account is disabled)               (No user will be created)Please make a selection from the above ['b' to begin installation, 'q' to quit,
'r' to refresh]: 
7
================================================================================
================================================================================
Root password1) [ ] SM3 encryptPlease make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: c
================================================================================
================================================================================
Root passwordPlease select new root password. You will have to type it twice.Password: 
Password (confirm): 
================================================================================
================================================================================
Installation1) [x] Language settings                 2) [x] Time settings(English (United States))                (Asia/Shanghai timezone)
3) [x] Installation source               4) [x] Software selection(Local media)                            (Minimal Install)
5) [!] Installation Destination          6) [x] Network configuration(Automatic partitioning                  (Unknown)selected)
7) [x] Root password                     8) [ ] User creation(Root password is set)                   (No user will be created)Please make a selection from the above ['b' to begin installation, 'q' to quit,
'r' to refresh]: 5
Probing storage...
================================================================================
================================================================================
Installation Destination1) [x] DISK: 1024 GiB (vdb)1 disk selected; 1024 GiB capacity; 1024 GiB freePlease make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: 1
================================================================================
================================================================================
Installation Destination1) [ ] DISK: 1024 GiB (vdb)No disks selected; please select at least one disk to install to.Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: 1
================================================================================
================================================================================
Installation Destination1) [x] DISK: 1024 GiB (vdb)1 disk selected; 1024 GiB capacity; 1024 GiB freePlease make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: c
================================================================================
================================================================================
Partitioning Options1) [ ] Replace Existing Linux system(s)
2) [x] Use All Space
3) [ ] Use Free Space
4) [ ] Manually assign mount pointsInstallation requires partitioning of your hard drive. Select what space to use
for the install target or manually assign mount points.Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: 2
================================================================================
================================================================================
Partitioning Options1) [ ] Replace Existing Linux system(s)
2) [x] Use All Space
3) [ ] Use Free Space
4) [ ] Manually assign mount pointsInstallation requires partitioning of your hard drive. Select what space to use
for the install target or manually assign mount points.Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: c
================================================================================
================================================================================
Partition Scheme Options1) [ ] Standard Partition
2) [ ] Btrfs
3) [x] LVM
4) [ ] LVM Thin ProvisioningSelect a partition scheme configuration.Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: 1
================================================================================
================================================================================
Partition Scheme Options1) [x] Standard Partition
2) [ ] Btrfs
3) [ ] LVM
4) [ ] LVM Thin ProvisioningSelect a partition scheme configuration.Please make a selection from the above ['c' to continue, 'q' to quit, 'r' to
refresh]: c
Saving storage configuration...
Checking storage configuration...================================================================================
================================================================================
Installation1) [x] Language settings                 2) [x] Time settings(English (United States))                (Asia/Shanghai timezone)
3) [x] Installation source               4) [x] Software selection(Local media)                            (Minimal Install)
5) [x] Installation Destination          6) [x] Network configuration(Automatic partitioning                  (Unknown)selected)
7) [x] Root password                     8) [ ] User creation(Root password is set)                   (No user will be created)Please make a selection from the above ['b' to begin installation, 'q' to quit,
'r' to refresh]: b
================================================================================
================================================================================
Progress.
Setting up the installation environment
.
Configuring storage
Creating disklabel on /dev/vdb
Creating swap on /dev/vdb3
Creating ext4 on /dev/vdb5
Creating ext4 on /dev/vdb4
Creating ext4 on /dev/vdb2
Creating efi on /dev/vdb1
...
Running pre-installation scripts
.
Running pre-installation tasks
...
Installing.

http://www.ppmy.cn/embedded/99564.html

相关文章

C++的模板简介

文章目录 一、前言二、函数模板(Function Template)三、类模板(Class Template)四、变参模板(Variadic Template)五、模板的递归与元编程六、模板的局限与陷阱七、常用模板的实例八、C20 的概念&#xff08…

如和写一个库,并发布,我的colorfontcolor产生使用

闲来无事&#xff0c;写了一个npm包 1.1.2版本以后可以使用&#xff0c;前面的版本都是bug colorfontcolor 具体使用具体实现出现的细节出现的问题 写包时出现的问题用的相关库问题 具体使用 npm i colorontcolor //es6环境,vue组件中使用 <template><div><h1 …

【回文数判断】输入一个5位数,判断它是不是回文数

输入一个5位数&#xff0c;判断它是不是回文数。例如12321是回文数&#xff0c;个位和万位相同&#xff0c;十位与千位相同 使用C语言实现&#xff0c;具体代码&#xff1a; #include<stdio.h>int main(){int a,b,c,d,x;printf("输入一个5位数&#xff1a;")…

在C#中如何监控其它应用全屏

原文链接&#xff1a;https://www.cnblogs.com/zhaotianff/p/18338275 在C#中判断其它应用全屏可以有多种方案。我这里提供两种思路 使用定时器 在定时器中定时判断当前窗口的状态是否是最大化或者宽高是否等于桌面窗口的宽高。 这种方法我没有去尝试&#xff0c;凭个人经验…

设计资讯 | 这款受数学方程启发的平板桌:配集成黑胶唱片机和无线充电器

早在 1903 年&#xff0c;英国数学家亨利欧内斯特杜德尼就想出了将正方形变形为等边三角形的方法。这个技巧是将正方形分割成可重新排列的四个不同形状。这种方法经过一个多世纪的各种应用&#xff0c;仍然具有价值。 1986 年&#xff0c;建筑师 David Ben-Grunberg 和他的艺术…

【学习笔记】STM32F407探索者HAL库开发(二)STM32F4最小系统设计

【学习笔记】STM32F407探索者HAL库开发&#xff08;二&#xff09;STM32F4最小系统设计 0 什么是最小系统1 电源电路1.1 数字部分电源1.2 模拟部分电源1.3 参考电压1.4 VBAT 2 复位电路3 BOOT启动电路&#xff08;F4&#xff09;4 晶振电路4.1 低速晶振4.2 高速晶振 5 下载调试…

使用Virtio Driver实现一个计算阶乘的小程序——QEMU平台

目录 一、概述 二、代码部分 1、Virtio 前端 (1) User Space (2) Kernel Space 2、Virtio 后端 三、运行 QEMU Version&#xff1a;qemu-7.2.0 Linux Version&#xff1a;linux-5.4.239 一、概述 本篇文章的主要内容是使用Virtio前后端数据传输的机制实现一个计算阶乘的…

计算机网络——TCP协议与UDP协议详解(下)

一、TCP协议 1.1 TCP协议的报文 TCP全称为 "传输控制协议(Transmission Control Protocol")。人如其名&#xff0c;要对数据的传输进行一个详细的控制。我们先看其报文格式&#xff0c;如下图&#xff1a; TCP报文由以下几个字段组成&#xff1a; 源端口号和目标端口…