I am running Ubuntu 12.04 on a VM on Fedora 18 host using QEMU/KVM and libvirtd. Now, when I fire up the virsh and give list command, it doesn't show any domain running, though my VM is running quite fine. Any idea what am I doing wrong?
The main command interface used to control both Solaris xVM and guest domains is the virsh command. virsh provides a generic and stable interface for controlling virtualized operating systems. Use virsh instead of xm wherever possible. Many virsh commands act asynchronously.
The virsh command allows you to manage VMs interactively or in batch. It's also helpful for controlling VMs from the Linux shell and integrates with scripts or automation tools.
Therefore, to list running and stopped vms on KVM, use the virsh command with the domain monitoring option, list . Where [OPTION] can be one of the very many options as shown in the help page. See below output from virsh list --help .
It may caused by the user you issued the virsh command. It's normal that you start your VM by sudo but you can see nothing under your other accounts.
You can see your VMs via sudo virsh list --all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With