virtualboxmanagerControl and manage VirtualBox virtual machines directly from openclaw. Start, stop, snapshot, clone, configure and monitor VMs using VBoxManage CLI. Supports...
Install via ClawdBot CLI:
clawdbot install 0xFratex/virtualboxmanagerControl and manage VirtualBox virtual machines directly from openclaw using the VBoxManage command-line interface. This skill provides comprehensive VM lifecycle management, configuration, and monitoring capabilities.
VBoxManage --version
/usr/bin/VBoxManage or /usr/local/bin/VBoxManage/Applications/VirtualBox.app/Contents/MacOS/VBoxManageC:\Program Files\Oracle\VirtualBox\VBoxManage.exe# List all registered VMs
VBoxManage list vms
# List running VMs only
VBoxManage list runningvms
# Get detailed info about all VMs (JSON-like output)
VBoxManage list vms --long
# Get detailed info about a specific VM
VBoxManage showvminfo "VM_NAME"
# Get info in machine-readable format
VBoxManage showvminfo "VM_NAME" --machinereadable
# Start VM with GUI
VBoxManage startvm "VM_NAME"
# Start VM headless (no GUI)
VBoxManage startvm "VM_NAME" --type headless
# Start VM with separate UI process
VBoxManage startvm "VM_NAME" --type separate
# ACPI shutdown (graceful, like pressing power button)
VBoxManage controlvm "VM_NAME" acpipowerbutton
# Power off (hard stop, like pulling plug)
VBoxManage controlvm "VM_NAME" poweroff
# Save state (hibernate)
VBoxManage controlvm "VM_NAME" savestate
# Pause VM
VBoxManage controlvm "VM_NAME" pause
# Resume paused VM
VBoxManage controlvm "VM_NAME" resume
# Reset VM (hard reboot)
VBoxManage controlvm "VM_NAME" reset
# Create a new VM
VBoxManage createvm --name "NewVM" --register
# Set OS type
VBoxManage modifyvm "NewVM" --ostype "Ubuntu_64"
# Set memory (RAM in MB)
VBoxManage modifyvm "NewVM" --memory 4096
# Set CPU count
VBoxManage modifyvm "NewVM" --cpus 2
# Create a virtual disk
VBoxManage createhd --filename "/path/to/NewVM.vdi" --size 50000
# Add storage controller
VBoxManage storagectl "NewVM" --name "SATA Controller" --add sata
# Attach virtual disk
VBoxManage storageattach "NewVM" --storagectl "SATA Controller" \
--port 0 --device 0 --type hdd --medium "/path/to/NewVM.vdi"
# Attach ISO for installation
VBoxManage storageattach "NewVM" --storagectl "SATA Controller" \
--port 1 --device 0 --type dvddrive --medium "/path/to/install.iso"
# Full clone (all disks copied)
VBoxManage clonevm "SourceVM" --name "ClonedVM" --register
# Linked clone (uses same base disk, saves space)
VBoxManage clonevm "SourceVM" --name "LinkedVM" --options link --register
# Clone with specific snapshot
VBoxManage clonevm "SourceVM" --name "FromSnapshotVM" \
--snapshot "SnapshotName" --register
# Delete VM (keep disks)
VBoxManage unregistervm "VM_NAME"
# Delete VM and all associated files
VBoxManage unregistervm "VM_NAME" --delete
# List snapshots
VBoxManage snapshot "VM_NAME" list
# Take a snapshot
VBoxManage snapshot "VM_NAME" take "SnapshotName" --description "Description here"
# Restore a snapshot
VBoxManage snapshot "VM_NAME" restore "SnapshotName"
# Delete a snapshot
VBoxManage snapshot "VM_NAME" delete "SnapshotName"
# Restore current snapshot (go back to last snapshot)
VBoxManage snapshot "VM_NAME" restorecurrent
# List network adapters
VBoxManage showvminfo "VM_NAME" | grep -A 5 "NIC"
# Set NAT networking
VBoxManage modifyvm "VM_NAME" --nic1 nat
# Set bridged networking
VBoxManage modifyvm "VM_NAME" --nic1 bridged --bridgeadapter1 eth0
# Set host-only networking
VBoxManage modifyvm "VM_NAME" --nic1 hostonly --hostonlyadapter1 vboxnet0
# Port forwarding (NAT only)
VBoxManage modifyvm "VM_NAME" --natpf1 "ssh,tcp,,2222,,22"
# Remove port forwarding
VBoxManage modifyvm "VM_NAME" --natpf1 delete "ssh"
# List host-only networks
VBoxManage list hostonlyifs
# Create host-only network
VBoxManage hostonlyif create
# Configure host-only network
VBoxManage hostonlyif ipconfig vboxnet0 --ip 192.168.56.1 --netmask 255.255.255.0
# Add shared folder
VBoxManage sharedfolder add "VM_NAME" --name "share" --hostpath "/path/on/host"
# Add read-only shared folder
VBoxManage sharedfolder add "VM_NAME" --name "share" --hostpath "/path/on/host" --readonly
# Add with automount
VBoxManage sharedfolder add "VM_NAME" --name "share" --hostpath "/path/on/host" --automount
# Remove shared folder
VBoxManage sharedfolder remove "VM_NAME" --name "share"
# List shared folders
VBoxManage showvminfo "VM_NAME" | grep -A 5 "Shared Folder"
# Change memory allocation
VBoxManage modifyvm "VM_NAME" --memory 8192
# Change CPU count
VBoxManage modifyvm "VM_NAME" --cpus 4
# Enable/disable VRAM (video memory)
VBoxManage modifyvm "VM_NAME" --vram 128
# Enable 3D acceleration
VBoxManage modifyvm "VM_NAME" --accelerate3d on
# Enable nested virtualization
VBoxManage modifyvm "VM_NAME" --nested-hw-virt on
# Set VRDE (remote desktop) port
VBoxManage modifyvm "VM_NAME" --vrde on --vrdeport 3389
# Change VM name
VBoxManage modifyvm "VM_NAME" --name "NewName"
# Set description
VBoxManage modifyvm "VM_NAME" --description "Production server VM"
# List USB devices
VBoxManage list usbhost
# Attach USB device to running VM
VBoxManage controlvm "VM_NAME" usbattach "UUID_OR_ADDRESS"
# Detach USB device
VBoxManage controlvm "VM_NAME" usbdetach "UUID_OR_ADDRESS"
# Add USB device filter (persistent)
VBoxManage usbfilter add 0 --target "VM_NAME" --name "FilterName" \
--vendorid "XXXX" --productid "XXXX"
# Export VM to OVA/OVF
VBoxManage export "VM_NAME" --output "/path/to/export.ova"
# Export multiple VMs
VBoxManage export "VM1" "VM2" --output "/path/to/export.ova"
# Import appliance
VBoxManage import "/path/to/export.ova"
# Import with options
VBoxManage import "/path/to/export.ova" --vsys 0 --vmname "ImportedVM"
# List available metrics
VBoxManage metrics list
# Setup metrics collection
VBoxManage metrics setup --period 10 --samples 5 "VM_NAME"
# Collect and display metrics
VBoxManage metrics collect "VM_NAME"
# Query specific metrics
VBoxManage metrics query "VM_NAME" "CPU/Load"
VBoxManage metrics query "VM_NAME" "RAM/Usage"
VBoxManage metrics query "VM_NAME" "Net/Rate"
# List all metrics for a VM
VBoxManage metrics list "VM_NAME"
# List all virtual disks
VBoxManage list hdds
# Get disk info
VBoxManage showhdinfo "/path/to/disk.vdi"
# Resize virtual disk
VBoxManage modifyhd "/path/to/disk.vdi" --resize 100000
# Clone virtual disk
VBoxManage clonemedium "/path/to/source.vdi" "/path/to/clone.vdi"
# Compact disk (shrink)
VBoxManage modifymedium "/path/to/disk.vdi" --compact
# Set disk type
VBoxManage modifymedium "/path/to/disk.vdi" --type normal
VBoxManage modifymedium "/path/to/disk.vdi" --type immutable
VBoxManage modifymedium "/path/to/disk.vdi" --type writethrough
# Execute command in guest
VBoxManage guestcontrol "VM_NAME" run --exe "/bin/ls" \
--username user --password pass -- -la /home
# Copy file to guest
VBoxManage guestcontrol "VM_NAME" copyto \
--username user --password pass \
"/host/path/file.txt" "/guest/path/file.txt"
# Copy file from guest
VBoxManage guestcontrol "VM_NAME" copyfrom \
--username user --password pass \
"/guest/path/file.txt" "/host/path/file.txt"
# Create directory in guest
VBoxManage guestcontrol "VM_NAME" mkdir \
--username user --password pass \
"/home/user/newdir"
# Remove file in guest
VBoxManage guestcontrol "VM_NAME" rm \
--username user --password pass \
"/home/user/file.txt"
# List guest processes
VBoxManage guestcontrol "VM_NAME" process list \
--username user --password pass
# View VM logs location
VBoxManage showvminfo "VM_NAME" | grep -i log
# Typical log paths:
# Linux/macOS: ~/VirtualBox VMs/VM_NAME/Logs/
# Windows: %USERPROFILE%\VirtualBox VMs\VM_NAME\Logs\
# Debug a VM
VBoxManage debugvm "VM_NAME" info item
# Get VM statistics
VBoxManage debugvm "VM_NAME" statistics
# Check if a specific VM is running
VBoxManage list runningvms | grep "VM_NAME"
# Get all VMs with their states
VBoxManage list vms --long | grep -E "Name:|State:"
#!/bin/bash
# Start VMs in headless mode
for vm in "WebServer" "Database" "Cache"; do
echo "Starting $vm..."
VBoxManage startvm "$vm" --type headless
sleep 10
done
echo "All VMs started"
#!/bin/bash
VM_NAME="ProductionVM"
DATE=$(date +%Y%m%d_%H%M%S)
SNAPSHOT_NAME="Backup_$DATE"
# Create snapshot
VBoxManage snapshot "$VM_NAME" take "$SNAPSHOT_NAME" \
--description "Automated backup $DATE"
# Keep only last 5 snapshots
SNAPSHOTS=$(VBoxManage snapshot "$VM_NAME" list --machinereadable | grep SnapshotName | wc -l)
if [ $SNAPSHOTS -gt 5 ]; then
OLDEST=$(VBoxManage snapshot "$VM_NAME" list --machinereadable | grep SnapshotName | head -1 | cut -d'"' -f4)
VBoxManage snapshot "$VM_NAME" delete "$OLDEST"
fi
#!/bin/bash
SOURCE_VM="TemplateVM"
NEW_VM="DevVM_$(date +%s)"
# Ensure source is stopped
VBoxManage controlvm "$SOURCE_VM" poweroff 2>/dev/null
# Take a clean snapshot first
VBoxManage snapshot "$SOURCE_VM" take "PreClone"
# Clone the VM
VBoxManage clonevm "$SOURCE_VM" --name "$NEW_VM" --register
# Modify the clone
VBoxManage modifyvm "$NEW_VM" --memory 2048 --cpus 2
# Start the clone
VBoxManage startvm "$NEW_VM" --type headless
echo "Cloned VM '$NEW_VM' is now running"
#!/bin/bash
VM_NAME="WebServer"
# SSH access
VBoxManage modifyvm "$VM_NAME" --natpf1 "ssh,tcp,,2222,,22"
# HTTP access
VBoxManage modifyvm "$VM_NAME" --natpf1 "http,tcp,,8080,,80"
# HTTPS access
VBoxManage modifyvm "$VM_NAME" --natpf1 "https,tcp,,8443,,443"
# Verify
VBoxManage showvminfo "$VM_NAME" | grep "NIC 1 Rule"
#!/bin/bash
VM_NAME="ProductionVM"
# Setup metrics
VBoxManage metrics setup --period 5 --samples 12 "$VM_NAME"
# Collect for 1 minute and show results
sleep 60
VBoxManage metrics query "$VM_NAME" "CPU/Load:RAM/Usage:Net/Rate"
# Check VM state
VBoxManage showvminfo "VM_NAME" | grep State
# Check for locked files
VBoxManage showvminfo "VM_NAME" | grep -i lock
# Try starting with verbose output
VBoxManage startvm "VM_NAME" --type headless 2>&1
# Ensure VM is stopped
VBoxManage controlvm "VM_NAME" poweroff
# Check for attached media
VBoxManage showvminfo "VM_NAME" | grep -E "Storage|Medium"
# Force unregister if needed
VBoxManage unregistervm "VM_NAME" --delete
# Check adapter status
VBoxManage showvminfo "VM_NAME" | grep -A 10 "NIC 1"
# Reset network adapter
VBoxManage modifyvm "VM_NAME" --nic1 none
VBoxManage modifyvm "VM_NAME" --nic1 nat
# Verify host-only interface exists
VBoxManage list hostonlyifs
# Check current allocation
VBoxManage showvminfo "VM_NAME" | grep -E "Memory|CPU"
# Increase resources (VM must be stopped)
VBoxManage modifyvm "VM_NAME" --memory 8192 --cpus 4
# Enable hardware acceleration
VBoxManage modifyvm "VM_NAME" --hwvirtex on --nestedpaging on
VBoxManage startvm "My Production VM"
VBoxManage startvm "VM_NAME"
VBoxManage startvm "12345678-1234-1234-1234-123456789abc"
controlvm - operates on running VMsmodifyvm - operates on stopped VMs (mostly)--type headless for server environments without GUIvboxusers on Linux)Common OS types for --ostype parameter:
Windows11_64 - Windows 11 (64-bit)Windows10_64 - Windows 10 (64-bit)Ubuntu_64 - Ubuntu Linux (64-bit)Debian_64 - Debian Linux (64-bit)Fedora_64 - Fedora Linux (64-bit)ArchLinux_64 - Arch Linux (64-bit)macOS_ARM64 - macOS on Apple SiliconmacOS_128 - macOS on Intel (64-bit)FreeBSD_64 - FreeBSD (64-bit)Other_64 - Other OS (64-bit)Get full list with:
VBoxManage list ostypes
| Operation | Command |
|-----------|---------|
| List VMs | VBoxManage list vms |
| Start VM | VBoxManage startvm "NAME" --type headless |
| Stop VM | VBoxManage controlvm "NAME" acpipowerbutton |
| Force Stop | VBoxManage controlvm "NAME" poweroff |
| VM Info | VBoxManage showvminfo "NAME" |
| Snapshot | VBoxManage snapshot "NAME" take "SnapName" |
| Restore | VBoxManage snapshot "NAME" restore "SnapName" |
| Clone | VBoxManage clonevm "SRC" --name "NEW" --register |
| Delete | VBoxManage unregistervm "NAME" --delete |
| Modify RAM | VBoxManage modifyvm "NAME" --memory 4096 |
| Modify CPU | VBoxManage modifyvm "NAME" --cpus 2 |
| Port Forward | VBoxManage modifyvm "NAME" --natpf1 "rule,tcp,,host,,guest" |
VBoxManage (part of VirtualBox installation)Generated Mar 1, 2026
Developers use this skill to quickly spin up, snapshot, and tear down isolated virtual machines for testing different software configurations or operating systems. It streamlines setting up development environments, allowing teams to maintain consistent setups across projects and easily revert to clean states after testing.
Instructors leverage the skill to create and clone virtual machines for hands-on labs in IT courses, such as cybersecurity, networking, or system administration. Students can practice in safe, sandboxed environments without risking host systems, and snapshots enable easy resetting for repeated exercises.
Quality assurance teams utilize the skill to manage multiple VM instances for cross-platform testing of applications on different operating systems. It facilitates automated testing workflows by allowing quick VM provisioning, configuration changes, and performance monitoring to ensure software compatibility and reliability.
Hobbyists and tech enthusiasts use this skill to build and manage virtual home labs for experimenting with server setups, network configurations, or self-hosted services. It provides a cost-effective way to simulate complex infrastructures, with features like cloning and snapshots enabling iterative learning and project development.
IT service providers offer virtual machine management as part of subscription-based packages, helping businesses optimize their VirtualBox environments for development, testing, or training. Revenue is generated through monthly fees for setup, monitoring, and support services tailored to client needs.
Organizations develop and sell online courses or certification programs that include hands-on labs managed via this skill. Revenue comes from course enrollment fees, with the skill enabling scalable delivery of practical exercises and automated environment provisioning for students.
Consultants provide specialized services to integrate this skill into clients' workflows, such as automating VM deployments for software testing or configuring complex network setups. Revenue is earned through project-based contracts or hourly rates for customization and optimization support.
💬 Integration Tip
Integrate this skill with automation tools like scripts or CI/CD pipelines to streamline VM management tasks, ensuring consistent environments and reducing manual overhead in development or testing workflows.
Manage Trello boards, lists, and cards via the Trello REST API.
Sync and query CalDAV calendars (iCloud, Google, Fastmail, Nextcloud, etc.) using vdirsyncer + khal. Works on Linux.
Manage tasks and projects in Todoist. Use when user asks about tasks, to-dos, reminders, or productivity.
Master OpenClaw's timing systems. Use for scheduling reliable reminders, setting up periodic maintenance (janitor jobs), and understanding when to use Cron v...
Calendar management and scheduling. Create events, manage meetings, and sync across calendar providers.
Kanban-style task management dashboard for AI assistants. Manage tasks via CLI or dashboard UI. Use when user mentions tasks, kanban, task board, mission con...