Rss

Fashion statement at an early age.

image

How to migrate VMWare Appliance to OVS 2.2

This explains how to migrate / convert a standard VMWare Appliance into a Oracle Virtual Server 2.2 environment.

  • Create a directory on the OVS 2.2 server under /OVS/running_pool/NewVmName
  • Unzip appliance if needed and put in the /OVS/running_pool/NewVmName
  • You should have combination of file extensions like .vmdk .vmsd .vmx .vmxf
  • Login to your OVS Manager.
  • Goto  Resources / Virtual Machine Images / Import
  • Choose ‘Select from Server Pool”
  • Your “NewVmName” should be in the listing.
  • Import and start
  • Done
  • Brewskie

 

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 Files\VMware\VMware OVF Tool>ovftool.exe –skipManifestCheck c:\temp\
opsview-appliance\opsview-appliance.vmx c:\temp\john.ova
Opening VMX source: c:\temp\opsview-appliance\opsview-appliance.vmx
Opening OVA target: c:\temp\john.ova
Writing OVA package: c:\temp\john.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.
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

Extending LVM volume on Linux root partition using XenServer

The first disk of a XenServer guest VM is called xvda, the second disk (the one we added) is called xvdb. We start with the creation of a Physical Volume (PV) on the extra disk.

pvcreate /dev/xvdb

Then we extend the existing Volume Group (VG) called VolGroup00.

vgextend VolGroup00 /dev/xvdb

Then we extend the Logical Volume (LV) by the size of the extra disk, in this case 8GB.

lvextend -L8G /dev/VolGroup00/LogVol00

Finally we resize the filesystem that uses this LV.

resize2fs /dev/VolGroup00/LogVol00

Oracle Virtual Server 3.0.2 patch has been released

You will want to upgrade your 3.0.1 OVM Manager to the latest patch release 3.0.2.

Download the patch from http://support.oracle.com and the patch is called p13036236_30_Linux-x86-64.zip

Unzip and copy the iso to your OVMM machine.

mount -o loop OracleVM-Manager-3.0.x.iso /OVMCD

cd /OVMCD

./runUpgrader.sh

Oracle Virtual Server 3.0 VM Migration from OVM 2.2

I know that this software is a new and fairly different version from OVM 2.2 but Oracle has been working on this over over 3 years! At least there should have been some documentation on how to migrate / move existing OVM 2.2 running VMs over to the new version. Gafff

Anyway, you can probably tell I have been at this for some time and frustrated. But here is how you do it.

  1. Install new OVM 3.0.1 on new hardware. There is no Software upgrade at all.
  2. Go into your OVM 2.x /OVS/running_pool directory and tar up individually your VMs like this

tar -cvzf vm1.tgz vm1/

  1. Copy this vm1.tgz file to a running webserver inside your network (WHAT?!! YES!)
  2. Once hosted on http://fred.my.lan/vm1.tgz you can import into your OVM 3.0 environment.
  3. From the OVM 3.0 Console. Goto “Server Pools” / “Templates” / “Choose Blue Import Template” and add your internal webserver and file location http://fred.my.lan/vm1.tgz
  4. When finished you will need to choose “Clone Template to VM” from that same menu on Server Pools.
  5. This will just ask you some questions regarding the existin VM make sure you choose Xen PVM and update your network settings if needed, otherwise it won’t let you Clone.

More to come … help me

So must spent another few hours trying to get connected to the VM consoles. They used to have passwords associated with them which were stored in the vm.cfg.  Apparently that hasn’t been fully implemented yet either https://forums.oracle.com/forums/thread.jspa?messageID=9899756

  1. Connect to your VM through the OVM Manager using Right Click on each VM and choosing “Console”
  2. The password is the Weblogic / OVM Server credentials that were entered when server was installed. “admin / whateverpassword”
—–
Found another issue with OVM 3.0
One of my 2 servers only had one interface so