Bare Metal Xen install and config on Fedora

Xen is an OpenSource virtualization platform that enables you to run many different types of operating systems on a standard Fedora / Redhat  installation. To install just follow the commands below to get started:

  • yum install xen
  • yum install virt-manager
  • run “virt-manager” from command line
  • click on “new” and follow prompts for install type (I started with ISO)
  • choose memory and cpu (I started with 2048 Ram and 2 cpus)

 

Oracle Directory Server Enterprise Edition Install

  • Download software from Edelivery.oracle.com (ofm_odsee_linux_11.1.1.5.0_64_disk1_1of1.zip)
  • Unzip the file into an installation area
  • Unzip the ODSEE_ZIP_Distribution file (sun-dsee7.zip) to your installation directory
  • Install the DSCC registry

$ install-path/bin/dsccsetup ads-create

Choose password for Directory Service Manager:directory-service-pwd
Confirm password for Directory Service Manager:directory-service-pwd

Creating DSCC registry...
DSCC Registry has been created successfully
  • Create the WAR file for DSCC.

$ install-path/bin/dsccsetup war-file-create Created dscc-war-file-path

  • Register the DSCC agent in Common Agent Container.

$install-path/bin/dsccsetup cacao-reg Configuring Cacao… Cacao will listen on port dscc-agent-port

 

Her is my installation process:

[root@ldap bin]# ./dsccsetup ads-create
Choose password for Directory Service Manager:
Confirm password for Directory Service Manager:
Creating DSCC registry...
DSCC Registry has been created successfully
[root@ldap bin]# ./dsccsetup war-file-create
Created /sw/pkg/dsee7/var/dscc7.war
[root@ldap bin]# ./dsccsetup status
***
DSCC Agent is not registered in Cacao
***
DSCC Registry has been created
Path of DSCC registry is /sw/pkg/dsee7/var/dcc/ads
Port of DSCC registry is 3998
***
[root@ldap bin]# ./dsccsetup cacao-reg
Configuring Cacao...
Cacao will listen on port 21162
Cacao has been successfully configured.
Registering DSCC Agent in Cacao...
Checking Cacao status...
Starting Cacao...
DSCC Agent will use locale en_US.UTF-8 and charset UTF-8
DSCC agent has been successfully registered in Cacao.

How to migrate VMware appliances to OVM 3

This article covers the steps to migrate a VMware ESX virtual machine over to an Oracle Virtual Machine. These steps should work with either OVM 2.x or 3.x

Step 1.
Download and install “VMware OVFTOOL 1.0” from the VMware site. You must register to get it.

Step 2.
Unzip your VMware appliance into a directory on your windows or linux machine.

Step 3.
Run the following command to export the vmx file to ovf

C:Program FilesVMwareVMware OVF Tool>ovftool.exe –skipManifestCheck c:temp
opsview-applianceopsview-appliance.vmx c:tempjohn.ova
Opening VMX source: c:tempopsview-applianceopsview-appliance.vmx
Opening OVA target: c:tempjohn.ova
Writing OVA package: c:tempjohn.ova
Disk Transfer Completed

Step 4.
Import the charliebrown.ovf into OVM 3.x as an assembly. Once charlie has been imported create a vm from the template as usual.

Step 5.
Grab a glass of milk and a cookie.

Cygwin command line installation

Have you ever wished you could install Cygwin programs via the command line? Well you can. Just use this shellscript that Stephen Jungels wrote. Just download it into your cygwin /usr/bin directory and modify if necessary. View apt-cyg

  • First ssh to the cygwin box.
  • Next download the needed packages for apt-cyg
  • ./setup.exe -q -P  wget,tar,qawk,bzip2,subversion,vim
  • Finally, download the apt-cyg script from Stephen’s repository.
  • $ svn –force export http://apt-cyg.googlecode.com/svn/trunk/ /bin/
  • $ chmod +x /bin/apt-cyg

Now that you have all the tools, just run the “apt-cyg” command to find and install anything from the cygwin repositories.

apt-cyg install <package names>” to install packages
apt-cyg remove <package names>” to remove packages
apt-cyg update” to update setup.ini
apt-cyg show” to show installed packages
apt-cyg find <pattern(s)>” to find packages matching patterns
apt-cyg describe <pattern(s)>” to describe packages matching patterns
apt-cyg packageof <commands or files>” to locate parent packages

 

Oracle Database 11g Express Edition Installation

Download Oracle XE from Oracle.
http://download.oracle.com/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
unzip the file and goto Disk1 directory
rpm -i oracle-xe-11.2.0-1.0.x86_64.rpm
Executing post-install steps…
You must run ‘/etc/init.d/oracle-xe configure’ as the root user to configure the database.
[root@database Disk1]# /etc/init.d/oracle-xe configure
Oracle Database 11g Express Edition Configuration
————————————————-
This will configure on-boot properties of Oracle Database 11g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Pressto accept the defaults.
Ctrl-C will abort.
Specify the HTTP port that will be used for Oracle Application Express [8080]:
Specify a port that will be used for the database listener [1521]:
Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:
Confirm the password:
Do you want Oracle Database 11g Express Edition to be started on boot (y/n) [y]:
Starting Oracle Net Listener…

echo “source /u01/app/oracle/product/11.2.0/xe/bin/oracle_env.sh” >> /home/oracle/.bash_profile
After you install Oracle Database XE, its graphical user interface is only available from the local server, but not remotely.
The following will correct the problem if necessary:
Login as user Oracle or use:
su – oracle
sqlplus / as sysdba
At the SQL prompt, enter the following command:
EXEC DBMS_XDB.SETLISTENERLOCALACCESS(FALSE);
exit

reboot
access apex remotely now at http://hostname:8080/apex/apex_admin
user = admin
password = whateveruenteredatinstall

this forces you to change password

Default “workspace” is INTERNAL