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

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Engineering at Meta
Engineering at Meta
罗磊的独立博客
Apple Machine Learning Research
Apple Machine Learning Research
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
小众软件
小众软件
GbyAI
GbyAI
J
Java Code Geeks
B
Blog
Blog — PlanetScale
Blog — PlanetScale
宝玉的分享
宝玉的分享
M
MIT News - Artificial intelligence
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
阮一峰的网络日志
阮一峰的网络日志
NISL@THU
NISL@THU
T
Tenable Blog
S
Schneier on Security
T
Tor Project blog
V
V2EX
S
Secure Thoughts
P
Privacy International News Feed
Spread Privacy
Spread Privacy
博客园 - 三生石上(FineUI控件)
博客园_首页
T
Threatpost
月光博客
月光博客
Know Your Adversary
Know Your Adversary
Cyberwarzone
Cyberwarzone
T
The Blog of Author Tim Ferriss
H
Help Net Security
The Hacker News
The Hacker News
A
Arctic Wolf
B
Blog RSS Feed
雷峰网
雷峰网
The Last Watchdog
The Last Watchdog
S
SegmentFault 最新的问题
博客园 - 【当耐特】
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
A
About on SuperTechFans
P
Palo Alto Networks Blog
Attack and Defense Labs
Attack and Defense Labs
N
News | PayPal Newsroom
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Securelist
L
LangChain Blog
I
InfoQ

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 的状态是「已启用」。

参考#