Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
virtualisation:start [2018/08/03 12:58]
preisig [Example Containers]
virtualisation:start [2021/06/15 19:40]
juraschek [Networking]
Line 36: Line 36:
  
  
 +==== Serial-Interface ​ ====
  
 + ​Serial-Interfaces can be also used inside of the lxc Container please check the page [[virtualisation:​serial-interface|]] for details.
  
 =====  Networking ===== =====  Networking =====
Line 43: Line 45:
  
 Generally you can either create a routed interface, where you set your own IP settings that will connect the router (through a virtual interface, virt0) to the guest interface of your cotnainer. The other option is that you bridge the containers interface to an existing one on the router. ​ Generally you can either create a routed interface, where you set your own IP settings that will connect the router (through a virtual interface, virt0) to the guest interface of your cotnainer. The other option is that you bridge the containers interface to an existing one on the router. ​
 +
 +If you are using a routed interface please be sure you networking file is setting the ethernet interface into manual mode and not dhcp: 
 +
 +Example on an alpine guest: ​
 +
 +Default in alpine template from linuxcontainers:​
 +<​konsole>​
 +/ $ cat /​etc/​network/​interfaces ​
 +auto eth0
 +iface eth0 inet dhcp
 +hostname $(hostname)
 +/ $
 +</​konsole>​
 + 
 +Need to be switched to 
 +
 +<​konsole>​
 +/ $ cat /​etc/​network/​interfaces ​
 +auto eth0
 +iface eth0 inet manual
 +hostname $(hostname)
 +/ $
 +</​konsole>​
 +
 +
 +
  
 ===== Container Templates ===== ===== Container Templates =====