Specifying hostname

13 views
Skip to first unread message

Zhe Wang

unread,
Jun 3, 2014, 6:57:07 PM6/3/14
to geni-...@googlegroups.com
Hi everyone,

Is there a way that I can specify the hostname of the resource I want to reserve? I tried to use <hostname> tag in a request Rspec. It seemed not working.

I also noticed that on some exogeni machine, the hostname is the client id. Is that true? Is that true for all exogeni machines? Is that also true for some instageni machines?

Thank you

Joe

Niky Riga

unread,
Jun 3, 2014, 7:06:53 PM6/3/14
to geni-...@googlegroups.com
Yep the hostname of the VM should be the client id.

At IG this is universally true, at EG this is true for most of the images,
and in particular the default one.

Cheers,
Niky

June 3, 2014 at 6:57 PM
--
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.

Zhe (Joe) Wang

unread,
Jun 4, 2014, 9:38:13 AM6/4/14
to geni-...@googlegroups.com
Thank you, Niky.

I tried it on some IG machines. The hostnames seem to be client_id+slice_name+"ch-geni-net"+AM domainname. i.e.:

Divyashri Bhat

unread,
Jun 4, 2014, 9:54:10 AM6/4/14
to geni-...@googlegroups.com
Hi Joe,

Here is a small postboot script I use to extract the hostname and slicename in InstaGENI and then change the hostname.

#!/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


In the example you specified above, running the script here would give you a hostname as "vm" for VM.Joe-testing.ch-geni-net.instageni.clemson.edu

The hostnames are slightly different between the control and data plane interfaces. More details can be found here:


Hope this helps.
Regards,
Divyashri Bhat
Graduate Student
University of Massachusetts, Amherst

Zhe Wang

unread,
Jun 4, 2014, 10:01:38 AM6/4/14
to geni-...@googlegroups.com

Thank you very much, Divya. 
Reply all
Reply to author
Forward
0 new messages