X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
77
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
2 years ago

在OpenVZ或LXC下使用Zerotier

众所周知,Zerotier是一个十分方便的p2p组网方式,OpenVZ和LXC是一种容器式的虚拟化。因此,OpenVZ和LXC的ppp和tun功能默认处于关闭状态。这也导致Zerotier在OpenVZ或者LXC架构下的虚拟机默认无法使用(加入网络时出现500错误)。若希望在这种容器下使用ZeroTier,可以尝试以下方法:

1. 打开OpenVZ或者LXC容器的ppp/tun功能。打开方式依提供商各不相同。打开后,可以通过以下方法验证:

ppp:cat /dev/ppp

– 成功标志:/dev/ppp: No such device or address

tun:cat /dev/net/tun

– 成功标志:cat: /dev/net/tun: File descriptor in bad state

2. 正常安装Zerotier:

curl -fsSL https://install.zerotier.com | sudo bash

3. 修改zerotier-one.service。一般情况下,默认的zerotier-one.service位于/usr/lib/systemd/system/zerotier-one.service。用编辑器打开后,编辑ExecStart为以下内容:

ExecStart=/usr/sbin/zerotier-one -U

4. 重新加载daemon和重启服务

systemctl daemon-reload

systemctl restart zerotier-one

5. 再次尝试加入网络

 

Ref:https://discuss.zerotier.com/t/solved-zerotier-vpn-installation-on-ubuntu-openvz-with-a2hosting-com-el-cheapo-account/4348

Enjoy~

  • 技术小絮
等 人表示很赞
401
0

📮Comments

No Comment.
xosadmin
xosadmin
2 years ago
推荐 Debian设置802.1q vlan的方法
802.1Q VLAN是一种非常常见的VLAN技术,Debian也支持本VLAN技术。本文将以Debian 12 x64作为演示。 首先,在操作系统下安装vlan程序包 apt-get install vlan -y 2. 将802.1 ...
  • 技术小絮
726 0
xosadmin
xosadmin
2 years ago
推荐 Proxmox VE通过全盘方式直通硬盘
本文章将以全盘映射的方式挂载整块硬盘到Proxmox KVM虚拟机。LXC虚拟机暂时不支持。 首先,打开SSH或者控制面板上的Shell,并执行以下代码以展示所有硬盘ID: ls /dev/disk/by-id Note: 硬盘ID通常没有 ...
  • proxmox
  • 技术小絮
494 0
xosadmin
xosadmin
2 years ago
推荐 Debian 11平滑升级到Debian 12的方法
Debian 12于近日发布,其名称为Bookworm。同时,Debian 11 (Bullseye)也可以升级至Debian 12 Bookworm。本文介绍一种平滑升级的方法。 首先,确认当前版本是否为Debian 11 Bullsey ...
  • 技术小絮
397 0
xosadmin
xosadmin
6 years ago
推荐 Proxmox “QEMU version ‘x.x.x’ is too old”问题的解决方法
最近在Proxmox操作时发现,由于集群中有一台服务器的Proxmox安装时间较早,因故在迁移虚拟机到该服务器时遇到了这样一个错误:Installed QEMU version ‘x.x.x’ is too old ...
  • proxmox
  • 技术小絮
3,184 0
xosadmin
xosadmin
3 months ago
推荐 HPE Microserver系列降低噪音的一种办法
部分HPE Microserver Gen10+和Gen11用户反映,安装了Debian/Proxmox或者更换了硬盘后出现风扇声音很大的问题。经过搜索和研究,发现其中一种解决方法,即在系统中安装HPE的amsd及smad组件。具体方式如下 ...
  • 技术小絮
23 0
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法

文章聚合

  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login