当前位置:   article > 正文

在ubuntu-22.04-desktop下安装arm虚拟机(坑已踩完)_ubuntu arm desktop

ubuntu arm desktop

```
https://mirror.nju.edu.cn/ubuntu-releases/22.04/ubuntu-22.04-desktop-amd64.iso
安装见百度
```
开启root登录和远程ssh
```

  1. # vim /etc/pam.d/gdm-password
  2. 注释此行
  3. #auth required pam_succeed_if.so user != root quiet_success
  4. ```

sudo vim /etc/apt/sources.list

  1. deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
  2. deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
  3. deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
  4. deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
  5. deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
  6. deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
  7. deb http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
  8. deb-src http://mirrors.aliyun.com/ubuntu/ jammy-proposed main restricted universe multiverse
  9. deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
  10. 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


```

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/294380
推荐阅读
相关标签
  

闽ICP备14008679号