SuSe VM Migrated from VMware

SuSe VMs migrated from VMware to other platforms (OVM, Xen, KVM, Ravello) check for compliance on startup, and give the following message (or simmilar):

The profile does not allow you to run the products on this system.

Hypervisor used current value: 'xen' must be one of: 'vmware'.

Forcing you to go into the console and press any key to accept the warning disclaimer that the actual setup is not supported by Suse.

OVM - Suse VMware to OVM migrations

While this might be good to know the first time you migrate a VM, it’s a disguised “Nagging Screen“, which limits the use of this VMs in a production setup, as reboots require manual intervention. And as we know, sometimes is not that easy to recreate the VM from fresh in the supported setup.

To bypass this compliance check, we should find out the script which is giving us the error, so we can decide how to bypass it:

1.- First, we check the release version of our troubled system, so we can write down the solution for this particular version (in case different versions have diff. solutions).

SUSETEST:~ # cat /etc/*release*
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 4
LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
cat: /etc/lsb-release.d: Is a directory
NAME="SLES"
VERSION="11.4"
VERSION_ID="11.4"
PRETTY_NAME="SUSE Linux Enterprise Server 11 SP4"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:11:4"

2.- Second, we will try to find the script that gives us the nasty message, by launching a brute-force grep on /usr/bin:

SUSETEST:~ # grep "profile does not allow you" /usr/bin/*
isCompliant: print __("The profile does not allow you to run the products on this system.\n");

3.- Third, we have found one file called isCompliant on /usr/bin, so we will find more about it:

SUSETEST:~# file /usr/bin/isCompliant
/usr/bin/isCompliant: a /usr/bin/perl -w script text

It is a perl script, we can check to see if it has manual page:

SUSETEST:~# man isCompliant

ISCOMPLIANT(1) ISCOMPLIANT(1)

NAME
isCompliant

SYNOPSIS
isCompliant [options]

DESCRIPTION
"isCompliant" check a profile with the system where products gets installed.

OPTIONS
--quiet -q
Do not print messages on stdout or stderr. Only the exit code indicate if the compliance check was successfull or
not.

--debug -d
Turn on the debug mode.

AUTHORS and CONTRIBUTORS
Duncan Mac-Vicar Prett, Michael Calmer

LICENSE
Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.

Or Help info:

SUSETEST:~# /usr/bin/isCompliant -h
usage: /usr/bin/isCompliant [--quiet|-q]
/usr/bin/isCompliant [--debug|-d]
/usr/bin/isCompliant [--help|-h|-?]
Options:
-h -? [--help] show this help
-q [--quiet] print no messages
-d [--debug] print debug messages
isCompliant check a profile with the system where products gets installed.
isCompliant exit with 0 if the system is compliant to the product profile.
Otherwise it exist with 1

Looks like it’s just a script that checks certain compliance requirements and returns our infamous message, and on the help it says that it returns a RC=0 when a system is compliant, and a RTC=1 when it’s not.

We also see, that running it with the -q flag, it will only run and return a RC, without displaying messages on screen.

OK, knowing this info, let’s invoke it, and check it out:

SUSETEST:~# /usr/bin/isCompliant
The profile does not allow you to run the products on this system.

Proceeding to run this installation will leave you in an
unsupported state and might impact your compliance requirements.

The following requirements are not fulfilled on this system:
* Hypervisor used (current value: 'xen'); must be one of: 'vmware'

SUSETEST:~# echo $?
1

SUSETEST:~# /usr/bin/isCompliant -q
SUSETEST:~# echo $?
1

Bingo! This is definitely our boot pausing friend. It gives the error message, and returns a RC=1. But it’s not the one that forces us to press a key if the system is not
compliant, so it must be invoked by another script at boot time.

Now we could do two things, one is replacing this script for our own “compliance checker” and the other is to find the isCompliant invoking script and change it there, just
in that case replacing the original isCompliant breaks something else further down the line.

My recommended method is Solution 2, but the fastest to implement is Solution 1.

Solution 1.- Replace isCompliant with our own brew.

Before replacing the original script, we will keep the original, just in case it’s needed further on, and to have a rollback option.

SUSETEST:~# cp -p /usr/bin/isCompliant /usr/bin/isCompliant.orig

Now we will just replace the script with a simple “exit 0”, that will allways return OK in any case.

SUSETEST:~# echo "exit 0" > /usr/bin/isCompliant

 

Solution 2.- Modify isCompliant boot invoking script.

First we need to find out the name of the isCompliant invoking scrpits, so we launch another brute-force grep, this time at /etc/init.d folders:

