Hi Mike:
Your new script works great. Note that I made one change to the usage section
to credit you as the author.
Thanks again and have a great weekend.
Cheers,
Joe
-----Original Message-----
From: Mike McClurg [mailto:mike.mcclurg@xxxxxxxxxx]
Sent: Friday, December 03, 2010 9:38 AM
To: Joe Linoff
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] XCP 1.0 beta : NOOB: how do i log into a newlycreated
VM?
Ha! That's funny I left that in there. Of course it worked every time for me,
since dt26 is my test machine ;)
I've fixed that bug, and also made the change to add selection of host by uuid.
Have a good weekend.
Mike
-----Original Message-----
From: Joe Linoff [mailto:jlinoff@xxxxxxxxxx]
Sent: 03 December 2010 17:35
To: Joe Linoff; Mike McClurg
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] XCP 1.0 beta : NOOB: how do i log into a newlycreated
VM?
Hi Mike:
Just a quick follow up. It worked perfectly, thanks.
Made one minor change to the script. The last line s/b:
vncviewer -via root@${xs} localhost::${port}
instead of
vncviewer -via root@dt26 localhost::${port}
Cheers,
Joe
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Joe Linoff
Sent: Friday, December 03, 2010 9:18 AM
To: Mike McClurg
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] XCP 1.0 beta : NOOB: how do i log into a newlycreated
VM?
Hi Mike:
Thank you very much. I really appreciate the guidance and support. I will dig
into this today.
Cheers,
Joe
-----Original Message-----
From: Mike McClurg [mailto:mike.mcclurg@xxxxxxxxxx]
Sent: Friday, December 03, 2010 8:16 AM
To: Joe Linoff
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-users] XCP 1.0 beta : NOOB: how do i log into a newly created
VM?
Joe,
This isn't that NOOB of a question, as I had a problem with this myself a
couple weeks ago ;) You almost had the correct command at the end, but you need
to run your vnc client like this:
vncviewer -via root@<XenServer hostname or IP> localhost::<vnc-port>
Note the double colons -- that's the syntax for specifying the IP port number,
as opposed to the vnc port number. Also, you don't need to There is a Citrix
knowledge base article that explains the vnc part, but, unfortunately, it
leaves you in the dark about how to figure out what vnc port to use for which
guest. Reading directly from xenstore, as you've done, is the best way that I
know how.
http://support.citrix.com/article/CTX124451
I've attached a bash script that does all this for you. It uses the VM
name-label, not uuid, but you could modify it to use whichever you prefer.
Please let me know if you find any problems with it.
Mike
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Joe Linoff
Sent: 03 December 2010 05:02
To: xen-users@xxxxxxxxxxxxxxxxxxx
Cc: Joe Linoff
Subject: [Xen-users] 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
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
|