惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Tenable Blog
S
SegmentFault 最新的问题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 聂微东
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
美团技术团队
Recorded Future
Recorded Future
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
博客园_首页
宝玉的分享
宝玉的分享
C
Check Point Blog
爱范儿
爱范儿
MyScale Blog
MyScale Blog
Microsoft Azure Blog
Microsoft Azure Blog
The Register - Security
The Register - Security
U
Unit 42
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
Docker
博客园 - Franky
博客园 - 【当耐特】
腾讯CDC
N
Netflix TechBlog - Medium
Jina AI
Jina AI
博客园 - 司徒正美
Last Week in AI
Last Week in AI
PCI Perspectives
PCI Perspectives
GbyAI
GbyAI
Security Archives - TechRepublic
Security Archives - TechRepublic
J
Java Code Geeks
Cloudbric
Cloudbric
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Y
Y Combinator Blog
F
Full Disclosure
TaoSecurity Blog
TaoSecurity Blog
N
News and Events Feed by Topic
L
LINUX DO - 最新话题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
小众软件
小众软件
O
OpenAI News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
Security Affairs
Recent Announcements
Recent Announcements
Attack and Defense Labs
Attack and Defense Labs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
S
Secure Thoughts

Keenwon's Blog

Mac 安装 Ollama 和 Open WebUI 快速排序第 N 趟的可能结果 - Keenwon's Blog ubuntu crontab 定时执行 node 程序 Node.js SEA - Keenwon's Blog 基于 Web Vitals 的前端性能优化实践 - Keenwon's Blog CSS 奇技淫巧 —— 绝对居中布局 - Keenwon's Blog Fresh 快速入门 - Keenwon's Blog Islands Architecture - Keenwon's Blog Awesome Command-line Utilities - Keenwon's Blog
PVE 动态分配虚拟机的内存 - Keenwon's Blog
semanwmj@gma · 2024-09-06 · via Keenwon's Blog

今年 6 月的时候,买了个小主机(极摩客 M5 锐龙R7 5700U),用起来非常爽。很多工具和软件都部署在了小主机上,WSL2 也弃用了,现在都是使用 VSCode 远程开发,感觉我这台台式机还能再多战几年了。

不过使用的过程中也发现一些问题,比如 pve 的内存升上去就降不下来了,虽然说没太大影响,但我看着非常别扭。我并没有完整的看过 pve 的文档,先入为主的认为内存是动态管理的,一番检索下来发现并不是这么回事儿,还是要自己配置一番的。

启用动态内存#

打开「虚拟机 - 硬件 - 内存」,展开高级配置,设置最大、最小内存,选上 Ballooning 设备

安装并配置 QEMU Guest Agent#

打开「虚拟机 - 选项」,开启「QEMU Guest Agent」

有可能需要关闭虚拟机操作,我是关闭操作,再开机安装 qemu-guest-agent

进入虚拟安装 qemu-guest-agent

# 安装
apt install qemu-guest-agent

# 启动
systemctl start qemu-guest-agent

# 设置开机自动运行
systemctl enable qemu-guest-agent

安装完成后可在「概要页」看到虚拟机的 IPs,「选项页」也能看到 QEMU Guest Agent 的状态是「已启用」。

参考#