#/bin/sh apt-get update apt-get upgrade apt-get install xen-tools xen-system-amd64 bridge-utils cp /etc/network/interfaces /etc/network/interfaces.old.$(date +%y%m%d%H%M%S) echo " # 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 # The primary network interface #------------------------------- auto eth0 allow-hotplog eth0 iface eth0 inet static address 192.168.179.222 netmask 255.255.255.0 network 192.168.179.0 broadcast 192.168.179.255 gateway 192.168.179.1 dns-nameservers 192.168.179.1 192.168.1.1 # The bridge network interface #------------------------------- auto xenbr0 allow-hotplug xenbr0 iface xenbr0 inet static bridge_ports eth0 address 192.168.179.223 broadcast 192.168.179.255 netmask 255.255.255.0 gateway 192.168.179.1 dns-nameservers 192.168.179.1 " >/etc/network/interfaces vim /etc/default/grub /usr/sbin/update-grub #xen-create-image --hostname zabbix --ip 192.168.179.156 --gateway 192.168.179.1 --netmask 255.255.255.0 --bridge xenbr0 --vcpus 2 --size=20Gb --swap=4Gb --memory=4096Mb --arch amd64 --role=udev --dir=/home/xen --password 1234 --verbose #xen-create-image --hostname zabbix --ip 192.168.179.156 --gateway 192.168.179.1 --netmask 255.255.255.0 --bridge xenbr0 --vcpus 2 --size=20Gb --swap=4Gb --memory=4096Mb --arch amd64 --role=udev --dir=/home/xen --password 1234 --verbose xen-create-image --hostname data --ip 192.168.179.155 --gateway 192.168.179.1 --netmask 255.255.255.0 --vcpus 1 --size=20Gb --memory=1024Mb --arch amd64 --role=udev --dir=/home/xen --password 1234 --verbose