Welcome!

Open Source Cloud Authors: Stackify Blog, Vaibhaw Pandey, Automic Blog, John Walsh, Mehdi Daoudi

Related Topics: Containers Expo Blog, Open Source Cloud, Recurring Revenue

Containers Expo Blog: Article

Installing a Guest Operating System on a Virtual Machine

Oracle Database 10g XE on Virtualized openSuse 11.2 on VMWare Player

Virtualization has been widely accepted as a technique to conserve resources. Virtualization is the process of running a guest operating system on a virtual machine, which is created in a virtualizer running on the host operating system. Large companies do not have to install 100 different host computers for its employees as they may create 100 different virtual machines running different guest operating systems on a single host computer.

VMware is one of the main vendors of Linux virtualization solutions. VMware Player may be used to run 32-bit and 64-bit Linux operating systems including openSUSE, RHEL 5, and Ubuntu. VMware also offers Virtual Appliances, which are prebuilt software solutions comprising of virtual machine/s. Virtual Appliances are available for Ubuntu, Red Hat and openSUSE, though an appliance for the latest versions may not be available. For the latest version of openSuse, 11.2, it is recommended to install the openSUSE directly onto the VMware Player. In this article we shall install Oracle database XE in openSuse 11.2 as a guest operating system running in a virtual machine (VM) on a Windows host operating system.

Using Oracle database XE with openSuse 11.2 in VMPlayer requires the following:

  1. Install VMPlayer
  2. Create a virtual machine and install openSUSE 11.2 on the VM
  3. Install Oracle database in openSUSE 11.2
  4. Add user to dba group
  5. Create initialization initXE.ora file
  6. Grant write access to intiXE.ora
  7. Start database instance in NOMOUNT
  8. Modify DB_NAME parameter
  9. Restart database instance in NOMOUNT
  10. Create database
  11. Create database table
  12. Create data dictionary views

Installing VMware Player
Create three folders - openSuse, vmplayer and VMs - for installing openSuse ISO, VMPlayer, and an openSuse virtual machine. First, we need to download the latest version of VMPlayer to the vmplayer folder. The VMPlayer is just an .exe file. Double-click on the .exe file and the VMware Player Setup Wizard gets started.

Click on Next in the Welcome window. Specify the Destination Folder (C:\vmplayer for example) to install the VMware Player. Click on Next. In the Ready to Perform the Requested Operations window click on Continue. The VMware installation gets started. When the installation is completed, the Setup Wizard prompts for restarting the system to complete the installation. Click on Restart Now. After the system has been restarted, the VMware Player installation is completed.

Creating a Virtual Machine
Next, download the openSUSE 11.2 Live KDE ISO (openSUSE-11.2-KDE4-LiveCD-i686.iso) to the openSuse folder. Open the VMware Player. Click on Create a New Virtual Machine to create an openSUSE 11.2 virtual machine as shown in Figure 1.

The New Virtual Machine Wizard gets started. Select the Installer disc image file (iso) radio button and select the openSUSE 11.2 KDE ISO file as shown in Figure 2. Click on Next.

Select a guest operating system as Linux and a version as OpenSUSE as in Figure 3. Click on Next.

Specify a name for the virtual machine and specify the Location of the VM as the VMs directory. Click on Next. Specify the disk size as 40.0 GB and select Split virtual disk into 2GB files as in Figure 4. Click on Next.

Select the memory allocated to the VM. By default one processor is configured. Configure the Network Adapter as Bridged with Replicate physical network connection state as in Figure 5.

Click on Finish to create the openSUSE 11.2 VM and start the installation.

Installing openSUSE 11.2 in the Virtual Machine
After the virtual machine gets created, select Installation in the OpenSUSE Installer boot screen as in Figure 6.

In the Welcome window the license agreement is displayed. Click on Next. Select Time Zone and click on Next. In the Suggested Partitioning window Partition Based is selected by default. Click on Edit Partition Setup. In the Expert Partitioner the Available Storage on Linux gets listed for the different partitions of the VMware type /dev/sda hard disk as in Figure 7. Click on Accept.

