Tuesday Apr 26, 2016

Oracle VM 3.4: ovm-info command to get details within VM

Continuing on the path of the first "ovm-disk" command, here you can find one new tool available for your Linux guest-vms; target of this utility, named "ovm-info", is to supply main information of the running guest on:

  • VM information, like Hostname, VM-Name, VM-Type and repository that house it.
  • CPU and Memory information (Max and used)
  • Disk information like domU device and the corresponding dom0 device (virtual or physical)
  • Network information like domU device and OVM Network configuration (id, dom0 net device and vlan-tag)
  • Other informations like H/A enabled or not, Hugepages enabled or not and actions on different operations (reboot, crash etc)

So with the same approach of the other script, specific for detailed reports on vdisks, we can install and execute this command on our running Linux guest and obtain this information by executing this command on the guest itself:

"ovm-info" command/script, once executed, query the Oracle VM Manager and obtains detailed info related to the device specified.

There are some requirements to have it correctly working and these are: 

  1. "expect" installed on the Linux VM
  2. VM able to reach port 10000 of Oracle VM Manager host
  3. Compatible with Oracle VM 3.3 and 3.4

The package containing all-the-stuff can be downloaded here ; into this tarball-gzipped file you'll find:

  • README_FIRST.txt (please, read it, it won't take more than 2 minutes)
  • FirstConn.exp (expect script that executes first connection to the Oracle VM Manager CLI port)
  • SetupSsh.exp (expect script that setup the self-authentication between the VM and Oracle VM Manager CLI)
  • install.sh (bash script to execute to correctly setup the self-authentication)
  • ovm-info (script that will be customized and copied by the install.sh process)

NB: Once the setup is completed a copy of the command "ovm-info" will be saved under "/usr/local/bin" and you can remove the install package and its directory.

Here you can find an example of the installation output (click on the image to get the entire log).

Syntax:

# ./install.sh <ovmm_host> <ovmm_oracle_linux_user_password> <ovmm_admin_manager_password>


Once the setup is completed, following success message will appear:

"OVMCLI Session successfully connected with key-based authentication!!!"

Now you can remove the package and the installation folder and verify the "ovm-info" command path:


Example output on "General Information" option (-g):


Example output on "CPU and Memory" option (-c):


Example output on "Virtual Disk" option (-d):


Example output on "Network Information" option (-n):

Example output on "Other Information" like H/A, HugePages and actions, option (-o):

Last option "Show all VM information" (-a) query for all information and option above sequentially.

Feedback and question are obviously appreciated. 

Saturday Apr 02, 2016

Oracle VM 3.4: install Oracle VM Server on EFI VirtualBox machine

Between the others, Oracle VM 3.4 introduce the option to install the Server on an EFI system.

Following steps will show how-to install Oracle VM Server 3.4.1 on a VirtualBox VM EFI based; these steps could be interesting also because new modern HW is EFI based and newest models does not accept anymore to have legacy-BIOS available.

First of all we have to create one VM dedicated to the installation; here you can find all the options selected and configuration in place:

General => Basic

  • Name: <desired VM name>
  • Type: Linux
  • Version: Oracle (64-bit) 

System => Motherboard

  • Base Memory: <desired memory amount>
  • Boot Order: <leave default>
  • Chipset: <leave default>
  • Pointing Device: <leave default>
  • Extended Features: <all selected> - see EFI

System => Processor 

  • Processor(s): <choose desired number of vcpu>
  • Execution Cap: <choose desired vcpu capacity>
  • Extended Features: <enabled>

    System => Acceleration

    • Paravirtualization Interface: Legacy
    • Hardware Virtualization: <all selected>

    Storage => Storage Tree

    • Controller: SATA
    • Devices
      • 1 vdisk dedicated to Oracle VM Server installation (I suggest 100GB dynamic vdisk)
      • virtual cd-rom with Oracle VM Server 3.4 ISO connected

    Now you can proceed to install Oracle VM Server; installation is very easy and there is no particular option to select.

    Once installed you'll see that the system, at first reboot, will automatically start the Oracle VM Server dom0; the problem really happens if you are going to stop the VM.

    In fact, once the VM stopped, if you are going to start it you'll see that the UEFI Interactive Shell v2.0 will be presented:

    To correctly boot Oracle VM Server 3.4.1 we need to specify the grub-efi configuration file with:

    fs0:\EFI\redhat\grubx64.efi

    Once Oracle VM Server 3.4 has completed the boot process we can now work to have it automatically booting.

    To have it, execute following steps:

    1. Create "startup.nsh" file (default executed on UEFI VirtualBox VM) with:
      • echo "\EFI\redhat\grubx64.efi" > /boot/efi/startup.nsh
    2. Verify that file "startup.nsh" is executable:
      • ls -l /boot/efi/startup.nsh

    Example:

    From now on, Oracle VM Server will automatically boot on this VirtualBox EFI system without any kind of interaction. 

        Thursday Mar 24, 2016

        Oracle VM 3.4: guest hot-backup on different repository (v0.8)

        Not more than a couple of hours ago Oracle VM 3.4 has been announced on Virtualization Blog.

        Here you can find the new version ( 0.8 ) of the HotCloneVm.sh script.

        Download it here

        Once downloaded, you'll find a zipped file containing:

        • "SetupSsh.sh" script to setup key-based authentication to Oracle VM Manager 3 CLI
        • "HotCloneVm.sh" script to execute guests hot-backups and proceed to apply retention policies
        • "HotCloneVM.pdf" containing a real user-guide to implement this backup strategy
        • "README_FIRST.txt" containing some tips to configure ssh timeout(s)  

        Fixes introduced in 0.8:

        • Fixed Oracle VM CLI release check 

        New features available in 0.7a:

        • Compatible with Oracle VM 3.3 / 3.4
        • Script is now able to identify Oracle VM Manager release and evaluate features enabled or not
        • New options for backup-type available: FULL, SNAP and OVA (OVA available only with 3.4 OVM Release)
          • FULL => HotClone will create a full vdisk backup on a further repository
          • SNAP => HotClone will create an ocfs2 reference-link snapshot of the vm on the same repository
          • OVA  => HotClone will create a packaged OVA file on a further repository
        • Retention is now applied on different backup-types
        • New definition of backup vm name:
          • $guest-OVA for OVA backup types
          • $guest-SNAP for ocfs2-reflink backup types
          • $guest-FULL for full-backup types
        • Retention continues to be applied also on old backups ( $guest-CLONE )

        The hot-backup obtained by this script is always a crash-consistent backup of the running vm; if the VM owns also physical-disks, the backup will contain only virtual-disks and so, a manual intervention is needed to have it correctly booting/starting.

        Here you can find one high-level picture of the target of this script:

        The idea, here, is to have low-retention backups available on one NFS repository and medium/long retention on a Tape-Library / Further solution (see NDMP); an example could be to have latest 8/15 days (from 8 to 15) on the NFS share and oldest backups on the Tape-Library / NDMP.

        So the retention can be managed between the two solutions (HotCloneVm script and Tape Library/NDMP) where:

        • HotCloneVm.sh will manage the low-retention on the NFS Repository
          • both Incremental and Full approaches are available with "SNAP" and "FULL"
        • Tape Library / NDMP will manage the long-retention on the Tape Library / NDMP solution
          • both Incremental and Full approaches can be managed by Tape Library / NDMP

        Having the low-retention on the NFS will allow, moreover, to have a fast restore point for:

        • Single VM file restore or a list of them
          • Just start the VM, that resides on the NFS repository, with a temporary IP address and get files needed.
        • Entire VM restore
          • Stop the original VM and Start a snapshot and/or Clone/Move the FULL backup from the NFS
          • You can also evaluate to start the vm on the NFS repository to be even faster

        Another option, available only with 3.4 release, is to have backups in OVA format; this option will allow to have backups that can be exported/imported to further Oracle VM Pools; for example you can use OVA exported to have the same VM available on a different Oracle VM Pool (like a clone from Production to Development) or on your laptop/desktop using VirtualBox.

        First of all you need to setup an ssh-key exchange to obtain a self-authenticated system:

        [scoter@ovmm: ~/Documents/OVM_34/HotCloneVm_0.7a]# ./SetupSsh.sh
        #####################################################################################
        You have to specify <guest id> or <guest name>:
        Use SetupSsh.sh <Oracle VM Manager host> <Linux oracle user password> <Oracle VM Manager Password> 
        Example:
        SetupSsh.sh ovm-mgr.oracle.local oracle Welcome1
        ##########################################################################################
        [scoter@ovmm: ~/Documents/OVM_34/HotCloneVm_0.7a]# 

        NB: If you have already configured ssh-key exchange vs OVMCli you don't need to execute "SetupSsh.sh" script.

        To identify syntax to be used, you have only to execute the command without any option:

        [scoter@myhost: ~/]# ./HotCloneVm.sh
        #####################################################################################
         You have to specify <guest id> or <guest name>:
         Use HotCloneVm.sh <Oracle VM Manager password> <Oracle VM Manager host> <guest name> <Oracle VM Server Pool> <target Repository> <Backup Retention> <backup_type>
         <backup_type> options are (no case-sensitive):
                - FULL => HotClone will create a full vdisk backup on a further repository
                - SNAP => HotClone will create an ocfs2 reference-link snapshot of the vm on the same repository
                - OVA  => HotClone will create a packaged OVA file on a further repository
        Example:
         HotCloneVm.sh Welcome1 ovm-mgr.oracle.local vmdb01 myPool repotarget 8d (retention will be 8 days)
         HotCloneVm.sh Welcome1 ovm-mgr.oracle.local vmdb01 myPool repotarget d8 (retention will be 8 days)
         HotCloneVm.sh Welcome1 ovm-mgr.oracle.local vmdb01 myPool repotarget 8c (retention will be 8 copies)
         HotCloneVm.sh Welcome1 ovm-mgr.oracle.local vmdb01 myPool repotarget c8 (retention will be 8 copies)
        ##########################################################################################

        As usual, your feedback will be really appreciated. 

        Wednesday Jul 22, 2015

        Oracle VM 3.3.3 Officially Released!!!!

        We just released a maintenance update for Oracle VM 3.3 to bring new hardware support, improved stability, and to provide bug fixes. For all informations related to Oracle VM 3.3.3 release,  you can review the "What's New" section of Oracle VM documentation. You can find further details on Virtualization Blog.

        Thursday Feb 12, 2015

        Oracle VM 3.3.2 Officialy released!

        We just released a maintenance update for Oracle VM 3.3 to bring new hardware support, improved stability, and to provide bug fixes.
        You can review the What's New wiki for the list of notable bug fixes.
        - Oracle VM Server for x86 release 3.3.2
        - Oracle VM Manager 3.3.2
        - Oracle VM Agent for SPARC 3.3.2

        To download the updates:
        - Oracle VM Server 3.3.2 for x86, search patch ID 20492240
        - Oracle VM Manager 3.3.2, search patch ID 20492250
        - Oracle VM Agent 3.3.2 for SPARC, search patch ID 20492222
        We also released Windows PV Drivers 3.2.3 to My Oracle Support.
        It is a maintenance update that includes all the cumulative bug fixes since the previous 3.2.2 release. The patch update can be downloaded by searching patch ID 16863114 . Be sure to review the README file for a list of bug fixes.
        Official Oracle VM blog with all the details available here.

        About

        Simon Coter is a Principal Product Manager for Oracle VM and VirtualBox.

        Search

        Categories
        Archives
        « May 2016
        SunMonTueWedThuFriSat
        1
        3
        4
        5
        6
        7
        8
        9
        10
        11
        13
        14
        15
        16
        17
        18
        19
        21
        22
        23
        24
        25
        26
        27
        28
        29
        30
        31
            
               
        Today