Xen com multi bridge e LVM
Aqui demonstro como subir um ambiente virtualizado com Xen, utilizando um servidor com quatro interfaces de rede, sendo que cada interface estará conectada a cada máquina virtual. Essa abordagem garante maior segurança e desempenho. Além disso, as máquinas virtuais serão criadas em volumes virtuais, que podem ser redimensionados de acordo com a necessidade.
Parte 2: Configurando as interfaces de rede
Crie as seguinte entradas em /etc/network/interfaces:
# vim /etc/network/interfaces
Reinicie a rede:
# /etc/init.d/networking restart
# vim /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# A interface 1
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
# A interface 2
auto eth1
iface eth1 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
# A interface 3
auto eth2
iface eth2 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 192.168.0.1
# A interface 4
auto eth3
iface eth3 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.1
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# A interface 1
auto eth0
iface eth0 inet static
address 192.168.0.2
netmask 255.255.255.0
gateway 192.168.0.1
# A interface 2
auto eth1
iface eth1 inet static
address 192.168.0.3
netmask 255.255.255.0
gateway 192.168.0.1
# A interface 3
auto eth2
iface eth2 inet static
address 192.168.0.4
netmask 255.255.255.0
gateway 192.168.0.1
# A interface 4
auto eth3
iface eth3 inet static
address 192.168.0.5
netmask 255.255.255.0
gateway 192.168.0.1
Reinicie a rede:
# /etc/init.d/networking restart