[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] XCP 1.0 beta : NOOB: how do i log into a newly created VM?


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Joe Linoff" <jlinoff@xxxxxxxxxx>
  • Date: Thu, 2 Dec 2010 21:02:12 -0800
  • Cc: Joe Linoff <jlinoff@xxxxxxxxxx>
  • Delivery-date: Thu, 02 Dec 2010 21:03:41 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcuSpz9Rxib+bj9WQJmoZfxsXL2ZIA==
  • Thread-topic: XCP 1.0 beta : NOOB: how do i log into a newly created VM?

Hi:

 

Sorry for the basic NOOB question but I managed to create a VM but now I am stuck. On page 26 of the XCP Virtual Machine Installation Guide it says “VNC and perform the OS installation”. I tried everything I could find (listed below) but I am stuck. Any help would be greatly appreciated. Thanks in advance.

 

Here are two questions whose answers would really help:

 

1.      What is the IP address of my VM? I tried “xe vm-list params=all” but didn’t see it.

2.      How can I log into my VM?

 

I created the VM on my XCP host using the following commands:

 

% xe template-list -s 10.45.2.100 -pw test | grep -B 1 'CentOS 5.5'

% xe vm-install template='CentOS 5.5 (64-bit)' new-name-label='vm001' -s 10.45.2.100 -pw test

% xe network-list -s 10.45.2.100 -pw test

% xe network-list bridge=xenbr0 --minimal -s 10.45.2.100 -pw test

% xe vif-create \

       network-uuid=8d77c968-f362-befa-fc57-92d63d656e1d \

       vm-uuid=0409c60f-d209-1105-e884-9a25dd238430 \

       device=0  \

       -s 10.45.2.100 -pw test

% cp -v /net-install/centos/5.5/isos.DVD/CentOS-5.5-x86_64-bin-DVD/CentOS-5.5-x86_64-bin-DVD-*.iso /opt/tcc/master/http/iso

% mkdir -p /mnt/CentOS-5.5-x86_64-bin-DVD-1of2

% mount -o loop /opt/tcc/master/http/iso/CentOS-5.5-x86_64-bin-DVD-1of2.iso /mnt/CentOS-5.5-x86_64-bin-DVD-1of2

% cp -p -r /mnt/CentOS-5.5-x86_64-bin-DVD-1of2 /opt/tcc/master/http/os

% xe vm-param-set \

       uuid=0409c60f-d209-1105-e884-9a25dd238430 \

       other-config:install-repository=http://10.45.2.1/tcc/os/CentOS-5.5-x86_64-bin-DVD-1of2 \

       -s 10.45.2.100 -pw test

% xe vm-start uuid=0409c60f-d209-1105-e884-9a25dd238430 -s 10.45.2.100 -pw test

% xe vm-list -s 10.45.2.100 -pw test

uuid ( RO)           : f32bcb5b-f55f-419a-8d08-7f9d1b3f0833

     name-label ( RW): Control domain on host: tcc-lab-2-xcp01

    power-state ( RO): running

 

uuid ( RO)           : 0409c60f-d209-1105-e884-9a25dd238430

     name-label ( RW): vm001

    power-state ( RO): running

 

At this point it appears that everything is working but I don’t know what to do next. I tried the following to access via VNC

 

% ssh -X -L 5901:127.0.0.1:5901 -L 5902:127.0.0.1:5902 -L 5999:127.0.0.1:5999 root@xxxxxxxxxxx

% xe vm-list uuid=0409c60f-d209-1105-e884-9a25dd238430 params=dom-id

% xenstore-ls /local/domain/1/serial/0

limit = "65536"

tty = "/dev/pts/2"

vncterm-pid = "19363"

vnc-port = "5901"

 

With that information I tried “vncviewer –listen 5901” and “vncviewer localhost:5901”. Neither command worked.

 

Thank you,

 

Joe

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.