--
GENI Users is a community supported mailing list, so please help by responding to questions you know the answer to.
If this is your first time posting a question to this list, please review http://groups.geni.net/geni/wiki/GENIExperimenter/CommunityMailingList
---
You received this message because you are subscribed to the Google Groups "GENI Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geni-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
VM.Joe-testing.ch-geni-net.instageni.clemson.edu
VM-0.Joe-testing.ch-geni-net.instageni.illinois.edu
VM-1.Joe-testing.ch-geni-net.instageni.gpolab.bbn.com
VM-2.Joe-testing.ch-geni-net.instageni.northwestern.edu
Is there anyway I can specify the hostname, such as "VM", like what EG machines do?
Thank you
Joe
#!/bin/bash
read -r slice1 </var/emulab/boot/nickname
slicename=$(echo $slice1 | cut -f2 -d.)
host1=$(hostname)
host=$(echo $host1 | cut -f1 -d.)
slice=`ruby -e "print '$slicename'[/[^+]*$/]"`
echo $host > /etc/hostname
/bin/hostname -F /etc/hostname