Running VMware Kickstart scripts fail

I have a Linux virtual machine vmware workstation I use to run scripts to set up a USB drive as bootable vmware installation media. This works as expected.

When I do the same thing via a c# Windows forms project, the startup scripts specified to Setup vmware seems to fail. The newspapers that I'm supposed to recover via KS. CFG get never recovered, % firstboot always runs on every boot and no orders in KS. CFG never get through. Everything else works. VMWare Setup is started through Syslinux, it seems to install, /var/log/weasel.log brings nothing new. I am of ideas what could have been a lot of troubleshooting. Anyone here have any suggestions on where I should look or why running startup scripts to fail? I added sleep 30 after firstboot directive % one before running the command to restart at the end of the % firstboot section.

I did two things to solve this problem. I do not know why the error occurred creating the installation program in an environment and not in the other, but here is what fixed it:

1. in KS.cfg:

If [d ' / vmfs/volumes/NO NAME / "]; then

USBDIRECTORY = ' / vmfs/volumes/NO NAME. "

on the other

USBDIRECTORY = ' / vmfs/volumes/CONFIG ".

FI

ECHO "decided to use $USBDIRECTORY as the path to the USB device" > $LOG 2 > $LOG

The first startup script seems to fail or something similar when he is unable to carry out activities against files that should have been established of usb in the post installation script. The FAT16 partition that the post installation script is supposed to have access is supposed to be named CONFIG, but sometimes esxi maps up as NO NAME. In order to get the correct path based on name or NO NAME, I check it and store it in a variable. It is enough for the post installation and first boot scripts do what they are supposed to.

2. at the end of the first startup script, I got this:

echo "#Host configuration made! Restart... "> $FIRSTBOOTLOG 2 > $FIRSTBOOTLOG

sleep 30

reboot - n f > $FIRSTBOOTLOG 2 > $FIRSTBOOTLOG

It is now changed to sleep 180 seconds instead of 30, to ensure that all processes are made regardless of the esxi do what they are doing before starting.

I'm not sure of everything that happens in the background that it affects, but it seems to do the trick and fix my problem.

Tags: VMware

Similar Questions

  • Elements 4.0: run the postflight script fails

    I ALMOST built Elements 4.0 as root on Mac OS 10.5.6 successfully (CPU PPC G5).  Towards the end of construction, I see 'missing file' then 'cannot run the postflight script.

    Any ideas?  Thank you.

    http://forums.Adobe.com/community/photoshop_elements

  • the request to turn off this virtual machine failed because the corresponding vmware tools script didn't run successfully

    using vmware fusion 2.0.5

    the request to turn off this virtual machine failed because the corresponding vmware tools script didn't run successfully

    now vmware cant off power

    is vmware tools script to run when windows is running

    If I power off (mac - force quit) now... what happens

    VMware Fusion 2.x...

    VMware Fusion (menu bar) > help > VMware Fusion help > running VMware Fusion and Virtual Machines > Shutting Down a virtual machine operating system

    VMware Fusion (menu bar) > help > VMware Fusion help > running VMware Fusion and Virtual Machines > Options for VMware Fusion food orders

    VMware Fusion (menu bar) > help > VMware Fusion help > running VMware Fusion and Virtual Machines > orders of switching power supply from the default Options

    ==========

    Note: It's like pulling the plug of the wall on a physical computer. Whatever this is not saved will be lost and there is always the possibility of corrupting the file system where preforming a hard stop! (Even if you have no choice but to do.)

    VMware Fusion menu bar > VM > press the option key and select Power Off

    By pressing the keys alt/option "Shutdown called" changes to "Power Off".

    Note: It also changes orders of "Suspend comments" and "Restart Guest' too.

    Or if this does not work then...

    On the library Virtual Machine ctrl - click on the target of the Virtual Machine and select Show in Finder and delete the .vmss file, the ctrl + click the target package of Virtual Machine, and then after the merger closed. Note: All that was not justified for the suspended state will be lost by deleting the .vmss file. Note: However: you have no other choice if the Virtual Machine does not suspend/resume/stop/start correctly.

  • root.sh script fail to run on OEL5.4

    Hi, I am trying to install a network infrastructure for a stand-alone server on Oracle Enterprise Linux 5.4. I have a problem when I run root.sh script by user root is not run successufly is the "error loading shared libraries" error please give any soluciton.

    Here is the run the root.sh script


    [root@ws1 OraGrid11gR2] #./root.sh
    Run the script root.sh from Oracle 11 g...

    The following environment variables are defined as:
    ORACLE_OWNER = grid
    ORACLE_HOME = / opt/grid/OraGrid11gR2

    Enter the full path of the local bin directory: [usr/local/bin]:
    Copying dbhome to usr...
    Copying oraenv to usr...
    Copying coraenv to usr...


    Creating/etc/oratab file...
    Entries will be added to the/etc/oratab file according to the needs of
    Assistant configuration database when a database is created
    Finished to turn the generic part of the root.sh script.
    Now root product-specific actions will be performed.
    2009-11-02 18:18:28: verification of superuser privileges
    2009-11-02 18:18:28: user has superuser privileges
    2009-11-02 18:18:28: analyzing the host name
    Using the configuration settings file: / opt/grid/OraGrid11gR2/src/install/crsconfig_params
    Create the trace directory
    /opt/grid/OraGrid11gR2/bin/ocrconfig.bin: error while loading shared libraries:/opt/grid/OraGrid11gR2/lib/libclntsh.so.11.1: cannot restore segment prot after LAN: permission denied
    Cannot create or upgrade OLR


    Please give any solution

    Give it a shot...

  • Cannot run VMWare Fusion on Mac 10.9.4 6.4

    I use Fusion for some time on my Mac (Mavericks 10.9.4). Recently, when I went to launch Fusion 6.4, I received this message:

    Cannot run VMWare Fusion

    VMware Fusion is damaged and cannot be repaired. Please move the VMWare Fusion application to the trash and reinstall VMWare Fusion

    So, I removed the merger application and downloaded again. When I installed it, I got the same message. Well, I thought that this must be one of these 'hidden' files, see you must be corrupt, so I used App Zapper to get rid of the merger and all files related; emptied the Recycle Bin, so merger was gone, gone, gone. Uploaded a new image, the same thing!  No matter what I do, I can't use Fusion. Suggestions?

    Do not use Zapper App - merger, running specific uninstall scripts.

    I've seen that occur when get-Gatekeeper confused about how something has been installed, when permissions are confused, or when a hard drive is running out.  If you have VMWare Fusion and have installed and it run under an administrator account (default in OS x unless you change it), then first use disk utility to first 'check disk' (if you want something better, look for smart voltains software utility), then repair permissions.  If this does not work, try to right click on the merger in the applications folder, and choose open.

  • a way to run a powershell script?

    Y at - it another way to configure a script to be able to run by either double clicking on it or other means other than having opened powercli and goes the script and it works.

    It is not the best way to do it, but to help people not use powercli it will help running. The script that I know is very well to run... we are running win2k8 if it matters

    You can create a shortcut and under properties make it a race of PowerShell.exe.

    You pass as an argument to the PowerShell script runs.

    In the script, you ensure that the pssnapin PowerCLI is loaded.

    For example, the target of the shortcut can be

    %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe-fichier 'MyScript.ps1.

    You add in MyScript.ps1

    Add-PSSnapin VMware.VimAutomation.Core

    before that the script uses a PowerCLI cmdlet.

  • Forms crashing when running Oracle Forms script functional in OTM

    Hello

    We try to run Oracle Ebiz forms related to scripts of functional test developed in Open Script in Oracle Test Manager.

    Exactly when the forms starts, the JRE is get crashed, and the script fails. What could be the reason.

    I added the path class in Control Panel for the JRE Java that comes with OATS and active 1.6.33 version that works quite well even when script is run using OpenScript, and not through OTM.

    Also, in windows services we have provided valid admin credentials to the execution of the service, instead of the user of the local computer.

    Any help and insight into this problem would be a great help.

    Kind regards
    Nishant

    Published by: 958623 on October 29, 2012 05:09

    Please try "-formsft.startup_timeout 120" and let me know.

    Thank you
    Rajesh.

  • VCB snapshot creation failed: Pre custom gel script failed - how to fix?

    On a VM I started getting this error of VCB:

    Error: Another error occurred: failed to create snapshot: gel prior custom script failed.

    I found several other discussions about this, with resolutions of filesystem suspend disabling and reinstalling the VMware Tools.

    The guest is a CentOS 5 VM. He has lots of free space. The LUN has enough free space. I tried to reinstall the VMware tools. I tried to create the script pre-anti-freeze, chmodding to 755, even tried to add a simple script ' exit 0' in so that he actually returned correct status of output. "

    Snapshots fine VM in Virtual Center. I can't turn off the setting to suspend as it is set automatically by Backup Exec and I don't see an option to turn it off. Adding to the config.js appears to have ignored.

    The full command that I use for testing that is generating the error is:

    vc-01 vcbMounter.exe - h u Administrator Pei "mypass" - a uuid:564d7acf-0ecb-d867-8e4f-bbcb1aea6508 - r "C:\TEMP\monitor-22-06-408" t - fullvm m nbd - M 0 f 0

    I have several other CentOS 5 VM that work very well in the VCB.

    Any ideas or other things I can try?

    See this article in KB

    StarWind Software R & D

    http://www.starwindsoftware.com

  • How to run a Powershell script via a batch file

    I'm new on using Powershell and I have a fundamental question regarding running a powershell script. Basically, I wrote a file of commands as shown below.

    C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe - PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" - NoExit-command "C:\MyScripts\RunSpanshot.ps1".

    I run the batch file and nothing seems to happen. What is the problem with trying to run the RunSpanshot.ps1 script as shown above? -any help is appreciated.

    Thank you

    You could do

    C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" -NoExit -Command "& 'C:\My Scripts\RunSpanshot.ps1'"
    
  • Allow to run remotely signed scripts

    If I run; ": Allow powershell scripts to run powershell Set-ExecutionPolicy RemoteSigned ' scripts will be able to run anywhere? If so, how to do this to allow shell scripts to run from a specific remote location only?

    Hello

    I suggest you to see link below and check if it helps.

    http://TechNet.Microsoft.com/en-us/library/ee176949.aspx

    Hope this information is useful.

  • My attempts to run VMWare player v4 ends by, "VMWare player cannot be installed on this computer.

    Where is my VMWare

    My attempts to run VMWare player v4 ends by, "VMWare player cannot be installed on this computer. VMWare player requires not on your CPU. "See the notes product for hardware and software configurations specific.  VMWare player v4 has been previously on my computer which, for about a month, has not if used causes of unemployed in the city. When I went to use the PARALLEL machine, it wasn't there. I went to the website and charge VMWare player v4 and tools for this. The above message appears with a reading of Kael'thas window, it of a FLP file and needs internet to find a site to open it. I downloaded Free File Viewer that gave no results. I'd be happier than a pig in the cool mud to fix this problem. Thank you for any assistance.

    Looks like a BIOS setting may have changed (in terms of virtualization).

    Unlikely a Windows problem.

    Uninstall VMware Player.  Restart the computer.  Download the latest version of VMware Player (save to your computer) and install it.  Restart the computer.  Try to run it.

  • Is it possible to run the command script with user account administrator rights?

    Is it possible to run the command script with administrator user account rights means please tell me how to...

    I need to run it in windows 7 professional service pack 1.

    There are a few myths that won't go away, for example

    • You can perform administrative tasks when you are working from a command prompt.
    • A script (batch file, VBScript, PowerShell) gives you administrative rights.

    There is no substance to a myth. Your account has administrator privileges, or it does not. There is no backdoor.

  • I have just updated to Windows 7 and when I try to run a backup they fail.

    I have just updated to Windows 7 and when I try to run a backup they fail.  It seems that whenever a program tries to update the external HARD disk where backups reside it requires administrator permissions.

    Looking at the options Microsoft suggest that their user account control system is not supported by my version of SyncToy. What can I do? I'm looged administrator

    As you have installed SyncToy until you have created the required permissions, uninstall SyncToy, reboot, then reinstall SyncToy.

  • Running the logon script after AnyConnect VPN connection

    Is it possible (such as the Launcher on the IPSec client) to run a login script after establishing a VPN connection? When a user connects to the VPN client AnyConnect I need to be able run a login script to map drives. I looked the ASDM, but see anywhere that it seems that this would be configured. I thought I would check to make sure I'm not missing something.

    We lack ASA IOS v8.2 (2), ASDM 6.2 (5).

    Thank you.

    You can learn more about the AnyConnect script capabilities on the link below...

    http://www.Cisco.com/en/us/docs/security/vpn_client/AnyConnect/anyconnect25/Administration/Guide/ac03features.html#wp1068902

  • If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds?

    Hello

    If I run the calc script to aggregate a BSO cube, it blocks and release each block in a few seconds? Or is it keep held locked blocks even after aggregation for this block is over?

    For example if I correct sparse dimensions Forecast, FY15, dec.  and my accounts dimension is only dense, after calc has my senior level members in the accounts, it it will issue after updating (i.e. in fractions of seconds) or is agg keep it held in a lock?

    I ask because I want to run scripts tot., but there is the update of our cube users.  I never had a problem to start agg, while users are updating.  But maybe I am lucky.  If a user updates a closed block, they will receive an error message that I think.  They may try to update again after a few seconds, I hope.

    Thank you.

    Locking behavior for BSO Essbase is described in the database administrator's Guide: http://docs.oracle.com/cd/E57185_01/epm.1112/essbase_db/dstinteg.html

    It is certainly theoretically possible that a user can obtain a lock because of a calc, although I can't say I saw him be a problem in real-world applications (perhaps because access uncommitted is the default).

Maybe you are looking for