<div dir="ltr">Hi Team,<br><br>I am new to the Qemu/KVM, libvirt and these technologies.<div>Hypervisor is running on linux kernel with libvirtd version 1.3.2.</div><div>I am trying to spawn LXC ubuntu(21.04) container using virsh -c lxc:// commands on the hypervisor and ubuntu container is running now. </div><div>On the ubuntu 21.04 container, I have installed debian "libvirt-clients" package to use the virsh utility.<br><br>Updated the /etc/libvirt/libvirt.conf with to the hypervisor Qemu URI.<br>When I run virsh commands without URI, observing below error<br>root@host:~# virsh list<br>error: failed to connect to the hypervisor<br>error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory<br></div><div><br></div><div>root@host:~# virsh -c <Qemu URI> list<br> Id   Name      State<br>-------------------------<br>2      VM        running<br><br>If I execute the virsh commands without "-c" option, then ubuntu 21.04 container would display the VM's running as same as hypervisor.<br>Could you please help to manage this on the LXC ubuntu container?<br><br>LIBVIRT xml used to spawn LXC ubuntu 21.04 container:<br><domain type='lxc'><br>  <name>host</name><br>  <uuid>096f46bf-80bb-4441-a512-043a9c7a64d4</uuid><br>  <memory unit='KiB'>1048576</memory><br>  <currentMemory unit='KiB'>1048576</currentMemory><br>  <vcpu placement='static' cpuset='7'>1</vcpu><br>  <os><br>    <type arch='x86_64'>exe</type><br>    <init>/sbin/init</init><br>  </os><br>  <features><br>    <capabilities policy='allow'><br>      <audit_control state='on'/><br>      <audit_write state='on'/><br>      <block_suspend state='on'/><br>      <chown state='on'/><br>      <ipc_lock state='on'/><br>      <ipc_owner state='on'/><br>      <kill state='on'/><br>      <mac_admin state='on'/><br>      <mac_override state='on'/><br>      <mknod state='on'/><br>      <net_admin state='on'/><br>      <net_bind_service state='on'/><br>      <net_broadcast state='on'/><br>      <net_raw state='on'/><br>      <sys_admin state='on'/><br>      <sys_boot state='on'/><br>      <sys_ptrace state='on'/><br><div>      <sys_rawio state='on'/><br>      <sys_resource state='on'/><br>      <sys_time state='on'/><br>      <syslog state='on'/><br>    </capabilities><br>  </features><br>  <clock offset='utc'/><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>destroy</on_reboot><br>  <on_crash>destroy</on_crash><br>  <devices><br>    <emulator>/usr/lib64/libvirt/libvirt_lxc</emulator><br>    <filesystem type='mount' accessmode='passthrough'><br>      <source dir='/junos/lxc/jdm/jdm1/rootfs'/><br>      <target dir='/'/><br>    </filesystem><br></div><div>  </devices><br></domain><br><br></div>Thanks,</div><div>Yuvaraj.<br><br><br><br></div><div></div></div>