<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="https://v1sta.xyz/wp-content/plugins/pretty-rss-feeds/xslt/pretty-feed.xsl" type="text/xsl" media="screen" ?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/">

<channel>
	<title>PVE &#8211; 景の域</title>
	<atom:link href="https://v1sta.xyz/tag/pve/feed/" rel="self" type="application/rss+xml" />
	<link>https://v1sta.xyz</link>
	<description>远景的幻想空间</description>
	<lastBuildDate>Sat, 04 Apr 2026 03:54:45 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2-60x60.png</url>
	<title>PVE &#8211; 景の域</title>
	<link>https://v1sta.xyz</link>
	<width>32</width>
	<height>32</height>
</image> 
<atom:link rel="hub" href="https://pubsubhubbub.appspot.com"/>
<atom:link rel="hub" href="https://pubsubhubbub.superfeedr.com"/>
<atom:link rel="hub" href="https://websubhub.com/hub"/>
<atom:link rel="self" href="https://v1sta.xyz/tag/pve/feed/"/>
	<item>
		<title>Proxmox VE 退出集群指令记录</title>
		<link>https://v1sta.xyz/tech/pve-exit-cluster/</link>
					<comments>https://v1sta.xyz/tech/pve-exit-cluster/#respond</comments>
		
		<dc:creator><![CDATA[远景の域主 V1STA]]></dc:creator>
		<pubDate>Mon, 19 Jun 2023 15:49:15 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PVE]]></category>
		<guid isPermaLink="false">https://v1sta.xyz/?p=1411</guid>

					<description><![CDATA[由于PVE的集群机制需要两台宿主机在线运行，才可以启动虚拟机。 我的两台机器只是由于要迁移虚拟机才组成了集群。 &#8230; <a href="https://v1sta.xyz/tech/pve-exit-cluster/" class="more-link">继续阅读<span class="screen-reader-text">Proxmox VE 退出集群指令记录</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>由于PVE的集群机制需要两台宿主机在线运行，才可以启动虚拟机。</p>



<p>我的两台机器只是由于要迁移虚拟机才组成了集群。<br>两台PVE运行的服务彼此没有关联性，因此，集群也就没有保留的必要性，逐使其两者各自退出。</p>



<span id="more-1411"></span>



<pre class="wp-block-preformatted">systemctl stop pve-cluster.service
systemctl stop corosync.service
pmxcfs -l
rm /etc/pve/corosync.conf
rm -rf /etc/corosync/*
killall pmxcfs
systemctl start pve-cluster.service</pre>



<p>以上的命令请在shell中使用root执行。</p>



<p>原理为：停止PVE和集群的服务，并设置本机操作的宿主为「本地模式」，删除之前的集群配置文件和进程，再次启动单独的PVE服务。</p>



<p>另外，还需要删除本机以外的其他集群节点（Node），以便从Web UI中移除：</p>



<pre class="wp-block-preformatted">cd /etc/pve/nodes
rm -rf [本机之外的其他节点]</pre>

<p><a href="https://v1sta.xyz/tech/pve-exit-cluster/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://v1sta.xyz/tech/pve-exit-cluster/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2.png" length="199214" type="image/png"/><media:content url="https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2.png" width="512" height="512" medium="image" type="image/png"/>	</item>
		<item>
		<title>博客搬家</title>
		<link>https://v1sta.xyz/tech/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/</link>
					<comments>https://v1sta.xyz/tech/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/#respond</comments>
		
		<dc:creator><![CDATA[远景の域主 V1STA]]></dc:creator>
		<pubDate>Fri, 16 Jun 2023 18:50:32 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[FRP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PVE]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">https://v1sta.xyz/?p=1386</guid>

					<description><![CDATA[今天本来想写一下MC服务器插件的记录，突然就出现了「Cookies被阻止或者您的浏览器不支持」的问题，导致域主 &#8230; <a href="https://v1sta.xyz/tech/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/" class="more-link">继续阅读<span class="screen-reader-text">博客搬家</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>今天本来想写一下MC服务器插件的记录，突然就出现了「Cookies被阻止或者您的浏览器不支持」的问题，导致域主登不进去WP的仪表后台了……</p>



<p>也不知道是哪里出现的bug，大概率还是FRP穿透和缓存的锅，索性直接把博客搬到VPS上运行了，还好之前就用Webinoly备份了下。</p>



<p>虽然1GB的内存有点吃力，不过MariaDB的占用好像也没那么夸张，虽然很多人当成MySQL……稳定性也比FRP穿透好了很多</p>



<p>还是不换成SQLite了，Webinoly一键安装的WP功能配置需要依赖MySQL引擎，再转换就太麻烦了（尽管我自己的Blessing Skin皮肤站用的也是SQLite数据库）</p>



<p>有点后悔退租了每个月5美元的3C4G的VPS，毕竟还得吃饭。。实话说如果不是做论坛，那么高的性能其实用不到</p>

<p><a href="https://v1sta.xyz/tech/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://v1sta.xyz/tech/%e5%8d%9a%e5%ae%a2%e6%90%ac%e5%ae%b6/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2.png" length="199214" type="image/png"/><media:content url="https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2.png" width="512" height="512" medium="image" type="image/png"/>	</item>
		<item>
		<title>给Windows电脑配置备份</title>
		<link>https://v1sta.xyz/tech/backup/</link>
					<comments>https://v1sta.xyz/tech/backup/#respond</comments>
		
		<dc:creator><![CDATA[远景の域主 V1STA]]></dc:creator>
		<pubDate>Sat, 20 May 2023 20:15:35 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[日常]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PVE]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://v1sta.xyz/?p=1274</guid>

					<description><![CDATA[前几天19.9元买了一块500GB的3.5英寸西数蓝盘，挂到NAS上做备份 在Win10上分别试了下Dism+ &#8230; <a href="https://v1sta.xyz/tech/backup/" class="more-link">继续阅读<span class="screen-reader-text">给Windows电脑配置备份</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>前几天19.9元买了一块500GB的3.5英寸西数蓝盘，挂到NAS上做备份</p>



<p>在Win10上分别试了下Dism++和Acronis True Backup备份系统，100GB数据经过压缩后占用大小大概50GB左右，感觉还不错</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n.png" data-lbwps-width="1195" data-lbwps-height="804" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n-300x202.png"><img fetchpriority="high" decoding="async" width="1195" height="804" sizes="(max-width: 1195px) 100vw, 1195px" src="https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n.png" alt="" class="wp-image-1281" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n.png 1195w, https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n-300x202.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n-1024x689.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n-768x517.png 768w" /></a></figure>
</div>


<p>Dism++适合迁移系统到不同的存储介质（比如NVMe固态迁移），在Windows下备份系统还是更推荐Acronis，之前装在Win10的下载机上成功拯救了一次手贱更新的操作。虽然上手没有Mac的Time Machine那么简单，不过可靠性还可以。</p>



<span id="more-1274"></span>



<p>至于Linux并没有文件系统的限制，可以直接打包压缩到tar文件热备，用dd恢复；也可以用Clonezilla再生龙离线备份；PVE的虚拟机本身也有内建的快照备份。</p>



<p>Steam库的游戏可以单独备份，前段时间我还看过用Unraid构建高端游戏库顺带备份的方案，不过我觉得Steam的游戏基本都能重新下载，就不做什么备份了（当然CSGO的cfg还是要拷贝下的）</p>



<p>500GB硬盘的价格确实低的离谱，即使是二手市场价也在35元左右，而1TB直接翻了几倍的价格，要100元才能拿下；但是一些2TB的二手/翻新监控硬盘也不过160元起步了，容量越大反而更实惠。</p>

<p><a href="https://v1sta.xyz/tech/backup/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://v1sta.xyz/tech/backup/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n.png" length="53395" type="image/png"/><media:content url="https://v1sta.xyz/wp-content/uploads/2023/05/TrueImage_UtWo4znr0n.png" width="1195" height="804" medium="image" type="image/png"/>	</item>
		<item>
		<title>自动更新的Minecraft模组+插件服务器搭建日记</title>
		<link>https://v1sta.xyz/tech/minecraft-server/</link>
					<comments>https://v1sta.xyz/tech/minecraft-server/#respond</comments>
		
		<dc:creator><![CDATA[远景の域主 V1STA]]></dc:creator>
		<pubDate>Sat, 20 May 2023 17:25:20 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Minecraft]]></category>
		<category><![CDATA[PVE]]></category>
		<guid isPermaLink="false">https://v1sta.xyz/?p=1261</guid>

					<description><![CDATA[总算和朋友们搭建好了Minecraft的服务器！

其实在过生日那天晚上我就搭好了，但是迟迟现在才发布。]]></description>
										<content:encoded><![CDATA[
<p>总算和朋友们搭建好了Minecraft的服务器！</p>



<p>其实在过生日那天晚上我就搭好了，但是迟迟现在才发布。</p>



<p><s>玩了之后却发现自己晕MC的3D了，晕</s></p>



<span id="more-1261"></span>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">版本的选择</h2>



<p>域主是从1.7.10就开始玩MC的（其实还有更早的远古版本），当时年龄尚小，只会用那些一键开服的BOX，后来才翻墙去了解服务端，记得最经典的还是用KCauldron开的Forge模组+Spigot插件服（俗称水龙头），甚至仍有一些高版本的模组不如1.7.10的丰富，堪称MC的XP系统。</p>



<p>不过1.7.10也很老了，肯定不能一直守旧，那么该选哪个版本玩呢，后面发现Minecraft社区也存在着一种类似LTS（长期维护更新）的版本，比如1.12.2、1.16.5、1.18.2等等，还有比较新的1.19.3的版本（怎么一股Ubuntu味）</p>



<p>而模组除了Forge外还有Fabric的选择，虽然很早就知道互不兼容，但很多mod作者会同时制作两种API的版本，不过我就没仔细去研究别的方案了，脍炙人口的Forge模组依然是主流，后续再考虑Fabric也并不迟。</p>



<p>关于服务端的选择，域主最先开始采用的是<a href="https://catmc.org/" data-type="URL" data-id="https://catmc.org/"><strong>CatServer</strong></a>，这是一个同时支持Forge API模组和Spigot核心的服务端，但是存在不能在告示牌输入文字的bug（书与笔是可以的），也没有什么详细的文档……</p>



<p>后来我找到了<strong><a href="https://magmafoundation.org/" data-type="URL" data-id="https://magmafoundation.org/">Magma</a></strong>作为服务端核心（官网屏蔽了中国IP直连访问，是主动用CDN屏蔽的，并不是被墙，可能是防DDoS和剽窃者），不过相比CatServer要稳定了很多，也没有什么bug出现</p>



<figure class="wp-block-mamaduka-bookmark-card is-style-horizontal"><a class="bookmark-card" href="https://magmafoundation.org/"><div class="bookmark-card__content"><div class="bookmark-card__title">Magma Foundation</div><div class="bookmark-card__description"></div><div class="bookmark_card__meta"><span class="bookmark_card__meta-publisher">magmafoundation.org</span></div></div></a></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">搭建实践</h2>



<p>在本地的Proxmox VE开了个Ubuntu Server的虚拟机专门运行MC的服务端，使用了MCSManager面板管理服务端。其实面板不是必需品，只用Shell也能跑jar，但显然有面板还是会方便很多。</p>



<p>装起来很简单，一行命令搞定，不过也要记得安装OpenJDK运行环境。</p>



<p>MCSManager：</p>



<pre class="wp-block-preformatted">wget -qO- https://gitee.com/mcsmanager/script/raw/master/setup_cn.sh | bash</pre>



<p>OpenJDK，直接装Headless的版本就可以了，因为并不需要用到Desktop GUI：</p>



<pre class="wp-block-preformatted">sudo apt install openjdk-17-jdk-headless</pre>



<p>然后在MCSManager根据向导一步步配置服务端，就搭建完成了。</p>



<p>记得在服务端去安装authlib injector，使用皮肤站的Yggdrasil API地址在运行选项配置前置登录，启动命令应该如下：</p>



<pre class="wp-block-preformatted">java -jar -javaagent:authlib-injector.jar=[Yggdrasil API]  Magma-1.18.2-40.2.1-ed7136e5-server.jar</pre>


<div class="wp-block-image">
<figure class="aligncenter size-large"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M.png" data-lbwps-width="1504" data-lbwps-height="971" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M-300x194.png"><img decoding="async" width="1024" height="661" sizes="(max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M-1024x661.png" alt="" class="wp-image-1265" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M-1024x661.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M-300x194.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M-768x496.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_u8WEBqSL2M.png 1504w" /></a><figcaption class="wp-element-caption">管理界面</figcaption></figure>
</div>


<p>还可以访问控制台输入指令，也可以在仿真终端用Tab键自动补全命令。Spigot给op管理权的命令也可以用，不过我对Spigot的插件了解甚少，并不太清楚应该加什么插件……</p>



<p>要让朋友们一起联机就在路由器设置一下端口转发就可以了，当然需要公网IP，不过我也早已经配置好了DDNS域名。直接填在启动器上就可以了</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_rZ8X2nDg4b.png" data-lbwps-width="812" data-lbwps-height="551" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_rZ8X2nDg4b-300x204.png"><img decoding="async" width="812" height="551" sizes="(max-width: 812px) 100vw, 812px" src="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_rZ8X2nDg4b.png" alt="" class="wp-image-1267" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_rZ8X2nDg4b.png 812w, https://v1sta.xyz/wp-content/uploads/2023/05/javaw_rZ8X2nDg4b-300x204.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/javaw_rZ8X2nDg4b-768x521.png 768w" /></a></figure>
</div>


<h2 class="wp-block-heading">自动更新</h2>



<p>用HMCL启动器可以制作OTA自动更新的整合包，类似CS社区服的体验，只要搭建一个静态资源站，填写整合包下载链接前缀就可以实现了。（甚至有人白嫖Git仓库实现静态文件的托管，不过想想也挺合理）</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_Jy1rTwE8Np.png" data-lbwps-width="813" data-lbwps-height="548" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_Jy1rTwE8Np-300x202.png"><img loading="lazy" decoding="async" width="813" height="548" sizes="auto, (max-width: 813px) 100vw, 813px" src="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_Jy1rTwE8Np.png" alt="" class="wp-image-1266" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/javaw_Jy1rTwE8Np.png 813w, https://v1sta.xyz/wp-content/uploads/2023/05/javaw_Jy1rTwE8Np-300x202.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/javaw_Jy1rTwE8Np-768x518.png 768w" /></a></figure>
</div>


<p><em>HMCL也可以通过CurseForge下载和管理模组，便利了很多，不得不感叹现在开源社区的强大，在此为那些默默无闻的贡献者表示感谢</em></p>



<p>具体参见：</p>



<figure class="wp-block-mamaduka-bookmark-card is-style-default"><a class="bookmark-card" href="https://docs.hmcl.net/modpack/serverpack.html"><div class="bookmark-card__content"><div class="bookmark-card__title">服务端自动更新整合包制作教程 &#8211; Hello Minecraft! Launcher 帮助文档</div><div class="bookmark-card__description"></div><div class="bookmark_card__meta"><img decoding="async" class="bookmark_card__meta-icon" src="https://docs.hmcl.net/favicon.ico"/><span class="bookmark_card__meta-publisher">docs.hmcl.net</span></div></div></a></figure>



<p></p>



<figure class="wp-block-mamaduka-bookmark-card is-style-horizontal"><a class="bookmark-card" href="https://lo-li.cc/2021/03/11/Nginx%E4%B8%8B%E9%85%8D%E7%BD%AEHMCL%E8%87%AA%E5%8A%A8%E6%9B%B4%E6%96%B0%E6%95%B4%E5%90%88%E5%8C%85/"><div class="bookmark-card__content"><div class="bookmark-card__title">Nginx 下配置 HMCL 自动更新整合包 | 18870</div><div class="bookmark-card__description"></div><div class="bookmark_card__meta"><img decoding="async" class="bookmark_card__meta-icon" src="https://lo-li.cc/img/avatar.png"/><span class="bookmark_card__meta-publisher">lo-li.cc</span></div></div></a></figure>



<p></p>



<p>简单来说还是用Nginx配置一个文件目录的web服务器，上传server-manifest.json文件，客户端再去读取服务器上的json文件，自动更新整合包的配置。不过每次增加mod也需要更新服务器上的json文件</p>



<p>Nginx的配置示例如下（来自18870）</p>



<pre class="wp-block-preformatted">server {
    listen 80;
    server_name localhost; 

    location / {
        root mc; 
    }
}</pre>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>最后一切妥当后，将整合包发给朋友们（比如搭建个黑群晖，顺便可以和朋友们共享整活视频），就可以和朋友们一起玩了！</p>


<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="640" sizes="auto, (max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/java_OhKH9dOpEI-1024x640.png" alt="" class="wp-image-1268" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/java_OhKH9dOpEI-1024x640.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/java_OhKH9dOpEI-300x188.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/java_OhKH9dOpEI-768x480.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/java_OhKH9dOpEI-1536x960.png 1536w, https://v1sta.xyz/wp-content/uploads/2023/05/java_OhKH9dOpEI.png 1920w" /></figure>
</div>

<div class="wp-block-image">
<figure class="aligncenter size-large"><img loading="lazy" decoding="async" width="1024" height="640" sizes="auto, (max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB-1024x640.png" alt="" class="wp-image-1272" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB-1024x640.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB-300x188.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB-768x480.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB-1536x960.png 1536w, https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB.png 1920w" /><figcaption class="wp-element-caption">玄爷（大雾</figcaption></figure>
</div>


<p>不知道为何域主发现自己反而晕MC的3D画面了，甚至这一天也玩不了其他的3D游戏，比如CSGO，可能是屏幕尺寸和视距的关系，也许MC更适合在小屏幕上游玩。</p>



<p>后续再考虑用Rsync或者快照自动备份存档或者整个系统……</p>



<p>域主早就失去以前的创造毅力了，现在连简单的挖矿都不能胜任，想当年我也是做过材质包和模型的小作者……啊哈哈，佐佑理不知道啦</p>



<p></p>

<p><a href="https://v1sta.xyz/tech/minecraft-server/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://v1sta.xyz/tech/minecraft-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB.png" length="1070864" type="image/png"/><media:content url="https://v1sta.xyz/wp-content/uploads/2023/05/java_Ti4l5ywrCB.png" width="1920" height="1200" medium="image" type="image/png"/>	</item>
		<item>
		<title>Proxmox VE仪表盘更换主题</title>
		<link>https://v1sta.xyz/tech/proxmox-theme/</link>
					<comments>https://v1sta.xyz/tech/proxmox-theme/#respond</comments>
		
		<dc:creator><![CDATA[远景の域主 V1STA]]></dc:creator>
		<pubDate>Thu, 04 May 2023 18:49:29 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PVE]]></category>
		<guid isPermaLink="false">https://v1sta.xyz/?p=980</guid>

					<description><![CDATA[PVE用了很长时间了，但感觉默认的界面稍显枯燥了些。 其实PVE 7.4版就添加了暗色模式。后来发现可以更换官 &#8230; <a href="https://v1sta.xyz/tech/proxmox-theme/" class="more-link">继续阅读<span class="screen-reader-text">Proxmox VE仪表盘更换主题</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>PVE用了很长时间了，但感觉默认的界面稍显枯燥了些。</p>



<p>其实PVE 7.4版就添加了暗色模式。后来发现可以更换官方的其他主题，换换心情无妨。</p>



<span id="more-980"></span>



<h2 class="wp-block-heading">前言</h2>



<p>本文基本参考了 Lunar Computer 的 Change the Theme of Proxmox VE</p>



<figure class="wp-block-mamaduka-bookmark-card is-style-horizontal"><a class="bookmark-card" href="https://lunar.computer/posts/themes-proxmox"><div class="bookmark-card__image"><img decoding="async" src="https://lunar.computer/img/theme-neptune.png"/></div><div class="bookmark-card__content"><div class="bookmark-card__title">Change the Theme of Proxmox VE :: LUNAR COMPUTER — Tech Blog and Tutorials</div><div class="bookmark-card__description">In this tutorial we’ll change the theme of Proxmox VE 6.0. There are six themes you can choose from (in the image below from top left to bottom right):
 theme-aria theme-classic theme-crisp (default theme) theme-gray theme-neptune theme-triton  Prepare Make sure you have a server running Proxmox VE 6.0. Then, make sure you have followed the steps in our previous article on how to make customizations to Proxmox VE 6.</div><div class="bookmark_card__meta"><img decoding="async" class="bookmark_card__meta-icon" src="https://lunar.computer/favicon.ico"/><span class="bookmark_card__meta-publisher">lunar.computer</span></div></div></a></figure>



<p></p>



<p>PVE的主题是使用extjs框架构建的（也是NAS系统OMV5以前的界面框架），理论上可用大部分extjs</p>



<p>但是经过我的测试，明确可用的只有以下六个主题，分别是：</p>



<ul class="wp-block-list">
<li><code>theme-aria</code></li>



<li><code>theme-classic</code></li>



<li><code>theme-crisp</code>（默认主题）</li>



<li><code>theme-gray</code></li>



<li><code>theme-neptune</code></li>



<li><code>theme-triton</code></li>
</ul>



<figure class="wp-block-image size-large"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes.png" data-lbwps-width="3072" data-lbwps-height="1536" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-300x150.png"><img loading="lazy" decoding="async" width="1024" height="512" sizes="auto, (max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-1024x512.png" alt="" class="wp-image-987" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-1024x512.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-300x150.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-768x384.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-1536x768.png 1536w, https://v1sta.xyz/wp-content/uploads/2023/05/proxmox-themes-2048x1024.png 2048w" /></a></figure>



<p>crisp是PVE的默认主题，和aria、neptune以及triton都是现代矢量化主题；classic和gray则是包含位图资源的经典主题（在高分屏下控件会部分模糊）。</p>



<p>此外Neptune有大间距的触屏版本，另外还有一些共用名称前缀、但实际不可用的子主题；主题也可以和PVE的官方暗色模式共存，但只有现代矢量化的主题效果最好。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">步骤</h2>



<p>首先打开终端，安装git，大部分情况下PVE默认是没有内置的，要使用apt安装：</p>



<pre class="wp-block-code"><code>apt install -y git</code></pre>



<p>然后建立目录以拉取主题仓库，目录的位置可随意（以下以custom目录为例），但是需要记住目录的路径，在下文的脚本文件配置中会用到</p>



<pre class="wp-block-code"><code>mkdir /usr/share/custom/ &amp;&amp; cd /usr/share/custom/</code></pre>



<p>使用git拉取主题仓库：</p>



<pre class="wp-block-code"><code>git clone git://git.proxmox.com/git/extjs.git</code></pre>



<p>在上述建立的custom目录中创建 apply.sh 作为生效用的脚本文件，并通过echo输出命令：拷贝custom下extjs目录文件到pve的资源目录</p>



<pre class="wp-block-code"><code>touch /usr/share/custom/apply.sh
echo "cp -vrf /usr/share/custom/extjs/extjs/build/classic/{theme-aria,theme-classic-sandbox,theme-classic,theme-gray,theme-neptune-touch,theme-neptune,theme-neutral,theme-triton} /usr/share/javascript/extjs/" &gt;&gt; /usr/share/custom/apply.sh</code></pre>



<p>并且使用正则替换 <code>/usr/share/pve-manager/index.html.tpl</code> 的主题名称（其中 <code>theme-crisp</code> 是默认/当前的主题，<code>theme-triton</code> 是想要换成的目标主题）</p>



<pre class="wp-block-code"><code>echo "sed -i.bak \"s/theme-crisp/theme-triton/g\" /usr/share/pve-manager/index.html.tpl" &gt;&gt; /usr/share/custom/apply.sh</code></pre>



<p>（实际就是一行css link，需要改的地方也就两处，改错了完全可以开SCP用记事本修改html模板文件）</p>



<p>最后用bash运行apply.sh</p>



<pre class="wp-block-code"><code>bash ./apply.sh</code></pre>



<h2 class="wp-block-heading">效果</h2>



<p>默认的PVE界面：</p>



<figure class="wp-block-image size-large"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA.png" data-lbwps-width="1280" data-lbwps-height="689" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA-300x161.png"><img loading="lazy" decoding="async" width="1024" height="551" sizes="auto, (max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA-1024x551.png" alt="" class="wp-image-984" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA-1024x551.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA-300x161.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA-768x413.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_Zh32XXsSZA.png 1280w" /></a><figcaption class="wp-element-caption">生效前</figcaption></figure>



<p>如果不出意外的话，打开web仪表盘后台会立即生效：</p>



<figure class="wp-block-image size-large"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn.png" data-lbwps-width="1280" data-lbwps-height="689" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn-300x161.png"><img loading="lazy" decoding="async" width="1024" height="551" sizes="auto, (max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn-1024x551.png" alt="" class="wp-image-983" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn-1024x551.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn-300x161.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn-768x413.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn.png 1280w" /></a><figcaption class="wp-element-caption">生效后</figcaption></figure>



<p>或者面临的是完全没加载CSS的错误样式</p>



<figure class="wp-block-image size-large"><a href="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9.png" data-lbwps-width="1280" data-lbwps-height="689" data-lbwps-srcsmall="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9-300x161.png"><img loading="lazy" decoding="async" width="1024" height="551" sizes="auto, (max-width: 1024px) 100vw, 1024px" src="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9-1024x551.png" alt="" class="wp-image-981" srcset="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9-1024x551.png 1024w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9-300x161.png 300w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9-768x413.png 768w, https://v1sta.xyz/wp-content/uploads/2023/05/chrome_0ZG9hzO8M9.png 1280w" /></a><figcaption class="wp-element-caption">一个典型的错误例子</figcaption></figure>



<p>如果出现没有加载CSS的错误，其实按照之前所说的，只要编辑 <code>/usr/share/pve-manager/index.html.tpl</code> 模板文件找到css link的那行就可以修复了，在目录下还有一个备份的bak文件可以复原么。</p>

<p><a href="https://v1sta.xyz/tech/proxmox-theme/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://v1sta.xyz/tech/proxmox-theme/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn.png" length="68542" type="image/png"/><media:content url="https://v1sta.xyz/wp-content/uploads/2023/05/chrome_ZcZXqphpBn.png" width="1280" height="689" medium="image" type="image/png"/>	</item>
		<item>
		<title>PVE直通4代酷睿核显和硬盘</title>
		<link>https://v1sta.xyz/tech/pve-passthrough/</link>
					<comments>https://v1sta.xyz/tech/pve-passthrough/#respond</comments>
		
		<dc:creator><![CDATA[远景の域主 V1STA]]></dc:creator>
		<pubDate>Tue, 02 May 2023 21:54:28 +0000</pubDate>
				<category><![CDATA[技术]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PVE]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">https://v1sta.xyz/?p=911</guid>

					<description><![CDATA[上个月卖掉了HP小主机，留着i5 4570t组了一台4代H81的“垃圾桶”跑OpenWRT和Windows做下 &#8230; <a href="https://v1sta.xyz/tech/pve-passthrough/" class="more-link">继续阅读<span class="screen-reader-text">PVE直通4代酷睿核显和硬盘</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[
<p>上个月卖掉了HP小主机，留着i5 4570t组了一台4代H81的“垃圾桶”跑OpenWRT和Windows做下载机，直接通过PVE从H110迁移了过来。</p>



<p>在7代的H110用i3 7100的时候，配置了GVT-g的核显直通用于转码（无视频输出），也可以为RDP启用硬件加速 ，但是4代平台开启直通就有所区别了（可输出视频信号）</p>



<span id="more-911"></span>



<p>以下操作在虚拟机已经配置好相关驱动的情况下进行，并且启用了RDP之类的远程访问方式。</p>



<p>打开终端，编辑 <code>/etc/default/grub</code> 文件，加入一行启动代码：</p>



<pre class="wp-block-code"><code>GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on video=efifb:off"</code></pre>



<p>再使用 <code>update-grub</code> 更新。之后添加驱动屏蔽的黑名单配置</p>



<pre class="wp-block-code"><code>nano /etc/modprobe.d/pve-blacklist.conf</code></pre>



<p>添加如下配置：</p>



<pre class="wp-block-code"><code>blacklist snd_hda_intel<br>blacklist snd_hda_codec_hdmi<br>blacklist i915</code></pre>



<p>编辑 /etc/modules 加载模块：</p>



<pre class="wp-block-code"><code>vfio<br>vfio_iommu_type1<br>vfio_pci<br>vfio_virqfd<br>kvmgt</code></pre>



<p>输入 <code>lspci -n -s 00:02</code> 查找核显，一般是8086开头，我的是8086:0412。</p>



<p>再添加到 <code>/etc/modprobe.d/vfio.conf</code> 文件</p>



<pre class="wp-block-code"><code>echo "options vfio-pci ids=8086:0412" &gt; /etc/modprobe.d/vfio.conf</code></pre>



<p>更新信息 <code>update-initramfs -u</code> 并重启</p>



<p>此时若开机显示卡在grub右上角的引导字符，则正确屏蔽了驱动</p>



<p>编辑虚拟机的配置文件 <code>/etc/pve/qemu-server/110.conf</code> ，添加代码：</p>



<pre class="wp-block-code"><code><code>args: <span style="background-color: initial; font-size: inherit;"> -device vfio-pci,host=00:02.0,addr=0x18,x-igd-opregion=on</span></code></code></pre>



<p>顺便设置一下CPU直通：</p>



<pre class="wp-block-code"><code>args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_synic,hv_stimer,hv_ipi,kvm=off'</code></pre>



<p>再进入Windows修复Intel核显的驱动，识别到显卡后，便可以通过主板的视频接口，将画面输出到显示器上，而RDP也能利用核显的硬件加速渲染。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>然后是直通硬盘，由于系统运行在SATA SSD上，所以使用的是类似于VMWare的RDM，性能几乎不衰减，但仍然走虚拟的SCSI驱动，所以不能获取到SMART信息。</p>



<p>手头正好有一块烂在手上的Intel 80GB SATA2的SSD（3Gbps），正好利用上做系统盘，用Acronis转移了系统映像后的速度还不错，另有一块500GB的HGST Travelstar 7K1000做数据盘，即便是SATA2的规格也比用虚拟磁盘的性能稳定。</p>



<p>列出硬盘列表与设备路径：</p>



<pre class="wp-block-code"><code>ls -la /dev/disk/by-id/|grep -v dm|grep -v lvm|grep -v part</code></pre>



<p>找到对应的硬盘，添加到虚拟机配置文件</p>



<pre class="wp-block-code"><code>qm set 120 --scsi2 /dev/disk/by-id/ata-INTEL_SSDSA2CW080G3....</code></pre>



<p>此时PVE的Web GUI转到虚拟机的硬件页面，可以看到直通后的硬盘，再设置启动项便可以安装系统了。</p>

<p><a href="https://v1sta.xyz/tech/pve-passthrough/" rel="nofollow">来源</a></p>]]></content:encoded>
					
					<wfw:commentRss>https://v1sta.xyz/tech/pve-passthrough/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<enclosure url="https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2.png" length="199214" type="image/png"/><media:content url="https://v1sta.xyz/wp-content/uploads/2026/03/V1sta-Orb-Output512-2.png" width="512" height="512" medium="image" type="image/png"/>	</item>
	</channel>
</rss>
