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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
74
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
3 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~

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

📮Comments

No Comment.
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,194 0
xosadmin
xosadmin
5 years ago
推荐 apt-get时提示different from other instances的解决方案
近日在升级Ubuntu系统时,apt-get提示”trying to overwrite shared ‘/usr/share/doc/libselinux1/changelog.Debian.gz’, ...
  • 技术小絮
1,157 0
xosadmin
xosadmin
2 years ago
推荐 LXC上安装Gitlab时sysctl报错的解决方法
问题情况:在LXC unprivileged容器上安装Gitlab时,在执行gitlab-ctl reconfigure时可能会报出sysctl: permission denied的错误。 解决方法:在/etc/gitlab/gitlab ...
  • 技术小絮
562 0
xosadmin
xosadmin
1 year ago
推荐 Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
LXC采用.raw格式的虚拟硬盘,在proxmox中也不例外。然而,LXC或Proxmox并没有提供向KVM那样能在CLI中直接挂载.img到虚拟机的方法。但是,可以通过以下方法进行挂载已有磁盘。 关闭目标LXC容器 将已有的磁盘文件复制 ...
  • proxmox
  • 技术小絮
725 0
xosadmin
xosadmin
4 months ago
推荐 Debian 13 Trixie安装Proxmox VE
Debian官方近日发布了Debian 13 Trixie操作系统。相应的,Proxmox官方也加入了对Debian 13操作系统的支持。在之前介绍过Debian 12安装Proxmox的方法。本次Debian 13安装的方法与前一代类似 ...
  • proxmox
  • 技术小絮
46 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