Click on Next as in Figure 8.

In the User Settings, create a new user with the Create New User wizard. Click Next. In Installation Settings, review the installation summary and click Install. In the Confirm Installation window click Install. The installation gets started.

After the installation is completed, the system needs to reboot as shown in Figure 9.

The initial booting of openSUSE 11.2 gets completed. Next, the automatic configuration of openSUSE 11.2 gets performed. The openSUSE 11.2 VM gets created and installed as shown in Figure 10.

Installing Oracle Database XE in openSUSE 11.2
Next, we install the Oracle database XE in the openSUSE 11.2 VM. To start the openSUSE 11.2 VM click on Play virtual machine. Select VM > Install VMWare Tools to install VMware Tools. In the openSUSE login window specify the Username and Password.

The VMPlayer Desktop is displayed, as shown in Figure 11.

Download the Oracle database XE for Linux. Start the Dolphin file manager. Select the Download folder. Right-click on the oracle-xe rpm and select Open with Install Software. Specify a password for the root user and click on OK. The Software Manager will start. Oracle Database 10g XE will be installed.

Adding a User to the dba Group
Next, we test the newly installed database by starting the database. First, start the application launcher. In the application launcher search for Oracle and start the database with Start Database. An error will be generated, "Operation failed. dvohra11 is not a member of ‘dba' group. We need to add the user dvohra11 to the ‘dba' group. In the application launcher select the command line Terminal Konsole. The openSUSE terminal will start the Bash shell. Log in to the openSUSE 11.2 with root privileges with the su command. Add user dvohra11 to the ‘dba' group with the following command as shown in Figure 12.

usermod  -G dba dvohra11

Start the SQL Command line. Having added the user to the ‘dba' group, you will be able to connect as sys to an idle instance.

Creating an Initialization File initXE.ora
Before we create a database and a table, we need to create an initialization file from which the initialization parameters are read. For an ‘XE' SID we need an initXE.ora initialization file. We'll create the initXE.ora file by making a copy of the init.ora file in the directory /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs. In the bash shell cd to the //dbs directory. Create the initXE.ora file with the following command as shown in Figure 13.

cp init.ora initXE.ora

Next, grant write permissions to initXE.ora with the following command.

chmod g+w initXE.ora

Starting Database Instance in NOMOUNT
To create a database and a table start the database instance with the STARTUP command. Because control files are not yet available, an error will be generated indicating we need to start the instance in NOMOUNT. Start up the instance with the following command:

STARTUP NOMOUNT

The Oracle instance gets started.

Modifying DB_NAME Parameter
Next, we will create a database with the CREATE DATABASE command:

CREATE DATABASE ORAXE

An error is generated:

CREATE DATABASE failed
database name ‘ORAXE' does not match parameter db_name ‘DEFAULT'

We need to modify the static initialization parameter DB_NAME to the database name we want to create. Static parameters are modified with the ALTER SYSTEM command with scope set to ‘SPFILE'. Start the database in NOMOUNT and set the db_name parameter with the following command:

ALTER SYSTEM SET db_name='ORCLXE' scope=spfile

Static parameters require an instance restart when modified for the modification to take effect. Shut down the instance with the SHUTDOWN command as shown in Figure 14.

Restart the instance in NOMOUNT and verify that the DB_NAME parameter has been modified with the SHOW PARAMETER command.

Creating a Database
Having set the DB_NAME parameter to ORCLXE, create a database with the following command.

CREATE DATABASE ORCLEXE

The database gets created and mounted and opened as shown in Figure 15.

Creating a Database Table
Next, create a database table with the CREATE TABLE command. Shut down the instance with the SHUTDOWN command.

Creating Data Dictionary Views
We also need to create the data dictionary views with the following commands:

SQL> @?/rdbms/admin/catalog.sql
SQL> @?/rdbms/admin/catproc.sql

A VM may be shut down by selecting VM > Power > Power Off. As a best practice, don't shut down the VMPlayer without shutting down the VM. Similarly, multiple virtual machines may be added to the VMPlayer.

More Stories By Deepak Vohra

