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

 

Or use this https://pixel.red/guide/xen-online-resize-vm/

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

 

 

 

 

Oracle Virtual Server 3.0 Upgrade / Install

I am upgrading my OVM 2.2 Server and Manager components to 3.0.1

First of all, there is no clean upgrade path for the OVM Manager or Servers. You have to install new and then import your existing Virtual Servers as well as all VM Templates and resources.

My existing environment included 2 OVM 2.2 servers running on 2 x 8GB AMD x4 955’s and 1 OVM Manager running on OEL5 32 bit VirtualBox image.

Step 1

Install new OVM 3.01 manager on OEL 5.5 64 Linux or higher. I built this using VirtualBox running on my Winders7 AMD x6 8GB RAM system. The base architecture of the manager has changed from a simple OC4J based application server to a full Oracle Weblogic 11g using ADF framework. Needless to say, it need a bunch more resources.

VirtualBox Configuration:
OEL 5 update 5 64bit
4096GB RAM
35GB Disk
1 cpu core

The Network mode on the VirtualBox needed to be “Bridged” using an additional wireless USB adapter. This was due to the Manager needing to actuall be on the internal home network (pingable) as well as the OVM Manager needs to be able to access the NAS mounts for repository setup.


Please select an installation type:
1: Simple
2: Standard
3: Uninstall
4: Help

Select Number (1-4): 1

Starting simple installation …

Verifying installation prerequisites …

One password is used for all users created and used during the installation.
Enter a password for all logins used during the installation:
Enter a password for all logins used during the installation (confirm):

Verifying configuration …

Start installing the configured components:
1: Continue
2: Abort

Select Number (1-2): 1
Step 1 of 9 : Database …
Installing Database …

Retrieving Oracle Database 11g XE …
Installing Oracle Database 11g XE …
Configuring Oracle Database 11g XE …
Step 2 of 9 : Java …
Installing Java …
Step 3 of 9 : Database Schema …
Creating database schema ‘ovs’ …
Step 4 of 9 : WebLogic …
Retrieving Oracle WebLogic Server 11g …
Installing Oracle WebLogic Server 11g …

Step 5 of 9 : ADF …
Retrieving Oracle Application Development Framework (ADF) …
Unzipping Oracle ADF …
Installing Oracle ADF …

Step 6 of 9 : Oracle VM  …
Retrieving Oracle VM Manager Application …
Extracting Oracle VM Manager Application …
Installing Oracle VM Manager Core …
Step 7 of 9 : Domain creation …
Creating Oracle WebLogic Server domain …
Starting Oracle WebLogic Server 11g …
Configuring data source ‘OVMDS’ …
Creating Oracle VM Manager user ‘admin’ …
Step 8 of 9 : Deploy …
Deploying Oracle VM Manager Core container …
Deploying Oracle VM Manager UI Console …
Deploying Oracle VM Manager Help …
Enabling HTTPS …
Granting ovm-admin role to user ‘admin’ …

Step 9 of 9 : Oracle VM Manager Shell …
Retrieving Oracle VM Manager Shell & API …
Extracting Oracle VM Manager Shell & API …
Installing Oracle VM Manager Shell & API …

Retrieving Oracle VM Manager Upgrade tool …
Extracting Oracle VM Manager Upgrade tool …
Installing Oracle VM Manager Upgrade tool …
Copying Oracle VM Manager shell to ‘/usr/bin/ovm_shell.sh’ …
Installing ovm_admin.sh in ‘/u01/app/oracle/ovm-manager-3/bin’ …
Installing ovm_upgrade.sh in ‘/u01/app/oracle/ovm-manager-3/bin’ …
Enabling Oracle VM Manager service …
Oracle VM Manager installed.

Installation Summary
——————–
Database configuration:
Database host name          : localhost
Database instance name (SID): XE
Database listener port      : 1521
Application Express port    : 8080
Oracle VM Manager schema    : ovs

Weblogic Server configuration:
Administration username     : weblogic

Oracle VM Manager configuration:
Username                    : admin
Core management port        : 54321
UUID                        : 0004fb000001000004f4d09a3a740e9c

Passwords:
There are no default passwords for any users. The passwords to use for Oracle VM Manager, Oracle Database 11g XE, and Oracle WebLogic Server have been set by you during this installation. In the case of a default install, all passwords are the same.

Oracle VM Manager UI:
http://localhost.localdomain:7001/ovm/console
https://localhost.localdomain:7002/ovm/console
Log in with the user ‘admin’, and the password you set during the installation.

Please note that you need to install tight-vnc on this computer to access a virtual machine’s console.

For more information about Oracle Virtualization, please visit:
http://www.oracle.com/virtualization/

Oracle VM Manager installation complete

 

Next you need to make sure you have your existing Repository backed up or stored on NAS somewhere. This is because during the upgrade / migration, you will need to import your existing VMs.

 

Put in the 3.0.1 DVD and follow the 3 minute installation procedure basically just adding your hostname and IP address.

After completion you should have a generic 1 to 2 ethernet server that is capable of hosting your VMs

Network configuration is as follows:

bond0     Link encap:Ethernet  HWaddr 00:0E:2E:60:71:40
          inet addr:192.168.2.89  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:71434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116916 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12097769 (11.5 MiB)  TX bytes:151946398 (144.9 MiB)

eth0      Link encap:Ethernet  HWaddr 00:0E:2E:60:71:40
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:71434 errors:0 dropped:0 overruns:0 frame:0
          TX packets:116916 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12097769 (11.5 MiB)  TX bytes:151946398 (144.9 MiB)
          Interrupt:20 Base address:0x2c00

eth1      Link encap:Ethernet  HWaddr 00:0E:2E:60:7C:9E
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:21 Base address:0x6800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:790 errors:0 dropped:0 overruns:0 frame:0
          TX packets:790 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:169064 (165.1 KiB)  TX bytes:169064 (165.1 KiB)

Oracle Virtual Server quirks

The VNC console for OVM 2.2 doesn’t work out of the box. You need to add a few component so that your can manage your environment using TightVNC.

You may have noticed that when you clicked on the VNC Port to connect to VM, you received “load: class VncViewer.class not found”
This is because the tightvnc and ovm-console components aren’t installed by default.

To fix:

goto  http://oss.oracle.com/oraclevm/manager/RPMS/ and download / install
ovm-console-1.0.0-2.i386.rpm
tightvnc-java-1.3.9-3.noarch.rpm

This allows IE and Chrome browser connections to manage Oracle Virtual Machines.