[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt-users] Getting IP address of a lxc container via libvirt



Hello 

I wanted to understand if there is a way to get LXC container's ip address.

- virDomainInterfaceAddresses API only works for qemu/kvm and not with the lxc driver.

What other options do I have? 

Using enter-lxc-namespace is throwing this error: 

virsh -c lxc:/// lxc-enter-namespace <domain> --noseclabel /sbin/ifconfig
libvirt:  error : Expected at least one file descriptor

Appreciate any help.

Regards,
Harish

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]