How to add several records of existing virtual machines

Is it possible to add several drives in one shot to a virtual machine?

I know it's possible with the new - vm cmdlet, and if I manually modify the virtual machine, I can add as much as I want.

The cmdlet New-hard drive allows only 1 at a time, I can say.

Any suggestions?

You are right, that the cmdlet New - hard drive allows the addition of 1 HDD at the time.

If you want to add several hard disks, you will need to use the ReconfigVM_Task method.

Tags: VMware

Similar Questions

  • How to add a script to a virtual machine using vmwrae api?

    Hello

    I am trying to add a new disk to an existing VM (Linux).

    To do this.


    Now to use the new drive on a run a series of commands, like:

    -format the drive

    -mount the drive

    -put this information to disk in the file/etc/fstab


    My question is how we can automate this task without actually going inside the virtual machine?

    This is precisely what my advice is intended to accomplish. There are many examples available online to use Invoke-VMScript to automate actions in a Linux VM.

    http://www.Google.com/search?q=invoke-vmscript+examples

    This was done from my Windows using PowerCLI workstation to a virtual machine running SLES:

    PowerCLI C:\> Invoke-VMScript -vm $vm -HostCredential $hc -GuestCredential $gc -ScriptText "uptime"
    
    ScriptOutput
    ---------------------------------------------------------------------------------------------------
     08:32:52 up 88 days,  7:27,  0 users,  load average: 0.00, 0.00, 0.00
    |
    ---------------------------------------------------------------------------------------------------
    
  • 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)

  • How to add contacts to your existing groups or how to manage your groups?

    Anyone know how to add contacts to your existing groups or how you manage your existing groups. How do you even add new groups I can't find a way to do this in the ocntacts.

    Hello

    1. what version of Windows is installed on the computer?

    2 are. what groups you referring?

    3. What mail client do you use?

    If you use Hotmail, you can post your request in the Windows Live Forum.

     

    http://answers.Microsoft.com/en-us/windowslive/Forum/Hotmail

    You can check the link:

    http://Windows.Microsoft.com/en-us/Windows-Live/Mail-import-backup-restore

     

    Please get back to us with the above information so that we can help you accordingly.

  • Add a virtual disk to an existing virtual machine.

    Hello

    Anyone know what would be the best way to create an action to add a new virtual disk (hard) to an existing virtual computer? I have found no existing action/workflow, and I do not know where to start.

    Thank you

    Hey Mikael,.

    There is a "workflow" for this!

    Library / vCenter / Virtual Machine Management / management of devices / add a disk.

    This workflow, you can add a VMDK to a virtual machine.

  • 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 add a tag to a virtual machine?

    What is the best way to be part of an workflow add a label to a virtual machine? The closest I found is System.getModule("com.vmware.library.vc.customattribute").setOrCreateCustomField (), but given that the custom fields do not appear in the web client, I need a way to do the same with the tags in place.

    Unfortunately the vSphere API does not yet provide a way to create (vCenter) tags. The only way is to use the provided of the vCO powershell cmdlets.

  • Workflow to edit an existing virtual machine

    Hi all!

    I just wanted to ask if someone can give me an example of a workflow that can be used to modify an existing virtual machine.

    I guess in order to change the virtual machine, you will need to power off, edit and it turns on again.

    I would like to modify CPU, RAM and maybe add/remove a disc. I looked in the workflow to create VM and I see how the settings are made, but I don't know how to edit on an existing virtual machine.

    Thank you

    Take a look at this post:

    http://communities.vmware.com/docs/DOC-10543 for adding memory to a virtual computer.  The same area http://communities.vmware.com/community/vmtn/mgmt/orchestrator/?view=documents has another workflow for adding cycles CPU.  Cycles adding CPU or memory to new or existing VM are the same call as you add really, but instead, you set how much memory & cpu you want.

    There is a workflow that you can use to add a disk in the library.

    Let us know if you need help with anything that anyone else.

    SIA

  • Cannot add to the inventory if virtual machine running on the other guests - iSCSI and VMFS5

    5.5 ESXi hosts free standalone version

    iSCSI mounts with multiple paths - relatively new unit with more modern hardware

    CHAP not used

    I'm running a few hosts in order to climb the same iSCSI data stores. The iSCSI LUN is visible and editable by all hosts. If Host1 is to map the iSCSI LUN (VMFS5) and a VM is powered, Host2 can add that VM to the inventory. It's possible with NFS iSCSI for a reason any. This is for a specific reason? Only when I turned off the virtual computer can I add it to both hosts. Other that just lock files are placed in the directory, I missed something related to the lock?

    From now on, adding new esxi hosts does not allow me to add existing virtual machine, less than the voltage first. Once again, NFS does, iSCSI, this isn't. Any ideas?

    It is not specific to ISCSI but rather to the use of VMFS. NFS has no awareness VM VMFS is and why it is not possible to do that with iSCSI / VMFS. There is a lock on the disk for each virtual machine of (race), and that's why the second host is not able to add this host to its inventory. With vSphere HA, this lock is released when a failover should occur.

  • cloning of an existing virtual machine

    Hello

    I would like to clone an existing virtual machine. Is this possible with VMware Server 2.0. I want to avoid the hollow will creat a whole new machine virtual process since what I need is already here with the exception of a patch to the version of the JVM.

    Hi, yes you can do it.

    Close the vm to be cloned (cleanly).

    Copy all the files that make up the virtual machine to a new directory in the same or a new data store.

    the web UI, click the host, then select 'Add the virtual machine to inventory' Browse warehouses of data in your vm copied, then select it.

    Start the new virtual machine, when prompted answer that the virtual machine has been copied.

    make changes to the virtual machine (sysprep if you can) change the name of the computer, static ip, license etc. According to os

    Start the original virtual machine

    This should be it.

    Good luck

  • How to get the configuration of the virtual machine, please give me some ideas

    How to get the configuration of the virtual machine, please give me some ideas

    Hello

    Take a look at

    For the General operations of VM

    https://docs.google.com/viewer?a=v&q=cache:F3tEld7LNv0J:communities.vmware.com/servlet/JiveServlet/downloadBody/11301-102-1-10681/GettingStartedGuide.pdf+accessing+virtual+machine+configuration+settings+,+vsphere+sdk&hl=en&gl=uk&pid=bl&srcid=ADGEESgXQlnYzxO10t-E1uHDiz3o1zBBt4ojDZDbzAmHPO3Odcl2HhLlbrSODQjtDPccHMBK7NZ3F_N6xEJqEl29ZD_l-ZUxgSzSirW6qO47dH-bR9E4mfivkf3Ip30jTbBMKQm-7rwR&sig=AHIEtbQaMKQ21DFCex0Wi6NQtHQmEvQvng

    For the settings advanced VM:

    http://blogs.VMware.com/vSphere/2012/03/Acessing-virtual-machine-advanced-settings.html

    Other general settings of the SDK:

    http://vSphere-land.com/vSphere-links/scripting-links-2.html

    Many tx

  • How to check the file for the virtual machine size Esxi shell

    Anyone who can tell me how to check the file for the virtual machine size Esxi Shell. I tried this command-h ls but does not work.

    Have you checked "ls-lh', it will provide information as the attached screenshot." "

  • 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.

  • How to add podcasts to an existing account?

    I already downloaded 4 to 5 podcasts on my account, but I can't understand how I add another. I can repeat the process, but then I should add these 5 previous podcasts.

    I can't understand how it just add to my account.

    Everyone knows this?

    Thank you!

    Do you mean "podcasts" or do you mean "episodes"? A podcast is, indeed, the 'wrapper' for the episodes and has its own page in the iTunes Store, in which episodes show. The Store and iTunes work stream, which contains the information in a specific format. All what you need to do is add an episode to the food and the re - publish: subscribers in iTunes will see the new episode almost immediately and the store will be updated in 1 or 2 days.

    If you want to add a new podcast, with its own distinct episodes of your existing, just go to http://podcastsconnect.apple.com and click on the icon "+" at the top left to add. This will not affect your existing podcast.

    When you have any questions you should post the URL of your feed and iTunes Store page, because without them, we can give very general answers.

  • How to add several presets in a reactive mode design without having to resize the screen every time

    I want to be able to add several screen size presets with the ability to view sensitive design but do not want to resize the screen and add each individually through the predefined custom function.

    Have you seen some messages on the internet (http://g-liu.com/blog/2013/08/firefox-rdm-presets/) who say it can be done, but could not find where the config is required to worm 26.0?

    Hello

    Work now how to do this. You first create an entry called "devtools.responsive.UI.presets" in the configuration file, and then add in the predefined string:

    If the steps are:

    (1) open a new tab in Firefox or window and enter about: config

    (2) (if a warning message appears, click OK.)

    (3) create a new entry devtools.responsive.UI.presets - right click and select 'new', then 'string' - under enter the preference name of the type "devtools.responsive.UI.presets" and then click OK. When the box of the input string appears simply add the following shows

    [{"key": "CGA: 320 x 200", "width": 320, "height": 200}, {"key": "QVGA: 320 x 240", "width": 320, "height": 240}, {"key": "CIF: 352 x 288", "width": 352, "height": 288}, {"key": "SIF: 384 x 288", "width": 384, "height": 288}, {"key": "HVGA: 480 x 320", "width": 480, "height": 320}, {"key": "(NTSC) VGA: 640 x 480", "width": 640, "height": 480}, {"key": "PAL: 768 x 576", "width": 768, "height": 576}, {"key": "WVGA: 800 x 480", "width": 800, "height": 480}, {"key": "SVGA: 800 x 600", "width"}] {: 800, "height": 600}, {"key": "WVGA (NTSC): 854 x 480", "width": 854, "height": 480}, {"key": "PAL: 1024 x 576", "width": 1024, "height": 576}, {"key": "WSVGA", "width": 1024, "height": 600}, {"key": "XGA: 1024 x 768", "width": 1024, "height": 768}, {"key": "1152 x 768", "width": 1152, "height": 768}, {"key": "XGA: 1152 x 864", "width": 1152, "height": 864}, {"key": "WXGA: 1280 x 600", "width": 1280, "height": 600}, {"key": "HD 720: 1280 x 720", "width": 1280, "height": 720}, {"key": "WXGA} {: 1280 x 768 ","width": 1280,"height": 768}, {"key":" WXGA: 1280 x 800 ","width": 1280,"height": 800}, {"key":" SXGA: 1280 x 1024 ","width": 1280,"height": 1024}, {"key":" 980 x 1280 ","width": 980,"height": 1280}, {"key":" Microsoft Surface RT: 320 x 240 ","width": 1366,"height": 768}, {"key":" 1400 x 900 ","width": 1400,"height": 900}, {"key":" 1400 x 960 ","width": 1400,"height": 960}, {"key":" SXGA +: 1400 x 1050 ","width": 1400,"height": 1050}, {"key":" 1400 x 1080 ","width": 1400,"height": 1080}, {"key":"1600 x 900"} {, "width": 1600, "height": 900}, {"key": "UXGA: 1600 x 1200", "width": 1600, "height": 1200}, {"key": "WSXGA +: 1680 x 1050", "width": 1680, "height": 1050}, {"key": "1920 x 900", "width": 1920, "height": 900}, {"key": "HD 1080: 1920 x 1080", "width": 1920, "height": 1080}, {"key": "WUXGA: 1920 x 1200", "width": 1920, "height": 1200}, {"key": "2K: 2048 x 1080", "width": 2048, "height": 1080}, {"key": "QXGA: 2048 x 1536", "width": 2048, "height": 1536}, {"key": "WQHD: 2560 x 1440", "width": 2560, "height": 1440}, {"key" {: "WQXGA: 2560 x 1600", "width": 2560, 'height': 1600}, {'key': "QSXGA: 2560 x 2048", "width": 2560, 'height': 2048 '}, {'key': "2160 p: 3840 x 2160", "width": 3840, 'height': 2160 '}, {'key': "4 k: 4096 x 2160", "width": 4096, 'height': 2160 '}, {'key': "4320 p: 7680 x 4320", "width": 7680, 'height': 4320 "}, {'key':" 8 k: 8192 x 4608 ","width": 8192, 'height': 4608 '}, {'key':" 8640 p: 15360 x 8340 ""} [{, "width": 15360, 'height': 8640}]

    then click OK

    All new presets should now be sensitive design mode.

    Worked for me!

Maybe you are looking for

  • ix4 - 300 data recovery

    Hello I have an ix4-330 with a raid5.problem because I myself stop working.to restarting, the computer gave me a raid5 parity error. Page: manage/diagnosis I appeared the problem and had to fix check and accept. No data warning possible perdiad or ap

  • Satellite Pro L20: Adapter WLan has stopped working and will not allow

    Hello I have a L20 Pro Satalite, which works very well. However, just before Christmas 2006, the adapter wireless (Atheros AR5005G) has stopped working. Windows XP Pro SP2 can see the adapter and network connections shows as being activated, but he s

  • to a more specific class: can't find not strictly digital, only digital

    Im trying to read a property of the control based on some controls that are in a cluster. I want to convert to a more specific class property reference: digital strict, but I find only 'digital' which leaves me with variant data. Any help?

  • Adjustment of curve using Levenberg-Marquardt algorithm

    Hi all Thank you for my request answered in the last post. One thing I like about Labview is its ability to allow complex models to be fitted to experimental data with so much ease. I have been using the L - M unconstrained editing for some time. How

  • HP Envy 5660: yellow triangle in the system tray

    I have a yellow triangle that appears at the bottom right of my screen - in the system tray - on top of the blue question mark HP.   I can't get rid of it.   It's the same thing every time - there are two errors (Windows and iOS) telling me that my p