赞
踩
```
https://mirror.nju.edu.cn/ubuntu-releases/22.04/ubuntu-22.04-desktop-amd64.iso
安装见百度
```
开启root登录和远程ssh
```
- # vim /etc/pam.d/gdm-password
-
-
- 注释此行
- #auth required pam_succeed_if.so user != root quiet_success
- ```
sudo vim /etc/apt/sources.list
- deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
-
- deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universemultiverse
------------------------------
# 1.编译安装qemu #
下载网站:https://download.qemu.org/
```
apt-get install make gcc libglib2.0-dev ninja-build pkg-config libpixman-1-dev
wget https://download.qemu.org/qemu-7.0.0.tar.xz
tar xvf qemu-7.0.0.tar.xz
cd qemu-7.0.0
./configure
make
make install
```
# 2.下载arm版系统和UEFI固件下载 #
ubnutu系统网站:http://old-releases.ubuntu.com/releases
UEFI固件网站:http://releases.linaro.org/components/kernel/uefi-linaro/
```
wget http://releases.linaro.org/components/kernel/uefi-linaro/16.02/release/qemu64/QEMU_EFI.fd
wget http://old-releases.ubuntu.com/releases/18.04.3/ubuntu-18.04.5-server-arm64.iso
````
# 3.创建系统盘安装系统 #
1.创建空磁盘
```
qemu-img create -f raw -o size=100G test.img
```
2.命令安装
```
qemu-system-aarch64 -m 4096 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -nographic -drive if=none,file=ubuntu-18.04.5-server-arm64.iso,id=cdrom,media=cdrom -device virtio-scsi-device -device scsi-cd,drive=cdrom -drive if=none,file=test.img,id=hd0 -device virtio-blk-device,drive=hd0
```
3.启动虚拟机命令
```
echo "qemu-system-aarch64 -m 4096 -cpu cortex-a57 -smp 2 -M virt -bios QEMU_EFI.fd -nographic -device virtio-scsi-device -drive if=none,file=test.img,format=raw,index=0,id=hd0 -device virtio-blk-device,drive=hd0" >start.sh
sh start.sh
```
# 4.安装virt-manager操作虚拟机 #
```
apt-get install virt-manager
```
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。