VM Management
Managing virtual machines with Lume
This guide covers the core operations for managing VMs with Lume.
Listing VMs
# List all VMs
lume ls
# Output includes: name, state, CPU, memory, disk sizeGetting VM Details
# Get detailed information about a VM
lume get my-vmThis shows:
- VM state (running, stopped)
- Resource allocation (CPU, memory, disk)
- Network configuration
- Display settings
Running VMs
# Run with display window
lume run my-vm
# Run headless (no display)
lume run my-vm --no-display
# Run with shared directory
lume run my-vm --shared-dir /path/to/local/folder
# Run with USB storage device
lume run my-vm --usb-storage /path/to/disk.imgStopping VMs
# Graceful stop (sends shutdown signal)
lume stop my-vm
# Force stop (immediate termination)
lume stop my-vm --forceModifying VM Settings
# Change CPU allocation
lume set my-vm --cpu 8
# Change memory
lume set my-vm --memory 16GB
# Resize disk (can only increase)
lume set my-vm --disk-size 100GB
# Change display resolution
lume set my-vm --display 1920x1080The VM must be stopped before changing settings. Disk size can only be increased, not decreased.
Cloning VMs
Create a copy of an existing VM:
# Clone within same storage
lume clone source-vm cloned-vm
# Clone to different storage location
lume clone source-vm cloned-vm --source-storage default --dest-storage external-ssdDeleting VMs
# Delete a VM
lume delete my-vm
# Delete from specific storage
lume delete my-vm --storage external-ssdMultiple Storage Locations
Lume supports storing VMs in different locations (e.g., internal drive, external SSD).
Configure Storage
# List storage locations
lume config storage list
# Add a new storage location
lume config storage add external-ssd /Volumes/ExternalSSD/lume
# Set default storage
lume config storage default external-ssd
# Remove a storage location
lume config storage remove old-storageUsing Storage Locations
# Create VM in specific storage
lume create my-vm --os macos --ipsw latest --storage external-ssd
# Run VM from specific storage
lume run my-vm --storage external-ssd
# Move VM between storage locations
lume clone source-vm dest-vm --source-storage default --dest-storage external-ssd
lume delete source-vm --storage defaultImage Caching
When pulling VM images from the registry, Lume can cache the downloaded layers locally to speed up future pulls of the same or similar images. Caching is disabled by default to save disk space.
Enable Caching
If you frequently pull images and want faster downloads:
# Enable image caching
lume config set cachingEnabled true
# Set custom cache directory (optional)
lume config set cacheDirectory /path/to/cacheView Cache Settings
# View current configuration
lume config getThis displays:
- Default VM storage location
- Cache directory path
- Whether caching is enabled
Clear Cache
To free up disk space used by cached image layers:
# Remove cached images
lume pruneWith caching disabled (default), each lume pull downloads all image layers fresh. Enable caching if you frequently pull the same images or images that share common base layers.
Next Steps
- Unattended Setup - Automate macOS setup
- HTTP Server - Use the REST API
- CLI Reference - Full command reference
Was this page helpful?