Phoenix

From CSLabsWiki
Revision as of 02:28, 7 June 2015 by Beadleha (talk | contribs)

Jump to: navigation, search
Phoenix
Contact Person: CoreMaintainers
Last Update: Spring 2015
Services: Various


Hostname: phoenix
Operating system: Debian 8.0 Jessie
CPU: 2x Intel Xeon E5410 @ 2.33GHz
RAM: 16 GB DDR2


Phoenix is our secondary VM host. It rose from the ashes of europa and xen2 It is currently in development.

Setup

Generally, we followed the instructions on the debian wiki.

Things to install

apt-get install htop vim sudo qemu-kvm libvirt-bin virtinst

Network Bridge Setup

In order for the VMs to be on our LAN, a bridge must be set up as follows:

In /etc/network/interfaces:

# The loopback network interface
auto lo
iface lo inet loopback

auto br0
iface br0 inet static
	bridge_ports eth0
	address 128.153.145.40
	netmask 255.255.255.0
	gateway 128.153.145.1
	broadcast 128.153.145.255
	dns-nameservers 128.153.145.3 128.153.145.4


Manual set up:

1) Create new bridge iterface "brctl addbr <bridge_name>"

2) Add existing interface to bridge "brctl addif <bridge_name> <iterface_name>"

3) Bring bridge up "ifconfig <bridge_name> up"


Bridging interfaces will cause the interfaces used to not have an ip address even if they are up. The bridge interface will contain an ip address.

Migration from eevee

To migrate a VM from eevee:

Put iso in /var/lib/libvirt/isos

Put xml file from dump into /var/lib/libvirt/qemu

(The dump can be had by running virsh dumpxml > vm_name.xml on eevee

(The xml file will need to be edited, see the debian wiki)

Put disk image in /var/lib/libvirt/images

virsh define <Your VM Name>.xml