分类
devops

virtualization openEuler-20.03-LTS-SP3-aarch64 on x86_64 machine

download ISO

wget https://mirrors.ustc.edu.cn/openeuler/openEuler-20.03-LTS-SP3/ISO/aarch64/openEuler-20.03-LTS-SP3-aarch64-dvd.iso
# 或者
wget https://mirrors.ustc.edu.cn/openeuler/openEuler-20.03-LTS-SP3/ISO/aarch64/openEuler-20.03-LTS-SP3-everything-aarch64-dvd.iso

virsh install oe

mkdir -p /exdata/images/oe
virt-install \
--name oe \
--os-type linux \
--arch aarch64 \
--vcpus 8 \
--ram 32768 \
--os-variant rhel7.0 \
--disk /exdata/images/oe/oe.qcow2,device=disk,bus=virtio,size=200,format=qcow2 \
--graphics vnc,listen=0.0.0.0 \
--noautoconsole \
--hvm \
--cdrom /exdata/images/oe/openEuler-20.03-LTS-SP3-aarch64-dvd.iso \
--boot cdrom,hd
virsh vncdisplay oe
:5

拿到返回的端口号+5900,然后使用VNC客户端远程访问
开始安装openEuler-20.03-LTS-SP3,比如以上返回:5那么端口号为5905

注意 从启动到连上VNC要速度快,然后马上选择出现的菜单,选第一个 Install openEuler

后续界面安装过程略,可参考https://docs.openeuler.org/zh/docs/20.03_LTS_SP3/docs/Installation/%E5%AE%89%E8%A3%85%E6%8C%87%E5%AF%BC.html#%E8%BF%9B%E5%85%A5%E5%AE%89%E8%A3%85%E7%95%8C%E9%9D%A2

virsh console oe
dhclient enp1s0

更换repo源

grep "repo.openeuler.org" /etc/yum.repos.d/openEuler.repo

sed -i.back \
"s@repo.openeuler.org@mirrors.ustc.edu.cn/openeuler/@g" /etc/yum.repos.d/openEuler.repo

yum makecache

yum install -y gcc make git curl wget jq bc -y;

[root@localhost ~]# uname -a
Linux localhost 4.19.90-2112.8.0.0131.oe1.aarch64 #1 SMP Fri Dec 31 19:53:20 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
[root@localhost ~]# cat /etc/os-release 
NAME="openEuler"
VERSION="20.03 (LTS-SP3)"
ID="openEuler"
VERSION_ID="20.03"
PRETTY_NAME="openEuler 20.03 (LTS-SP3)"
ANSI_COLOR="0;31"

ref