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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
73
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~

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

📮Comments

No Comment.
xosadmin
xosadmin
7 years ago
推荐 Dell Chromebook 13安装Windows 10教程
据了解,Dell于近年悄然上了一款产品:Chromebook 13。其的价格非常吸引人,各项配置也不逊色,其炫酷的外观和亲民的价格,令许多人为之向往。唯一的不同,即如其的名字,预装了Chrome OS系统及特别的Bios。有许多小伙伴不熟 ...
  • chromebook
  • 技术小絮
17,311 3
xosadmin
xosadmin
5 years ago
推荐 外网通过Zerotier访问内网其他主机的方法
Zerotier是一个非常卓越的组网软件。它可以以最简单的方式构成一张虚拟网络。目前有很多OpenWrt路由器固件已经附带了该功能。但是大部分路由器不带有此功能。因此,可以通过在内网内搭建跳板机的方式,来解决这一问题。 在本次测试中,跳板机 ...
  • Zerotier
  • 技术小絮
3,480 0
xosadmin
xosadmin
4 years ago
推荐 Debian 11通过apt安装proxmox 7
Proxmox Logo (photo: proxmox.com) Debian官方于近日更新了Debian Bullseye系统,即Debian 11系统。同时,Proxmox VE也发布了新的7.0版本。与之前版本相同的是,本次的Pr ...
  • proxmox
  • 技术小絮
2,736 0
xosadmin
xosadmin
8 years ago
推荐 OpenVZ如何给VPS启用ppp
大家好!在上一篇文章(如何在Linux(CentOS)上安装OpenVZ)中,我为大家讲述了如何在CentOS环境下安装OpenVZ虚拟框架。在此,有许多网友阅读并安装后,想给自己的VPS开启ppp功能以备不时之需。在这里,补充一篇文章为 ...
  • 技术小絮
  • 虚拟化
2,846 0
xosadmin
xosadmin
2 years ago
推荐 Proxmox为KVM VNC启用剪贴板支持
在Proxmox 8版本中,官方已经加入了对于剪贴板的初步支持。以下为如何为虚拟机启用这个支持。 Note: 因为为初步支持,因此不能保证能够完美使用。 在宿主机上安装spice-vdagent。 apt-get install spi ...
  • proxmox
  • 技术小絮
603 0
  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案

文章聚合

  • Proxmox强制删除离线集群节点方法
  • PVE Cluster给node更换corosync IP的方法
  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘

Multilangual Translator

Copyright © 2016-2026 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 软件专题 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