hyper2kvm

Features Documentation

Comprehensive documentation for all Hyper2KVM features and capabilities.

Quick Navigation

πŸ”§ Core Features

πŸ” Inspection & Validation

πŸ”„ Daemon & Automation

βš™οΈ System Integration

☁️ Cloud & Virtualization

πŸ“¦ VMCraft Specialized Guides


Features by Category

🎯 Essential Features (Start Here)

Feature Description Status Difficulty
VMCraft Engine Native Python VM manipulation βœ… Production ⭐⭐
fstab Stabilization Automatic fstab repair βœ… Production ⭐
Enhanced Chroot Advanced filesystem access βœ… Production ⭐⭐
VMDK Inspector Pre-migration analysis βœ… Production ⭐

πŸ”§ Boot & Filesystem Features

Feature Use Case Documentation
XFS UUID Regeneration Fix cloned VMware VMs with duplicate UUIDs Guide
fstab Stabilization Auto-repair fstab, convert to UUID/LABEL Guide
Enhanced Chroot Safe filesystem access with full isolation Guide
BusLogic Auto-Fix Handle legacy BusLogic SCSI controllers Guide

πŸ” Validation & Inspection

Feature Purpose Documentation
VMDK Inspector Analyze VMDK structure, detect issues Guide
VMDK Validation Pre-migration compatibility checks Guide

πŸ”„ Automation & Daemon

Feature Capability Documentation
Daemon Mode Background processing, job queue Guide
Daemon Architecture Design patterns, components Guide
Daemon Enhancements Advanced features, monitoring Guide
Daemon User Guide Complete usage guide Guide

βš™οΈ System & Configuration

Feature Function Documentation
Systemd Integration Service management, auto-start Guide
Configuration Injection Dynamic config generation Guide

☁️ Cloud & Virtualization Integration

Platform Features Documentation
vSphere Export, fetch, integration Export, Design

VMCraft Engine

Overview

VMCraft is Hyper2KVM’s native Python VM manipulation engine with 480+ APIs for guest filesystem operations without requiring libguestfs.

Key Capabilities:

Documentation:

Specialized Guides:


Feature Highlights

1. XFS UUID Regeneration

Problem: Cloned VMware VMs often have duplicate XFS filesystem UUIDs, causing boot failures.

Solution: Automatic UUID regeneration with fstab updates.

command: local
vmdk: /vmware/cloned-vm.vmdk
output_dir: /kvm/vms
to_output: fixed-vm.qcow2

# Enable XFS UUID fix
xfs_regenerate_uuid: true
fstab_mode: stabilize-all

See: XFS UUID Regeneration Guide


2. fstab Stabilization

Problem: VMDKs use device names (/dev/sda1) which may change in KVM.

Solution: Automatic conversion to UUID or LABEL-based mounting.

Modes:

fstab_mode: stabilize-all

See: fstab Stabilization Guide


3. Enhanced Chroot

Problem: Standard chroot is unsafe and can affect host system.

Solution: Isolated chroot environment with proper cleanup.

Features:

See: Enhanced Chroot Guide


4. VMDK Inspector

Problem: Need to analyze VMDK before migration to detect issues.

Solution: Comprehensive VMDK analysis tool.

Capabilities:

# Inspect VMDK
./scripts/vmdk_inspect.py /path/to/vm.vmdk

# With auto-fix recommendations
./scripts/vmdk_inspect.py /path/to/vm.vmdk --auto-fix

See: VMDK Inspector Guide


5. Daemon Mode

Problem: Need background processing and job queue for large-scale migrations.

Solution: Full-featured daemon with REST API.

Features:

# Start daemon
hyper2kvm daemon start

# Submit job
hyper2kvm daemon submit migration.yaml

# Check status
hyper2kvm daemon status

See: Daemon Mode Guide, Daemon User Guide


Feature Comparison

VMCraft vs libguestfs

Feature VMCraft libguestfs
Language Pure Python C with Python bindings
Dependencies Minimal Heavy (C libraries)
APIs 480+ 300+
Windows Support Native Limited
Performance Optimized Good
Installation pip install System packages
Portability High Medium

Migration Modes

Mode Downtime Use Case Features
Standard Full Most migrations Complete feature set
Live Fix <5 seconds Production VMs SSH-based, minimal downtime
Daemon Scheduled Batch migrations Queue, scheduling, monitoring

Common Feature Combinations

Combination 1: Safe Linux Migration

command: local
vmdk: /vmware/linux-vm.vmdk
output_dir: /kvm/vms
to_output: linux-vm.qcow2

# Essential features
fstab_mode: stabilize-all
xfs_regenerate_uuid: true
regen_initramfs: true
update_grub: true

Features Used: fstab stabilization, XFS UUID regen, enhanced chroot


Combination 2: VMware Clone Fix

command: local
vmdk: /vmware/cloned-vm.vmdk
output_dir: /kvm/vms
to_output: fixed-clone.qcow2

# Clone-specific fixes
xfs_regenerate_uuid: true
fstab_mode: stabilize-all
regen_initramfs: true

Features Used: XFS UUID regeneration, fstab stabilization


Combination 3: Production Migration with Validation

# 1. Inspect VMDK
./scripts/vmdk_inspect.py /vmware/prod-vm.vmdk --auto-fix

# 2. Run migration with all features
hyper2kvm --config << EOF
command: local
vmdk: /vmware/prod-vm.vmdk
output_dir: /kvm/vms
to_output: prod-vm.qcow2
fstab_mode: stabilize-all
xfs_regenerate_uuid: true
regen_initramfs: true
update_grub: true
compress: true
EOF

Features Used: VMDK inspector, fstab stabilization, XFS UUID, enhanced chroot


Feature Status

Production Ready βœ…

Feature Version Status
VMCraft Engine 1.0+ βœ… Stable
fstab Stabilization 1.0+ βœ… Stable
XFS UUID Regen 1.0+ βœ… Stable
Enhanced Chroot 1.0+ βœ… Stable
VMDK Inspector 1.3+ βœ… Stable
VMDK Validation 1.3+ βœ… Stable
Daemon Mode 1.0+ βœ… Stable
Systemd Integration 1.0+ βœ… Stable
vSphere Export 1.0+ βœ… Stable
BusLogic Auto-Fix 1.3+ βœ… Stable

Beta Features πŸ”Ά

Feature Version Status
Configuration Injection 2.0+ πŸ”Ά Beta

Performance Characteristics

VMCraft Performance

Operation Speed Notes
OS Detection <1 sec Cached after first detection
Package Query 1-2 sec Database operations
File Read Fast Direct filesystem access
File Write Fast Optimized I/O
Chroot Setup <1 sec One-time per session

Feature Overhead

Feature Time Impact When to Use
fstab Stabilization +2-5 sec Always (essential)
XFS UUID Regen +5-30 sec VMware clones only
VMDK Inspection +10-30 sec Pre-migration analysis
VMDK Validation +5-15 sec Pre-migration checks

Best Practices

Essential Features (Always Use)

βœ… fstab Stabilization: Prevents boot failures from device name changes βœ… Enhanced Chroot: Safe filesystem access βœ… VMDK Inspector: Identify issues before migration

Conditional Features (Use When Needed)

πŸ”Ά XFS UUID Regeneration: Use for VMware clones πŸ”Ά BusLogic Auto-Fix: Use for VMs with BusLogic SCSI πŸ”Ά Daemon Mode: Use for batch migrations πŸ”Ά vSphere Export: Use for VMware vSphere integration

Performance Features

⚑ VMCraft Caching: Enabled by default ⚑ Lazy Loading: Reduces memory usage ⚑ Parallel Processing: Use batch mode for multiple VMs


Feature Development

Contributing New Features

  1. Identify need: Use case and user request
  2. Design: Architecture and API design
  3. Implement: Code with tests
  4. Document: Feature guide and examples
  5. Test: Integration and unit tests
  6. Release: Version and changelog

See: Contributing Guide


Before Using Features

While Using Features

After Using Features


Feature Requests

Have an idea for a new feature?

  1. Check existing features: Review this documentation
  2. Search issues: GitHub Issues
  3. Create feature request: New Feature Request
  4. Discuss: GitHub Discussions

What’s Next?

Choose your area of interest:

πŸ”§ I want to use VMCraft

β†’ Read VMCraft Complete Guide

πŸ” I want to inspect VMDKs

β†’ See VMDK Inspector

πŸ”„ I want automation

β†’ Try Daemon Mode

βš™οΈ I want system integration

β†’ Check Systemd Integration

πŸ“š I want complete reference

β†’ See API Reference


Last Updated: February 2026 Total Features: 20+ Production Ready: 15+ VMCraft APIs: 480+