Difference between revisions of "7 Grand Dad"

From CSLabsWiki
Jump to: navigation, search
(Bonded Ethernet)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Tyche is the new VM Host.
+
7 Grand Dad is the new VM Host.
  
 
{{services
 
{{services
 
|ip_addr = 128.153.145.43
 
|ip_addr = 128.153.145.43
|contact_person = [[User:Jared|Jared Dunbar]] & [[User:bruskajp|James Bruska]]
+
|contact_person = [[User:Jared|Jared Dunbar]]
 
|last_update = ''Spring 2017''
 
|last_update = ''Spring 2017''
 
|services = VM Host
 
|services = VM Host
Line 13: Line 13:
 
| screenshot =  
 
| screenshot =  
 
| maintainer = [[User:Jared|Jared Dunbar]] & [[User:bruskajp|James Bruska]]
 
| maintainer = [[User:Jared|Jared Dunbar]] & [[User:bruskajp|James Bruska]]
| hostname = hydra.cslabs.clarkson.edu
+
| hostname = grand-dad.cslabs.clarkson.edu
 
| operating_system = Arch Linux
 
| operating_system = Arch Linux
 
| interface1 = {{Network Interface | name=Clarkson Network | ip=128.153.145.43}}
 
| interface1 = {{Network Interface | name=Clarkson Network | ip=128.153.145.43}}
Line 21: Line 21:
 
}}
 
}}
  
Tyche is our newest VM host (as of Feb 2017)
+
7 Grand Dad is our newest VM host (as of Feb 2017)
  
 
=Install=
 
=Install=
Line 49: Line 49:
 
VM's require a network bridge in order to be able to communicate to the network.
 
VM's require a network bridge in order to be able to communicate to the network.
  
==Basic Non-Bond Ethernet==
+
===Basic Non-Bond Ethernet===
  
<pre>
+
This is a starter network configuration (for reference)
 +
 
 +
<pre style="background-color:#ccccff">
 
/etc/netctl/ethernet
 
/etc/netctl/ethernet
 
</pre>
 
</pre>
<pre>
+
<pre style="background-color:#ccffcc">
 
Description='A basic static ethernet connection'
 
Description='A basic static ethernet connection'
 
Interface=enp4s0f0
 
Interface=enp4s0f0
Line 65: Line 67:
 
</pre>
 
</pre>
  
==Bonded Ethernet==
+
===Bonded Ethernet===
  
 
'''Warning! This requires setup on the managed switches it's connected to!'''
 
'''Warning! This requires setup on the managed switches it's connected to!'''
  
<pre>
+
Bond the Ethernet together
 +
 
 +
<pre style="background-color:#ccccff">
 
/etc/netctl/bond
 
/etc/netctl/bond
 
</pre>
 
</pre>
<pre>
+
<pre style="background-color:#ccffcc">
 
Description="A bonded interface"
 
Description="A bonded interface"
 
Interface=bond0
 
Interface=bond0
Line 80: Line 84:
 
</pre>
 
</pre>
  
<pre>
+
Then set a bridge on that bond for the VM's
 +
 
 +
<pre style="background-color:#ccccff">
 
/etc/netctl/bridge
 
/etc/netctl/bridge
 
</pre>
 
</pre>
<pre>
+
<pre style="background-color:#ccffcc">
 
Description="Example Bridge connection"
 
Description="Example Bridge connection"
 
Interface=br0
 
Interface=br0
Line 102: Line 108:
 
</pre>
 
</pre>
  
Host cores are between 0 and 31 and local cores are from 0 to n-1 cores
+
Host cores are between 0 and 15 and local cores are from 0 to n-1 cores
  
 
You must run it for each core to each host core
 
You must run it for each core to each host core
Line 112: Line 118:
 
|0
 
|0
 
|SYSTEM - DO NOT ALLOCATE
 
|SYSTEM - DO NOT ALLOCATE
|-
 
|1
 
|[[Keyserver]], [[scheduler]], [[honeypot]]
 
|-
 
|2
 
|[[VRkour]], hunterGit
 
|-
 
|3
 
|[[comm]], hwiki, [[Turist]]
 
|-
 
|4, 5
 
|[[cacti]]
 
|-
 
|6, 7
 
|[[gmx]]
 
|-
 
|24 to 31
 
|[[colona-evolutionary-cpu]]
 
 
|}
 
|}
 
Free cores:
 
<pre>
 
6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23
 
</pre>
 
  
 
=Hardware Information=
 
=Hardware Information=
  
 
TBE
 
TBE

Latest revision as of 21:55, 10 September 2017

7 Grand Dad is the new VM Host.

7 Grand Dad
IP Address(es): 128.153.145.43
Contact Person: Jared Dunbar
Last Update: Spring 2017
Services: VM Host


Hostname: grand-dad.cslabs.clarkson.edu
Operating system: Arch Linux
NIC 1: Clarkson Network
IP: 128.153.145.43
CPU: 2x 8 Core Intel Somethings
RAM: 64GB of somethings


7 Grand Dad is our newest VM host (as of Feb 2017)

Install

Do a basic Arch install with the hard drives software raided in RAID 1, all of the device as /

Make sure to install GRUB to ALL of the drives and NOT /dev/md0 - also protip: md0 is a partition, not strictly a block device, thus it does not need a mbr and you can mkfs.ext4 /dev/md0 without issue :D

Install Packages

pacman -Syu htop iotop iftop lm_sensors vim sudo qemu libvirtd screen rsync tmux p7zip

Change SSHd to use port 13699 in addition to port 22 (add a line below Port:22 with Port:13699). Edit

/etc/ssh/sshd_config

User Configuration

Add all of the users to the libvirtd and kvm groups that plan to use the VM host

Network Configuration

VM's require a network bridge in order to be able to communicate to the network.

Basic Non-Bond Ethernet

This is a starter network configuration (for reference)

/etc/netctl/ethernet
Description='A basic static ethernet connection'
Interface=enp4s0f0
Connection=ethernet
IP=static
Address=('128.153.145.43/23')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='128.153.144.1'
DNS=('128.153.145.3')

Bonded Ethernet

Warning! This requires setup on the managed switches it's connected to!

Bond the Ethernet together

/etc/netctl/bond
Description="A bonded interface"
Interface=bond0
Connection=bond
BindsToInterfaces=('enp4s0f0' 'enp4s0f1')
IP=no

Then set a bridge on that bond for the VM's

/etc/netctl/bridge
Description="Example Bridge connection"
Interface=br0
Connection=bridge
BindsToInterfaces=(bond0)
IP=static
Address=('128.153.145.43/23')
Gateway='128.153.145.1'
DNS=('128.153.145.3')

Virtual Machine Core Allocation

These are cores that are allocated to VM's for efficiency.

virsh vcpupin <guestname> <local-core> <host core>

Host cores are between 0 and 15 and local cores are from 0 to n-1 cores

You must run it for each core to each host core

CPU CORE ALLOCATION
0 SYSTEM - DO NOT ALLOCATE

Hardware Information

TBE