Problem with the CentOS post-installation Script

Good afternoon

I use VMware Studio 2.6 to create a couple of CentOS 6.2 VMs.  A virtual machine is perfect, the other does not work it's "Script of post-installation of Application."  I find it a little strange because if I just copy the script from Studio in the virtual machine, it works fine.  But not when I'm deployign the OVF.  What?

The two CentOS systems are virtually the same.  the only difference is in the FULL domain name and host name lines where I grep for different properties of the FVO.

Someone has ideas how to debug this?  Thanks in advance.  I've included the script to post below.

#! / bin/bash
###################
# post.sh sets up a new system with the required configuration
#
# post.sh v1.0 - [email protected]
#
###################
# Variables - from the user entered in the OVF properties
#
FQDN = "/ opt/vmware/share/vami/vami_ovf_process - p |" grep new_hostname | "cut-d" "'-f4"
Hostname = "/ opt/vmware/share/vami/vami_ovf_process - p |" grep new_hostname | cut-d ""'-f4 | cut d. "" - f1 "
DOMAINNAME = "${FQDN #*.} '"
IP_ADDR = "/ opt/vmware/share/vami/vami_ovf_process - p |" grep vami.ip0 | "cut-d" "'-f4"

# Set SELINUX to disabled
SED 's/SELINUX=.*/SELINUX=disabled/' / etc/selinux/config-i
echo 0 >/selinux/apply

# Set the host name
sed-i "s/HOSTNAME=.*/HOSTNAME=$HOSTNAME/" sysconfig
sed-i "s/DOMAINNAME=.*/DOMAINNAME=$DOMAINNAME/" sysconfig
echo '$IP_ADDR $FQDN $HOSTNAME' > > / etc/hosts
hostname $HOSTNAME
service network restart

Hmm. This does not resemble a script of post-installation for me at all. This script is run at the end of the installation, but the VM has not been deployed yet, so the properties of the FVO are likely not useful (they are only put in place at the time of the deployment, for the * user * unit and you do this during the compilation, like the * author * the device.) The network parameters that exist in the envionment of the author are almost certainly not this as an end user * deployment * unit is lilkely to use; their domain, dns, and network addresses certainly not will be yours). Also, you don't mention how this script "failed", that might help narrow down the cause. Look at the debug log and the postinstall.log and see if you can find the real cause of the error. But in all cases, property OVF stuff you make here is not part of the postinstall script. Instead, it looks more like something that belongs in a script firstboot, although VAMI already does most of what you do with networking.

Tags: VMware

