Re: Assigning static ip address in libvirt

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

 



On 08/02/2016 09:00 AM, harish.shastry@xxxxxxxxx wrote:
Hello

Is there way to assign static ip address to lxc and KVM guests with libvirt?

I saw some snippets here https://libvirt.org/formatdomain.html#ipconfig but unable to get it to work.

That method only works for lxc (only the IP address of the *host* side of the tap device can be configured for qemu guests), and only if your libvirt is at least version 1.2.12.

Another method is to add a static host entry to the dhcp configuration for the network used to connect the guest. If the guest interface is connected to a libvirt virtual network, you can just do what is described here:

http://wiki.libvirt.org/page/Networking#virsh_net-update

Otherwise, if the guest is connected via a bridge (or macvtap) directly to an external network, you'll need to configure the dhcp server for that network (which is outside the scope of libvirt)

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users



[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux