How to Solve Error Cannot Find Guest Domain

Posted on

This is an article written to discuss the title given which is actually an error appeared with the message of ‘Cannot Find Guest Domain domain_name’. This is happened upon accessing or connecting to a virtual machine which is maintained by libvirt virtualization platform or technology. Basically the command used in order to access or connect to the virtual machine using graphical console is using ‘virt-viewer’. This is an effort where the actual feature provided in the webvirt or a dashboard accessed to connect to the virtual machine from a console feature is not working. The view of the page mentioned is shown below :

After accessing the console from webvirt page administrator, furthermore in the end it is actually failed upon using the access console feature to connect to the virtual machine, just use the ‘virt-viewer’ command as an alternative to achieve it. Below is an attempt for accessing or connecting to the virtual machine :

root@hostname:~# virt-viewer -c qemu:///system my-server-virtual

Apparently, the above command executed, will generate an error provided in a windows display box as shown below :

This is the actual error message shown in the windows display box : “Cannot find guest domain qemu:///server-virtual-name”.  The last part is edited and erased but basically, there is an additional part in the end showing the name of the virtual server name which is going to be accessed or connected via virt-viewer in form of graphical console. So, how to solve the problem ?. It is quite simple to find the solution. First of all, try to list all available server with the help of the following command ‘list –all’ after successfully connected to libvirt daemon as shown below :

root@hostname:~# virsh -c qemu:///system
Welcome to virsh, the virtualization interactive terminal.

Type:  'help' for help with commands
       'quit' to quit

virsh # list --all
 Id    Name                           State
 1     my-virtual-app                 running
 2     my-virtual-db                  running

virsh # 

So, in order to connect to the virtual server using ‘virt-viewer’, just make sure that the virtual server is listed and it is in the ‘running’ state.

Leave a Reply