agentleFS
hellyguohellyguo/self-ai-spec/skills/vbox-test-env/SKILL.md

vbox-test-env

Skill8 starsChanged 17 days agoApache-2.0View on GitHub

提供 VirtualBox 三机测试环境(含互信与 sudo),用于集群、分布式与主备类系统测试。适用于需要多节点环境的联调与验证。

The file

Files
SKILL.md

VirtualBox 三机测试环境

提供三台已配置互信与 sudo 的 VirtualBox 虚拟机,用于集群、分布式、主备等需要多节点的测试场景。

机器清单

主机名登录用户SSH 别名
debian001vboxuservboxdeb001
debian002vboxuservboxdeb002
debian003vboxuservboxdeb003

网络拓扑

每台虚拟机配置三种网络视图,使用时按通信方向选择地址:

虚拟机到宿主机

三台机器均通过 NAT 访问宿主机,虚拟机侧看到的默认地址相同:

主机名虚拟机侧地址宿主机侧地址
debian00110.0.2.1510.0.2.2
debian00210.0.2.1510.0.2.2
debian00310.0.2.1510.0.2.2

说明:10.0.2.15 是 VirtualBox NAT 为每台虚拟机分配的独立地址,互相不冲突;宿主机侧地址均为 10.0.2.2。

宿主机到虚拟机

宿主机通过宿主网络访问各虚拟机:

主机名虚拟机侧地址宿主机侧地址
debian001172.22.133.251172.22.133.1
debian002172.22.133.252172.22.133.1
debian003172.22.133.253172.22.133.1

虚拟机之间

虚拟机之间通过内部网络通信:

主机名内部网络地址
debian001192.168.77.101
debian002192.168.77.102
debian003192.168.77.103

已安装环境

  • 编译工具:gcc、g++、make、cmake
  • 内核开发:libbpf、libxdp
  • Java 8:位于 ~/lang
  • Node.js

启动

vboxmanage startvm --type=headless debian001 &
vboxmanage startvm --type=headless debian002 &
vboxmanage startvm --type=headless debian003 &

启动后等待约 30 秒,使用 ssh vboxdeb001 true 验证连通性。

停止

ssh vboxuser@vboxdeb001 sudo poweroff
ssh vboxuser@vboxdeb002 sudo poweroff
ssh vboxuser@vboxdeb003 sudo poweroff

使用约束

  • 仅用于测试,不得存放生产数据。
  • 三台机器共享同一宿主资源,压测时注意宿主机 CPU、内存与磁盘上限。
  • 修改网络配置前先确认虚拟机间与宿主机到虚拟机的连通性,避免失联。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.