What is mcp_lab_tools
mcp_lab_tools is a suite of virtual lab provisioning tools developed by nbritton, designed to facilitate the setup and management of virtual labs using Mirantis Cloud Platform (MCP). These tools are particularly useful for creating isolated environments that mimic real-world network configurations without the need for extensive physical infrastructure. By leveraging dummy networks and virtual machines, users can experiment with and deploy complex setups, enabling robust testing and development workflows.
How to Use mcp_lab_tools
To get started with mcp_lab_tools, you'll need an Ubuntu Server 18.04 LTS machine. Use the lab_setup.sh
script to configure your server for virtual lab use. This script sets up various network interfaces, although you'll likely need to adjust the network settings to suit your specific needs. The script includes dummy networks that act like real interfaces but do not connect to the outside world, requiring a virtual routing gateway for Internet connectivity.
For network setup, you can use ClearOS for its straightforward OpenVPN implementation, or configure iptables for packet forwarding. The tool supports bonds, bridges, and VLANs on top of dummy interfaces, allowing you to replicate nearly any production network setup.
When creating virtual machines, use the create-virtual-machines
script, modifying the prefix variable to differentiate between lab environments. This way, you can manage multiple virtual labs on a single or multiple physical machines without naming conflicts.
For high-availability (HA) MCP clusters in virtual labs, a minimum of 400GB of RAM is recommended. If unavailable, using an SSD as a swap partition can be a viable alternative. Stability improvements can be achieved by setting the processor's frequency governor to a fixed frequency and using a low latency kernel.
Key Features of mcp_lab_tools
-
Virtual Lab Environment: Enables the creation of isolated virtual labs on Ubuntu Server 18.04 LTS, perfect for testing and development.
-
Network Flexibility: Supports dummy networks, bonds, bridges, and VLANs, allowing users to mimic complex production network setups.
-
Resource Management: Facilitates multiple virtual labs through prefix modifications, enabling efficient resource allocation and naming conventions.
-
Virtual Routing: Integrates with ClearOS for OpenVPN support or utilizes iptables for network packet forwarding.
-
High Availability Setup: Supports HA MCP cluster setups, with recommendations for memory and storage optimizations, including SSD swap partitions and low latency kernels.
-
Snapshot and Rollback: Use ZFS or similar filesystems for atomic CoW snapshot capabilities, allowing easy rollback of entire lab environments.
-
Scalable Infrastructure: Supports scaling across multiple physical hypervisors with Open vSwitch and Stateless Transport Tunneling for creating layer 2 mesh overlay networks.
mcp_lab_tools provides a powerful and flexible solution for setting up virtual labs, enabling users to simulate and test complex network environments with ease. Whether you're developing, testing, or learning, these tools offer a practical approach to managing virtual infrastructures.
How to Use
To use the mcp_lab_tools, follow these steps:
- Visit https://github.com/nbritton/mcp_lab_toolshttps://github.com/nbritt...
- Follow the setup instructions to create an account (if required)
- Connect the MCP server to your Claude Desktop application
- Start using mcp_lab_tools capabilities within your Claude conversations
Additional Information
Created
August 9, 2019
Company
Start building your own MCP Server
Interested in creating your own MCP Server? Check out the official documentation and resources.
Learn More