`hostname` still shows localhost when login to a VM

15 views
Skip to first unread message

Xuan Liu

unread,
Aug 19, 2014, 10:38:10 AM8/19/14
to geni-...@googlegroups.com
Hello,

I recently created a custom image for InstaGENI XenVMs, and I followed the suggestion in previous topic regarding creating VM, which is to delete all personal user accounts under /users except for geniuesrs. 

When I login to some of the nodes, I found that the it shows "localhost" at the terminal (e.g. xuanliu@localhost), which is supposed to show the client id I provided in the RSpec.  I tried to reserve the resources from both Portal and Flack, and I saw the same issue for a few nodes in my slice. 

I didn't see this issue before (i.e. about a couple of weeks ago), so I'm not sure if there has been any changes. 

Thanks,

Xuan

Xuan Liu

unread,
Aug 19, 2014, 10:49:09 AM8/19/14
to geni-...@googlegroups.com
Some examples from my current slice:

I have five nodes in my slice:

on rt-2:

xuanliu@rt-2:~$ hostname
rt-2
xuanliu@rt-2:~$ cat /etc/hosts
127.0.0.1 localhost loghost localhost rt-2.xuan-demo.ch-geni-net.instageni.illinois.edu
192.168.5.1 rt-2-lan2 rt-2-2
192.168.1.2 rt-2-stitched0 rt-2-1
192.168.4.1 rt-2-lan1 rt-2-0 rt-2
192.168.5.2 host-2-lan2 host-2-0 host-2
192.168.1.1 rt-1-stitched0 rt-1-1 rt-1
192.168.2.1 rt-1-stitched1 rt-1-0
192.168.2.2 rt-3-stitched1 rt-3-1
192.168.4.2 rt-3-lan1 rt-3-0 rt-3

On rt-3
xuanliu@localhost:~$ cat /etc/hosts
127.0.0.1 localhost localhost loghost
192.168.5.1 rt-2-lan2 rt-2-2
192.168.1.2 rt-2-stitched0 rt-2-1
192.168.4.1 rt-2-lan1 rt-2-0 rt-2
192.168.5.2 host-2-lan2 host-2-0 host-2
192.168.1.1 rt-1-stitched0 rt-1-1
192.168.2.1 rt-1-stitched1 rt-1-0 rt-1
192.168.2.2 rt-3-stitched1 rt-3-1
192.168.4.2 rt-3-lan1 rt-3-0 rt-3
xuanliu@localhost:~$ cat /etc/hostname
localhost

From rt-2, i can ping rt-3 by specifying it's client ID, which is rt-3
xuanliu@rt-2:~$ ping rt-3
PING rt-3-lan1 (192.168.4.2) 56(84) bytes of data.
64 bytes from rt-3-lan1 (192.168.4.2): icmp_req=1 ttl=64 time=0.936 ms
64 bytes from rt-3-lan1 (192.168.4.2): icmp_req=2 ttl=64 time=0.508 ms
^C


So it seems like the rt-3 has been configured at the node, but not written into the hosts file and hostname file. 

I'm also attaching my RSpec file for this example. 

Thanks,

Xuan
custom3-2am.xml

Zhe Wang

unread,
Aug 19, 2014, 11:10:48 AM8/19/14
to geni-...@googlegroups.com
I also ran into to this problem, about a month ago, when creating an image snapshot.

Leigh Stoller

unread,
Aug 19, 2014, 12:22:55 PM8/19/14
to geni-...@googlegroups.com
> When I login to some of the nodes, I found that the it shows "localhost" at the terminal (e.g. xuanliu@localhost), which is supposed to show the client id I provided in the RSpec. I tried to reserve the resources from both Portal and Flack, and I saw the same issue for a few nodes in my slice.

Hi. Can you recreate your slice please; I think it might be fixed. Or
just “restart” the slivers via Flack.

Leigh





Xuan Liu

unread,
Aug 19, 2014, 1:25:15 PM8/19/14
to geni-...@googlegroups.com
Thanks Leigh, I just recreated the topology in my slice, it looks fine for all five nodes. 

Xuan







--
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.

Reply all
Reply to author
Forward
0 new messages