« Creating a Guest Virtual Machine with Oracle VM Server | Main | A New Blog Server »

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 (4)

Juan Algaba Colera:

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

larry:

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*

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

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

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on May 29, 2008 1:17 PM.

The previous post in this blog was Creating a Guest Virtual Machine with Oracle VM Server.

The next post in this blog is A New Blog Server.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle