当前位置: 首页 > news >正文

Run LoongArch64 Alpine VM on x86_64

  • 一、Build from source(build on x86_64)
    Obtain the latest libvirt, virt-manager, and qemu source code, compile and install them.

1.1 Build libvirt from source

sudo apt-get update
sudo apt-get install augeas-tools bash-completion debhelper-compat dh-apparmor iptables kmod libacl1-dev libapparmor-dev libattr1-dev libaudit-dev libblkid-dev libc6-dev libcap-ng-dev libcurl4-gnutls-dev libdevmapper-dev \
libfuse3-dev libglib2.0-dev libglusterfs-dev libgnutls28-dev libiscsi-dev libnl-3-dev libnl-route-3-dev \
libnuma-dev libparted-dev libpcap0.8-dev libpciaccess-dev librados-dev librbd-dev libreadline-dev \
libsanlock-dev libsasl2-dev libselinux1-dev libssh-dev libssh2-1-dev libtasn1-6-dev libtirpc-dev \
libudev-dev libwireshark-dev libxen-dev libxml2-dev libxml2-utils libyajl-dev lvm2 meson mount \
nfs-common numad open-iscsi po-debconf python3-docutils python3 qemu-system-common qemu-utils xsltproc \
systemtap-sdt-dev git clone https://gitlab.com/libvirt/libvirt.git
cd libvirt
meson setup build -Dsystem=true --prefix=/usr -Ddriver_qemu=enabled  -Dlibnl=enabled
ninja -C build
ninja -C build test
ninja -C build install

1.2 Build virt-manager from source

sudo apt-get update
sudo apt-get install debhelper-compat dh-python dh-sequence-python3 gettext python3 python3-distutils python3-docutils python3-setuptools git clone https://github.com/virt-manager/virt-manager.git
cd virt-manager
./setup.py configure --default-hvs qemu,xen,lxc
sudo ./setup.py --no-update-icon-cache --no-compile-schemas install

1.3 Build qemu from source

sudo apt-get update
sudo apt-get install clang git libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev ninja-build git-email \libaio-dev libbluetooth-dev libcapstone-dev libbrlapi-dev libbz2-dev libcap-ng-dev \libcurl4-gnutls-dev libgtk-3-dev libibverbs-dev libjpeg8-dev libncurses5-dev libnuma-dev \librbd-dev librdmacm-dev libsasl2-dev libsdl2-dev libseccomp-dev libsnappy-dev libssh-dev \libvde-dev libvdeplug-dev libvte-2.91-dev libxen-dev liblzo2-dev valgrind xfslibs-dev \libnfs-dev libiscsi-dev libslirp-devgit clone https://gitlab.com/qemu/qemu.git
cd qemu
mkdir build & cd build
../configure --enable-slirp --target-list=loongarch64-softmmu --prefix=/usr
make -j8
sudo make install
  • 二、Get LoongArch64 Alpine Linux VM

wget https://dev.alpinelinux.org/~loongarch/edge/releases/loongarch64/alpine-20240709.qcow2

  • 三、Start LoongArch64 Alpine Linux VM

Find the virt-manager icon in the menu bar and open it. Follow the steps below to install and start it.

3.1、New VM->import existing disk image->Architecture (loongarch64)->Forward
在这里插入图片描述

3.2 Browse and choose the qcow2 file storage path
在这里插入图片描述

3.3 Choose Menory and CPU settings
在这里插入图片描述

3.4 Customize configuration before install
在这里插入图片描述

3.5 Overview->Firmware(UEFI)->Apply
在这里插入图片描述

3.6 IDE Disk->Disk bus(VirtIO)->Apply
在这里插入图片描述

3.7 NIC->Device model(virtio)->Apply->Begin Installation
在这里插入图片描述

After about two or three minutes, you will see login information.
default user: root
default passwd: alpine

http://www.lryc.cn/news/399035.html

相关文章:

  • 4层负载均衡和7层负载均衡
  • 前端Vue组件化实践:打造仿京东天猫商品属性选择器组件
  • 智慧城市3d数据可视化系统提升信息汇报的时效和精准度
  • Git 详解(原理、使用)
  • android11为开机动画添加铃声(语音)
  • 使用 Akshare 下载国内的期货(主力连续)、股票和指数的历史行情数据
  • 【React】Google 账号之个性化一键登录按钮功能
  • MySQL已经连接对应数据库,但mapper中表名仍报错
  • CentOS 7:停止更新后如何下载软件?
  • MySQL GROUP_CONCAT 函数详解与实战应用
  • MATLAB Gazebo联合仿真
  • Vue3 pdf.js将二进制文件流转成pdf预览
  • 【机器学习】逻辑回归的原理、应用与扩展
  • Ubuntu22.04系统装好后左上角下划线闪烁不开机(N卡)
  • Leetcode刷题4--- 寻找两个正序数组的中位数 Python
  • springBoot(若依)集成camunda
  • 【微信小程序知识点】自定义构建npm
  • JCR一区 | Matlab实现GAF-PCNN-MATT、GASF-CNN、GADF-CNN的多特征输入数据分类预测/故障诊断
  • 新手教学系列——高效管理MongoDB数据:批量插入与更新的实战技巧
  • C# Winform 自定义事件实战
  • Python通过继承实现多线程
  • 记一次项目经历
  • Elasticsearch 8 支持别名查询
  • 【Spring Cloud】 使用Eureka实现服务注册与服务发现
  • JDK安装详细教程(以JDK17为例)
  • 安装nodejs | npm报错
  • 聊点基础---Java和.NET开发技术异同全方位分析
  • 【C++】C++中SDKDDKVer.h和WinSDKVer.h函数库详解
  • uni-app 蓝牙传输
  • MBR10200CT-ASEMI智能AI应用MBR10200CT