Bug 1059624 - RFE: lxc: support configuring static IP address in domain XML
Summary: RFE: lxc: support configuring static IP address in domain XML
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-30 09:32 UTC by Cedric Bosdonnat
Modified: 2020-11-05 17:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-03 17:00:25 UTC
Embargoed:


Attachments (Terms of Use)

Description Cedric Bosdonnat 2014-01-30 09:32:07 UTC
LXC configuration can contain lines like:
lxc.network.ip[46] = some.ip.addr.ess

LXC then sets this IP address to the guest network device. Supporting a similar feature in libvirt would help fill that feature gap.

Comment 1 Daniel Berrangé 2020-11-03 17:00:25 UTC
Thank you for reporting this issue to the libvirt project. Unfortunately we have been unable to resolve this issue due to insufficient maintainer capacity and it will now be closed. This is not a reflection on the possible validity of the issue, merely the lack of resources to investigate and address it, for which we apologise. If you none the less feel the issue is still important, you may choose to report it again at the new project issue tracker https://gitlab.com/libvirt/libvirt/-/issues The project also welcomes contribution from anyone who believes they can provide a solution.

Comment 2 Laine Stump 2020-11-05 17:43:45 UTC
Actually, according to https://libvirt.org/formatdomain.html#ip-configuration this capability has been supported since libvirt 1.2.12 (Commit c9a641f1e, which was written by Cedric himself), which was released all the way back in January 2015. There were some subsequent additions made in libvirt 2.1.0 to support setting the IP address of the *host* side of the beth pair, as well as adding static routes on both the guest and host side.

So this feature has been in libvirt for a very long time, but nobody noticed this BZ requesting it :-)


Note You need to log in before you can comment on or make changes to this bug.