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 Both sides next revision
virtualisation:start [2019/09/30 14:48]
juraschek [Devices]
virtualisation:start [2021/06/15 19:40]
juraschek [Networking]
Line 45: 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 =====