mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 19:41:16 +00:00
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>
46 lines
1.5 KiB
Plaintext
46 lines
1.5 KiB
Plaintext
# Template used to create this container: opensuse
|
|
# Template script checksum (SHA-1): 27307e0a95bd81b2c0bd82d6f87fdbe83be075ef
|
|
|
|
lxc.net.0.type = veth
|
|
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.address = 192.168.122.2/24
|
|
lxc.net.0.ipv4.gateway = 192.168.122.1
|
|
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
|
|
lxc.mount.entry = proc proc proc nodev,noexec,nosuid 0 0
|
|
lxc.mount.entry = sysfs sys sysfs defaults 0 0
|
|
lxc.mount.entry = tmpfs run tmpfs size=8m,mode=0755,nodev,nosuid 0 0
|
|
lxc.mount.entry = /etc/resolv.conf etc/resolv.conf none bind,ro 0 0
|
|
lxc.rootfs.path = /var/lib/lxc/migrate_test/rootfs
|
|
lxc.uts.name = migrate_test
|
|
lxc.arch = x86
|
|
lxc.autodev=1
|
|
lxc.tty.max = 2
|
|
lxc.pts = 1024
|
|
lxc.cap.drop = sys_module mac_admin mac_override mknod
|
|
|
|
# When using LXC with apparmor, uncomment the next line to run unconfined:
|
|
#lxc.aa_profile = unconfined
|
|
|
|
lxc.cgroup.devices.deny = a
|
|
# /dev/null and zero
|
|
lxc.cgroup.devices.allow = c 1:3 rwm
|
|
lxc.cgroup.devices.allow = c 1:5 rwm
|
|
# consoles
|
|
lxc.cgroup.devices.allow = c 5:1 rwm
|
|
lxc.cgroup.devices.allow = c 5:0 rwm
|
|
lxc.cgroup.devices.allow = c 4:0 rwm
|
|
lxc.cgroup.devices.allow = c 4:1 rwm
|
|
# /dev/{,u}random
|
|
lxc.cgroup.devices.allow = c 1:9 rwm
|
|
lxc.cgroup.devices.allow = c 1:8 rwm
|
|
lxc.cgroup.devices.allow = c 136:* rwm
|
|
lxc.cgroup.devices.allow = c 5:2 rwm
|
|
# rtc
|
|
lxc.cgroup.devices.allow = c 254:0 rwm
|