Connecting to the Oracle VM Server Guest Virtual Machine

So now you have a guest virtual machine running on Oracle VM Server. You want to connect to it of course. As I've not yet introduced Oracle VM Manager to this scenario, I'll not talk about connecting to it from there just yet, though this is probably the easiest way. So my next blog will be devoted to Oracle VM Manager.

There are many ways to connect to the guest virtual machine. Here I'll show you how to do it using VNC. Before you connect to it,  you'll need to find the VNC port used by the domain. On the Oracle VM Server, run:

# xm list -l |more

In the output, look for the device vfb and the location entry in that section. It will be something similar to:

location 0.0.0.0.:5900

The last part of that string is the VNC port you can use to connect to the guest. From another host, use VNC to connect to the guest:

# vnc -Shared 192.168.2.21:5900

The -Shared flag allows others to connect to the port as well as yourself. The IP address is the IP address of the Oracle VM Server. If all goes well, you'll see a command shell login. Log in using the default template login root/ovsroot.

If you used an Oracle Database template when you created the guest, here's how to log in to the database with SQL*Plus (the Oracle Database command-line tool):

Once you're logged in to the guest as root, su as the oracle user (oracle/oracle):

su oracle

Start SQL*Plus:

$ORACLE_HOME/bin/sqlplus /nolog

The $ORACLE_HOME environment variable is already set in the template to /u01/app/oracle/product/db10g, which is the location of the Oracle Database installation (the Oracle Home).

At the SQL*Plus prompt, log in as the SYSDBA user using operating system authentication:

SQL> connect / as sysdba

You are logged into SQL*Plus and connected to the Oracle Database with full database administration privileges.

Huzzah!

Comments:

I have not started with Oracle VM because I undestood that is was necessary to hava a PC with the Server and another linux PC to install the Manager. That makes things difficult for me to use Oracle VM. Reading your blog, a number of questions come up: Is it really necessary to have a second PC with the manager to create VM in the server? Apparently, from your blog, you can create VM from the Server command line. Is that right? Can I really get away with just a single PC? I do not think that I am going to create lots of different VM for now. Best regards and thanks for your interesting and helpful blog. Juan Algaba

Posted by Juan Algaba Colera on October 26, 2008 at 03:00 PM DDUT #

Hello eveyone* *I need your help,i downloaded the oracle vm on my window vista operating system,with all the specification paravitualize it, After the installation i couldnt access my window page again. please am i missing something or i have i eraze my operating system. when i start my laptop it boot directly to the oracle vm server?i need help.* *thank you in advance.* *larry*

Posted by larry on April 27, 2009 at 10:05 PM DDUT #

Juan Algaba Colera, You can now use one computer. There's an Oracle VM Manager template on edelivery.oracle.com that enables you to run Oracle VM Manager on Oracle VM Server as a guest virtual machine. Give it a try. Alison

Posted by Alison Holloway on April 28, 2009 at 03:30 AM DDUT #

Larry, When you install Oracle VM Server it wipes everything off the machine. It contains it's own operating system. You've lost your Windows install I'm sorry to say. Alison

Posted by Alison Holloway on April 28, 2009 at 03:32 AM DDUT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

A blog on Oracle VM, PHP and any other projects I work on.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today