Search This Blog

Monday, May 9, 2011

How to find VNC port for Guest machines running on Oracle VM.

Use below script for finding VNC port of all Guest Machines running on the Oracle VM server.

xm list > temp
y=`xm list | wc -l`

z=`expr $y - 2`

while [ $y -gt 1 ]
do
x=`awk -F" " '{print $1}' temp | sed -n "${y}p"`
echo -e '\E[32m'
y=`expr $y - 1`
xm list $x -l |grep 0.0:|awk -v Host=$x -F[:\)] '{print "Vnc Port for " Host " :" $2 }'
echo -e '\E[37m'
done

3 comments:

  1. Hi Rohan,

    This article was very helpful. Have seen other articles too related to OVM and found very informative and helpful.

    I have one question, in my case, i am trying to launch vncviewer with respective port from my local laptop, but it is crashing..

    Please help.

    ReplyDelete
  2. Also, please share ur gmail.. would feel glad to be connected..

    ReplyDelete
  3. Hi Rohan,
    Needed your advice. I have OVM server 3.2.2 i need to install X window or GNOME on this. from where i can download the .RPM and which compatible versions?
    Regards,
    Sidharth M.

    ReplyDelete