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

解决Ubuntu22.04 VMware失败的问题 ubuntu入门之二十八

现象1 打开VMware失败

Ubuntu升级之后打开VMware上报需要安装vmmon和vmnet,点击确认后如下提示

最终上报fail

解决方法

内核升级导致,需要在新内核下重新下载编译安装

查看版本

$ vmware -v
VMware Workstation 17.5.1 build-23298084$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.5 LTS
Release:	22.04
Codename:	jammy$ uname -a
Linux 6.8.0-60-generic #63~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC UTC 2 x86_64 x86_64 x86_64 GNU/Linux

下载和切换配套版本

$ cd gitcode/
$ git clone https://gitcode.com/gh_mirrors/vm/vmware-host-modules.git
Cloning into 'vmware-host-modules'...
remote: Enumerating objects: 4790, done.
remote: Counting objects: 100% (519/519), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 4790 (delta 514), reused 514 (delta 514), pack-reused 4271 (from 1)
Receiving objects: 100% (4790/4790), 1.74 MiB | 135.00 KiB/s, done.
Resolving deltas: 100% (3696/3696), done.$ cd vmware-host-modules/$ git branch -a
* masterremotes/origin/HEAD -> origin/masterremotes/origin/masterremotes/origin/playerremotes/origin/player-12.5.2... ...remotes/origin/workstation-17.0.2remotes/origin/workstation-17.5.0remotes/origin/workstation-17.5.1
~/mnt/git/gitcode/vmware-host-modules$ git checkout -b workstation-17.5.1 remotes/origin/workstation-17.5.1
Branch 'workstation-17.5.1' set up to track remote branch 'workstation-17.5.1' from 'origin'.
Switched to a new branch 'workstation-17.5.1'$ git branchmaster
* workstation-17.5.1

编译和安装

 make
make -C vmmon-only 
make[1]: Entering directory '/mnt/git/gitcode/vmware-host-modules/vmmon-only'
Using kernel build system.
make -C /lib/modules/6.8.0-60-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/linux-headers-6.8.0-60-generic'
warning: the compiler differs from the one used to build the kernelThe kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0CC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/linux/driver.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/linux/driverLog.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/linux/hostif.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/apic.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/comport.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/cpuid.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/crosspage.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/memtrack.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/moduleloop.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/phystrack.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/sharedAreaVmmon.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/statVarsVmmon.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/task.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/common/vmx86.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/bootstrap/bootstrap.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/bootstrap/monLoader.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/bootstrap/monLoaderVmmon.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/bootstrap/vmmblob.oLD [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/vmmon.oMODPOST /mnt/git/gitcode/vmware-host-modules/vmmon-only/Module.symversCC [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/vmmon.mod.oLD [M]  /mnt/git/gitcode/vmware-host-modules/vmmon-only/vmmon.koBTF [M] /mnt/git/gitcode/vmware-host-modules/vmmon-only/vmmon.ko
Skipping BTF generation for /mnt/git/gitcode/vmware-host-modules/vmmon-only/vmmon.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-6.8.0-60-generic'
make -C $PWD SRCROOT=$PWD/. \MODULEBUILDDIR= postbuild
make[2]: Entering directory '/mnt/git/gitcode/vmware-host-modules/vmmon-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/mnt/git/gitcode/vmware-host-modules/vmmon-only'
cp -f vmmon.ko ./../vmmon.o
make[1]: Leaving directory '/mnt/git/gitcode/vmware-host-modules/vmmon-only'
make -C vmnet-only 
make[1]: Entering directory '/mnt/git/gitcode/vmware-host-modules/vmnet-only'
Using kernel build system.
make -C /lib/modules/6.8.0-60-generic/build/include/.. M=$PWD SRCROOT=$PWD/. \MODULEBUILDDIR= modules
make[2]: Entering directory '/usr/src/linux-headers-6.8.0-60-generic'
warning: the compiler differs from the one used to build the kernelThe kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0You are using:           gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0CC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/driver.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/hub.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/userif.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/netif.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/bridge.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/procfs.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/smac_compat.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/smac.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/vnetEvent.oCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/vnetUserListener.oLD [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/vmnet.oMODPOST /mnt/git/gitcode/vmware-host-modules/vmnet-only/Module.symversCC [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/vmnet.mod.oLD [M]  /mnt/git/gitcode/vmware-host-modules/vmnet-only/vmnet.koBTF [M] /mnt/git/gitcode/vmware-host-modules/vmnet-only/vmnet.ko
Skipping BTF generation for /mnt/git/gitcode/vmware-host-modules/vmnet-only/vmnet.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/linux-headers-6.8.0-60-generic'
make -C $PWD SRCROOT=$PWD/. \MODULEBUILDDIR= postbuild
make[2]: Entering directory '/mnt/git/gitcode/vmware-host-modules/vmnet-only'
make[2]: 'postbuild' is up to date.
make[2]: Leaving directory '/mnt/git/gitcode/vmware-host-modules/vmnet-only'
cp -f vmnet.ko ./../vmnet.o
make[1]: Leaving directory '/mnt/git/gitcode/vmware-host-modules/vmnet-only'$ sudo make install
install -D -t /lib/modules/6.8.0-60-generic/misc vmmon-only/vmmon.ko vmnet-only/vmnet.ko
strip --strip-debug /lib/modules/6.8.0-60-generic/misc/vmmon.ko /lib/modules/6.8.0-60-generic/misc/vmnet.ko
if test -z ""; then /sbin/depmod -a 6.8.0-60-generic; fi

安装

~$ find ./ -name *.ko
./vmmon-only/vmmon.ko
./vmnet-only/vmnet.ko
~$ sudo insmod ./vmmon-only/vmmon.ko
~$ sudo insmod ./vmnet-only/vmnet.ko
~$

现象2 虚拟机镜像无法链接网络

虚拟机网络不通,现象如下

无法与主机通信

解决方法

之前加载模块的方式不对,需要先卸载

$ sudo rmmod vmnet
$ sudo rmmod vmmon

按照如下方法加载

$ sudo modprobe -a vmw_vmci vmmon vmnet
$ sudo vmware-networks --start
Started Bridge networking on vmnet0
Enabled hostonly virtual adapter on vmnet1
Started DHCP service on vmnet1
Started NAT service on vmnet8
Enabled hostonly virtual adapter on vmnet8
Started DHCP service on vmnet8
Started all configured services on all networks

参考

解决Ubuntu22.04/24.04等Linux桌面系统下打开VMware软件出现vmmon和vmnet模块的缺失/安装/内核升级等问题
https://blog.csdn.net/hjt374200573/article/details/141567143

相关文章:

解决Ubuntu22.04 VMware失败的问题 ubuntu入门之二十八

现象1 打开VMware失败 Ubuntu升级之后打开VMware上报需要安装vmmon和vmnet,点击确认后如下提示 最终上报fail 解决方法 内核升级导致,需要在新内核下重新下载编译安装 查看版本 $ vmware -v VMware Workstation 17.5.1 build-23298084$ lsb_release…...

线程与协程

1. 线程与协程 1.1. “函数调用级别”的切换、上下文切换 1. 函数调用级别的切换 “函数调用级别的切换”是指:像函数调用/返回一样轻量地完成任务切换。 举例说明: 当你在程序中写一个函数调用: funcA() 然后 funcA 执行完后返回&…...

(二)TensorRT-LLM | 模型导出(v0.20.0rc3)

0. 概述 上一节 对安装和使用有个基本介绍。根据这个 issue 的描述,后续 TensorRT-LLM 团队可能更专注于更新和维护 pytorch backend。但 tensorrt backend 作为先前一直开发的工作,其中包含了大量可以学习的地方。本文主要看看它导出模型的部分&#x…...

CMake基础:构建流程详解

目录 1.CMake构建过程的基本流程 2.CMake构建的具体步骤 2.1.创建构建目录 2.2.使用 CMake 生成构建文件 2.3.编译和构建 2.4.清理构建文件 2.5.重新配置和构建 3.跨平台构建示例 4.工具链与交叉编译 5.CMake构建后的项目结构解析 5.1.CMake构建后的目录结构 5.2.构…...

visual studio 2022更改主题为深色

visual studio 2022更改主题为深色 点击visual studio 上方的 工具-> 选项 在选项窗口中,选择 环境 -> 常规 ,将其中的颜色主题改成深色 点击确定,更改完成...

关于nvm与node.js

1 安装nvm 安装过程中手动修改 nvm的安装路径, 以及修改 通过nvm安装node后正在使用的node的存放目录【这句话可能难以理解,但接着往下看你就了然了】 2 修改nvm中settings.txt文件配置 nvm安装成功后,通常在该文件中会出现以下配置&…...

FastAPI 教程:从入门到实践

FastAPI 是一个现代、快速(高性能)的 Web 框架,用于构建 API,支持 Python 3.6。它基于标准 Python 类型提示,易于学习且功能强大。以下是一个完整的 FastAPI 入门教程,涵盖从环境搭建到创建并运行一个简单的…...

java调用dll出现unsatisfiedLinkError以及JNA和JNI的区别

UnsatisfiedLinkError 在对接硬件设备中,我们会遇到使用 java 调用 dll文件 的情况,此时大概率出现UnsatisfiedLinkError链接错误,原因可能有如下几种 类名错误包名错误方法名参数错误使用 JNI 协议调用,结果 dll 未实现 JNI 协…...

使用分级同态加密防御梯度泄漏

抽象 联邦学习 (FL) 支持跨分布式客户端进行协作模型训练,而无需共享原始数据,这使其成为在互联和自动驾驶汽车 (CAV) 等领域保护隐私的机器学习的一种很有前途的方法。然而,最近的研究表明&…...

基于服务器使用 apt 安装、配置 Nginx

🧾 一、查看可安装的 Nginx 版本 首先,你可以运行以下命令查看可用版本: apt-cache madison nginx-core输出示例: nginx-core | 1.18.0-6ubuntu14.6 | http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages ng…...

理解 MCP 工作流:使用 Ollama 和 LangChain 构建本地 MCP 客户端

🌟 什么是 MCP? 模型控制协议 (MCP) 是一种创新的协议,旨在无缝连接 AI 模型与应用程序。 MCP 是一个开源协议,它标准化了我们的 LLM 应用程序连接所需工具和数据源并与之协作的方式。 可以把它想象成你的 AI 模型 和想要使用它…...

iPhone密码忘记了办?iPhoneUnlocker,iPhone解锁工具Aiseesoft iPhone Unlocker 高级注册版​分享

平时用 iPhone 的时候,难免会碰到解锁的麻烦事。比如密码忘了、人脸识别 / 指纹识别突然不灵,或者买了二手 iPhone 却被原来的 iCloud 账号锁住,这时候就需要靠谱的解锁工具来帮忙了。Aiseesoft iPhone Unlocker 就是专门解决这些问题的软件&…...

AtCoder 第409​场初级竞赛 A~E题解

A Conflict 【题目链接】 原题链接:A - Conflict 【考点】 枚举 【题目大意】 找到是否有两人都想要的物品。 【解析】 遍历两端字符串,只有在同时为 o 时输出 Yes 并结束程序,否则输出 No。 【难度】 GESP三级 【代码参考】 #i…...

Python爬虫实战:研究feedparser库相关技术

1. 引言 1.1 研究背景与意义 在当今信息爆炸的时代,互联网上存在着海量的信息资源。RSS(Really Simple Syndication)作为一种标准化的信息聚合技术,被广泛用于网站内容的发布和订阅。通过 RSS,用户可以方便地获取网站更新的内容,而无需频繁访问各个网站。 然而,互联网…...

【网络安全产品大调研系列】2. 体验漏洞扫描

前言 2023 年漏洞扫描服务市场规模预计为 3.06(十亿美元)。漏洞扫描服务市场行业预计将从 2024 年的 3.48(十亿美元)增长到 2032 年的 9.54(十亿美元)。预测期内漏洞扫描服务市场 CAGR(增长率&…...

DAY 47

三、通道注意力 3.1 通道注意力的定义 # 新增:通道注意力模块(SE模块) class ChannelAttention(nn.Module):"""通道注意力模块(Squeeze-and-Excitation)"""def __init__(self, in_channels, reduction_rat…...

Linux相关概念和易错知识点(42)(TCP的连接管理、可靠性、面临复杂网络的处理)

目录 1.TCP的连接管理机制(1)三次握手①握手过程②对握手过程的理解 (2)四次挥手(3)握手和挥手的触发(4)状态切换①挥手过程中状态的切换②握手过程中状态的切换 2.TCP的可靠性&…...

UE5 学习系列(三)创建和移动物体

这篇博客是该系列的第三篇,是在之前两篇博客的基础上展开,主要介绍如何在操作界面中创建和拖动物体,这篇博客跟随的视频链接如下: B 站视频:s03-创建和移动物体 如果你不打算开之前的博客并且对UE5 比较熟的话按照以…...

【JVM】- 内存结构

引言 JVM:Java Virtual Machine 定义:Java虚拟机,Java二进制字节码的运行环境好处: 一次编写,到处运行自动内存管理,垃圾回收的功能数组下标越界检查(会抛异常,不会覆盖到其他代码…...

聊聊 Pulsar:Producer 源码解析

一、前言 Apache Pulsar 是一个企业级的开源分布式消息传递平台,以其高性能、可扩展性和存储计算分离架构在消息队列和流处理领域独树一帜。在 Pulsar 的核心架构中,Producer(生产者) 是连接客户端应用与消息队列的第一步。生产者…...

渗透实战PortSwigger靶场-XSS Lab 14:大多数标签和属性被阻止

<script>标签被拦截 我们需要把全部可用的 tag 和 event 进行暴力破解 XSS cheat sheet&#xff1a; https://portswigger.net/web-security/cross-site-scripting/cheat-sheet 通过爆破发现body可以用 再把全部 events 放进去爆破 这些 event 全部可用 <body onres…...

解锁数据库简洁之道:FastAPI与SQLModel实战指南

在构建现代Web应用程序时&#xff0c;与数据库的交互无疑是核心环节。虽然传统的数据库操作方式&#xff08;如直接编写SQL语句与psycopg2交互&#xff09;赋予了我们精细的控制权&#xff0c;但在面对日益复杂的业务逻辑和快速迭代的需求时&#xff0c;这种方式的开发效率和可…...

UDP(Echoserver)

网络命令 Ping 命令 检测网络是否连通 使用方法: ping -c 次数 网址ping -c 3 www.baidu.comnetstat 命令 netstat 是一个用来查看网络状态的重要工具. 语法&#xff1a;netstat [选项] 功能&#xff1a;查看网络状态 常用选项&#xff1a; n 拒绝显示别名&#…...

YSYX学习记录(八)

C语言&#xff0c;练习0&#xff1a; 先创建一个文件夹&#xff0c;我用的是物理机&#xff1a; 安装build-essential 练习1&#xff1a; 我注释掉了 #include <stdio.h> 出现下面错误 在你的文本编辑器中打开ex1文件&#xff0c;随机修改或删除一部分&#xff0c;之后…...

大数据零基础学习day1之环境准备和大数据初步理解

学习大数据会使用到多台Linux服务器。 一、环境准备 1、VMware 基于VMware构建Linux虚拟机 是大数据从业者或者IT从业者的必备技能之一也是成本低廉的方案 所以VMware虚拟机方案是必须要学习的。 &#xff08;1&#xff09;设置网关 打开VMware虚拟机&#xff0c;点击编辑…...

Go 语言接口详解

Go 语言接口详解 核心概念 接口定义 在 Go 语言中&#xff0c;接口是一种抽象类型&#xff0c;它定义了一组方法的集合&#xff1a; // 定义接口 type Shape interface {Area() float64Perimeter() float64 } 接口实现 Go 接口的实现是隐式的&#xff1a; // 矩形结构体…...

从深圳崛起的“机器之眼”:赴港乐动机器人的万亿赛道赶考路

进入2025年以来&#xff0c;尽管围绕人形机器人、具身智能等机器人赛道的质疑声不断&#xff0c;但全球市场热度依然高涨&#xff0c;入局者持续增加。 以国内市场为例&#xff0c;天眼查专业版数据显示&#xff0c;截至5月底&#xff0c;我国现存在业、存续状态的机器人相关企…...

为什么需要建设工程项目管理?工程项目管理有哪些亮点功能?

在建筑行业&#xff0c;项目管理的重要性不言而喻。随着工程规模的扩大、技术复杂度的提升&#xff0c;传统的管理模式已经难以满足现代工程的需求。过去&#xff0c;许多企业依赖手工记录、口头沟通和分散的信息管理&#xff0c;导致效率低下、成本失控、风险频发。例如&#…...

LeetCode - 394. 字符串解码

题目 394. 字符串解码 - 力扣&#xff08;LeetCode&#xff09; 思路 使用两个栈&#xff1a;一个存储重复次数&#xff0c;一个存储字符串 遍历输入字符串&#xff1a; 数字处理&#xff1a;遇到数字时&#xff0c;累积计算重复次数左括号处理&#xff1a;保存当前状态&a…...

【Redis技术进阶之路】「原理分析系列开篇」分析客户端和服务端网络诵信交互实现(服务端执行命令请求的过程 - 初始化服务器)

服务端执行命令请求的过程 【专栏简介】【技术大纲】【专栏目标】【目标人群】1. Redis爱好者与社区成员2. 后端开发和系统架构师3. 计算机专业的本科生及研究生 初始化服务器1. 初始化服务器状态结构初始化RedisServer变量 2. 加载相关系统配置和用户配置参数定制化配置参数案…...