This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
технология_lxc [2024/07/09 16:06] val [Настройка bridge] |
технология_lxc [2025/02/01 10:11] (current) val [Создание ветки дочерней системы] |
||
---|---|---|---|
Line 38: | Line 38: | ||
# bridge_maxwait 0 | # bridge_maxwait 0 | ||
# post-up /sbin/brctl setfd br0 0 | # post-up /sbin/brctl setfd br0 0 | ||
- | # bridge_hw 08:00:27:23:45:0N #if generate same mac on nodes (Debian11/12) | + | |
</code> | </code> | ||
Line 67: | Line 67: | ||
USE_LXC_BRIDGE="false" | USE_LXC_BRIDGE="false" | ||
... | ... | ||
+ | </code><code> | ||
+ | root@server:~# rm /etc/default/lxc-net | ||
</code> | </code> | ||
Line 76: | Line 78: | ||
=== Debian === | === Debian === | ||
<code> | <code> | ||
+ | debian# ls /usr/share/lxc/templates/ | ||
+ | |||
debian# lxc-create -t debian -n www | debian# lxc-create -t debian -n www | ||
+ | |||
+ | debian# ls /var/cache/lxc | ||
</code> | </code> | ||
Line 103: | Line 109: | ||
root@server:~# cp /etc/ssh/sshd_config /var/lib/lxc/www/rootfs/etc/ssh/sshd_config | root@server:~# cp /etc/ssh/sshd_config /var/lib/lxc/www/rootfs/etc/ssh/sshd_config | ||
- | root@server:~# cp /etc/resolv.conf /var/lib/lxc/www/rootfs/etc/resolv.conf | + | root@server:~# ###cp /etc/resolv.conf /var/lib/lxc/www/rootfs/etc/resolv.conf |
root@server:~# chroot /var/lib/lxc/www/rootfs /bin/bash | root@server:~# chroot /var/lib/lxc/www/rootfs /bin/bash |