Guides tagged “virsh”

Step-by-step MdmHost guides about virsh, sorted A-Z.

7 guides

  • Back up running KVM VMs with virsh and a simple script

    Back up live KVM virtual machines without downtime using external snapshots and blockcommit, save the XML definition, compress and copy off-host, schedule with cron and restore.

    AdvancedKVM hosts2 min read
  • KVM and libvirt common errors and how to fix them

    Fix the most common KVM and libvirt errors: /dev/kvm missing, permission denied on images, network default not active, domain already exists, failed to connect to the hypervisor and more.

    IntermediateKVM hosts2 min read
  • KVM live migration with virsh: move running VMs between hosts

    Move a running KVM virtual machine to another host with virsh migrate: shared vs local storage, CPU compatibility, network and SSH requirements, and how to verify and troubleshoot.

    AdvancedKVM hosts2 min read
  • KVM snapshots with virsh: create, revert and delete

    Create, list, revert and delete KVM VM snapshots with virsh, understand internal vs external snapshots, add the guest agent for consistency, and why snapshots are not backups.

    IntermediateKVM hosts2 min read
  • Set up a serial console for KVM VMs (virsh console)

    Enable a serial console in Linux KVM guests so you can reach them with virsh console without VNC or network: GRUB and kernel settings, getty, rescuing boot problems and exiting cleanly.

    IntermediateKVM hosts2 min read
  • USB passthrough to KVM VMs with libvirt

    Pass a USB device such as a licence dongle, Zigbee stick or UPS to a KVM virtual machine: find vendor and product IDs, attach by ID or port with virsh, hotplug, and fix common permission issues.

    IntermediateKVM hosts2 min read
  • virsh commands cheat sheet for managing KVM virtual machines

    The virsh commands you need day to day on a KVM host: list, start, stop and autostart VMs, edit XML, attach disks and NICs, change CPU and RAM, consoles, networks and storage pools.

    IntermediateKVM hosts2 min read

Browse by topic

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.