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

xosadmin

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

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

📮Comments

No Comment.
xosadmin
xosadmin
4 years ago
推荐 Docker更换默认IP的方法
如题,最近在尝试使用docker部署一系列应用。由于默认的docker IP与上级某个网段相冲突,于是决定要修改默认网段。 修改非常简单,只需建立/etc/docker/daemon.json文件,并填入以下内容后重启docker即可: { ...
  • 技术小絮
1,277 0
xosadmin
xosadmin
7 years ago
推荐 如何在Linux(CentOS)上安装OpenVZ
近日,有一位朋友向我请教如何在其自己的CentOS服务器上安装OpenVZ虚拟化。所谓OpenVZ,官方对其的定义如下: “OpenVZ is a container-based virtualization for Linux. Op ...
  • 技术小絮
  • 虚拟化
2,206 0
xosadmin
xosadmin
2 years ago
推荐 Debian 11平滑升级到Debian 12的方法
Debian 12于近日发布,其名称为Bookworm。同时,Debian 11 (Bullseye)也可以升级至Debian 12 Bookworm。本文介绍一种平滑升级的方法。 首先,确认当前版本是否为Debian 11 Bullsey ...
  • 技术小絮
345 0
xosadmin
xosadmin
4 years ago
推荐 CentOS迁移后开机提示lvm not found的解决方法
最近在尝试将Hyper-V虚拟机迁移至proxmox VE。在经过QEMU-IMG转换完后,部分虚拟机出现了无法启动的问题,并提示:/dev/centos/root not found,terminal卡在dracut。这是由于initra ...
  • proxmox
  • 技术小絮
1,219 0
xosadmin
xosadmin
5 years ago
推荐 apache提示You don’t have permission to access /* on this server.的解决方法
首先,X-osadmin在这里祝大家520快乐!近日有朋友遇到了这样一个问题:在CentOS 8下安装php-fpm+apache,在浏览器打开时均提示You don’t have permission to access / ...
  • 技术小絮
3,813 0
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

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

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 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