Files
oneclickvirt.github.io/guide/pve/pve_custom.html
2025-08-25 11:37:26 +00:00

58 lines
70 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>自定义分区 | 一键虚拟化项目</title>
<meta name="description" content="开源、易于使用的服务器虚拟化项目">
<meta name="generator" content="VitePress v1.6.3">
<link rel="preload stylesheet" href="/assets/style.DFTx90Kk.css" as="style">
<link rel="preload stylesheet" href="/vp-icons.css" as="style">
<script type="module" src="/assets/app.D4kLJnX4.js"></script>
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/theme.DJQtrHna.js">
<link rel="modulepreload" href="/assets/chunks/framework.CSeR4K32.js">
<link rel="modulepreload" href="/assets/guide_pve_pve_custom.md.D15qpeji.lean.js">
<link rel="icon" href="https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritlhls/pages/main/logo.png">
<meta name="google-site-verification" content="wdrGBim_2XmtMrqxivze70saMiPQAiOhpmN3KAWb0Sw">
<meta name="msvalidate.01" content="FC9B6B8BEB3D3B56844ADA69766DBB24">
<script src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5991535488582679" crossorigin="anonymous"></script>
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
</head>
<body>
<div id="app"><div class="Layout" data-v-5d98c3a5><!--[--><!--]--><!--[--><span tabindex="-1" data-v-0b0ada53></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-0b0ada53>Skip to content</a><!--]--><!----><header class="VPNav" data-v-5d98c3a5 data-v-ae24b3ad><div class="VPNavBar" data-v-ae24b3ad data-v-6aa21345><div class="wrapper" data-v-6aa21345><div class="container" data-v-6aa21345><div class="title" data-v-6aa21345><div class="VPNavBarTitle has-sidebar" data-v-6aa21345 data-v-1168a8e4><a class="title" href="/" data-v-1168a8e4><!--[--><!--]--><!--[--><img class="VPImage logo" src="https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritlhls/pages/main/logo.png" alt data-v-8426fc1a><!--]--><span data-v-1168a8e4>一键虚拟化项目</span><!--[--><!--]--></a></div></div><div class="content" data-v-6aa21345><div class="content-body" data-v-6aa21345><!--[--><!--]--><div class="VPNavBarSearch search" data-v-6aa21345><!--[--><!----><div id="docsearch"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><span class="vp-icon DocSearch-Search-Icon"></span><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-6aa21345 data-v-dc692963><span id="main-nav-aria-label" class="visually-hidden" data-v-dc692963> Main Navigation </span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink active" href="/" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>一键虚拟化项目</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/incomplete/index.html" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>其他虚拟化项目</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/case/index.html" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>其他实用项目</span><!--]--></a><!--]--><!--[--><a class="VPLink link vp-external-link-icon VPNavBarMenuLink" href="https://storage.spiritlhl.net/" target="_blank" rel="noreferrer" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>常用镜像</span><!--]--></a><!--]--><!--[--><a class="VPLink link vp-external-link-icon VPNavBarMenuLink" href="https://spiders.spiritlhl.net/" target="_blank" rel="noreferrer" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>VPS余量监控</span><!--]--></a><!--]--><!--[--><a class="VPLink link vp-external-link-icon VPNavBarMenuLink" href="https://beta.spiritlhl.net/" target="_blank" rel="noreferrer" tabindex="0" data-v-dc692963 data-v-e56f3d57><!--[--><span data-v-e56f3d57>VPS测试存档</span><!--]--></a><!--]--><!--]--></nav><div class="VPFlyout VPNavBarTranslations translations" data-v-6aa21345 data-v-88af2de4 data-v-cf11d7a2><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="Change language" data-v-cf11d7a2><span class="text" data-v-cf11d7a2><span class="vpi-languages option-icon" data-v-cf11d7a2></span><!----><span class="vpi-chevron-down text-icon" data-v-cf11d7a2></span></span></button><div class="menu" data-v-cf11d7a2><div class="VPMenu" data-v-cf11d7a2 data-v-b98bc113><!----><!--[--><!--[--><div class="items" data-v-88af2de4><p class="title" data-v-88af2de4>简体中文</p><!--[--><div class="VPMenuLink" data-v-88af2de4 data-v-35975db6><a class="VPLink link" href="/en/guide/pve/pve_custom.html" data-v-35975db6><!--[--><span data-v-35975db6>English</span><!--]--></a></div><!--]--></div><!--]--><!--]--></div></div></div><div class="VPNavBarAppearance appearance" data-v-6aa21345 data-v-6c893767><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-6c893767 data-v-5337faa4 data-v-1d5665e3><span class="check" data-v-1d5665e3><span class="icon" data-v-1d5665e3><!--[--><span class="vpi-sun sun" data-v-5337faa4></span><span class="vpi-moon moon" data-v-5337faa4></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-6aa21345 data-v-0394ad82 data-v-7bc22406><!--[--><a class="VPSocialLink no-icon" href="https://github.com/oneclickvirt/oneclickvirt.github.io" aria-label="github" target="_blank" rel="noopener" data-v-7bc22406 data-v-bd121fe5><span class="vpi-social-github"></span></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-6aa21345 data-v-bb2aa2f0 data-v-cf11d7a2><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-cf11d7a2><span class="vpi-more-horizontal icon" data-v-cf11d7a2></span></button><div class="menu" data-v-cf11d7a2><div class="VPMenu" data-v-cf11d7a2 data-v-b98bc113><!----><!--[--><!--[--><div class="group translations" data-v-bb2aa2f0><p class="trans-title" data-v-bb2aa2f0>简体中文</p><!--[--><div class="VPMenuLink" data-v-bb2aa2f0 data-v-35975db6><a class="VPLink link" href="/en/guide/pve/pve_custom.html" data-v-35975db6><!--[--><span data-v-35975db6>English</span><!--]--></a></div><!--]--></div><div class="group" data-v-bb2aa2f0><div class="item appearance" data-v-bb2aa2f0><p class="label" data-v-bb2aa2f0>Appearance</p><div class="appearance-action" data-v-bb2aa2f0><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-bb2aa2f0 data-v-5337faa4 data-v-1d5665e3><span class="check" data-v-1d5665e3><span class="icon" data-v-1d5665e3><!--[--><span class="vpi-sun sun" data-v-5337faa4></span><span class="vpi-moon moon" data-v-5337faa4></span><!--]--></span></span></button></div></div></div><div class="group" data-v-bb2aa2f0><div class="item social-links" data-v-bb2aa2f0><div class="VPSocialLinks social-links-list" data-v-bb2aa2f0 data-v-7bc22406><!--[--><a class="VPSocialLink no-icon" href="https://github.com/oneclickvirt/oneclickvirt.github.io" aria-label="github" target="_blank" rel="noopener" data-v-7bc22406 data-v-bd121fe5><span class="vpi-social-github"></span></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-6aa21345 data-v-e5dd9c1c><span class="container" data-v-e5dd9c1c><span class="top" data-v-e5dd9c1c></span><span class="middle" data-v-e5dd9c1c></span><span class="bottom" data-v-e5dd9c1c></span></span></button></div></div></div></div><div class="divider" data-v-6aa21345><div class="divider-line" data-v-6aa21345></div></div></div><!----></header><div class="VPLocalNav has-sidebar empty" data-v-5d98c3a5 data-v-a6f0e41e><div class="container" data-v-a6f0e41e><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-a6f0e41e><span class="vpi-align-left menu-icon" data-v-a6f0e41e></span><span class="menu-text" data-v-a6f0e41e>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-a6f0e41e data-v-8a42e2b4><button data-v-8a42e2b4>Return to top</button><!----></div></div></div><aside class="VPSidebar" data-v-5d98c3a5 data-v-319d5ca6><div class="curtain" data-v-319d5ca6></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-319d5ca6><span class="visually-hidden" id="sidebar-aria-label" data-v-319d5ca6> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>所有项目的前置条件</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/dashboard.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>准备工作</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0 has-active" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>Proxmox VE</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_precheck.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>系统和硬件配置要求</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_install.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>PVE主体安装</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_kvm.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Linux虚拟机(KVM/QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_lxc.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Linux容器(LXC)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_windows.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Windows虚拟机(KVM/QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_macos.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>MacOS虚拟机(KVM)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_android.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Android虚拟机(KVM)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_custom.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>自定义</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_thanks.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>致谢</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/pve/pve_qa.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>常见问题答疑</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>Incus</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_precheck.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>系统和硬件配置要求</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_install.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Incus主体安装</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_qemu.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Linux虚拟机(QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_lxc.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Linux容器(LXC)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_windows.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Windows虚拟机(QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_extra_config.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>更多配置</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_custom.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>自定义</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_thanks.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>致谢</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/incus/incus_qa.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>常见问题答疑</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>Docker</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_precheck.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>系统和硬件配置要求</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_install.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Docker主体安装</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_build.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Linux系统容器(LXC)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_windows.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Windows虚拟机(KVM/QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_macos.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Macos虚拟机(KVM)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_android.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Android虚拟机(KVM/QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_custom.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>自定义</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_thanks.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>致谢</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/docker/docker_qa.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>常见问题答疑</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>LXD</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_precheck.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>系统和硬件配置要求</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_install.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>LXD主体安装</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_lxc.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Linux容器(LXC)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_windows.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>Windows虚拟机(QEMU)</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_extra_config.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>更多配置</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_custom.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>自定义</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_thanks.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>致谢</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/lxd/lxd_qa.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>常见问题答疑</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>屏蔽滥用</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/block/block_iptables.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>通过iptables</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/block/block_pve.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>在PVE上</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/block/block_incus.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>在INCUS上</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/block/block_lxd.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>在LXD上</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/block/block_docker.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>在DOCKER上</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><div class="no-transition group" data-v-c40bc020><section class="VPSidebarItem level-0" data-v-c40bc020 data-v-b3fd67f8><div class="item" role="button" tabindex="0" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><h2 class="text" data-v-b3fd67f8>捐赠</h2><!----></div><div class="items" data-v-b3fd67f8><!--[--><div class="VPSidebarItem level-1 is-link" data-v-b3fd67f8 data-v-b3fd67f8><div class="item" data-v-b3fd67f8><div class="indicator" data-v-b3fd67f8></div><a class="VPLink link link" href="/guide/dashboardq.html" data-v-b3fd67f8><!--[--><p class="text" data-v-b3fd67f8>捐赠</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-5d98c3a5 data-v-1428d186><div class="VPDoc has-sidebar has-aside" data-v-1428d186 data-v-39a288b8><!--[--><!--]--><div class="container" data-v-39a288b8><div class="aside" data-v-39a288b8><div class="aside-curtain" data-v-39a288b8></div><div class="aside-container" data-v-39a288b8><div class="aside-content" data-v-39a288b8><div class="VPDocAside" data-v-39a288b8 data-v-3f215769><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-3f215769 data-v-a5bbad30><div class="content" data-v-a5bbad30><div class="outline-marker" data-v-a5bbad30></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-a5bbad30>On this page</div><ul class="VPDocOutlineItem root" data-v-a5bbad30 data-v-b933a997><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-3f215769></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-39a288b8><div class="content-container" data-v-39a288b8><!--[--><!--]--><main class="main" data-v-39a288b8><div style="position:relative;" class="vp-doc _guide_pve_pve_custom" data-v-39a288b8><div><h1 id="自定义分区" tabindex="-1">自定义分区 <a class="header-anchor" href="#自定义分区" aria-label="Permalink to &quot;自定义分区&quot;"></a></h1><h2 id="在非debian系统上安装-proxmox-ve-7" tabindex="-1">在非Debian系统上安装 Proxmox VE 7 <a class="header-anchor" href="#在非debian系统上安装-proxmox-ve-7" aria-label="Permalink to &quot;在非Debian系统上安装 Proxmox VE 7&quot;"></a></h2><p>本机硬件配置的最低要求同先前正常安装的要求一致</p><p>需要先安装docker</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>curl -sSL https://get.docker.com/ | sh</span></span>
<span class="line"><span>curl -L &quot;https://github.com/docker/compose/releases/latest/download/docker-compose-linux-$(uname -m)&quot; -o /usr/local/bin/docker-compose</span></span>
<span class="line"><span>chmod +x /usr/local/bin/docker-compose</span></span>
<span class="line"><span>docker-compose --version</span></span></code></pre></div><p>然后使用<code>uname -m</code>查询架构,使用对应架构的命令</p><p>开设出的PVE面板信息为</p><p>登录用户名和密码都是<code>root</code>登录后务必使用web的SSH更改密码以免被爆破</p><p>用宿主机SSH时务必登录对应<code>https://IPV4地址:8006</code>在web面板上使用SSH不要使用宿主机的22端口操控PVE</p><p>因为web面板上的SSH是在Docker内的所以不支持后续的一键配置请自行配置网关等进行使用</p><p>X86架构</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">docker</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> run</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -idt</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --network</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> host</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--privileged </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">\</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--name </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">pve</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--add-host </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">pve:10.13.14.101</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--hostname </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">pve</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">spiritlhl/pve:7_x86_64</span></span></code></pre></div><p>ARM架构</p><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">docker</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> run</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -idt</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --network</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> host</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--privileged </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">\</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--name </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">pve</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--add-host </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">pve:10.13.14.101</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">--hostname </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">pve</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> \</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">spiritlhl/pve:7_aarch64</span></span></code></pre></div><p>开设出的面板实际是开设在容器内的但网络已使用host模式PVE的端口约等于就使用的宿主机的端口</p><p>但这里登录的用户名和密码就变成了<code>root</code><code>root</code>,如需修改请<code>docker exec -it pve /bin/bash</code>进入后修改root的密码然后按<code>ctrl</code>键和<code>A+D</code>退出。</p><p>有许多错误需要修复欢迎PR解决问题实测在Ubuntu系统的宿主机上安装<code>Proxmox VE</code>的面板成功,解决了通过网络安装<code>Proxmox VE</code>只能使用Debian系统做宿主机的问题</p><h2 id="在低配置系统中优化proxmox-ve的内存占用" tabindex="-1">在低配置系统中优化Proxmox-VE的内存占用 <a class="header-anchor" href="#在低配置系统中优化proxmox-ve的内存占用" aria-label="Permalink to &quot;在低配置系统中优化Proxmox-VE的内存占用&quot;"></a></h2><p>以下优化可以减少至少400M内存左右的占用部分机器能减少6GB以上实际减少多少内存占用自行测试</p><h3 id="减少max-workers数量" tabindex="-1">减少max_workers数量 <a class="header-anchor" href="#减少max-workers数量" aria-label="Permalink to &quot;减少max_workers数量&quot;"></a></h3><p>执行下述命令查询</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>cd /usr/share/perl5/PVE/Service</span></span>
<span class="line"><span>grep &#39;max_workers =&gt; 3&#39; *</span></span></code></pre></div><p>可见</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>pvedaemon.pm: max_workers =&gt; 3,</span></span>
<span class="line"><span>pveproxy.pm: max_workers =&gt; 3,</span></span>
<span class="line"><span>spiceproxy.pm: max_workers =&gt; 3, # todo: do we need more?</span></span></code></pre></div><p>默认的max_workers是3可以修改对应的文件最低max_workers可为1可使用如下命令进行修改</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>sed -i &quot;s/max_workers =&gt; 3/max_workers =&gt; 1/g&quot; /usr/share/perl5/PVE/Service/*</span></span></code></pre></div><h3 id="停用ha服务" tabindex="-1">停用HA服务 <a class="header-anchor" href="#停用ha服务" aria-label="Permalink to &quot;停用HA服务&quot;"></a></h3><p>集群(多节点)可以使用HA服务如果是单节点或者没有HA使用的需求可以执行下述命令禁用</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>systemctl stop pve-ha-lrm.service </span></span>
<span class="line"><span>systemctl stop pve-ha-crm.service </span></span>
<span class="line"><span>systemctl disable pve-ha-lrm.service </span></span>
<span class="line"><span>systemctl disable pve-ha-crm.service</span></span></code></pre></div><h3 id="停用防火墙服务" tabindex="-1">停用防火墙服务 <a class="header-anchor" href="#停用防火墙服务" aria-label="Permalink to &quot;停用防火墙服务&quot;"></a></h3><p>可执行下述命令停用服务</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>systemctl stop pve-firewall.service </span></span>
<span class="line"><span>systemctl disable pve-firewall.service</span></span></code></pre></div><h3 id="停用调度服务" tabindex="-1">停用调度服务 <a class="header-anchor" href="#停用调度服务" aria-label="Permalink to &quot;停用调度服务&quot;"></a></h3><p>如果不需要计划任务,如备份、同步之类的任务,可执行下述命令停用服务</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>systemctl stop pvescheduler.service</span></span>
<span class="line"><span>systemctl disable pvescheduler.service</span></span></code></pre></div><h3 id="停用spiceproxy服务" tabindex="-1">停用Spiceproxy服务 <a class="header-anchor" href="#停用spiceproxy服务" aria-label="Permalink to &quot;停用Spiceproxy服务&quot;"></a></h3><p>如果不需要使用Spice进行虚拟机/容器链接(arm下暂不支持Spice),可执行下述命令停用服务</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>systemctl stop spiceproxy.service </span></span>
<span class="line"><span>systemctl disable spiceproxy.service</span></span></code></pre></div><h3 id="使用定时任务删除内存缓存" tabindex="-1">使用定时任务删除内存缓存 <a class="header-anchor" href="#使用定时任务删除内存缓存" aria-label="Permalink to &quot;使用定时任务删除内存缓存&quot;"></a></h3><p>清理不同类型的缓存以及对文件系统进行TRIM操作</p><div class="language-shell vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">TEMP_CRON</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">$(</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">mktemp</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">sudo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> crontab</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -l</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> &gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">echo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;*/5 * * * * echo 1 &gt; /proc/sys/vm/drop_caches&quot;</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> &gt;&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">echo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;*/5 * * * * sleep 60; echo 2 &gt; /proc/sys/vm/drop_caches&quot;</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> &gt;&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">echo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;*/5 * * * * sleep 120; echo 3 &gt; /proc/sys/vm/drop_caches&quot;</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> &gt;&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span>
<span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">echo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;*/5 * * * * sleep 180; fstrim -av&quot;</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> &gt;&gt;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">sudo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> crontab</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">rm</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> $TEMP_CRON</span></span></code></pre></div><p>上面的命令需要宿主机本身有<code>sudo</code><code>crontab</code>命令才可使用。</p><h2 id="自行映射公网端口到开设出的nat的kvm虚拟机上" tabindex="-1">自行映射公网端口到开设出的NAT的KVM虚拟机上 <a class="header-anchor" href="#自行映射公网端口到开设出的nat的kvm虚拟机上" aria-label="Permalink to &quot;自行映射公网端口到开设出的NAT的KVM虚拟机上&quot;"></a></h2><p>下面所有操作在PVE宿主机上进行操作</p><p>使用<code>nano</code><code>vim</code>命令修改文件增加端口映射:</p><div class="language-shell vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">/etc/iptables/rules.v4</span></span></code></pre></div><p>例如我有一台内网IP为<code>172.16.1.152</code>的KVM虚拟机(虚拟机不管是什么系统的web端都能查看到内网IP地址)虚拟机内已经开设MYSQL监听了<code>3306</code>,我需要使用<code>tcp</code>协议映射出来到宿主机IP上的<code>33306</code>端口上进行使用,那么需要在上面的那个文件中的<code>COMMIT</code>行以上增加如下行</p><div class="language-shell vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">-A</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> PREROUTING</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -i</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> vmbr0</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -p</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> tcp</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -m</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> tcp</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -dport</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> 33306</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> -j</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> DNAT</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> --to-destination</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> 172.16.1.152:3306</span></span></code></pre></div><p>如果是udp协议上面的代码中的<code>tcp</code>修改为<code>udp</code>即可</p><p>保存文件退出文件编辑后执行</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>service netfilter-persistent restart</span></span></code></pre></div><p>重载端口映射</p><p>此时在宿主机上执行</p><div class="language- vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang"></span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span>lsof -i:33306</span></span></code></pre></div><p>可见端口映射规则是否生效</p><h2 id="开设linux虚拟机的时候自定义cpu的type" tabindex="-1">开设Linux虚拟机的时候自定义CPU的TYPE <a class="header-anchor" href="#开设linux虚拟机的时候自定义cpu的type" aria-label="Permalink to &quot;开设Linux虚拟机的时候自定义CPU的TYPE&quot;"></a></h2><p>在宿主机上使用类似</p><div class="language-shell vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">shell</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">echo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> &quot;kvm64&quot;</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> &gt;</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> /usr/local/bin/cpu_type</span></span></code></pre></div><p>这样的方式指定默认的CPU的TYPE可将<code>kvm64</code>替换为你需要的类型</p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-e257564d><!--[--><!--]--><div class="edit-info" data-v-e257564d><div class="edit-link" data-v-e257564d><a class="VPLink link vp-external-link-icon no-icon edit-link-button" href="https://github.com/oneclickvirt/oneclickvirt.github.io/edit/main/docs/guide/pve/pve_custom.md" target="_blank" rel="noreferrer" data-v-e257564d><!--[--><span class="vpi-square-pen edit-link-icon" data-v-e257564d></span> 在GitHub中编辑<!--]--></a></div><div class="last-updated" data-v-e257564d><p class="VPLastUpdated" data-v-e257564d data-v-e98dd255>上次更新: <time datetime="2025-08-25T11:36:59.000Z" data-v-e98dd255></time></p></div></div><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-e257564d><span class="visually-hidden" id="doc-footer-aria-label" data-v-e257564d>Pager</span><div class="pager" data-v-e257564d><a class="VPLink link pager-link prev" href="/guide/pve/pve_android.html" data-v-e257564d><!--[--><span class="desc" data-v-e257564d>Previous page</span><span class="title" data-v-e257564d>Android虚拟机(KVM)</span><!--]--></a></div><div class="pager" data-v-e257564d><a class="VPLink link pager-link next" href="/guide/pve/pve_thanks.html" data-v-e257564d><!--[--><span class="desc" data-v-e257564d>Next page</span><span class="title" data-v-e257564d>致谢</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-5d98c3a5 data-v-e315a0ad><div class="container" data-v-e315a0ad><p class="message" data-v-e315a0ad>Under <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">(CC BY-NC-SA 4.0) License.</a><br>Also thanks to <a href="https://www.cloudflare.com/">Cloudflare</a> and <a href="https://blog.tanglu.me/">tanglu.me</a> for the CDN.</p><p class="copyright" data-v-e315a0ad>Copyright © 2022-present oneclickvirt</p></div></footer><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"case_case1.md\":\"QCw3vCum\",\"case_case2.md\":\"D-N_5IyV\",\"case_case3.md\":\"DsMrcp8g\",\"case_case4.md\":\"Rjup-fG4\",\"case_case5.md\":\"D2onQviD\",\"case_case6.md\":\"DnknI0cB\",\"case_case7.md\":\"Cplo_7h-\",\"case_index.md\":\"Dyic-TZB\",\"developer_index.md\":\"D6G6WkH5\",\"developer_l10n.md\":\"vJO1deq6\",\"en_developer_index.md\":\"BBDQAo-i\",\"en_developer_l10n.md\":\"U_AW-rCZ\",\"en_guide_block_block_docker.md\":\"BNWJqy7c\",\"en_guide_block_block_incus.md\":\"wfJfeW-X\",\"en_guide_block_block_iptables.md\":\"CkKX43WG\",\"en_guide_block_block_lxd.md\":\"CS225dRm\",\"en_guide_block_block_pve.md\":\"C5GIYZfw\",\"en_guide_dashboard.md\":\"CoPXQKYp\",\"en_guide_dashboardq.md\":\"D9rbq_RH\",\"en_guide_docker_docker_android.md\":\"CD_FyeL0\",\"en_guide_docker_docker_build.md\":\"iJMqDSJF\",\"en_guide_docker_docker_custom.md\":\"B_wsfaWi\",\"en_guide_docker_docker_install.md\":\"DwLnhh5p\",\"en_guide_docker_docker_macos.md\":\"BpajpVfa\",\"en_guide_docker_docker_precheck.md\":\"V5LHCQyN\",\"en_guide_docker_docker_qa.md\":\"H7ZPFLy2\",\"en_guide_docker_docker_thanks.md\":\"DhW-g4GV\",\"en_guide_docker_docker_windows.md\":\"DQDzfGsY\",\"en_guide_incus_incus_custom.md\":\"E_asbeCw\",\"en_guide_incus_incus_extra_config.md\":\"B5XkWNow\",\"en_guide_incus_incus_install.md\":\"DIlXX2ph\",\"en_guide_incus_incus_lxc.md\":\"C_QX4oey\",\"en_guide_incus_incus_precheck.md\":\"B5ckhoNv\",\"en_guide_incus_incus_qa.md\":\"L9GZgJZD\",\"en_guide_incus_incus_thanks.md\":\"D9kOBjGM\",\"en_guide_incus_incus_windows.md\":\"CqGrE45j\",\"en_guide_lxd_lxd_custom.md\":\"CjWN2cVk\",\"en_guide_lxd_lxd_extra_config.md\":\"Bl5Z3_I4\",\"en_guide_lxd_lxd_install.md\":\"CdzpdxRN\",\"en_guide_lxd_lxd_lxc.md\":\"x5Nd3YEY\",\"en_guide_lxd_lxd_precheck.md\":\"DT-85UWn\",\"en_guide_lxd_lxd_qa.md\":\"sCEW4I9W\",\"en_guide_lxd_lxd_thanks.md\":\"BoduABmP\",\"en_guide_lxd_lxd_windows.md\":\"CE_TOBeZ\",\"en_guide_pve_images_readme.md\":\"DZfLTPtX\",\"en_guide_pve_pve_android.md\":\"ZW0m0P5y\",\"en_guide_pve_pve_custom.md\":\"DOrI7j2M\",\"en_guide_pve_pve_install.md\":\"Dm1H8V1T\",\"en_guide_pve_pve_kvm.md\":\"BWy89qFV\",\"en_guide_pve_pve_lxc.md\":\"YFVmBfgH\",\"en_guide_pve_pve_macos.md\":\"ERocA8H7\",\"en_guide_pve_pve_precheck.md\":\"C6a_G_Jy\",\"en_guide_pve_pve_qa.md\":\"CXCdOEmO\",\"en_guide_pve_pve_thanks.md\":\"DU4aFpxB\",\"en_guide_pve_pve_windows.md\":\"Bym4HK_7\",\"en_incomplete_bashvm.md\":\"DFG7m4TY\",\"en_incomplete_cockpit.md\":\"wxUl1cJe\",\"en_incomplete_convoy.md\":\"By2pRJqA\",\"en_incomplete_index.md\":\"5As4OCnY\",\"en_incomplete_pterodactyl.md\":\"mmXDXf_0\",\"en_incomplete_virtfusion.md\":\"Dor0-5nj\",\"en_incomplete_virtualizor-docker.md\":\"3GKNv7Rt\",\"en_incomplete_webvirtcloud.md\":\"BzqvHl8J\",\"en_incomplete_webvirtcloud_retspen.md\":\"CoN4SyT1\",\"en_incomplete_webvirtmgr.md\":\"ShQXDOLI\",\"en_index.md\":\"m2TwdHhZ\",\"guide_block_block_docker.md\":\"DWi5EGI9\",\"guide_block_block_incus.md\":\"C88KHfvV\",\"guide_block_block_iptables.md\":\"E_1VFpAG\",\"guide_block_block_lxd.md\":\"DkhRGUz6\",\"guide_block_block_pve.md\":\"DAGSUWt3\",\"guide_dashboard.md\":\"BB1iidCR\",\"guide_dashboardq.md\":\"CTyWtFwe\",\"guide_docker_docker_android.md\":\"D2IpxFcj\",\"guide_docker_docker_build.md\":\"D0HCrpBR\",\"guide_docker_docker_custom.md\":\"BdoMksZm\",\"guide_docker_docker_install.md\":\"BauRmAzH\",\"guide_docker_docker_macos.md\":\"1nzuydl8\",\"guide_docker_docker_precheck.md\":\"Wga7B7Tn\",\"guide_docker_docker_qa.md\":\"CNezXd7Z\",\"guide_docker_docker_thanks.md\":\"BAy7vhZQ\",\"guide_docker_docker_windows.md\":\"CJkoRf6n\",\"guide_incus_incus_custom.md\":\"DM5GVyXf\",\"guide_incus_incus_extra_config.md\":\"CKmmqnVk\",\"guide_incus_incus_install.md\":\"DpKhuUNw\",\"guide_incus_incus_lxc.md\":\"D8oZPTHJ\",\"guide_incus_incus_precheck.md\":\"DoKW7f3_\",\"guide_incus_incus_qa.md\":\"DL3-7LII\",\"guide_incus_incus_qemu.md\":\"BVvYeZXm\",\"guide_incus_incus_thanks.md\":\"DgaCBC7C\",\"guide_incus_incus_windows.md\":\"N23F_ODn\",\"guide_lxd_lxd_custom.md\":\"BqBS0iFQ\",\"guide_lxd_lxd_extra_config.md\":\"BoHbKi9X\",\"guide_lxd_lxd_install.md\":\"CcsjReAt\",\"guide_lxd_lxd_lxc.md\":\"CIcgM6SU\",\"guide_lxd_lxd_precheck.md\":\"BHnypqnY\",\"guide_lxd_lxd_qa.md\":\"BZS88HJ_\",\"guide_lxd_lxd_thanks.md\":\"C1lKO-j2\",\"guide_lxd_lxd_windows.md\":\"Dj6yBVt8\",\"guide_pve_images_readme.md\":\"BE2n0KWI\",\"guide_pve_pve_android.md\":\"BU8Q-0ol\",\"guide_pve_pve_custom.md\":\"D15qpeji\",\"guide_pve_pve_install.md\":\"DbbTbDvp\",\"guide_pve_pve_kvm.md\":\"DbbW3m-L\",\"guide_pve_pve_lxc.md\":\"DBQcT5Ov\",\"guide_pve_pve_macos.md\":\"B-d8_og-\",\"guide_pve_pve_precheck.md\":\"yNMO3rHm\",\"guide_pve_pve_qa.md\":\"CPBuO54z\",\"guide_pve_pve_thanks.md\":\"BbKshTY6\",\"guide_pve_pve_windows.md\":\"BZmvwm4A\",\"incomplete_bashvm.md\":\"VFttIy5w\",\"incomplete_cockpit.md\":\"Ba7IQ_0t\",\"incomplete_convoy.md\":\"D7SBwRld\",\"incomplete_index.md\":\"DMFLuKmo\",\"incomplete_pterodactyl.md\":\"BnLYr-C4\",\"incomplete_virtfusion.md\":\"fZmFl8gX\",\"incomplete_virtualizor-docker.md\":\"BI4rp1yg\",\"incomplete_webvirtcloud.md\":\"D781gDtL\",\"incomplete_webvirtcloud_retspen.md\":\"Bd6WDPPc\",\"incomplete_webvirtmgr.md\":\"jg76GIY2\",\"index.md\":\"CJEdYYOc\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"zh-CN\",\"dir\":\"ltr\",\"title\":\"VitePress\",\"description\":\"A VitePress site\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/oneclickvirt/oneclickvirt.github.io\"}],\"algolia\":{\"appId\":\"K1R85MDU0C\",\"apiKey\":\"9375787ec1c00e2b813683fbbde25ae2\",\"indexName\":\"virt-spiritlhl\"},\"footer\":{\"message\":\"Under <a rel=\\\"license\\\" href=\\\"http://creativecommons.org/licenses/by-nc-sa/4.0/\\\">(CC BY-NC-SA 4.0) License.</a><br>Also thanks to <a href=\\\"https://www.cloudflare.com/\\\">Cloudflare</a> and <a href=\\\"https://blog.tanglu.me/\\\">tanglu.me</a> for the CDN.\",\"copyright\":\"Copyright © 2022-present oneclickvirt\"}},\"locales\":{\"root\":{\"lang\":\"zh-CN\",\"label\":\"简体中文\",\"title\":\"一键虚拟化项目\",\"description\":\"开源、易于使用的服务器虚拟化项目\",\"link\":\"/\",\"themeConfig\":{\"logo\":{\"src\":\"https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritlhls/pages/main/logo.png\"},\"lastUpdatedText\":\"上次更新\",\"editLink\":{\"pattern\":\"https://github.com/oneclickvirt/oneclickvirt.github.io/edit/main/docs/:path\",\"text\":\"在GitHub中编辑\"},\"nav\":[{\"text\":\"一键虚拟化项目\",\"link\":\"/\",\"activeMatch\":\"^/$|^/guide/\"},{\"text\":\"其他虚拟化项目\",\"link\":\"/incomplete/index\",\"activeMatch\":\"^/incomplete/\"},{\"text\":\"其他实用项目\",\"link\":\"/case/index\",\"activeMatch\":\"^/case/\"},{\"text\":\"常用镜像\",\"link\":\"https://storage.spiritlhl.net/\"},{\"text\":\"VPS余量监控\",\"link\":\"https://spiders.spiritlhl.net/\"},{\"text\":\"VPS测试存档\",\"link\":\"https://beta.spiritlhl.net/\"}],\"sidebar\":{\"/\":[{\"text\":\"所有项目的前置条件\",\"items\":[{\"text\":\"准备工作\",\"link\":\"/guide/dashboard.html\"}]},{\"text\":\"Proxmox VE\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/pve/pve_precheck.html\"},{\"text\":\"PVE主体安装\",\"link\":\"/guide/pve/pve_install.html\"},{\"text\":\"Linux虚拟机(KVM/QEMU)\",\"link\":\"/guide/pve/pve_kvm.html\"},{\"text\":\"Linux容器(LXC)\",\"link\":\"/guide/pve/pve_lxc.html\"},{\"text\":\"Windows虚拟机(KVM/QEMU)\",\"link\":\"/guide/pve/pve_windows.html\"},{\"text\":\"MacOS虚拟机(KVM)\",\"link\":\"/guide/pve/pve_macos.html\"},{\"text\":\"Android虚拟机(KVM)\",\"link\":\"/guide/pve/pve_android.html\"},{\"text\":\"自定义\",\"link\":\"/guide/pve/pve_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/pve/pve_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/pve/pve_qa.html\"}]},{\"text\":\"Incus\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/incus/incus_precheck.html\"},{\"text\":\"Incus主体安装\",\"link\":\"/guide/incus/incus_install.html\"},{\"text\":\"Linux虚拟机(QEMU)\",\"link\":\"/guide/incus/incus_qemu.html\"},{\"text\":\"Linux容器(LXC)\",\"link\":\"/guide/incus/incus_lxc.html\"},{\"text\":\"Windows虚拟机(QEMU)\",\"link\":\"/guide/incus/incus_windows.html\"},{\"text\":\"更多配置\",\"link\":\"/guide/incus/incus_extra_config.html\"},{\"text\":\"自定义\",\"link\":\"/guide/incus/incus_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/incus/incus_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/incus/incus_qa.html\"}]},{\"text\":\"Docker\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/docker/docker_precheck.html\"},{\"text\":\"Docker主体安装\",\"link\":\"/guide/docker/docker_install.html\"},{\"text\":\"Linux系统容器(LXC)\",\"link\":\"/guide/docker/docker_build.html\"},{\"text\":\"Windows虚拟机(KVM/QEMU)\",\"link\":\"/guide/docker/docker_windows.html\"},{\"text\":\"Macos虚拟机(KVM)\",\"link\":\"/guide/docker/docker_macos.html\"},{\"text\":\"Android虚拟机(KVM/QEMU)\",\"link\":\"/guide/docker/docker_android.html\"},{\"text\":\"自定义\",\"link\":\"/guide/docker/docker_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/docker/docker_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/docker/docker_qa.html\"}]},{\"text\":\"LXD\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/lxd/lxd_precheck.html\"},{\"text\":\"LXD主体安装\",\"link\":\"/guide/lxd/lxd_install.html\"},{\"text\":\"Linux容器(LXC)\",\"link\":\"/guide/lxd/lxd_lxc.html\"},{\"text\":\"Windows虚拟机(QEMU)\",\"link\":\"/guide/lxd/lxd_windows.html\"},{\"text\":\"更多配置\",\"link\":\"/guide/lxd/lxd_extra_config.html\"},{\"text\":\"自定义\",\"link\":\"/guide/lxd/lxd_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/lxd/lxd_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/lxd/lxd_qa.html\"}]},{\"text\":\"屏蔽滥用\",\"items\":[{\"text\":\"通过iptables\",\"link\":\"/guide/block/block_iptables.html\"},{\"text\":\"在PVE上\",\"link\":\"/guide/block/block_pve.html\"},{\"text\":\"在INCUS上\",\"link\":\"/guide/block/block_incus.html\"},{\"text\":\"在LXD上\",\"link\":\"/guide/block/block_lxd.html\"},{\"text\":\"在DOCKER上\",\"link\":\"/guide/block/block_docker.html\"}]},{\"text\":\"捐赠\",\"items\":[{\"text\":\"捐赠\",\"link\":\"/guide/dashboardq.html\"}]}],\"/guide/\":[{\"text\":\"所有项目的前置条件\",\"items\":[{\"text\":\"准备工作\",\"link\":\"/guide/dashboard.html\"}]},{\"text\":\"Proxmox VE\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/pve/pve_precheck.html\"},{\"text\":\"PVE主体安装\",\"link\":\"/guide/pve/pve_install.html\"},{\"text\":\"Linux虚拟机(KVM/QEMU)\",\"link\":\"/guide/pve/pve_kvm.html\"},{\"text\":\"Linux容器(LXC)\",\"link\":\"/guide/pve/pve_lxc.html\"},{\"text\":\"Windows虚拟机(KVM/QEMU)\",\"link\":\"/guide/pve/pve_windows.html\"},{\"text\":\"MacOS虚拟机(KVM)\",\"link\":\"/guide/pve/pve_macos.html\"},{\"text\":\"Android虚拟机(KVM)\",\"link\":\"/guide/pve/pve_android.html\"},{\"text\":\"自定义\",\"link\":\"/guide/pve/pve_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/pve/pve_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/pve/pve_qa.html\"}]},{\"text\":\"Incus\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/incus/incus_precheck.html\"},{\"text\":\"Incus主体安装\",\"link\":\"/guide/incus/incus_install.html\"},{\"text\":\"Linux虚拟机(QEMU)\",\"link\":\"/guide/incus/incus_qemu.html\"},{\"text\":\"Linux容器(LXC)\",\"link\":\"/guide/incus/incus_lxc.html\"},{\"text\":\"Windows虚拟机(QEMU)\",\"link\":\"/guide/incus/incus_windows.html\"},{\"text\":\"更多配置\",\"link\":\"/guide/incus/incus_extra_config.html\"},{\"text\":\"自定义\",\"link\":\"/guide/incus/incus_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/incus/incus_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/incus/incus_qa.html\"}]},{\"text\":\"Docker\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/docker/docker_precheck.html\"},{\"text\":\"Docker主体安装\",\"link\":\"/guide/docker/docker_install.html\"},{\"text\":\"Linux系统容器(LXC)\",\"link\":\"/guide/docker/docker_build.html\"},{\"text\":\"Windows虚拟机(KVM/QEMU)\",\"link\":\"/guide/docker/docker_windows.html\"},{\"text\":\"Macos虚拟机(KVM)\",\"link\":\"/guide/docker/docker_macos.html\"},{\"text\":\"Android虚拟机(KVM/QEMU)\",\"link\":\"/guide/docker/docker_android.html\"},{\"text\":\"自定义\",\"link\":\"/guide/docker/docker_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/docker/docker_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/docker/docker_qa.html\"}]},{\"text\":\"LXD\",\"items\":[{\"text\":\"系统和硬件配置要求\",\"link\":\"/guide/lxd/lxd_precheck.html\"},{\"text\":\"LXD主体安装\",\"link\":\"/guide/lxd/lxd_install.html\"},{\"text\":\"Linux容器(LXC)\",\"link\":\"/guide/lxd/lxd_lxc.html\"},{\"text\":\"Windows虚拟机(QEMU)\",\"link\":\"/guide/lxd/lxd_windows.html\"},{\"text\":\"更多配置\",\"link\":\"/guide/lxd/lxd_extra_config.html\"},{\"text\":\"自定义\",\"link\":\"/guide/lxd/lxd_custom.html\"},{\"text\":\"致谢\",\"link\":\"/guide/lxd/lxd_thanks.html\"},{\"text\":\"常见问题答疑\",\"link\":\"/guide/lxd/lxd_qa.html\"}]},{\"text\":\"屏蔽滥用\",\"items\":[{\"text\":\"通过iptables\",\"link\":\"/guide/block/block_iptables.html\"},{\"text\":\"在PVE上\",\"link\":\"/guide/block/block_pve.html\"},{\"text\":\"在INCUS上\",\"link\":\"/guide/block/block_incus.html\"},{\"text\":\"在LXD上\",\"link\":\"/guide/block/block_lxd.html\"},{\"text\":\"在DOCKER上\",\"link\":\"/guide/block/block_docker.html\"}]},{\"text\":\"捐赠\",\"items\":[{\"text\":\"捐赠\",\"link\":\"/guide/dashboardq.html\"}]}],\"/case/\":[{\"text\":\"Linux相关\",\"items\":[{\"text\":\"1. VPS融合怪服务器测评脚本\",\"link\":\"/case/case1.html\"},{\"text\":\"2. 一键修复与安装脚本(各种linux系统修复与服务器环境安装脚本)\",\"link\":\"/case/case2.html\"},{\"text\":\"3. 自动更新测试服务器节点列表的网络基准测试脚本\",\"link\":\"/case/case3.html\"},{\"text\":\"4. 三网回程路由线路测试脚本\",\"link\":\"/case/case4.html\"},{\"text\":\"5. 服务器资源占用脚本\",\"link\":\"/case/case5.html\"},{\"text\":\"6. 为linux服务器增加swap分区(虚拟内存)\",\"link\":\"/case/case6.html\"},{\"text\":\"7. 为linux服务器启用zram设备(压缩内存)\",\"link\":\"/case/case7.html\"}]}],\"/incomplete/\":[{\"text\":\"其他虚拟化项目\",\"items\":[{\"text\":\"webvirtcloud\",\"link\":\"/incomplete/webvirtcloud.html\"},{\"text\":\"webvirtcloud_retspen\",\"link\":\"/incomplete/webvirtcloud_retspen.html\"},{\"text\":\"pterodactyl\",\"link\":\"/incomplete/pterodactyl.html\"},{\"text\":\"convoy\",\"link\":\"/incomplete/convoy.html\"},{\"text\":\"cockpit\",\"link\":\"/incomplete/cockpit.html\"},{\"text\":\"virtfusion\",\"link\":\"/incomplete/virtfusion.html\"},{\"text\":\"virtualizor-docker\",\"link\":\"/incomplete/virtualizor-docker.html\"},{\"text\":\"bashvm\",\"link\":\"/incomplete/bashvm.html\"},{\"text\":\"webvirtmgr\",\"link\":\"/incomplete/webvirtmgr.html\"}]}],\"/developer/\":[{\"text\":\"开发手册\",\"items\":[{\"text\":\"l10n\",\"link\":\"/developer/l10n.html\"}]}]}}},\"en\":{\"lang\":\"en-US\",\"label\":\"English\",\"title\":\"One Click Virtualization\",\"description\":\"Open source, easy to use server virtualization project\",\"link\":\"/en/\",\"themeConfig\":{\"logo\":{\"src\":\"https://cdn.spiritlhl.net/https://raw.githubusercontent.com/spiritlhls/pages/main/logo.png\"},\"lastUpdatedText\":\"Last Updated\",\"editLink\":{\"text\":\"Edit this page on GitHub\",\"pattern\":\"https://github.com/oneclickvirt/oneclickvirt.github.io/edit/main/docs/:path\"},\"nav\":[{\"text\":\"One Click Virtualization\",\"link\":\"/en/\",\"activeMatch\":\"^/en/guide/\"},{\"text\":\"Other Virtualization Projects\",\"link\":\"/en/incomplete/index\",\"activeMatch\":\"^/en/incomplete/\"},{\"text\":\"Common Images\",\"link\":\"https://storage.spiritlhl.net/\"},{\"text\":\"VPS Stock Monitor\",\"link\":\"https://spiders.spiritlhl.net/\"},{\"text\":\"VPS Test Archive\",\"link\":\"https://beta.spiritlhl.net/\"}],\"sidebar\":{\"/en/\":[{\"text\":\"Pre-requisites for all projects\",\"items\":[{\"text\":\"Preparation\",\"link\":\"/en/guide/dashboard.html\"}]},{\"text\":\"Proxmox VE\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/pve/pve_precheck.html\"},{\"text\":\"PVE main installation\",\"link\":\"/en/guide/pve/pve_install.html\"},{\"text\":\"Linux Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/pve/pve_kvm.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/pve/pve_lxc.html\"},{\"text\":\"Windows Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/pve/pve_windows.html\"},{\"text\":\"MacOS Virtual Machine(KVM)\",\"link\":\"/en/guide/pve/pve_macos.html\"},{\"text\":\"Android Virtual Machine(KVM)\",\"link\":\"/en/guide/pve/pve_android.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/pve/pve_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/pve/pve_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/pve/pve_qa.html\"}]},{\"text\":\"Incus\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/incus/incus_precheck.html\"},{\"text\":\"Incus main installation\",\"link\":\"/en/guide/incus/incus_install.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/incus/incus_lxc.html\"},{\"text\":\"Windows Virtual Machine(QEMU)\",\"link\":\"/en/guide/incus/incus_windows.html\"},{\"text\":\"Extra configuration\",\"link\":\"/en/guide/incus/incus_extra_config.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/incus/incus_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/incus/incus_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/incus/incus_qa.html\"}]},{\"text\":\"Docker\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/docker/docker_precheck.html\"},{\"text\":\"Docker main installation\",\"link\":\"/en/guide/docker/docker_install.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/docker/docker_build.html\"},{\"text\":\"Windows Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/docker/docker_windows.html\"},{\"text\":\"Macos Virtual Machine(KVM)\",\"link\":\"/en/guide/docker/docker_macos.html\"},{\"text\":\"Android Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/docker/docker_android.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/docker/docker_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/docker/docker_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/docker/docker_qa.html\"}]},{\"text\":\"LXD\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/lxd/lxd_precheck.html\"},{\"text\":\"LXD main installation\",\"link\":\"/en/guide/lxd/lxd_install.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/lxd/lxd_lxc.html\"},{\"text\":\"Windows Virtual Machine(QEMU)\",\"link\":\"/en/guide/lxd/lxd_windows.html\"},{\"text\":\"Extra configuration\",\"link\":\"/en/guide/lxd/lxd_extra_config.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/lxd/lxd_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/lxd/lxd_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/lxd/lxd_qa.html\"}]},{\"text\":\"Block Abuse\",\"items\":[{\"text\":\"via iptables\",\"link\":\"/guide/block/block_iptables.html\"},{\"text\":\"In PVE\",\"link\":\"/guide/block/block_pve.html\"},{\"text\":\"In INCUS\",\"link\":\"/guide/block/block_incus.html\"},{\"text\":\"In LXD\",\"link\":\"/guide/block/block_lxd.html\"},{\"text\":\"In DOCKER\",\"link\":\"/guide/block/block_docker.html\"}]},{\"text\":\"Donation\",\"items\":[{\"text\":\"Donation\",\"link\":\"/guide/dashboardq.html\"}]}],\"/en/guide/\":[{\"text\":\"Pre-requisites for all projects\",\"items\":[{\"text\":\"Preparation\",\"link\":\"/en/guide/dashboard.html\"}]},{\"text\":\"Proxmox VE\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/pve/pve_precheck.html\"},{\"text\":\"PVE main installation\",\"link\":\"/en/guide/pve/pve_install.html\"},{\"text\":\"Linux Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/pve/pve_kvm.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/pve/pve_lxc.html\"},{\"text\":\"Windows Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/pve/pve_windows.html\"},{\"text\":\"MacOS Virtual Machine(KVM)\",\"link\":\"/en/guide/pve/pve_macos.html\"},{\"text\":\"Android Virtual Machine(KVM)\",\"link\":\"/en/guide/pve/pve_android.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/pve/pve_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/pve/pve_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/pve/pve_qa.html\"}]},{\"text\":\"Incus\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/incus/incus_precheck.html\"},{\"text\":\"Incus main installation\",\"link\":\"/en/guide/incus/incus_install.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/incus/incus_lxc.html\"},{\"text\":\"Windows Virtual Machine(QEMU)\",\"link\":\"/en/guide/incus/incus_windows.html\"},{\"text\":\"Extra configuration\",\"link\":\"/en/guide/incus/incus_extra_config.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/incus/incus_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/incus/incus_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/incus/incus_qa.html\"}]},{\"text\":\"Docker\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/docker/docker_precheck.html\"},{\"text\":\"Docker main installation\",\"link\":\"/en/guide/docker/docker_install.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/docker/docker_build.html\"},{\"text\":\"Windows Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/docker/docker_windows.html\"},{\"text\":\"Macos Virtual Machine(KVM)\",\"link\":\"/en/guide/docker/docker_macos.html\"},{\"text\":\"Android Virtual Machine(KVM/QEMU)\",\"link\":\"/en/guide/docker/docker_android.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/docker/docker_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/docker/docker_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/docker/docker_qa.html\"}]},{\"text\":\"LXD\",\"items\":[{\"text\":\"Configuration requirements\",\"link\":\"/en/guide/lxd/lxd_precheck.html\"},{\"text\":\"LXD main installation\",\"link\":\"/en/guide/lxd/lxd_install.html\"},{\"text\":\"Linux Container(LXC)\",\"link\":\"/en/guide/lxd/lxd_lxc.html\"},{\"text\":\"Windows Virtual Machine(QEMU)\",\"link\":\"/en/guide/lxd/lxd_windows.html\"},{\"text\":\"Extra configuration\",\"link\":\"/en/guide/lxd/lxd_extra_config.html\"},{\"text\":\"Custom\",\"link\":\"/en/guide/lxd/lxd_custom.html\"},{\"text\":\"Acknowledgements\",\"link\":\"/en/guide/lxd/lxd_thanks.html\"},{\"text\":\"FAQ\",\"link\":\"/en/guide/lxd/lxd_qa.html\"}]},{\"text\":\"Block Abuse\",\"items\":[{\"text\":\"via iptables\",\"link\":\"/guide/block/block_iptables.html\"},{\"text\":\"In PVE\",\"link\":\"/guide/block/block_pve.html\"},{\"text\":\"In INCUS\",\"link\":\"/guide/block/block_incus.html\"},{\"text\":\"In LXD\",\"link\":\"/guide/block/block_lxd.html\"},{\"text\":\"In DOCKER\",\"link\":\"/guide/block/block_docker.html\"}]},{\"text\":\"Donation\",\"items\":[{\"text\":\"Donation\",\"link\":\"/guide/dashboardq.html\"}]}],\"/en/incomplete/\":[{\"text\":\"Other Virtualization Projects\",\"items\":[{\"text\":\"webvirtcloud\",\"link\":\"/en/incomplete/webvirtcloud.html\"},{\"text\":\"webvirtcloud_retspen\",\"link\":\"/en/incomplete/webvirtcloud_retspen.html\"},{\"text\":\"pterodactyl\",\"link\":\"/en/incomplete/pterodactyl.html\"},{\"text\":\"convoy\",\"link\":\"/en/incomplete/convoy.html\"},{\"text\":\"cockpit\",\"link\":\"/en/incomplete/cockpit.html\"},{\"text\":\"virtfusion\",\"link\":\"/en/incomplete/virtfusion.html\"},{\"text\":\"virtualizor-docker\",\"link\":\"/en/incomplete/virtualizor-docker.html\"},{\"text\":\"bashvm\",\"link\":\"/en/incomplete/bashvm.html\"},{\"text\":\"webvirtmgr\",\"link\":\"/en/incomplete/webvirtmgr.html\"}]}]}}}},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
</body>
</html>