Deepak Vohra is a Sun Certified Java 1.4 Programmer and a Web developer.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@ThingsExpo Stories
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
"Akvelon is a software development company and we also provide consultancy services to folks who are looking to scale or accelerate their engineering roadmaps," explained Jeremiah Mothersell, Marketing Manager at Akvelon, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
It is of utmost importance for the future success of WebRTC to ensure that interoperability is operational between web browsers and any WebRTC-compliant client. To be guaranteed as operational and effective, interoperability must be tested extensively by establishing WebRTC data and media connections between different web browsers running on different devices and operating systems. In his session at WebRTC Summit at @ThingsExpo, Dr. Alex Gouaillard, CEO and Founder of CoSMo Software, presented ...
"There's plenty of bandwidth out there but it's never in the right place. So what Cedexis does is uses data to work out the best pathways to get data from the origin to the person who wants to get it," explained Simon Jones, Evangelist and Head of Marketing at Cedexis, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
WebRTC is great technology to build your own communication tools. It will be even more exciting experience it with advanced devices, such as a 360 Camera, 360 microphone, and a depth sensor camera. In his session at @ThingsExpo, Masashi Ganeko, a manager at INFOCOM Corporation, introduced two experimental projects from his team and what they learned from them. "Shotoku Tamago" uses the robot audition software HARK to track speakers in 360 video of a remote party. "Virtual Teleport" uses a multip...
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
SYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5-7, 2018, at the Javits Center in New York, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.
SYS-CON Events announced today that CrowdReviews.com has been named “Media Sponsor” of SYS-CON's 22nd International Cloud Expo, which will take place on June 5–7, 2018, at the Javits Center in New York City, NY. CrowdReviews.com is a transparent online platform for determining which products and services are the best based on the opinion of the crowd. The crowd consists of Internet users that have experienced products and services first-hand and have an interest in letting other potential buye...
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
A strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, whic...
SYS-CON Events announced today that Evatronix will exhibit at SYS-CON's 21st International Cloud Expo®, which will take place on Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. Evatronix SA offers comprehensive solutions in the design and implementation of electronic systems, in CAD / CAM deployment, and also is a designer and manufacturer of advanced 3D scanners for professional applications.
Leading companies, from the Global Fortune 500 to the smallest companies, are adopting hybrid cloud as the path to business advantage. Hybrid cloud depends on cloud services and on-premises infrastructure working in unison. Successful implementations require new levels of data mobility, enabled by an automated and seamless flow across on-premises and cloud resources. In his general session at 21st Cloud Expo, Greg Tevis, an IBM Storage Software Technical Strategist and Customer Solution Architec...
To get the most out of their data, successful companies are not focusing on queries and data lakes, they are actively integrating analytics into their operations with a data-first application development approach. Real-time adjustments to improve revenues, reduce costs, or mitigate risk rely on applications that minimize latency on a variety of data sources. In his session at @BigDataExpo, Jack Norris, Senior Vice President, Data and Applications at MapR Technologies, reviewed best practices to ...
An increasing number of companies are creating products that combine data with analytical capabilities. Running interactive queries on Big Data requires complex architectures to store and query data effectively, typically involving data streams, an choosing efficient file format/database and multiple independent systems that are tied together through custom-engineered pipelines. In his session at @BigDataExpo at @ThingsExpo, Tomer Levi, a senior software engineer at Intel’s Advanced Analytics gr...
When talking IoT we often focus on the devices, the sensors, the hardware itself. The new smart appliances, the new smart or self-driving cars (which are amalgamations of many ‘things’). When we are looking at the world of IoT, we should take a step back, look at the big picture. What value are these devices providing? IoT is not about the devices, it’s about the data consumed and generated. The devices are tools, mechanisms, conduits. In his session at Internet of Things at Cloud Expo | DXWor...
Everything run by electricity will eventually be connected to the Internet. Get ahead of the Internet of Things revolution. In his session at @ThingsExpo, Akvelon expert and IoT industry leader Sergey Grebnov provided an educational dive into the world of managing your home, workplace and all the devices they contain with the power of machine-based AI and intelligent Bot services for a completely streamlined experience.