SUSETEST:~# grep "/usr/bin/isCompliant" /etc/init.d/*
/etc/init.d/boot.compliance: MSG=`/usr/bin/isCompliant`

And we find it, it’s called boot.compliance (so it really was pretty well self-documented).

We check the startup script, and we find the start sequence:

case "$1" in
start|restart|force-reload)
# Check if we're running in inst-sys or stage 2 of the installation - if so,
# the check must not be performed as there's already a check in YaST
if test -f /var/lib/YaST2/runme_at_boot ; then
exit
fi
echo -n "Check if the profiles matches the system"

MSG=`/usr/bin/isCompliant`
CODE=$?
if [ "$CODE" != "0" ]; then
splash=""
# Switch bootsplash to verbose mode to make text messages visible.
if test -f /proc/splash ; then
read splash < /proc/splash echo "verbose" > /proc/splash
fi

clear

echo -e "\n"
echo -e "=========================================================================="
echo -e "\n"
echo -e "$MSG"
echo -e "\n"
echo -e "Press any key to proceed with booting."
echo -e "\n"
echo -e "=========================================================================="

read -n 1

clear
[[ "$splash" =~ silent ]] && echo silent > /proc/splash
fi

As we can see marked in red, the variable MSG executes and captures the isCompliant output, and the variable CODE collects it’s return code.
Then an “if” sentence checks the compliance, and if its different from 0 (Not Compliant), shows the screen with the MSG and waits for any key to be pressed before continuing.

As usual, we will make a backup of the original config file before making any changes into the working configuration:

SUSETEST:~# cp -p /etc/init.d/boot.compliance /etc/init.d/boot.compliance.orig

So, our change it’s going to be replacing the “read -n 1” with a “sleep 6“, because we are going to leave the “Not Compliance” message on screen during 6 seconds at boot time, to remind us that this system is not supported by SuSe in it’s actual configuration.

We will also comment the “Press any key…” message, to allow for automatic rebooting of the system.

SUSETEST:~# vi /etc/init.d/boot.compliance

It will end up as follows:

case "$1" in
start|restart|force-reload)
# Check if we're running in inst-sys or stage 2 of the installation - if so,
# the check must not be performed as there's already a check in YaST
if test -f /var/lib/YaST2/runme_at_boot ; then
exit
fi
echo -n "Check if the profiles matches the system"

MSG=`/usr/bin/isCompliant`
CODE=$?
if [ "$CODE" != "0" ]; then
splash=""
# Switch bootsplash to verbose mode to make text messages visible.
if test -f /proc/splash ; then
read splash < /proc/splash echo "verbose" > /proc/splash
fi

clear

echo -e "\n"
echo -e "=========================================================================="
echo -e "\n"
echo -e "$MSG"
echo -e "\n"
#echo -e "Press any key to proceed with booting."
echo -e "\n"
echo -e "=========================================================================="

#read -n 1
sleep 6

clear
[[ "$splash" =~ silent ]] && echo silent > /proc/splash
fi

We can save the modified file and reboot the system to check that we have the 6 seconds warning and then just carries on booting as usual.

So, with a little digging around the system we have found how to bypass the nagging screen and convert back our migrated VM into a workable system.

 

Advertisements

ADIOS a VMware v5 y v5.1!

El día 24 de agosto de 2016, se ha puesto en End Of Support las versiones v5 y v5.1 de vSphere, como puede comprobarse en el comunicado oficial de VMware (2145103).

Asi que para aquellos que no hayan actualizado sus equipos a la v5.5, o la v6.0, ya va siendo hora de planificar las actualizaciones.

 

Si quereis leer el comunicado oficial, podeis hacerlo en la siguiente URL:

https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2145103&src=vmw_so_vex_ahanc_265

 

VMware Product Acronyms Dictionary

Don’t tell me that you’ve never found yourself thinking about what vMA or vCO or vCAC is in a documentation, because with soo many VMware products, there is another world out there to be remembered.

Well, in that case, don’t fear, as I have collected a VMware Acronyms list for your product searching pleasure.

Hey!, and it’s a nice downloadable PDF, to boot!

VMware_Acronyms_v1.0

But in case you need to have a quick look and don’t need to download the file, here is the list:

