How do i get the domain name & id of a kvm virtual machine?



  • If you know one you can get the other.

    Display the domain id.

    # virsh domid Cirros
    1
    

    Display the domain name using the domain id.

    # virsh domname 1
    Cirros
    


© Lightnetics 2024