How do to activate 'VAPP Options' on an existing virtual machine, and then add the properties that will be passed down through the OVF - ENV. XML



I'm trying to understand vSphere PowerCLI how to activate the "Options of VAPP" on an exsiting VM (in this case a model freshly cloned) then add properties and select cdrom of the FVO data access such as when the virtual machine is running the FVO - env.xml contains the properties in the CD-ROM drive.

If I use the vSphere client and open the virtual machine settings and click on the tab 'Options' and then select "Options of VAPP" and change the setting to "Enabled" and then select 'VAPP-> Advanced Options' and click on the button 'Properties' on the right, I can add the properties and then I can change them vsphere PowerCLI, but given that these actions are not retained if I clone the virtual machine I need a way to put these in place of vSphere PowerCLI without using the vSphere client to do.

Thanks in advance for the help!

Mike

You can use the vSphere API to activate the 'Options of VAPP"on an existing virtual machine, and set properties. For example:

$spec = new-Object VMware.Vim.VirtualMachineConfigSpec

$spec.vAppConfig = new-Object VMware.Vim.VmConfigSpec

$spec.vAppConfig.property = new-Object VMware.Vim.VAppPropertySpec [] (1)

$spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertySpec

$spec.vAppConfig.property [0] .operation = 'Add '.

$spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertyInfo .info

$spec.vAppConfig.property [0].info.key = 0

$spec.vAppConfig.property [0].info.classId = "Property1ClassID".

$spec.vAppConfig.property [0].info.instanceId = "Property1InstanceID".

$spec.vAppConfig.property [0].info.id = "Property_1.

$spec.vAppConfig.property [0].info.category = "Property1Category".

$spec.vAppConfig.property [0].info.label = "property 1.

$spec.vAppConfig.property [0].info.type = "string".

$spec.vAppConfig.property [0].info.userConfigurable = $true

$spec.vAppConfig.property [0].info.defaultValue = "Property1DefaultValue".

$spec.vAppConfig.property [0].info.value = «»

$spec.vAppConfig.property [0].info.description = "Property1Description".

$vm = get-VM-name vm3

$vm. ExtensionData.ReconfigVM_Task ($spec)

Tags: VMware

