Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to create a Ubuntu VM in XenServer and log into it with SSH. I was already able to do this using the same image, but now I just cannot figure out how I got the IP of the newly created machine. I only have access to the Host through SSH so I have been using the CLI to create the VMs. I know the IP of the newly created VM is available somewhere since I was able to log into the first one I created. Can anyone point me in the right direction here?

Thank you, Zach

share|improve this question

2 Answers 2

It depends how you provision the IP. If you have no clue I would search the router's arp table and try all of them. Worst case use a port scann of your subnet. You should be able to connect on the console of the vm and run /sbin/ip a s

share|improve this answer
    
How can I connect to the console of the vm to execute this if I don't know the IP to ssh into? Does Xenserver provide some other means of accessing the shell of a VM? –  Zachary Wasserman Jun 8 '11 at 17:10
    
Use VNC to connect on the guest console. See: wiki.xensource.com/xenwiki/… –  Mircea Vutcovici Jun 8 '11 at 19:16
    
Try adding -c when starting the VM: xm create -c config_file –  Mircea Vutcovici Jun 8 '11 at 19:24

If you use XenCenter to manage the Xenserver, you can find the IP addresses of a guest OS by looking at the Network Tab of that server. If not, you can use the API:

http://forums.citrix.com/thread.jspa?threadID=244784&tstart=0

http://forums.citrix.com/thread.jspa?threadID=272373&tstart=0

In both cases you need to have the xen-tools installed on the guest.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.