mirror of
https://github.com/libvirt/libvirt.git
synced 2026-09-03 20:53:04 -05:00
lxc: Fix wrong addresses statements for IPv{4, 6} in native network definitions
After LXC version 3, some settings were changed to new names. Same as
network. LXC introduced network indexes and changed IPv{4,6} addresses
fields. Before, users should only pass `lxc.network.ipv4` to define an
IPv4 address. Now, on version 3, users need to pass
`lxc.net.X.ipv4.address` to specify the same thing. Same for IPv6.
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
committed by
Michal Privoznik
parent
991c56105d
commit
23be4887af
@@ -5,9 +5,9 @@ lxc.net.0.type = veth
|
||||
lxc.net.0.flags = up
|
||||
lxc.net.0.hwaddr = 02:00:15:8f:05:c1
|
||||
lxc.net.0.name = eth0
|
||||
lxc.net.0.ipv4 = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.address = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.gateway = 192.168.122.1
|
||||
lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
|
||||
|
||||
#remove next line if host DNS configuration should not be available to container
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
lxc.net.0.type = phys
|
||||
lxc.net.0.link = eth0
|
||||
lxc.net.0.name = eth1
|
||||
lxc.net.0.ipv4 = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.address = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.gateway = 192.168.122.1
|
||||
lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
|
||||
|
||||
lxc.net.1.type = vlan
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
lxc.net.0.type = phys
|
||||
lxc.net.0.link = eth0
|
||||
lxc.net.0.name = eth1
|
||||
lxc.net.0.ipv4 = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.address = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.gateway = 192.168.122.1
|
||||
lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
|
||||
|
||||
lxc.rootfs.path = /var/lib/lxc/migrate_test/rootfs
|
||||
|
||||
@@ -6,9 +6,9 @@ lxc.net.0.flags = up
|
||||
lxc.net.0.link = virbr0
|
||||
lxc.net.0.hwaddr = 02:00:15:8f:05:c1
|
||||
lxc.net.0.name = eth0
|
||||
lxc.net.0.ipv4 = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.address = 192.168.122.2/24
|
||||
lxc.net.0.ipv4.gateway = 192.168.122.1
|
||||
lxc.net.0.ipv6 = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.address = 2003:db8:1:0:214:1234:fe0b:3596/64
|
||||
lxc.net.0.ipv6.gateway = 2003:db8:1:0:214:1234:fe0b:3595
|
||||
|
||||
#remove next line if host DNS configuration should not be available to container
|
||||
|
||||
Reference in New Issue
Block a user