Skip to content

enhance: Add progress logging for VM installation #10

@williamzujkowski

Description

@williamzujkowski

Problem

During E2E testing, we waited for VM installation to complete without clear visibility into progress. This made troubleshooting difficult.

Proposed Solutions

1. Serial Console Logging

Add a log capture option that tails the VM's serial console to a file:

virsh console --force moltdown-test > /var/log/moltdown/moltdown-test-install.log 2>&1 &

2. Standard Log Location

Create /var/log/moltdown/ or ~/.moltdown/logs/ for all moltdown operations:

  • VM installation logs
  • Bootstrap script logs
  • Snapshot operation logs

3. Progress Indicators

  • Add --verbose flag to virt_install_agent_vm.sh
  • Show estimated time remaining
  • Parse console output for key installation milestones

4. Health Check Script

Create a script that monitors installation progress:

./monitor_install.sh moltdown-test
# Shows: [5/8] Installing packages...
# Shows: Estimated: 3 min remaining

Related

Found during E2E testing - #9

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions