create a virtual machine using createVM_Task

Hello

I extracted the configuration information of the VM (VirtualMachineConfigInfo []) and the use of I want to create a virtual machine (essentially wants to fill [VirtualMachineConfigSpec]).

For the property '[of] deviceChange.device"in VirtualMachineConfigSpec, can I directly copy the information from the device of ' harware.device [of] ' VirtualMachineConfigInfo property. Will this work?

I have two more questions:

1 cant explain peripheral information by default (like PS2Controller/SIO controller, etc.) in VirtualMachineConfigSpec when calling CreateVM_Task()?

2. is it compulsory for negative values(-ve) values for controller/key relationships?

Thank you

-Rambeau

> For the property '[of] deviceChange.device"in VirtualMachineConfigSpec, can I directly copy the information from the device of ' harware.device [of] ' VirtualMachineConfigInfo property. Will this work?

Lol it can be copied directly to "deviceChange.device" in VirtualMachineConfigSpec. Also, there could be other problems as well, like the support information will be common to both machines. So, at a time, you will be able to use only 1 VM. It will be not as trivial this may seem.

> 1. Cant explain peripheral information by default (like PS2Controller/SIO controller, etc.) in VirtualMachineConfigSpec when calling CreateVM_Task()?

Yes, you can specify default devices information (like PS2Controller/SIO controller, etc.) in VirtualMachineConfigSpec. The 'deviceChange.device' is a data object "VirtualDevice. This data object is extended by the class 'VirtualController '. It's even wider by the following classes:

'VirtualIDEController', 'VirtualPCIController', 'VirtualPS2Controller', 'VirtualSCSIController', 'VirtualSIOController', 'VirtualUSBController '.

You can implement the foregoing classes, assign it to the 'deviceChange.device' of VirtualMachineConfigSpec property and pass it to the CreateVM_Task.

> 2. Is it mandatory to get negative values(-ve) values for controller/key relationships?

It is not mandatory to give negative values for the controller and the key. By assigning a negative value, the server assigns self-produced nonnegative unique key for the device. This excludes the possibility to assign a duplicate key, which can cause an error.



Hope that answers your questions.

Tags: VMware

Similar Questions

  • Create a virtual machine using the ubuntu (host of W7) partition

    I am running Windows 7 and 8 of VMware Workstation.

    The disc is actually a raid-0. There are 3 partitions: (Dual-boot)

    -Ubuntu (64-bit)

    -System reserved Windows

    -Windows (64-bit)

    I am trying to create a virtual machine under W7 using the Ubuntu partition.

    I tried 2 things for step 'select a physical drive:

    -Use individual partitions. The problem is at the end, when you click Finish. I get the error: "one of the provided parameters is not valid."

    -Disc use whole. The virtual machine is created, but when I turned on, I get the error:

    "Could not open the disk ' C:\. [..] \Ubuntu 64 - bit.vmdk' or one of the snapshot disks it depends on.

    Reason: the physical disk is already in use. »

    Thank you in advance for answering,

    Kind regards.

    In my tests I couldn't use a host physical diskwith a Windows 7 without setting the disc 'offline '.
    But then you can set the diskette from Windows Startup 'offline '.

    Using Linux or 2003, you don't have this problem.

  • Create a virtual machine using an existing backup [EXSi 5.0.0]

    Hello

    I've looked everywhere to find a thread that explains me to reach higher. Our ESXi is currently a backup copy using ghettoVCB and store it on an external NAS. I know that I can simply restore a backup virtual computer by using the same script, because it supports.

    But what I want to achieve is to create a separate entrance to the virtual machine by using an existing backup. I'm pretty there is a way, but I now know how to because I'm fairly new to ESXi and learn things slowly.

    All advise you will be highly appreciated and thank you in advance.

    Hello

    I finally managed to do that. I should tried before posting this discussion, but somehow he's ready now. Back to ESXi users who are finding similar questions or have a confusion on how to achieve this, you can see below the process and this;

    1. Before you copy, make sure that you have appropriate files related to the virtual machine (there should be a .vmx, hard & sometimes flat hard-000)
    2. Copy the folder to the location of data store where is your VM (generally, it will be under/vmfs/volumes/yourdatastore) using ssh and WinSCP (a tool to connect in ftp/sftp/scp).
    3. Once copied into the data store, go to the data store by visiting configuration > store > select the data store & access your virtual machine directory, then simply add the .vmx file to the inventory by clicking on the right (Note: do this when you are connected to the ESXi using vCenter IP which is the recommended way to do).

    I hope this helps!

  • I installed windows 7 on a mac with boot camp and then used parallels to create a virtual machine to run windows inside Mac os10.6. Now he says I need to activate windows again, but he said I need a new activation key. Any ideas would be appreciated

    I installed windows 7 on a mac with boot camp and then used parallels to create a virtual machine to run windows inside Mac os10.6.  Now he says I need to activate windows again, but he said I need a new activation key.  Any ideas would be appreciated

    Yes, you must purchase a full license for the second installation of Windows 7 product key.  1 activation allows only one Windows 7 product key.  Apparently, you now have a second facility that requires a second product key. Carey Frisch

  • Syntax to create a new virtual machine using vCLI

    I use few of ESX 3.5 servers and a server vCenter 2.5 in my lab. I installed vCLI in vCenter server. I would like to know the command to create a new virtual machine through the vCLI. Use of the below details to provide the syntax / command.

    • Name of VM - windows2003
    • CPU - 2
    • Memory - 2096 MB
    • Name of ESX - esxserver1
    • Storage - disk 30 GB C and 40 GB D drive (these two must be placed in a storage centralized. i.e., data store name is - "filer1.lun123"

    Expecting more details.

    Thank you

    Ganesh

    VCLI orders are mainly used for configurations of the host, although as part of the installation of vCLI, you get also vSphere SDK for utilities Perl - http://www.vmware.com/support/developer/viperltoolkit/viperl41/doc/vsperl_util_index.html that provide additional canned scripts, which allows you to create a single set of virtual machines using the vmcreate.pl script. There is an example on how to use a script

  • Failed to create virtual machine using VMWare Workstation 11 (test)

    Hello people,

    I installed VMWare Workstation on my machine Windows 10 and trying to create multiple virtual machines to test the object. I have done this before on the Windows 7 computer and did not face any problems, but this time, as soon as I gave the location of the file to deploy an operating system it comes up with some fatal errors as error BLK_CACHE IOERR if I have enough space on the HARD drive and everything is not going further. So, my question is if my computer has compatible with Windows 10 problems or there is something else that would cause this problem. Any help or comments would be appreciated on this topic.

    Thank you!.

    Thanks for your answer, Noel

    I was going through discussions in the community with similar and found subjects that VMWare had released 12 pro workstation that supports Windows 10 entirely. I personally installed it on my physical machine and it works. Here is the link for the release of Workstation 12 notes.

    VMware Workstation 12 Pro Release Notes

  • API to create a Virtual Machine without using a model

    I see the GUI documentation how to create a virtual machine without a model, but I can't find the actions of the API how to build the virtual machine based on custom settings (CPU, memory, OS, etc.), there are a only of the shares how instantiate OVF or vAppTemplate. Could you please tell is possible to generate/create the VM without model or OVF by API?

    I see. Thanks for the background.

    Based on my notes there is no such API. Other applications were similar to this one and the solution suggested in this case is to programmatically create an OVF (describing the configuration of the VM to instantiate) and import it into the vDC. The end result is the same (i.e. an empty VM configured by entries) the difference is how it gets instantiate (created from zero Vs described in the OVF and imported).

  • How to create a virtual machine on a stand-alone host?

    Hello

    as you know others my son, I created a workflow to create several identical virtual machines on a cluster.

    Since we do not only have clustered hosts, but also some autonomous machines, I need to modify the workflow to be able to create virtual machines on these hosts.

    The main stage of the workflow is obviously one that creates virtual machines.

    It is derived from one of the supplied workflow within the Orchestrator library, but in the end, there is not much difference.

    The original workflow uses this method to create a virtual machine:

    task = vmFolder.createVM_Task( configSpec, vmResourcePool, vmHost );
    

    I've omitted vmHost in my workflow, because I did not want the user to select the host in the Cluster.

    So my execution of the method looks like this:

    task = vmFolder.createVM_Task( configSpec, vmCluster.resourcePool);
    

    Now, I tried to get this method to create a virtual computer on a stand-alone host, but everything I tried, he failed.

    Does anyone have a solution or a trick, what I might try to make this work?

    Thank you very much

    Andreas

    For the root folder, try this:

    var parent = vmHost.parent;
    While (!) () parent instanceof VcDatacenter)) {}
    parent = parent.parent;
    }
    var vmFolder = parent.vmFolder;

  • Virtual PC - create new virtual machine snap into button appears not

    I installed virtual PC and having the image in XP mode works on Win 7 64 bit on a Dell Optiplex 990 i5 processor.  However when I choose the Manager of Windows Virtual PC and the Windows Explorer window opens, I see not the option create a virtual machine, just 'burn' where it should be.

    I tried to activate windows 7 aero UI think the classic look of windows blocked somehow but that has no effect.

    I tried to reinstall the configuration of virtual machine directly on the site but it gives me the message that there is not suitable for use.  I tried uninstalled and re - install, but get the same when the Explorer window is missing the snap.

    How can I get the snap in option seem to create a virtual drive?  The window appears with the title of Virtual Machines.

    Once again, the image in XP mode work properly and starts and stops without any problem.

    Hi NSmith,

    It is better suited for the IT Pro TechNet public. Please post your question in theTechNet Support Forum. You can follow the link to your question:
    http://social.technet.Microsoft.com/forums/en/w7itprovirt/threads

    I hope it helps. If you have problems in the future, please let us know. We will be happy to help you.

  • create the virtual machine from windows NT 4 server with adaptec raid 5

    I have an old Dell (1998) server running windows NT 4.0 sp6a.  He had a raid 5 configuration using the controller raid adaptec SCSI 2940.  2 discs failed who broke the raid set.  I had a disk recovery company to recover the data and they have scratched off readers and gave me a SATA with all volumes.  I found a procedure to create a virtual hard disk (.vhd) and then converted to a hard and used to create a virtual machine in VMware workstation 7.  When I turn on the virtual machine, it begins the process of starting windows, shows the boot menu, select normal or mode VGA, goes through the process of NTdetect, display processor and memory but then gives a BSOD with the message inaccessible_boot_device.

    I changed the hard to affect the buslogic ddb.adaptertype, but it gave me the same problem.

    is there a different driver that I need for an adaptec raid controller or if the typical SCSI drivers should work?  If the typical SCSI drivers should work, so my problem might be in my Boot.ini because it shows that he is supposed to start on the partition (4) and this sata drive may not have scores exactly as they were on the raid configuration.  I tried to mount the volumes not in read-only mode, but the partition that I need to change the boot.ini file is partition (2) what mapping VMware won't let me open mode not readonly.  whenever I have, select it and it opens the partition (1) mode not readonly.

    I know this sounds complicated then I hope I described with precision.

    Hello
    I live in Germany, but my internal clock seems to be adapted to the New York Times.
    Very useful, because most repairs or recovery to the VMware is done the evening or at night.

  • Create a virtual machine with Maximum carrots ESXi has?

    I someone told me that VMware does not support to create a virtual machine with more than 50% of the available cores has your host. For example, I have an ESXi host with 2 CPU each with 8 cores. I have therefore 16 cores on my host. I wouldn't be able to create a virtual machine with 8 cores to be supported. Even if I am able to create a virtual machine with 16 cores? Is this person crazy me

    This is completely untrue, there is no such limitation. If your license allows, you can use vCPUs as much as your physical host has available threads and as the VM virtual hardware version allows.

  • Create the virtual machine with the ISO mounted CDROM

    Community of hell!

    Working on the vmcreate.pl script to add the creation of CD-ROM with iso data store, I got stuck on the error

    ' Invalid device configuration: ' VirtualSCSIControllerOption.numSCSICdroms '.

    I'm sure I'm missing something obvious, or this option but may not understand how to deliver this.

    I created a cdrom as follows (below test I create any CDROM, no iso file to reduce the number of layers):

    my $ BPPRR m_backing_info = VirtualCdromRemotePassthroughBackingInfo->new)

    deviceName = > ' '.

    exclusive = > 0,

    );

    my $description = description->new(label = > 'CDROM', summary = > 'cdddrom');

    my $connectable = VirtualDeviceConnectInfo->new(allowGuestControl = > 1,)

    connected = > 0,

    startConnected = > 1,

    ( State = > inmates ' / ' );

    my $ BPPRR m = VirtualCdrom->new(backup = > $BPPRRm_backing_info,

    connectable = > $connectable,

    controllerKey = > 0,

    deviceInfo = > $description,

    key => 1,

    ( unitNumber = > 1 );

    VirtualDeviceConfigSpec->new(device = > $BPPRRm,

    operation = > VirtualDeviceConfigSpecOperation->new()'add'));

    Did anyone have working example to create the virtual machine with CDRom?

    Andrey

    If someone will find this useful I followed this route Re: vmreconfig.pl add the device CD/DVD fails if the virtual machine created with vmcreate.pl

    and also I found good examples of what I need to in VMUtil.pm in cmd vmsphere libraries.

    Andrey

  • vCO workflow: create a virtual machine from a model and then ask the user about the CPU, memory size...

    Hi guys,.

    I am trying to create a workflow with vCO that can do the job for me:

    -Create a virtual machine (or maybe a several virtual machines) from a model (the model is in vCenter, of course)

    -L' user who is running the workflow has the thr right to say what he wants for the CPU, the memorysize, the disksize

    Any help?

    I found some workflows in the library can seem to do something similar to what I want, but since I'm a beginner I'd rather have your advice

    Hello there and welcome to vCenter Orchestrator

    Take a look at this series of tutorials to get an idea of how start:

    Create a vCO simple self-service VM Provisioning Portal - part 1

    Create a vCO simple self-service VM Provisioning Portal - part 2

    Create a Simple Self Service VM Provisioning Portal vCO - part 3

    The general approach to take would be to determine which of the clone (or clone and customize) workflows adapts to your nearest need (see your customer vCO: workflows\Library\vCenter\Virtual Machine management\Clone\)

    Then, create a NEW WORKFLOW that calls this one... after that your clone operation is complete, keep the computer turned off virtual and add feeds of extra work from the library to your new workflow that do things like change the amount of Ram, adds disks, change CPU, etc...

    Be sure to watch the videos on http://www.vmwarelearning.com/orchestrator to get a basic understanding of the use of vCO.

  • Deployment of virtual machine using VMware Orchestrator

    Hello

    Can you help me pls with deployment of virtual machine using VMware Orchestration?

    Thank you

    Rekha

    Hello, Rekha, welcome to vCO take a look at my blog to get an idea of how use vCO. Christophe & I (and a few guests) have posted some tutorials around doing things with Orchestrator. Particular interest to the subject of this thread would probably be this series into three parts:

    Create a vCO simple self-service VM Provisioning Portal - part 1

    Create a vCO simple self-service VM Provisioning Portal - part 2

    Create a Simple Self Service VM Provisioning Portal vCO - part 3

  • Licenses to create a virtual machine is second with more than 8 cores?

    So, we have a machine with 4 physical Sockets with 16 cores on each. We bought 4 licenses of vmware's standard. Now, we saw early on that the number max of hearts that we assign to a virtual machine was 32, which isn't really a big problem, 32 is a lot for our needs. So we have a 32 core virtual machine running and some other smaller, but now when I try to create another virtual machine with more than 8 cores it tells me that I have insufficient licenses.

    Can anyone provide more information on that? If I can create a virtual machine with more than 8 cores, why I can't create a new one?

    He said authorized to 4 physical processors, so it's ok, it's using your Standard licenses.

    During the 60-day trial, you could create more large virtual machines, because the 60 days run with Enterprise Plus features. Now that you are using the standard license, you can create only 8 vCPU VMs.

    Solution:

    You should spend 5.5 ESXi. Your license will also work for 5.5 and you'll be able to create virtual machines with up to 64 vCPUs.

    Concerning

Maybe you are looking for

  • TLS error died me... y at - it a solution?

    using win7 64 bit firefox38.0.1 when you try to go to some addresses get TLS error, yes was on this site before - cleared cache, specific cookies not joy. get this: problem only in 'work' user logon... doesn't seem to be a problem in administrator mo

  • .csv in an array of strings

    Hello This is probably a simple problem, but I have a CSV with string values in a column with numbers in another.  For example: Volume 6 Diameter, 5 But much more of a file. I would like to be able to read the first column and reach a just the string

  • message from __Error 646

    I get the error message 646 when I try to download KB976321 and KB981726 Message indicates an unknown error.

  • create report of counterfeit microdoft wrongly... How to stop?

    Send to wrong report of counterfeiting to microsoft... How to stop the question?

  • BB messenger now removed from blackBerry Smartphones, emails do not work.

    These two are connected?  I didn't think they were.  I have just the additional chat feature, so I deleted messenger, but now I'm not receiveing emails (and I don't think that sending works either) my phone. It was a delayed reaction, however.  I del