All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 1ae826a2 authored by Leigh B Stoller's avatar Leigh B Stoller

A couple of tweaks to genirack instructions.

parent 480b4dc0
......@@ -7,9 +7,7 @@ but first lets talk about the boss/ops XEN VMs.
Briefly, the VMs are initially created as a XEN based ElabInElab on
Utah's Emulab, experiment using an NS file tailored to the eventual
environment via a bunch of attribute variables. For example, take a
look at this one, which is the basis for the BBN rack:
https://www.emulab.net/showexp.php3?pid=testbed&eid=bbnrack#nsfile
look at rack.ns in this directory.
The initial config lines turn on/off some Emulab features, but most
importantly causes the ProtoGeni subsystem to be configured in and the
......@@ -34,13 +32,11 @@ For each site, we need to create a directory with three files in it:
ilo.xml - The XML file of ilo info from HP
variables.txt - Some extra config variables.
Take a look at the boss:~stoller/genirack/racks/bbn directory for
examples. The variables file is a bunch of passwords, which are
random strings I generated by piping some bytes from /dev/random into
md5 and taking a substring. You can generate a new one of these files
by running:
The variables file is a bunch of passwords, which are random strings I
generated by piping some bytes from /dev/random into md5 and taking a
substring. You can generate a new one of these files by running:
boss> ~stoller/genirack/racks/genpswds.pl > variables.txt
./genpswds.pl > variables.txt
The ip.txt file is specific to the site of course, and the XML file
comes from HP via email. Note that the ROUTEABLE_IPRANGE in the NS
......
#!/usr/bin/perl -w
#
# EMULAB-COPYRIGHT
# Copyright (c) 2004-2011, 2013 University of Utah and the Flux Group.
# All rights reserved.
#
use English;
use Getopt::Std;
use lib '/usr/testbed/lib';
use libtestbed;
my @VARS = ("GENIRACK_COMMUNITY",
"GENIRACK_SWITCH_PASSWORD",
"GENIRACK_ILO_PASSWORD",
"PROTOGENI_PASSWORD",
"ELABMAN_SSLCERT_PASSWORD");
foreach my $var (@VARS) {
my $pswd = TBGenSecretKey();
$pswd = substr($pswd, 0, 12);
print "${var}=$pswd\n";
}
source tb_compat.tcl
set ns [new Simulator]
tb-elab-in-elab 1
tb-elabinelab-singlenet
tb-elab-in-elab-topology xen
tb-set-elabinelab-attribute CONFIG_WINDOWS 0
tb-set-elabinelab-attribute CONFIG_MAILMAN 1
tb-set-elabinelab-attribute LOAD_PROTOGENI 1
tb-set-elabinelab-attribute CONFIG_NODBINIT 1
tb-set-elabinelab-attribute CONFIG_NOSETUP 0
tb-set-elabinelab-attribute CONFIG_GENIRACK 1
tb-set-elabinelab-attribute GENIRACK_NETWORK 128.82.75.64
tb-set-elabinelab-attribute GENIRACK_NETMASK 255.255.255.192
tb-set-elabinelab-attribute GENIRACK_ROUTER 128.82.75.65
tb-set-elabinelab-attribute GENIRACK_ILOIP 128.82.75.66
tb-set-elabinelab-attribute GENIRACK_CONTROLIP 128.82.75.67
tb-set-elabinelab-attribute GENIRACK_BOSSIP 128.82.75.68
tb-set-elabinelab-attribute GENIRACK_OPSIP 128.82.75.69
tb-set-elabinelab-attribute GENIRACK_FOAMIP 128.82.75.70
tb-set-elabinelab-attribute GENIRACK_FLOWIP 128.82.75.71
# Added Utah boss to avoid timeouts during setup.
tb-set-elabinelab-attribute NAMED_FORWARDERS "128.82.254.154,128.82.254.155,155.98.32.70"
tb-set-elabinelab-attribute NAMED_ALSONOTIFY 155.98.32.70
tb-set-elabinelab-attribute GENIRACK_DOMAIN instageni.odu.edu
#tb-set-elabinelab-attribute ROUTABLE_IPRANGE "128.82.75.96-128.82.75.126"
tb-set-elabinelab-attribute GENIRACK_COUNTRY "US"
tb-set-elabinelab-attribute GENIRACK_LATITUDE "36.88560"
tb-set-elabinelab-attribute GENIRACK_LONGITUDE "-76.30741"
# Reset to admin email later.
tb-set-elabinelab-attribute GENIRACK_TBOPS "genirack-ops@flux.utah.edu"
tb-set-elabinelab-attribute GENIRACK_TBLOGS "genirack-logs@flux.utah.edu"
tb-set-elabinelab-attribute GENIRACK_TBSTATED "genirack-stated@flux.utah.edu"
# We make this stuff up for the site.
tb-set-elabinelab-attribute GENIRACK_HOMEBASE ODU
tb-set-elabinelab-attribute GENIRACK_TIMEZONE America/New_York
tb-set-elabinelab-attribute SSLCERT_COUNTRY US
tb-set-elabinelab-attribute SSLCERT_STATE "Virginia"
tb-set-elabinelab-attribute SSLCERT_LOCALITY "Norfolk"
tb-set-elabinelab-attribute SSLCERT_ORGNAME "Old Dominion University"
# Do not change these too much, we might not have enough space to capture them.
tb-set-elabinelab-role-attribute boss XEN_EXTRADISKS "disk1:75G,disk2:160G,disk3:50G"
tb-set-elabinelab-role-attribute ops XEN_EXTRADISKS "disk1:10G,disk2:200G,disk3:10G"
# Do not change these.
tb-set-elabinelab-attribute MFSCONSOLE vga
tb-set-elabinelab-attribute MFSVERSION "82"
# New way of getting a routable control address for initial XEN VMs.
tb-set-elabinelab-role-attribute boss ROUTABLE_IP "routable"
tb-set-elabinelab-role-attribute ops ROUTABLE_IP "routable"
tb-set-elabinelab-role-attribute boss XEN_MEMSIZE 2096
tb-set-elabinelab-role-attribute boss XEN_CORES 2
tb-set-elabinelab-role-attribute ops XEN_MEMSIZE 2096
tb-set-elabinelab-role-attribute ops XEN_CORES 2
namespace eval TBCOMPAT {
set elabinelab_maxpcs 0
set elabinelab_hardware("boss") d710-vm
set elabinelab_hardware("ops") d710-vm
set elabinelab_nodeos("boss") FBSD103-64-STD
set elabinelab_nodeos("ops") FBSD103-64-STD
}
$ns run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment