Kickstart vSphere 4 question install script...

This is probably a matter of fast command line.  Search high and low looking for such a command...

Try to set the number of ports in a vSwitch from the command line.  I know that this information is found in the etc/vmware/esx.conf file.  I have a sed command in my kickstart file to edit the line, however, on the post installation script restart, the switch is always back to 64.  It's a step manual last (outside of Manager Update running for the post update 1 patches) that I have in my server build process.

Does anyone know of anyway to do other than using the vSphere client?

You should not manually change esx.conf file, you must specify the number of ports when generating a new vSwitch, you do something like:

esxcfg-vswitch -a vSwitch:64

In my view, there are some checks at the start where the integrity of the esx.conf is checked and if it fails, it charges from an earlier copy known.

=========================================================================

William Lam

VMware vExpert 2009

Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

Twitter: @lamw

repository scripts vGhetto

Introduction to the vMA (tips/tricks)

Getting started with vSphere SDK for Perl

VMware Code Central - Scripts/code samples for developers and administrators

150 VMware developer

If you find this information useful, please give points to "correct" or "useful".

Tags: VMware

Similar Questions

  • Questions about scripts in ai2

    Hello

    Two questions about the new install script.

    (1) where to find documents on the "object model" which is available for use during the writing of scripts. There the Javadocs available to all classes, getters, setters, etc that can be used?
    For example, I want to write a custom rule to detect foreign keys "without columns. For some reason, this error occurs during generation DOF, but I have not found a standard rule of prior design detect these problems before the generation of DDL. So, I'm interested in knowing how to navigate through the object model to create a rule of mine (IE is it a table.getFK (.getColumns ()) use?).

    (2) is it possible to use Groovy as a scripting language? If Yes, does anyone have the docs (or even draft notes) on how join as a script engine in the Data Modeler?

    Thank you, BP

    Hi BP,.

    to detect foreign keys "without columns. For some reason, this error occurs during generation DDL

    What version did you use to create these cases? There was such a problem in one of the pre-production versions published two years ago.

    Meta definitions, you can watch datamodeler\datamodeler\xmlmetadata directory.
    In fact, it is preferable to define the rule of index/constraint - you will get a clue that is used to represent the PK, UK, the FK constraints and indexes.
    So for your rule, you select index/constraint as object and the next Java scrip will be your rule:
    var index;

    {if (index.isFK () & {index.getElements () .length == 0)}
    fake;
    } else {}
    true;
    }

    If you remove index.isFK (control) then the rule will be valid for all PK, UK, the FK constraints and indexes.

    For script engines - you can start here - https://scripting.dev.java.net/
    I see groovy is supported - http://groovy.codehaus.org/JSR+223+Scripting+with+Groovy
    How to install it - you can follow the instructions in the first link above, it's much easier just to copy related jar in the "ext" directory - for groovy I copied "groovy - 1.7.5.jar" (I downloaded 1.7.5 version)
    in the "D:\jdk1.6.0_20\jre\lib\ext" directory on my computer. You must restart the Data Modeler - I engine script groovy as a choice in the engine drop-down list box.

    You must test how Groovy will return true or false for the Data Modeler - generally ordinary (not library), it is strange that you see in the example. If the library is used then the standard return is used.

    Philippe

  • Acrobat 11 Pro Installer get hung up when he made "to"install script blocks... »

    I have a 2008 15 "Unibody Macbook Pro with replaceable battery life of five hours.  It has 8 GS of RAM and it is initialized under Mountain Lion.  The Acrobat Pro 11 Installer get hung up when it gets to "install script blocks...". "It never ends installation.  I tried after starting in safe mode and then start Mode once again used to start the mode.  I have had no success.  The Acrobat Pro 11 installer works fine when it is installed on my Mac Pro 2007 32-bit office, started under Leo.  I have to try something fancy with the command line, using the Terminal application?  I'm puzzled.

    Greetings, Rave and Sabian.

    I solved the problem installing Acrobat Pro 11 without reformatting the internal hard drive of my Macbook Pro.  I reinstalled Mountain Lion on top of the existing installation of Mountain Lion.

    I have reinstalled Lion on my ' 07 32 bit Mac Pro, a month ago, and it is resolved many issues.  So, re-install on top existing Cougar Mountain Lion facility was the difficulty of obtaining the Acrobat Pro 11 install to complete and eliminate also some other system bugs I had.

    After using Acrobat Pro 11 on my Mac Pro, for more than a week, I must say that it is a huge improvement on Acrobat 9 Pro.  I like to have the tools and commenting on the tabs above to the right of the window and using the top menu much less.  It scrolls PDF pages and comments two separate activities, which allows the refresh of the screen to be much faster and better.

    Acrobat Pro 11 is a great version!

  • How to remove "install scripts.

    Hi all:

    Under Support Objects == > install Scripts, is possible to remove any "installation script" entry existing?

    I can't find an easy way to do it. Or maybe APEX does not remove the install script after you create the entry?


    Thank you!

    Kevin

    On the page where you see scripts installation, for each entry, there are 2 links. The first is the icon of change, which brings you to the script editor. From there, you can change properties of the Script tab and click on delete. Otherwise, the other link is the name of the script, and this brings you directly to the properties of script tab, where you can delete. either click on remove, then confirm the deletion.

    Van
    Trent

  • Kickstart ESXi 5 question

    Hello

    I am trying to automate the process of installing my ESXi servers, but I encountered a problem that I can't solve.

    I am currently pxe boot the installation media and passing a startup script to configure the basic settings. In the kickstart file I have a % POST section that comes in contact with a Web server to tell me installation is complete. This action then unstages the PXE environment, so it does not work through Setup again.

    But by default, it appears that port 80 is open outgoing and not port 443 in the vmkernel.

    My problem is that I have to do a HTTPS GET (not a HTTP GET) of the % of the ks script message part, but the traffic never leaves the server. At first, I thought it was a matter of ssl because of the preinstallation environment, but I changed the https port 443 to 80 on the Web server and everything works as expected and traffic is sent over https (port 80) as you wish.

    I tried to run esxcli to clear the firewall rules, but I get an error of local connection, so it does not appear that I can

    Does anyone know if it is possible to make a https outbound connection during the installation % POST section?

    My current post section:

    % post - interpreter = python

    Import os, httplib

    Mac = os.popen (\'esxcfg-nics-l | grep vmnic0 | awk \\\'{print $7}\\\'\').read ())

    H1 = httplib. HTTPSConnection ("192.168.3.10")

    H1. Request (\'GET\', \'/rest/server/unstage/\'+mac.replace (\':-',-'--'))

    H1. GetResponse()

    firstboot % - interpreter = python

    Import os, httplib

    Mac = os.popen (\'esxcfg-nics-l | grep vmnic0 | awk \\\'{print $7}\\\'\').read ())

    H1 = httplib. HTTPSConnection ("192.168.3.10")

    H1. Request (\'GET\', \'/rest/server/activate/\'+mac.replace (\':-',-'--'))

    H1. GetResponse()'

    I hope that all this is logic, and thank you guys!

    Try to use localcli (instead of esxcli) to disable the firewall.

  • vSphere Eval question on storage

    Hello

    I have 4 servers to assess vSphere and here's what I have to work with, where I am and my question on storage.

    3 HP DL380 G5 servers with 8 GB of ram each and 4x146GB discs

    1 HP DL380 G6 Server with 12 GB and 3x146GB, 5x300GB readers.

    I installed ESXi4 Server G6 with two data warehouses, Go first, 268, second 1.09 TB.

    I intend to install ESXi4 on the other 3 machines and have vCenter

    The server that is running under VM on two servers.

    Now to my question.

    I'm not a tradional SAN device. I have a lot of space, however, if you add up all the disks on the 4 servers. How you prefer to use

    existing hardware, I have to install a configuration compatible HA, vMotion and DRB.  Again, by using the 4 servers with the

    current hard drives installed.  Can I create a virtual SAN using the disc on 4 servers? I think I understand the delivery of two virtual machines

    vCenter on 2 separate servers running in a reasonable way?

    Thanks for any help. My first attempt trying to configure ESX/Vsphere.

    Kind regards

    Paul

    StorMagic www.stormagic.com has a free virtual SAN for vSphere.

    You can create up to 2 TB per ESX with the free license.

    You should be able to test vSphere (HA, DRS, vMotion)

    However, I don't see that FT is not fully supported.

    Stan

  • vCenter/vSphere installation Questions

    I apologize if this is the wrong community asking these questions in. I thought that the community of vSphere to be the most appropriate, but there is no category generic vSphere. The General category of vCenter Server was appropriate.

    Our company is buying some matΘriel for vSphere 4. The cost to buy the Essentials most of vSphere bundle 4 we have budgeted ($5000) but I'm sure I can convince our Exec team to approve the purchase of vSphere 4 Advanced Acceleration Kit ($17000) once I showed them vMotion Live Migration and fault tolerance. That being said, I'm still new to vmWare and need a little advice products. Here are some questions I have.

    (1) my plan is to have the three physical hosts start their ESX/ESXi installation off our iSCSI SAN to avoid having to have local storage on each server. It presents an acceptable practice or if this is not preferred? Is there any loss of performance when the servers are running? Your advice here would be greatly appreciated.

    (2) I understand that I can choose between ESX and ESXi in my installation. I was under the assumption that ESXi is more than a low-end product (so the free version) however I read on VMware.com ESXi is the product preferred for new installations and ESX is available for legacy add-on products. Is this correct? Should I go with ESXi for three servers?

    (3) where vCenter Server move? It works on one of my three physical servers or need an additional server. I have no experience with vCenter Server, so I have no idea on this one.

    (4) would it be appropriate to install local disks on each server for the paging or swap file?

    (5) I'll buy Veeam Backup & Replication for backup. Does make a difference on the weather, I chose ESX or ESXi?

    Thank you for all your advice.

    You're right - if vcenter is down FT stops - but isn't that a problem is the first defective virtual machine at the same time.

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • cannot addon, can't edit the necessary files; XP and no only installed script

    Have windows XP sp3 and latest firefox, did install no script but cannot install any other addon. Error - Cannot install, not able to edit the necessary files. This allows Java, allowing other addons does not help.
    Unable to create a new profile that the procedures given do not work.
    Allowing all global scripts does not help.

    Thanks for help

    Michal

    Create a new profile as a test to see if your profile is the source of the problems.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but be careful not to copy files corrupted to avoid transporting on the problem.

  • Support assistant install script error

    HP Pavilion DV - 7 1247dx,

    Vista Home premium.

    during the installation of support Wizard I get a script host error

    "library not registered. 8002801 D code.

    Program continues to settle, but not computer

    does not appear at the bottom of the support Assistant main window.

    HP Pavilion dv7-1245dx Notebook PC (PC x 64)
    Vista™ of MS Windows Home Premium 6.0.6002 SP2 Build 6002
    2 logical processors, 2 Lossnay, 2100 Mhz, AMD Turion (TM) X 2 Dual - Core Mobile RM-72
    BIOS F.49, 17/08/2009

    Hello

    Move everything you don't want to lose out on the external hard drive.

    If you use the disks created when first set you up the PC, then all of the programs that you installed after that point in time will be deleted.

    Using a power adapter to power your laptop is necessary while you do this.

    Once you enter the Recovery Manager choose Factory Image recovery and follow the prompts and wait. Once the recovery began not to interrupt or attempt to stop him.

    Best regards

    ERICO

  • Newbie question: installed Eclipse 3.4.0 and BlackBerry 4.5 and 4.6.1 4.7.0, only works in 4.5

    Here's what I did.

    I installed Eclipse 3.4.0 from the site Internet of Eclipse.

    I then installed the Blackberry Plugin for the Eclipse IDE.

    I then installed Companion Pack 4.7.0 4.5 and 4.6.1 in the Plugin Manager in Eclipse.

    I created a HelloWorld application by taking the HelloWorld application from the website development and cut-and-paste the code.  I went from my environment to 4.5.0 Package component and tapped "run", according to the video examples.

    Bingo!  It was working fine.  I had my HelloWorld app race, was able to get the menu, select an item and it showed me my dialog box.

    Now, whenever I go to the 4.6.1, or 4.7.0, component Package the behavior is exactly the same:

    Clean environment.

    Rebuild the application.

    Press "Run" to launch the application.

    The result?

    The Simulator starts, but the application never does.  I get a nice home screen bit and listed in the application directory.  I go to Applications (as directed by the video) and it never shows me a HelloWorld application.

    Same exact behavior in 4.7.0.

    Is there a magic button that I need to hit to make it work?  I looked on the BlackBerry site - for 5 hours - and looked for answers to this question, and I have found no resolution to it.

    Maybe it's just something stupid, but I find it really weird that I can run on 4.5.0, but 4.6.1 and 4.7.0 are completely dead in the water.

    Help!  

    Hmmmm, looks like it appears in downloads and not in Applications.  I tried it and all is well.

    This should probably be corrected in the online documentation to avoid confusion.  It confuses the heck out of me!

  • Calculate the resources-vCAC 6.0 vSphere Agent question

    Hello

    I have a related question Agent vSphere, vsphere Agent connects only shows the error in the picture, because I'm trying to set up a group of Fabrioc no calculation resources whas shown for the account that I use.

    Thank you!

    -vRay

    After reinstall Agent for the 15 th time and wait for about 10 minutes of frustration, it works, I n believe in miracles, but here's the evidence, what I've done:

    Reinstall the name of different Agent than on complete installation

    Recreate the different name endpoint of that on complete installation

    Check all the newspapers of the time

    Place the account that I use for vCAC as the local administrator in vCenter Server

    Reboot identity SSO the vCAC App

    reload the credentials and to recreate endpoint config I mena on vCAC as infrastructure admin.

    any mode of paranoid way.

  • Cannot install Script Bay for CS5 and CS6 - invalid Signature

    I tried to reinstall the extension Script Bay because it wasn't somehow, and he refused to install to invalid signature. I installed this extension repeatedly on the current and old PC before but this is the first time that I have this experience.

    I saw a few solutions for the installation of extensions, but they were for Mac, not windows. And apparently Adobe does not support higher versions of Extension for Windows drivers. Is there a solution to this?

    Bay of script has been updated:

    http://in-tools.com/article/script-Bay/script-Bay-update/

  • vSphere 5 re-install-cannot add hosts

    Hi guys,.

    The short version:

    I installed 2 Physics Dell R710, with installed ESXi 5. Each has 4 Win2008R2 VM on them. Everything works fine. At the time I ran upward a VM specifically for vSphere vCentre server in order to manage these. I've added both ESXi hosts to a data center that I created in the vCenter. Because of the budgets he decided not to buy Essentials Plus a moment while the evaluation has expired I uninstalled the software.

    Fast forward to today and I bought Essentials. I have re-installed the software vCentre on this same machine virtual I've done before. I created a new data center. However, I can't add two existing ESXi hosts. I run the Wizard "Add host", put in the IP of the host, the same username and password I used on these hosts when connecting via customer vSphere th... and wait and wait the time out - not given error. I see in the event log of the host that the user @(l'ip dele de serveur vCenter) has in... but there is nothing after that... so he can see and hit the host OK... but then it expires and does not just add it.

    Has anyone else seen elsewhere or know a solution? Any advice or suggestions are greatly appreciated

    Hello

    When you have uninstalled vCenter right there you should remove the vCenter database, but you do not the same, because of which you there are old entries in the database and you cannot add an existing database to the host.

    If possible you uninstall the vCenter server and delete the database and redo the fresh install by creating the new vCenter database.

  • Install Script Listener on Photoshop CC 2014

    I try to install the Script for Photoshop CC Listener 2014.

    According to the script (http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_scripting _ guide.pdf) guide, page 73:

    1. ScriptListener plugin the is available online at: http://www.Adobe.com/devnet/Photoshop/scripting.html .
    2. To install the ScriptListener:
      1. Select the file ScriptListener.8li then choose change > copy .

    I don't find the file .8li on this page. What Miss me?

    Thank you in advance,

    Under script Photoshop CC, there are two files of archive Script Listener: dmg for Mac, zip for Windows.

    Download the one appropriate for your operating system, double-click to extract and your plugin should be in the Utilities folder.

    Gene

  • by install script usb - copy files

    I'm doing an installation by script of ESXi 4.1 from a USB key.  The actual installation and config is fine.  My problem is with some files I want to copy from the USB to the ESXi server.

    I have many files on the USB key that I want to copy from the USB key on the server, so I can install additional software after ESXi is installed.  I tried to use mcopy, but show so far the closest I came to success is having on the ESXi Server files before the first reboot, but after the reboot, the files have disappeared.   This is the command I am using:

    mcopy - v b-i /dev/disks/mpx.vmhba32:C0:T0:L0:1 \::file1 /PCNS223/file1.copy

    I'm not interested in shooting the files on the network; I need to to get them from the usb.  I hope I'm missing something simple and anyone can point me in the right direction.

    Any suggestions?

    Thank you!

    Rich,

    Copy your files in VMFS so that it retains after the restart and you can install the software from VMFS.also you can copy scratch partition if you have configured the partition scratch to point to VMFS

    OEM.tgz can be used as a starting point to the top of folder in windows as mentioned by DSTRAVERT

    Thank you
    Nithin

Maybe you are looking for