1. I run a user domain like this: [root@kvm1 ~]# qemu-system-x86_64 -enable-kvm -m 1G -smp 4 /images/test1.img WARNING: Image format was not specified for '/images/test1.img' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted. Specify the 'raw' format explicitly to remove the restrictions. VNC server running on ::1:5900 2. Then, I install and using my user domain. 3. Then, I login to libvirtd on my hosts,but can not get the user domain using list command. [root@kvm1 ~]# virsh -c qemu:///system Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # virsh # virsh # list Id Name State ---------------------------------------------------- virsh #
On 4/30/20 11:31 AM, 崔涛的个人邮箱 wrote:> 1.I run a user domain like this: > > [root@kvm1 ~]# qemu-system-x86_64 -enable-kvm -m 1G -smp 4 /images/test1.img >Libvirt lists only those virtual machines (or domains as we call them) that were started through it. It doesn't list nor can manage qemu processes started aside. For painless domain creation I suggest virt-install or virt-manager (which is a GUI for it and libvirt). Michal
I got it. Thanks! -----邮件原件----- 发件人: Michal Privoznik <mprivozn@redhat.com> 发送时间: 2020年4月30日 17:38 收件人: 崔涛的个人邮箱 <sz_cuitao@163.com>; libvirt-users@redhat.com 主题: Re: why libvirtd can not list the running domain? On 4/30/20 11:31 AM, 崔涛的个人邮箱 wrote:> 1.I run a user domain like this: > > [root@kvm1 ~]# qemu-system-x86_64 -enable-kvm -m 1G -smp 4 > /images/test1.img >Libvirt lists only those virtual machines (or domains as we call them) that were started through it. It doesn't list nor can manage qemu processes started aside. For painless domain creation I suggest virt-install or virt-manager (which is a GUI for it and libvirt). Michal