Similar Questions

  • How do I renew my student account teacher after switching schools and then leave the account expires because of the inability, resulting to check?

    How do I renew my student account teacher after switching schools and then leave the account expires because of the inability, resulting to check?

    You will probably need to get approved again if the post for which you have been approved initially is no longer applicable.

    For more information about the provisions of the student/teacher, you can refer to the following information page:

    http://helpx.Adobe.com/x-productkb/policy-pricing/Education-FAQ.html#main_submit_poe

    Another good resource for information is the student and teacher edition information forum:

    http://forums.Adobe.com/community/download_install_setup/student_and_teacher_edition_infor mation_? view = discussions

  • How can I join an email lists of e-mail addresses and then send the lists to another person?

    I want someone else to be able to send group e-mails, using e-mail lists I created. What is the best way of emailing my mail lists to someone else? I see no mail how lists can be made as an attachment to an e-mail.

    You cannot send mailing lists.

    You can export the content of a mailing list in a file and send the file to someone else. They should use the contact information in the file to import it into their address book, and then create a mailing list.

    The export command is under tools in the address book window. Find out what kind of file, customer email receivers can work with and send them this type of file.

  • How can I activate my Webcam USB between my physical machine and VM

    I am new and with a stupid newbie question. VMware Workstation 11 is able to detect and use my Webcam on my virtual machine of Ubuntu 14.4, also a long time I disconnects the USB camera after that starts the virtual machine and reconnect again to VMware he catches before my (windows 8.1) physical machine fact.

    Is there anyway I could turn off the camera on windows manually to my vm it catches and turn it back to the when I'm done with the virtual machine. I don't have to work on the PC and reconnect everything all the time. Hope it makes sense. Thank you!

    You can use the menu Workstation VM-> removable devices - to connect to the virtual machine or to connect to the host. If you connect the device to the virtual computer, it is disconnected from the host. After completing your work with the virtual machine, you can disconnect from comments and connect it to the host.

  • I'm not sure how to make it work. 2 guests, 2 virtual machines, trying to keep the traffic on the Server Blade.

    I have two blades on the same chassis running ESXi 4.1, each has an Exchange Server on it. Im trying to keep the traffic between the two Exchange boxes contained between the two. I thought that I could put in the same vSwtich, but looks like I need vDS for this. I don't have this license level.

    Now, I found myself with two separate vSwitches with the same label. network, it shows them on the same vSwitch so they don't transmit traffic. because they are separate switches... my vSphere networking missing a bit... need to study more.

    Since you have virtual machines on different blades that the traffic between the two will have to cross a physical network card.   If you need to segment this traffic, you can configure a VLAN in your network, add a new group of port on each host to ESXi virtual machine and then set up a NIC in the virtual machines to use this group of VIRTUAL LAN port.

    Though the virtual machines on the same host (always) you can configure a single vSwitch.   In this case the traffic between virtual machines would not hit the physical network and you wouldn't need even a physical NETWORK adapter, attached to the vSwitch.

    Dave
    VMware communities user moderator

    ESXi Essentials free training / eBook offer

    Now available - VMware ESXi: planning, implementation, and security

    Also available - vSphere Quick Start Guide

  • Hello. I bought Lightroom, paid license 1 year view, did not have serial. E number and then past the 30 day trial and may not use the product or work more hard. I paid has been deducted from my credit card. How I'm going to work now?

    Hello. I bought Lightroom, paid license 1 year view, did not have serial. And number and then past the 30 day trial and may not use the product or work more hard. I paid has been deducted from my credit card. How I'm going to work now?

    Hi Sergior96769872,

    I saw your Adobe ID (email address), you used to post on the forums, and I see an active subscription on it.

    Please see Help below links: { make sure you use the same Adobe ID (email address) that you used to purchase the subscription }

    Connect and disconnect activate Cloud Creative applications

    Adobe Creative Cloud apps back in test mode after 2015 set CC to update

    * NOTE: Make sure that your firewall of your computer or security software firewall does not block Adobe, if you are not sure of it can just disable the firewall for a while and then log off and log on creative application of cloud and check.

    If it still gives you an error of the trial, then please refer to the troubleshooting listed below:

    If you are using MAC:

    1-force Quit the sub process in the same sequence as shown below from Activity Monitor: see, use the monitor activity on your Mac - Apple Support

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • Broker CIB Adobe
    • After that, everything that said adobe on it do a force quit for her

    2 - right click on the Finder icon, then select the "Go - To" folder. You will get a text box, type in the following command and then press the 'return '. ("Not to be missed ~ symbol")

    ~/Library (it will open the folder of the user's library.)

    3. browse to the Application Support > Adobe > trash OOBE folder and folder AAM Updater

    4 - CUT any installed security software with firewall system.

    5 - go to: Apple icon > system preferences > Security & Privacy > General > "allow applications downloaded on" change this anywhere (to make these changes click the padlock in the corner at the bottom left of this window and enter your computer password)

    These changes are temporary you can restore these changes back to normal once your creative cloud app is running *.

    6 - restart the cloud creative app and connect


    If you use the WINDOW:

    1 complete the process / Task Manager tasks in the same order, as mentioned below the Manager tasks. See, Open the Task Manager

    • Creative cloud
    • Basic timing & sync to basic support
    • CC library & process CCX
    • Adobe Common Desktop
    • Adobe update daemon
    • Broker CIB Adobe
    • After that, everything that said adobe on it do a force quit for her

    2 - C:\Users\\AppData\Local\Adobe\ MAA UPDATER and two OOBE (App data & Program Data is hidden folder please see, Show files and folders hidden in Windows 7, 8.x, 10, or Vista)

    3 - CUT any security software installed with firewall system, also if your having any browser Add On installed for blocking advertising that turn off too.

    These changes are temporary you can restore these changes back to normal once your creative cloud app is running *.

    4 - raise the cloud creative app and connect

    Let us know if that helps.

  • How a user can request more resources to an administrator of an existing virtual machine

    Hi all

    How a user can request more resources for one of its existing virtual machines. What kind of policy, I need installation and how should I associate it. so that when a user request, for example, more than memory RAM request is sent to the administrator so that it can approve or reject?

    And another question D oesanyone know why when I go on Articles-> the Machine and click on any of my items and then click on the "Action" menu, only two options are displayed to 'connect to RDP to aid' and 'connect using VMRC' as shown in the figure attached.  What can I do to see also "destroy" them "expires" "power off / on" "edit" options.

    Thank you very much

    Screen Shot 2014-11-05 at 17.58.40.png

    My problem was that these options do not appear under the tab 'Elements & approvals '.

    The solution to my problem is under this link http://www.virtualizationteam.com/cloud/vcac-6-missing-vm-actions.html

    Thank so much

  • How can I make a copy/clone of an existing virtual machine?

    I have VM Fusion 2.0.2 running on my MacBook.  I have several virtual machines running, and I would like to copy them and use it as a starting point for a new virtual machine.  I know how to take a control point, but what I want to do is to create a single independent computer separate from an existing machine.  is this possible?

    I have VM workstation 6 running on a PC and I know I can do it by cloning the virtual machine, I just want to make something similar.

    Licensing issues aside...

    With Virtual Machine to stop target, not suspended...

    CTRL-click on the entry of the Virtual Machine in the Virtual Library Target Machine and select Show in Finder and closing of the merger.

    CTRL-click on the target Virtual Machine in the Finder package and select duplicate and it will create a copy of the virtual computer target package in the naming convention of "copy" and you can rename the Package by selecting and pressing ENTER.

    Open Fusion and drag and drop the Virtual Machine copied/renamed on the Virtual Machine library package to how you can change the display name of the Virtual Machine library.

    The first time you start the virtual machine copied/renamed be sure to select "I copied it".

    Note: If you are using Windows then you will need to run NewSid to change the name of the computers and the security identifier.  Also if Windows and not a VLK version, you need to activate Windows again.

  • on the Iphone 7. How to listen to music, if we have a normal headset and charge at the same time?

    How to listen to music, if we have a normal headset and charge at the same time?

    < re-titled by host >

    It sopposed must be a wireless charging dock to be launched shortly if the dock does not so it is a disappointment

  • How can I get the installer for my application check the operating system type and then install the correct driver type?

    I have a request that I wrote and have been use and distribute for awhile. The installer I created for this application is an additional installer to install a driver for the USB connection. The USB connection is actually a virtual COM Port. The problem is that the people who drafted modified driver setup the installation program itself. They used to have an installer that would check for 32-bit or 64-bit OS and then install the appropriate driver.

    Now, they have two distinct installation programs: one for the other for 32-bit and 64-bit. They let the user know their OS and install the appropriate driver. I'd rather not have to rely on my users to do. From what I've seen the creater Installer provides that an executable to be run after the application installs.

    Is it possible to have the installer of the application, check the type of OS and then run the correct executable file after installing my application? I think that I could write an Installer 'wrapper' that checks the type of operating system then executes the correct Installer. But I expect a better solution.

    Thank you
    Joe

    So, I make it work!

    The trick is to find a way to determine what type of OS you are using. The method I used was, indeed, read the environment variable. A buddy of mine sent me this link:

    http://StackOverflow.com/questions/2401756/how-to-find-if-the-machine-is-32bit-or-64bit One of the phrases he bibliography the Processor_Architecture environment variable.

    It seemed like a reasonable idea. So I started to research how read LV it environment variables turns out, you do it by reading a registry key. There is an example of LV on how to read a registry key. But I did not know where they are in the registry. So, I searched the Processor_Architecture registry. I found it in HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment.

    According to the article in the link, this value will already be x 86 for a 32 bit OS, or something with 64 inside. I just check the response for x 86 string. If it is, I just run the x 86 version of the driver Installer. Otherwise, I run the x 64 version.

    It turned out to be as simple as that.

    I hope this helps someone.

    Joe

  • How can I find out which updates installs successfully on stop and then install?

    My (6) updates are not installed when I shut down my computer. This has happened for several weeks. I do not force stop or unplug it. I can't understand who (s) update by installing does not correctly. How can I find out which updates won't install correctly and then install them?

    View update history.

    For Windows Vista:
    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    For Windows 7:
    http://Windows.Microsoft.com/en-us/Windows7/see-which-Windows-updates-are-installed

    For Windows Vista:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    For Windows 7:

    http://Windows.Microsoft.com/en-us/Windows7/troubleshoot-problems-with-installing-updates

    TaurArian [MVP] 2005-2011 - Update Services

  • I uninstalled the touchsmart from hp on vista and then tried the system restore, dad will kill me, how can I get the touch screen to work again?

    I uninstalled the touchsmart from hp on vista and then tried the system restore, dad will kill me, how can I get the touch screen to work again?

    Hello

    You have a specific question for HP, it may be better if you ask in the Forums of HP's Support.

    http://h30434.www3.HP.com/

    See you soon.

  • How do I know what type of prossesor my laptop is and what is the speed of the processor?

    How do I know what type of prossesor my laptop is and what is the speed of the processor?

    On the start menu, click computer , and then click System Properties.

  • How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?

    * Original title: startup

    How can I find out what programs I should have started and what are the programs I can start myself to my computer to run correctly when starting?

    Hello

    I understand you want to learn about programs, you should start your Windows startup. I will certainly help you to question.

    When you start Windows by using a normal startup startup, several applications and services automatically, and then run in the background. These programs include the base system, antivirus software, utility applications processes system and other software that was previously installed. These applications and services may cause interference when you install or run a program.

    The system configuration is a tool that can help identify problems that might prevent Windows from starting correctly. You can start Windows with common services and startup programs turned off and then reactivate them, one at a time.

    I suggest you to refer to the links below and check if this is useful:

    Using the Configuration System (msconfig)

    Perform a clean boot to determine if background programs interfere with your game or program

    Hope this information helps.

    Please get back to us with an update on the issue, we will be happy to help you.

  • In Windows XP, I could choose a file (or files), then go to Edit, and then invert the selection. How do I do that in Windows 7?

    Original title: invert the selection

    In Windows XP, I could choose a file (or files), then go to Edit, and then invert the selection.  How do I do that in Windows 7?

    I think Alt-E-I is also the shortcut for this feature.

Maybe you are looking for

  • Favorites bar is missing

    Have always had a toolbar at the top of the screen under the url with my most used sites box. He recently disappeared and now I can only access it via the menu drop-down

  • you attempt to add as an attachment to an e-mail message block Thunderbird, why

    I, ve been using Thunderbird with success on my HP Pavilion p6060a (Vista) including attaching documents (pdf or Word) for outgoing e-mail via the notice that appears when the words "join" or "attached" are inserted at the end of the project email. H

  • I'm money downoad more - I get "autorun.inf is missing or damaged.

    money for the home or business

  • Water spilled

    A few hours ago I unplugged spilled some water on my desktop computer. He fell, and some of them got on the device on my computer. I charge my iPod when it is loaded, so the flap thing that opens has been exposed to water. I quickly removed all the w

  • Replace windows 7 with XP on a Sony Vaio

    Have 2 PC Sony Vaio.  One with another XP with Windows 7. You want to load XP on more recent (June 2011) computer instead of windows 7. Cannot go back to dealer to the United Kingdom where we bought it because we are long term on a sailboat to the Pa