User Tools

Site Tools


Sidebar

unix:virtualization:virtlib:quickreference

This is an old revision of the document!


virt-lib Quick Reference

virt-top

This is not always installed by default. When run, it will bring up a full console window that shows all virtuals running on a system, similar to the top command.

virsh

The main controller for virt-lib. The basic format of the command is

virsh command parameters

. Some common commands are:

  • list –all - list all domains virt-lib knows about and show their state (running, off, whatever)
  • start name - starts the domain named name (name from list –all)
    • attach-interface –domain pxe –type bridge –source br1 –model virtio –config –live
    • detach-interface –domain pxe –type bridge –mac 52:54:00:47:2f:eb –config

Remove a network from the entire system

virsh net-list --all
virsh net-destroy br1
virsh net-undefine br1
virsh net-list --all

convert config file to native

virsh -c xen:/// domxml-to-native --format xen-xl \
    /path/to/libvirt/vm.domxml.cfg > vm.xenxl.cfg

domxml to native

unix/virtualization/virtlib/quickreference.1602919508.txt.gz · Last modified: 2020/10/17 02:25 by rodolico