Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
The answer is described in here - it's really simple: – betro Mar 28 '15 at 14:01

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:… – 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:

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

share|improve this answer

Your Answer


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.