Similar Questions

  • Problem with the Package Windows Installer... when trying to install ITUNES 9.2 and Quicktime.

    I bought an IPHONE 4 yesterday.  For more than 7 hours, I tried everything to download ITUNES 9.2.  I get the same error.  I spoke with apple as Microsoft.  I didn't PAY to get assistance from Microsoft yet and I hope I don't have to.

    Error: problem with the Windows Installer Package.  A program required for this install to complete could not be run.  Contact your provider to support personal or package.

    I have Windows XP.  I uninstalled and re-installed Safari and which did not help (at one point, I had problems with Safari).  I also have at one point received an alert on 'applesync.notifier' could not be executed.

    I have no idea where from here, but I'm frustrated.  I want to use my phone for something more than "just a phone" and I can't.  I have to carry my OLD Iphone (1st generation original).  Help<><>

    There is a simple way to do it!

    I had this problem too, but I did

    first open Installer u then let it install

    When you get the messege, click ok and it will say restoration of action but don't get put off by this cause after 5 min, it will say: it is installed and restart your computer

    hope this has helped

  • Problem with the downloaded file (Installer cloud creative)

    I reset my computer and upgraded to Mac OSX 10.11.4. I downloaded Creative Cloud Desktop install but in the middle of the stage 'Download', I get an error 205 "it seems to be a problem with the files downloaded.". I checked the firewall and connectivity issues and everything is ok. This is just like the installer is corrupted.

    Clear Tmp folder.

    Make sure the option "use FTP mode passive mode" is unchecked in the proxies tab.

    If you are using a wireless or Wifi Internet connection, try wired Ethernet connection.

    Always the same? or who already use the wired connection.  Try live delayed creative cloud Installer.

    N ° 1)

    Click on below link and download page of 6 CS open, do not download anything from there, just keep it open.

    Download Adobe Creative Suite 6 applications

    Step 2)

    Click on the link below and download file CC to install offline DMG and use them to install the desktop CC app and check.

    http://trials2.Adobe.com/AdobeProducts/KCCC/1/OSX10/ACCCx3_6_0_248.dmg

  • Should I bother to install the KB3177467 update? Everyone says that they have problems with the PC after installation

    Need to know what to do...

    Hey Kevin,

    We strongly recommend that install you it as it is intended as an important update. As noted on the article on KB3177467, Servicing stack update is one most important elements for the system and it contains .dll files that will allow your computer to be able to run even better.

    If you have a problem installing it the update of Windows, on the same link provided above, you have an option to install the stand-alone Installer (32-bit / 64-bit).

    Let us know if you have other concerns.

  • What complicates the problem with the CS 5 installation error message

    I installed CS5 (not CC) on my laptop as my second installation.  I get the message "one or more files in the Adobe Application Support folder, necessary for the operation of PS, are absent.  Please run the installer of the PS and the re - install PS' I know that others have had this problem more, as I read a lot of posts in the forum.  The problem is that if I uninstall it, I won't be able to reinstall because it's my 2nd install.  I'm sure there must be a way to fix this problem, but I need help from a member of adobe staff.  Help, please!

    You have the right to activate only two copies;  but you can install, uninstall, and reinstall it on any of these two computers as many times as you have need or want.  Don't forget to DISABLE the application (Help menu) before each uninstall, especially if you are going to install on another computer.

  • Problems with the windows 10 installation partitions

    So I try to install windows 10 via bootcamp on my macbook pro 2012.

    However, I still have problems when I get to the screen of partition on windows 10 installation.

    So I opened the USB BOOT EFI and install from there.

    I enter my product key, accept the license, and I'm greeted by the partitioning. I select the bootcamp partition, but it will not format, gives me an error message, or it will allow me to format, but no real format. If I try to delete the partition I can't create a new one, because it gives me an error message. If I try to solve this problem by making the partition EXFAT / FAT always displays the problem. If I format it under OS X EXTENDED it allows me to move forward, but after installation, it simply gives me the blue screen of death trying to boot from the BOOT EFI of SSD.

    No idea how to solve this problem, I am getting very frustrated and frankly upset against apple to give instructions so little.

    Thank you.

    Is there a particular reason to interrupt the normal process flow using the Alt/Option key? Is your USB, USB2 flash drive Installer?

  • Problem with the CC-Client installation

    Hello

    I am able to connect to my account. I work with windows 10.

    Problem:

    CC-client is installed and says "not connected". By pressing the connection button immediately the screen still says "not connected".

    I can't remove the CC-client. I received the message of the still some processes work.

    Can you help me please?

    Karl

    < deleted by the moderator >

    Check your hosts file.

    help for that and other adobe.com sure common connection problems read, http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Problems with the new Agent installation 12

    Hello

    Installed a new officer on 12 c, the installation was successful.
    But the Agent status is not properly in the Console.

    Why? All possible cases?

    s/n

    Hello

    Thanks for the pointers...

    When you use the b_startAgent parameter.
    After installation, there are the 3 steps:

    1 start the agent of
    . / emctl start agent

    2. Add the target
    . / emctl config agent addinternaltargets

    3 configuration of the Plugin
    /Core/12.1.0.1.0/Perl/bin/perl /core/12.1.0.1.0/bin/AgentPluginDeploy.pl - Origine_oracle /core/12.1.0.1.0 - agentDir - pluginIdsInfoFile /plugins.txt - action set - emStateDir

    Once the steps above carried out, check the status. If possible once syncing of the agent as well.

    Go to the Home Agent and the "agent" dropdown select resynchronization.

    Best regards
    Vincent

  • Eclipse problems with the plugin SDK installation - please help

    You have a new PC.  Yes for me.  Installed the new Eclipse + BB JDK of this site.  There is no option for BlackBerry projects when I run Eclipse.

    When I import my old PC projects, there are tons of red x in them.

    If I go to software updates, it shows 1.1 plugin and v5 SDK * is * installed.

    Something simple, I'm sure.

    I have not installed Java SDK 6 real.  Although he does not tell you which at the time.  He moved very well, it just doesn't work.

    I have installed the Java SDK6 and reinstalled and it worked.  Thank you, Mark.

  • Problem with the HP printer Installation.

    My HP6500 printer requires: Windows XP pack 2; Windows Vista; or Windows 7. How do install when my operating system is Windows 8? Thanks in advance for any help.

    Hello

    There are several variations of "HP 6500" that could be your printer on the HP Web site. I suggest that you go to:

    http://WWW8.HP.com/UK/en/drivers.html

    Look for your printer, and then follow the instructions to install it in Windows 8. If there is full drivers/software available then use them *.

    * Make sure that you choose the drivers 32 or 64-bit according to your version of Windows 8. To find out if you are running Windows 32 or 64 bits 8, press The Windows Logo key + X on your keyboard, and then select System. Now look where it says, "System Type".

  • I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious.

    Hello.
    I have a problem with the content of spam. Somewhere in the Fox appeared script that's choking me audio spam. Every 30 minutes he's playing an audio clip that is malicious. I can't find the settings as it eliminated. Now, I don't have any plug-ins and Add-ons strange that were not initially in the Fox, but the problem is there.
    I use the Fox years. The problem, he had 1.5 months after Fox cleaning. If the problem can't win, I'll be forced to give up the browser, and I wouldn't.

    Could test you mode without failure of Firefox? It is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

    If the problem persists in Mode without failure, could reinstall you Firefox in this way:

    Clean reinstall it

    We use this name, but it isn't about deleting your settings, this is to ensure that the program, files are clean (not incompatible, corrupt or exotic code files). As described below, this process does not disrupt your existing settings. Don't uninstall NOT Firefox, that does not need.

    (1) download a fresh Installer for Firefox 38.0.5 of https://www.mozilla.org/firefox/all/ in an ideal location. (Scroll down your preferred language).

    (2) close Firefox (if applicable).

    (3) to rename the program folder, either:

    (Windows 64-bit folder names)

    C:\Program Files (x86)\Mozilla Firefox
    

    TO

    C:\Program Files (x86)\OldFirefox
    

    (Windows 32-bit folder names)

    C:\Program Files\Mozilla Firefox
    

    TO

    C:\Program Files\OldFirefox
    

    (4) run the installer you downloaded in the #1. It should automatically connect to your existing settings.

    Any improvement?

    Note: Some plugins can only exist in this OldFirefox file. If it is missing something essential, present in these files:

    • \OldFirefox\Plugins
    • \OldFirefox\browser\plugins
  • HP Envy 17-2100ed: problem with the installation of a driver on my laptop

    Dear readers,

    I have some time for problems with the installation of the drivers on the HP site. Whenever I chose a driver, such as for the Cyberlink Youcam software, the download process will be blocked at 28.9 MB, a total of 154 MB. I also tried to install the software for my HP printer, but once the same question.

    Can someone help me? Thanks in advance!

    Kind regards

    Amir

    Hello @Amirkalloe,

    Thank you for visiting the HP Forums! The Forums are a great place where you can find solutions for your problems, with the help of the community!

    I came across your post about the problem of driver and he wanted to help!

    Problems installing drivers, or by downloading the drivers?  If you have problems to install the drivers, you can use the tool on the following site:

    Open the Windows Update troubleshooting tool

    Let me know how it goes.  Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution', this will help others easily find the information they seek.  In addition, by clicking on the Thumbs up below is a great way to say thank you!

    Have a great day!

  • problem with the installation of window package

    Impossible to install, i-tunes, quick time and I downloaded Security software. Error message indicates a problem with the windows package install. On Vista, this is a fairly new problem
    Thanks in advance
    Jack

    Hi Jack8053,

    Thank you for visiting Microsoft Answers.

    · The error message you get when you try to install a software, what exactly?

    · Remember to make changes on the computer before this problem?

    It seems to be that some of the files windows install is corrupt. I have a few steps that might help you to solve the problem:

    Method 1

    Make sure that the Windows Installer service is running.
    1 open run and type services.msc, and then press ENTER.

    2. in the services window, locate the Windows Installer service in the services list.
    3. check that the status is "started". If the condition column is empty,
    Right-click Windows Installer, and then select start.
    4. change the Startup Type to automatic (default is Manual), then
    Restart the computer.

    Method 2

    Run a scan of the file system [SFC] checker on the computer that will replace missing or corrupt files.

    To do this, follow the steps below:

    1. click on the Start button.

    2. on the Start Menu, click all programs followed by accessories.

    3. in the menu accessories, right-click on command line option.

    4. in the drop-down menu that appears, click the "Run as Administrator" option.

    5. If you have the User Account Control (UAC) enabled, you will be asked permission before the opening of the command line. You simply press the button continue if you are the administrator or insert password etc.

    6. in the command prompt window, type: sfc/scannow then press ENTER.

    7. a message is displayed indicating that "the system scan will start.

    8. be patient because the analysis may take some time.

    9. If all the files need replace SFC will replace them. You may be asked to insert your Vista DVD for this process to continue.

    10. If all goes although you should, after the analysis, see the following message "Windows resource protection not found any breach of integrity.

    11. once the scan is finished, close the command prompt window, restart the computer and check.

    For more information, see the link below:

    How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista

    http://support.Microsoft.com/kb/936212

    Method 3
    1. If it does not help, try to uninstall Windows install using the Windows Installer Cleanup utility:

    Description of the Windows Installer Cleanup utility

    http://support.Microsoft.com/kb/290301

    2 restart the computer.

    3. download and install the latest version of Windows Installer by downloading from the link given below:

    Windows install 4.5 Redistributable

    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    4. try to install the program and check that it works.

    Hope the helps of information. Please post back and we do know.
    Concerning
    Joel S
    Microsoft Answers Support Engineer.

  • Problems with the Windows and Windows Update problem of Installation of KB2416472 component.

    Original title: I use SFC. EXE

    Error detected

    How can I fix this, or I have to re - install window again.

    CSI 0000015a [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "

    The same with 0000015c detail above.

    00000309 [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:35:51, CSI Info 0000030b [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:35:51, CSI Info 0000030 c [SR] this element is referenced by [l:158 {79}] "' Package_16_for_KB948465 ~ 31bf3856ad364e35 ~ x 86 ~ ~ 6.0.1.18005.948465 - 49_neutral_GDR" "

    00000367 [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:38:13, Info CSI 00000369 [SR] cannot repair the military record [l:24 {12}] "settings.ini" Microsoft-Windows-Sidebar, Version = 6.0.6002.18005, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, type neutral, TypeName neutral, neutral to the public key in the store, hash mismatch "
    2010-10-08 12:38:13, CSI Info 0000036 [SR] a the item is referenced by [l:158 {79}] "' Package_16_for_KB948465 ~ 31bf3856ad364e35 ~ x 86 ~ ~ 6.0.1.18005.948465 - 49_neutral_GDR" "
    2010-10-08 12:38:13, CSI Info 0000036 c [SR] full repair

    Having a problem with the Update window for

    Update of security for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008 x 86 (KB2416472)

    I followed the recommendation, that nothing has changed.

    Download size: 4.7 MB

    You may have to restart your computer for this update is taken into account.

    Update type: Important

    A security issue has been identified that could allow a malicious user to compromise your Windows system that is running the Microsoft .NET Framework and gain access to information. You can protect your computer by installing this update from Microsoft. After you install this item, you may have to restart your computer.

    Thank you

    Hello

    Problems with the Windows Sidebar?

    It seems that the problem is related to the Windows Sidebar. Remove all third-party sidebar gadgets if

    Follow these steps and check if it helps.

    Logon as administrator-

    a. If the sidebar is running - make a right click on the sidebar near the lower clock icon right in and out

    b. Click Start - Type "CMD" in the search box - find top - right click it and run as administrator.

    c. replace C:\Program Files\Windows Sidebar by copying and pasting this command->

    CD C:\Program Files\Windows Sidebar
     
    d. press enter (this is assuming that your sidebar is on C:, otherwise use the letter of the drive is on)

    Guest should be--> C:\Program Files\Windows Sidebar >

    e. then copy and paste each of them following their tour to enter

    regsvr32-u sbdrop.dll

    regsvr32-u wlsrvc.dll

    regsvr32 atl.dll

    regsvr32 sbdrop.dll

    regsvr32 wlsrvc.dll

    Sidebar should now work.

    Also if you scan SFC does not fix a corrupted system file, you can follow the steps from the link below.

    Look under "'If the System File Checker tool can not repair a file, proceed as follows :" "

    As with regard to the installation of KB2416472, to install this hotfix, you must have Windows Installer 3.1 or a later version installed on the computer. To get the latest version of Windows Installer, see the following Microsoft Web site.

    For maore information, see: http://support.microsoft.com/kb/2416472

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • installation of upgrade to itunes says error: problem with the Windows Installer Package

    Hi, I'm unable to load the latest version of itunes, the error message says that there is a problem with the installation of window and the staff package to contact technical support or the vendor of the package. Can offer you any advice? Thank you

    Download, install and run the Windows Installer Cleanup utility: http://www.softpedia.com/progDownload/Windows-Installer-CleanUp-Utility-Download-18442.html and see if that helps.

    If not, please check iTunes for technical assistance to the: http://www.apple.com/support/itunes/ or repost in iTunes Forum at:http://discussions.apple.com/category.jspa?categoryID=149.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for