Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

virsh list command not showing any domain

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?

like image 895
Pensu Avatar asked Jun 21 '13 06:06

Pensu


People also ask

What is a Virsh domain?

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.

What is the use of Virsh command?

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.

How do I list all VMs in KVM?

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 .


1 Answers

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

like image 66
shawnzhu Avatar answered Oct 24 '22 16:10

shawnzhu