Acronym Full Product/Technology Name Product Description
AIO Asynchronous I/O A process that handles blocking system calls for asynchronous I/O, or nonblocking I/O. AIO is a form of input and output processing that permits other processing to continue before the transmission finishes.
COS ESX Service Console OS Its Linux kernel loads the VMkernel as a module and then passes complete control over the system to it. The VMkernel hypervisor in turn will then run the COS as a privileged VM.
DPM Distributed Power Management VMware Distributed Power Management provides power savings by dynamically consolidating workloads during periods of low resource utilization. VMs are migrated onto fewer hosts and unneeded ESXi hosts are powered off.
DRS Distributed Resource Scheduler VMware DRS manages the allocation of resources to a set of virtual machines running on a cluster of ESX hosts with the goal of fair and effective use of resources.
EVC Enhanced vMotion Compatibility vSphere virtualization that allows VMs to move between ESX/ESXi hosts on different CPUs (masks CPUs technologies to make a match between 2 or more CPUs from the same manufacturer)
EVO:RAIL EVO:RAIL EVO:RAIL combines VMware compute, networking, and storage resources into a hyper-converged infrastructure appliance to create a simple, easy to deploy, all-in-one solution offered by VMware partners.
Fling Vmware Labs Flings Apps and tools built by VMare engineers that are intended to be played with and explored.    For more info, see     https://labs.vmware.com/flings
FT vSphere Fault Tolerance VMware vSphere Fault Tolerance provides continuous availability for applications in the event of server failures by creating a live shadow instance of a virtual machine that is always up-to-date with the primary virtual machine.
GOS Guest Operating System An operating system that runs inside a virtual machine (Windows, Linux, Solaris x86, etc).
HOL Vmware Hands-On Labs VMware Hands-on Labs, are lab deployments for students.  For more info, see    http://labs.hol.vmware.com/HOL/catalogs/
Horizon VMware Horizon VDI desktop-virtualization product. Delivers virtualized and remote desktops and applications through a single platform and supports end users with access to all of their Windows and online resources through one unified  workspace.
NEE Next Education Environment project (now known as HOL) Next-gen concept for education environments, where Vmware creates a full deployment for the estudent to learn with.
NSX VMware NSX Virtualized Network similar to a virtual machine for compute, a virtualized network is a fully functional network in a software container, provisioned independent of underlying hardware or topology.
The NSX network virtualization platform operates on any hypervisor (not just VMware), any network hardware and integrates with any cloud management platform.
Onyx VMware Project Onyx (Fling) Project Onyx is a new tool in that generates code based on the mouse clicks you make in the vSphere Client.
OVA Open Virtualization Format Open Virtualization Format is an open standard for packaging and distributing virtual appliances or more generally software to be run in virtual machines.
OVF Open Virtual Appliance Single file distribution of a OVF package, stored in the TAR format. (can be opened with tar or WinRAR to see it’s contents).
OVF Tool VMware OVF Tool The OVF Tool is a a command line utility that supports importing and exporting of OVF packages to and from many VMware products.
P2V Physical to Virtual Physical to Virtual conversion process, where a VM is made from a physical machine. Can be performed by using Vmware Converter.
PowerCLI VMware vSphere PowerCLI PowerCLI provides more than 150 commands that give you the power to automate all aspects of VMware vSphere: storage, network, ESX, VM and more. Based on Windows PowerShell.
PSOD Purple Screen Of Death Similar to Windows BSOD, is a diagnostic screen (white text on purple background) that is displayed when the ESXi’s VMkernel carshes due to a critical error.
RDM Raw Device Mapping A mechanism that enables a virtual machine to have direct access to a LUN on the physical storage subsystem (Fibre Channel or iSCSI only).
SDRS Storage DRS Provides recommendations for VM disk placement and migration to balance space and I/O resources across the datastores in a datastore cluster.
SRM vCenter Site Recovery Manager Disaster recovery solution that provides automated orchestration and non-disruptive testing of centralized recovery plans for all virtualized applications.
ThinApp VMware ThinApp Agentless application virtualization solution that isolates applications from their underlying operating systems to eliminate application conflict and streamline delivery and management.
VAAI vStorage APIs for Array Integration VMware API framework that enables storage tasks (like thin provisioning) to be offloaded from the ESXi host to the storage array, accelerating vSphere.
vApp vSphere vApp (Virtual Application) A vApp is a container, like a resource pool and can contain one or more virtual machines. A vApp also shares some functionality with virtual machines. A vApp can power on and power off, and can also be cloned.
VASA vSphere Storage APIs – Storage Awareness Vmware API framework to share information from the storage to the ESXi, like health, provisioning, space conmomption, etc.
VCA VMware Certified Associate Certification program which validates your knowledge of virtualization business challenges and the VMware products that solve them.
vCAC vCloud Automation Center VMware vCloud Automation Center drives business agility by automating the delivery of personalized IT services.
VCA-Cloud VMware Certified Associate – Cloud Define cloud computing and provide use case scenarios of how vCloud and cloud computing can take advantage of private and public clouds without changing existing applications and leverage a common management, orchestration, networking, and security model.
vCAD vCloud Application Director vCloud Application Director (formerly known as vFabric Application Director) lets you build deployment blueprints with a drag-and-drop interface.
VCA-DCV VMware Certified Associate – Data Center Virtualization Certified technicians will be able to define data center virtualization and provide use case scenarios of how vSphere and data center virtualization can provide cost and operational benefits.
VCAP5-DCA VMware Certified Advanced Professional 5 – Data Center Administration Demonstrates your expertise with VMware vSphere 5, as well as your ability to use automation tools and implement virtualized environments.
VCAP5-DCD VMware Certified Advanced Professional 5 – Data Center Design Certification designed for IT architects who design and integrate VMware solutions in multi-site, large enterprise, virtualized environments.
VCAP-CG VMware Certified Advanced Professional – Cloud Governance Coming Soon
VCAP-CIA VMware Certified Advanced Professional – Cloud Infrastructure Administration Certification that validates ability to install, configure, and administer complex, single and multi-tenant public/private/hybrid VMware vCloud environments.
VCAP-CID VMware Certified Advanced Professional – Cloud Infrastructure Design Certification that verifies that you can define goals for your cloud infrastructure architecture, analyze elements of the framework, and make design decisions that ensure the proper physical and virtual components exist in the design.
VCAP-DCA VMware Certified Advanced Professional 5 – Data Center Administration Unique, lab-based exam where you will perform tasks using actual equipment to verify your skill at installing, configuring, and administering large and complex virtualized environments.
VCAP-DTA VMware Certified Advanced Professional – Desktop Administration Certification that validates advanced proficiency with deploying, administering, and troubleshooting large-scale, production ready, virtual desktop infrastructures that enable workforce mobility. Demonstrates your ability to install and manage highly-available and recoverable Horizon View environments, establishing policies and settings for a secure virtualized infrastructure.
VCAP-DTD VMware Certified Advanced Professional – Desktop Design Certification that validates your ability to design, plan, and optimize VMware View solutions. This certification signals a strong understanding of VMware View core components and their relation to the data center, as well as View design methodologies and principles.
VCA-WM VMware Certified Associate – Workforce Mobility You will be able to define workforce mobility and provide use case scenarios of how Horizon and workforce mobility can deliver freedom, flexibility, and manageability while connecting people to their data, applications, and desktops.
vCD vCloud Director VMware vCloud Director provisions software-defined data center services as virtual data centers that provide virtualized compute, networking, storage and security.
vCD-SP vCloud Director for Service Providers VMware vCloud Director-SP enables cloud service providers to build differentiated cloud services that are inherently hybrid aware and best fit for enterprise class organizations.
VCDX VMware Certified Design Expert VCDX is the highest level of certification offered by VMware. The VCDX certification allows you to highlight your enterprise-class skills in VMware Solution design and implementation.
VCDX5-DCV VMware Certified Design Expert 5 – Data Center Virtualization VCDX5-DCV certification is achieved through the unique design defense process, where all candidates must submit and successfully defend a production-ready VMware Solution before a panel of veteran VCDX-DCV holders.
VCDX-Cloud VMware Certified Design Expert – Cloud VCDX-Cloud requires enterprise-class vSphere and data center virtualization skills but the focus is on adding the VMware vCloud Suite, building out the software-defined-data center, and delivering Infrastructure-as-a-Service with comprehensive management and security.
VCDX-DT VMware Certified Design Expert – Desktop VCDX-DT requires enterprise-class vSphere and data center virtualization skills but the focus is on delivering virtual desktops and mobile computing solutions with the VMware Horizon Suite™ and building out the infrastructure to deliver a consistent, rich end-user experience across multiple devices.
VCDX-NV VMware Certified Design Expert – Network Virtualization VCDX-NV requires enterprise-class networking and network virtualization skills with a focus on VMware NSX; a revolutionary technology that transforms network operations and economics in the software-defined data center.
vCenter VMware vCenter Server Centralized platform for managing your VMware vSphere environments, can be installed on a Window Server, or in a preconfigured Virtual Appliance (VCSA)
VCIX-NV VMware Certified Implementation Expert – Network Virtualization Validates your ability to install, configure, and administer NSX virtual networking implementations in a demanding hands-on lab environment. The lab is not a simulation, candidates will work within a live and fully operational virtual appliance to complete all the objectives.
vCLI vSphere Command-Line Interface Command set of more than 30 command-line utilities that allows you to run sysadmin commands against ESXi systems from any machine to help you provision, configure and maintain your ESX and ESXi hosts.
vCMA vCenter Mobile Access A fully configured and ready to run virtual appliance that is required to manage your datacenter from mobile devices such as smartphones and tablets (iPad).
vCO vCenter Orchestrator VMware vCenter Orchestrator simplifies the automation of complex IT tasks and integrates with VMware vCloud Suite components, to adapt and extend service delivery and operational management.
VCOPS VMware vCenter Operations Manager VMware vCenter Operations Manager is the key component of the VMware vCenter Operations Management Suite. It provides comprehensive visibility and insights into the performance, capacity and health of your infrastructure.
VCP4-DT VMware Certified Professional 4 – Desktop Directed toward Virtualization Systems Engineers who seek to demonstrate their ability to install and configure the VMware View environment and enable View Client users. Candidates must be able to configure the vSphere environment, possess a deep understanding of VMware core components and their relation to storage and networking and be proficient in data center design methodologies.
VCP5-DCV VMware Certified Professional 5 – Data Center Virtualization Confirms that you have the education needed to successfully install, deploy, scale and manage VMware vSphere environments, as well as the skills obtained by a minimum of six months experience with VMware infrastructure technologies.
VCP5-DT VMware Certified Professional 5 – Desktop Directed toward Virtualization Systems Engineers who seek to demonstrate their ability to install and configure the VMware View environment and enable View Client users. Candidates must be able to configure the vSphere environment, possess a deep understanding of VMware core components and their relation to storage and networking and be proficient in data center design methodologies.
VCP-Cloud VMware Certified Professional – Cloud Validates your ability to install, configure and administer a Cloud environment using vCloud Director and related components.
VCP-NV VMware Certified Professional – Network Virtualization Validates your ability to install, configure, and administer NSX virtual networking implementations, regardless of the underlying physical architecture.
vCSA vCenter Server Appliance OVF to Quickly deploy vCenter Server and manage vSphere using a Linux-based virtual appliance.
VDI Virtual Desktop Infrastructure A Virtual Desktop Infrastructure (VDI) is a desktop-oriented service that hosts user-desktop environments on remote servers. In the vSphere world VDI means Horizon View or just Horizon.
VIEW Horizon View or Horizon (with View) See the entry for Horizon
vMA vSphere Management Assistant Virtual Appliance that allows administrators and developers to run scripts and agents to manage ESXi and vCenter Server systems. vMA packages the vCLI Command Line Interface, the vSphere SDK for Perl, as well as logging and authentication modules. vMA can also host 3rd-party agents for added management power.
VMDK Virtual Machine Disk Open Source File Format (developed by Vmware), acts as a container for virtual hard disk drives to be used in virtual machines like VMware Workstation or VirtualBox.
VMFS Virtual Machine File System High performance cluster file system which provides storage virtualization that is optimized for VMs. Each virtual machine is encapsulated in a small set of files (VMDKs).
vMotion Virtual Motion Technology to move a VMs between ESXi hosts without downtime.
VSA vSphere Storage Appliance Software-based shared storage solution that enables high availability and automation in vSphere without shared storage hardware.
VSAN VMware Virtual SAN Virtual SAN is a software-defined storage solution specifically designed for the software-defined datacenter.
Virtual SAN’s hypervisor-converged architecture enables storage and compute to run in the same physical host with minimal overhead; management is made simple through seamless integration with the vSphere Web Client and the entire VMware stack.
vShield VMware vShield Group of networking and security products for virtualized IT infrastructures, comprising vShield Manager, vShield Edge, vShield Zones, vShield App, vShield Data Security and vShield Endpoint. There are AV products for vShield.
VUM VMware Update Manager VMware vSphere Update Manager automates patch management and eliminates manual tracking and patching of vSphere hosts and virtual machines. It compares the state of vSphere hosts with baselines, then updates and patches to enforce compliance.
VVOL Virtual Volumes Next-gen concept for storage cabinets: a LUN that is VMDK-aware. So the ESXi host can offload tasks to the storage system per VMDK granularity.
VXLAN Virtual Extensible LAN Network virtualization technology that attempts to correct scalability problems associated with large cloud computing deployments. It uses a VLAN-like encapsulation to encapsulate MAC-based Layer 2 Ethernet frames within Layer 4 UDP packets.

Create a free website or blog at WordPress.com.

Up ↑