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~

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

📮Comments

No Comment.
xosadmin
xosadmin
2 years ago
推荐 Fail2ban无法启动的解决方法
在启动fail2ban时,有时会发生错误,具体错误如下: ERROR Failed during configuration: Have not found any log file for sshd jail ERROR Async co ...
  • 技术小絮
463 0
xosadmin
xosadmin
5 years ago
推荐 Debian提示Malformed Description-md5的解决方法
近日,有一台vps在执行apt update时,报出以下错误,并返回错误值100。错误代码如下: E: Malformed Description-md5 line; doesn’t have the required leng ...
  • 技术小絮
1,679 0
xosadmin
xosadmin
6 years ago
推荐 Debian 10安装Proxmox
众所周知,Proxmox是一款十分出色的虚拟化软件,它可以让一台或多台计算机变成一个计算集群,甚至是一个虚拟数据中心。它支持同时在一台机子上开始KVM和LXC(OpenVZ的替代品),并配有VNC及WebUI管理,可以说是十分方便。今天就 ...
  • proxmox
  • 技术小絮
2,987 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,189 0
xosadmin
xosadmin
3 years ago
推荐 git提示server certificate verification failed的解决方法
在部分Ubuntu或者Debian系统上,git在clone或者push时可能会报出server certificate verification failed的错误,具体报错如下: server certificate verifica ...
  • 技术小絮
831 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