非标应用 | Ubuntu系统安装Hypervisor测试

<< 点击显示目录 >>

主页  Hypervisor使用助手 > 安装与使用 > Linux_Hypervisor安装指导手册 >

非标应用 | Ubuntu系统安装Hypervisor测试

 

测试目的

验证贝加莱Hypervisor技术对于Ubuntu操作系统的支持性。

贝加莱官方支持Debian 10。

下图说明了Linux各个发行版之间的关系

clip0228

Ubuntu操作系统基于Debian开发,相比Debian易操作性更好,由于会使用一些未经长时间验证的库与资源,因而稳定性与可靠性相对会差一点。

测试硬件信息

MPC3100

image-20221013215701429

image-20221013215740744

image-20221013215846747

配置

image-20221013221828490

官网链接

https://www.br-automation.com/zh/products/industrial-pcs/automation-pc-3100-mobile/system-units/5mpc3100k038-000/

ETH口

使用右侧两个ETH口连接网络

image-20221013224358000

image-20221017172414714

Ubuntu系统安装

此次测试使用下面的版本: Ubuntu 16.04.7 LTS (Xenial Xerus) 下面是官方下载地址 [https://releases.ubuntu.com/16.04/](https://releases.ubuntu.com/16.04/)

考虑到当前的 硬件配置(MAPC3100 ),选择下面这个版本的UBUNTU image-20230104155755012

下载下来的是镜像,可以使用rufus生成镜像U盘进行安装。 image-20230104155814370

特别注意安装过程中,需要手动进行分区 安装时,选择其他选项(something else) image-20230104155833044

分区时,一定要分出2个区域,其中一个使用efi,并且其中一个为主分区使用ext4 image-20230104155846456

其他按照流程,等待安装完成。

 

Ubuntu上Hypervisor驱动安装

基本安装说明参考本文档以下部分

image-20221017172551493

进行安装过程中提示缺少dkms,rth-virt-modules。

设备连上网络,输入以下命令下载即可

sudo apt-get install dkms rth-virt-modules

 

image-20221017180618666

如果不能正确安装 rth-virt-modules,在高版本的HyperVisor中会提供相关驱动(HyperVisor driver ver > 1.7.0)。

可以直接安装最新的HyperVisor驱动。

image-20230104155954607

特别注意!! 安装之前需要获得权限,使用下面图中的语句

image-20230104160015558

获得权限后的文件会显示为绿色,然后一定要执行install.sh来完成安装。

image-20230104160052552

 

安装过程中提示缺少package信息

image-20221014111655779

https://packages.ubuntu.com/en/ https://packages.ubuntu.com/search?lang=en&suite=all&searchon=names&keywords=linux-headers-amd64 image-20221014111726341

image-20221014110925766

 

检查在Debian 10上查找相关的Package

https://packages.debian.org/search?lang=en&suite=bullseye&searchon=names&keywords=linux-headers-amd64 image-20221014111852531

可见除了linux-headers-amd64包无法安装,其他Hypervisor依赖资源均能正常安装上。

 

MPC3100 BIOS信息

image-20221014112129430

 

Ubuntu直接进行Hypervisor安装

image-20221014112917890

image-20221014113056867

无法重启,反复提示以下信息信息,可能原因为MTCX驱动未装 断电上电后,Hypervisor正常执行安装。

 

安装MTCX驱动与Linux上依赖的CAN通信驱动

image-20221014123828536

https://www.br-automation.com/zh/downloads/#categories=Industrial+PCs+and+Panels-1344987434937/Automation+PC+3100+mobile-1601828983823=undefined/Kaby+Lake+system+unit-1601828983831=undefined/Linux+for+B%26R+10-1612708473032=undefined

image-20221017181202498

image-20221017181211685

 

检查驱动是否安装成功

均安装成功

image-20221017181232684

 

检查Hypervisor安装情况

内部虚拟网口创建正常

image-20221017181334487

Ubuntu能够正常ping通ARemb

image-20221017181439260

可以在Ubuntu 浏览器下访问ARemb的诊断画面

image-20221017181410832

分配给ARemb的网口,AS软件能够正常连接