With the help of gsoap/C++ web SDK problem reconfiguring the Virtual Machine

Hi all, I m using gsoap/C++ with web service sdk to monitor virtual machines.

I m able to enumerate the current list of virtual machines, total number of vm. Now I m trying to reconfigure the virtual machine. My Code snippet is as below.

The virtual machine is running and I m trying to change the ram, I did it using java api and it doesn't butfor c ++ it is in error.

ns1__VirualMachineConfigSpec vmSpec;

ival long 64;

vmSpec - & gt; memoryMB = & ival;

ns1__ReconfigVMRequestType reconfigVMRequestType;

reconfigVMRequestType.spc = & vmSpec;

reconfigVMRequestType._USCOREthis = vmObject - & gt; obj; managed object - virtual machine

NS1_ReconfigVM_USCORETaskResponse reconfigVMResponse;

ns1__ManagedObjectReference * morResult = 0;

If (vim - & gt; __ns1__ReconfigVM_USCORETask (reconfigVMRequestType, & reconfigVMResponse) == SOAP_OK) {}

morResult = reconfigVMResponse.returnval;

} else cost & lt; & lt; "Unable to machine virtual reconfig." & lt; & lt; ENDL;

Now in vSphere Client it show me error like.

The operation is not supported on the object.

And on server esxi in file /var/log/vmware/hostd.log it not show gives following error.

The task was created: haTask-32 - vim.VirtualMachine.reconfigure - 1422

2009-08-26 20:54:17.669 verbose 149A5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Reconfigure: (vim.vm.ConfigSpec) {}

dynamicType = & lt; unset & gt;

changeVersion = & lt; unset & gt;

name = & lt; unset & gt;

version = & lt; unset & gt;

UUID = & lt; unset & gt;

instanceUuid = & lt; unset & gt;

npivWorldWideNameType = & lt; unset & gt;

npivDesiredNodeWwns = & lt; unset & gt;

npivDesiredPortWwns = & lt; unset & gt;

npivTemporaryDisabled = & lt; unset & gt;

npivOnNonRdmDisks = & lt; unset & gt;

npivWorldWideNameOp = & lt; unset & gt;

locationId = & lt; unset & gt;

ID = & lt; unset & gt;

alternateGuestName = & lt; unset & gt;

annotation = & lt; unset & gt;

files = null (vim.vm.FileInfo),

Tools = null (vim.vm.ToolsConfigInfo),

Flags = null (vim.vm.FlagInfo),

consolePreferences = null (vim.vm.ConsolePreferences),

powerOpInfo = null (vim.vm.DefaultPowerOpInfo),

numCPUs = & lt; unset & gt;

memoryMB = 64,

memoryHotAddEnabled = & lt; unset & gt;

cpuHotAddEnabled = & lt; unset & gt;

cpuHotRemoveEnabled = & lt; unset & gt;

cpuAllocation = (vim. NULL in ResourceAllocationInfo),

memoryAllocation = (vim. NULL in ResourceAllocationInfo),

cpuAffinity = null (vim.vm.AffinityInfo),

memoryAffinity = null (vim.vm.AffinityInfo),

networkShaper = null (vim.vm.NetworkShaperInfo),

swapPlacement = & lt; unset & gt;

swapDirectory = & lt; unset & gt;

preserveSwapOnPowerOff = & lt; unset & gt;

bootOptions = null (vim.vm.BootOptions),

vAppConfig = null (vim.vApp.VmConfigSpec),

ftInfo = null (vim.vm.FaultToleranceConfigInfo),

vAppConfigRemoved = & lt; unset & gt;

vAssertsEnabled = & lt; unset & gt;

changeTrackingEnabled = & lt; unset & gt;

}

2009-08-26 20:54:18.122 149A5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' State Transition (VM_STATE_ON - & gt; VM_STATE_RECONFIGURING)

2009-08-26 20:54:18.125 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Memory hot asked.

Load: Existing file loading: /etc/vmware/license.cfg

2009-08-26 20:54:18.139 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Verified hot license

CloseSession called for the session id = 52f7f6aa-3ef8-c52a - 815 a - 75B 421405075

Event 714: Root user is disconnected

ERProviderImpl & lt; BaseT & gt; : _GetChanges: version 32 overflow name aggregation

ERProviderImpl & lt; BaseT & gt; : _GetChanges: aggregate the version 32 overflow triggeredAlarmState

2009-08-26 20:54:18.979 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Current state of the VM management: disabled

2009-08-26 20:54:19.071 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Implementation State of follow-up to the virtual computer for people with reduced mobility.

Ability to root pool has changed to 1104 MHz / 521MB in 1104 MHz / 520MB

2009-08-26 20:54:21.108 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Remove hot memory not supported: newMemory: 64, curMemory: 128

2009-08-26 20:54:21.110 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Batch hot failed during the application of the individual changes.

2009-08-26 20:54:21.113 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Reconfigure is not

2009-08-26 20:54:21.114 703F5B90 warning ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Exception that is thrown when the statement reconfigures: {(vim.vm.ConfigSpec)

dynamicType = & lt; unset & gt;

changeVersion = & lt; unset & gt;

name = & lt; unset & gt;

version = & lt; unset & gt;

UUID = & lt; unset & gt;

instanceUuid = & lt; unset & gt;

npivWorldWideNameType = & lt; unset & gt;

npivDesiredNodeWwns = & lt; unset & gt;

npivDesiredPortWwns = & lt; unset & gt;

npivTemporaryDisabled = & lt; unset & gt;

npivOnNonRdmDisks = & lt; unset & gt;

npivWorldWideNameOp = & lt; unset & gt;

locationId = & lt; unset & gt;

ID = & lt; unset & gt;

alternateGuestName = & lt; unset & gt;

annotation = & lt; unset & gt;

files = null (vim.vm.FileInfo),

Tools = null (vim.vm.ToolsConfigInfo),

Flags = null (vim.vm.FlagInfo),

consolePreferences = null (vim.vm.ConsolePreferences),

powerOpInfo = null (vim.vm.DefaultPowerOpInfo),

numCPUs = & lt; unset & gt;

memoryMB = 64,

memoryHotAddEnabled = & lt; unset & gt;

cpuHotAddEnabled = & lt; unset & gt;

cpuHotRemoveEnabled = & lt; unset & gt;

cpuAllocation = (vim. NULL in ResourceAllocationInfo),

memoryAllocation = (vim. NULL in ResourceAllocationInfo),

cpuAffinity = null (vim.vm.AffinityInfo),

memoryAffinity = null (vim.vm.AffinityInfo),

networkShaper = null (vim.vm.NetworkShaperInfo),

swapPlacement = & lt; unset & gt;

swapDirectory = & lt; unset & gt;

preserveSwapOnPowerOff = & lt; unset & gt;

bootOptions = null (vim.vm.BootOptions),

vAppConfig = null (vim.vApp.VmConfigSpec),

ftInfo = null (vim.vm.FaultToleranceConfigInfo),

vAppConfigRemoved = & lt; unset & gt;

vAssertsEnabled = & lt; unset & gt;

changeTrackingEnabled = & lt; unset & gt;

}

vmodl.fault.NotSupported

2009-08-26 20:54:21.177 703F5B90 info ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' State Transition (VM_STATE_RECONFIGURING - & gt; VM_STATE_ON)

2009-08-26 20:54:21.180 703F5B90 warning ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Authentication data that are not available during activation

Event 715: Reconfigured Win Vista on kudosiesxi118 ha-data center

Change of State received for VM ' 32 "

2009-08-26 20:54:21.598 verbose 703F5B90 ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Time to pick up some config: 415 (MS)

Task completed: error status haTask-32 - vim.VirtualMachine.reconfigure - 1422

Add vm 32 to poweredOnVms list

2009-08-26 20:54:21.694 703F5B90 warning ' vm: / vmfs/volumes/4a8ae0ff-0f4ce1a8 - 47 d 9-000c29570e19/Win Vista / Win Vista.vmx' Reconfigure the worker thread failed

Problem in the virtual machine is in the power on State or I m doing something wrong?

Can any body tell me where I m wrong?

Rather than use a C string, try using the String object.  In my C++ sources generated the WSDL, the expected properties are string objects and references to string objects, not strings C.

Tags: VMware

Similar Questions

  • How the physical machine can communicate with the virtual machines as well as the internet should work on a virtual machine

    Hi team,

    I ask that you forgive for asking a silly question without doing a free search.

    I'm using VMware workstation 6.5. I am able to communicate with both machines by selecting 'only option of home. "

    Is there a way by which the physical machine can communicate with the virtual machines.

    At the same time through the VMS, is it possible to access the Internet from the physical amchine.

    Help, please.

    Concerning

    Sriapti

    When you use a bridged vNIC the customer acts as any other host, so that you can access is by his IP (or name if a DNS configuration exists as you acceding to any other host.) What tools you can use depends on the guest operating system and the software available.

    I assume you mean access deskopt. Then you can use RDP (Windows Terminal services) or VNC (tight/tiny).

    For Linux, you can use this last or all the flavors of SSH. In the case of Linux, I use VNC through SSH tunnel. You can also tunnel X through SSH, so if you have an X server on another host (such as the Hummingbird for Windows), you can open your own office remotely there.

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' answers and answers. Thank you!!

  • help with the virtual machine files

    Today I got the error when I tried to open my virtual machine below.  I have searched the forums and seen the text file/script but does not know to use.

    Can anyone help?

    "/ Users/shade1981/Documents/Virtual Machines.localized/Windows XP/Professional.vmwarevm Windows XP Professional.vmx ' is not a valid virtual machine configuration file

    The attachment "Windows XP Professional.vmdk.zip" was created in the vmware.log file.

    Unzip the attached file and replace it with the original file damaged.

  • CPU Incompatible requirements with the virtual machine to the host.

    Hello

    I've been running ESX 4 with all my hosts upgraded to the last V hardware + tools for about a week now.  I don't know if its been always do this same thing because I'm not sure if I tried to migrate the server before after the upgrade, but I get the following error when trying to validate the hosts:

    Host CPU is Incompatible with the requirements of the CPUID machine 0x1 'ecx' register

    Bits of the host: 0000:0000:0000:1000:0010:0010:0000:0001

    Required: 1000:0000:0000:100 x: xx10:0x1x:xxx0:x 001

    Inconsistency detected for these features:

    It will start on any host without a complaint.  Running Server 2003 x 64 but it isn't the only x 64 server and there is no other problem with any of the other servers.  All hosts are x 64 servers HP compatible all identical, all purchased at the same time.

    Does anyone have an idea why its complaing?

    Thanks for the help

    This is a known issue, see this KB

    http://KB.VMware.com/kb/1011294

  • Replicate the Volumes CSV with the virtual machines in Hyper-V by ASM?

    Hello

    We are migrating to VMware, Hyper-v. VMware reproduced us some across the Equallogic HIT VMFS volumes.

    On Hyper-V, I can replicate VMs in Hyper-V, but they may not have comments ISCSI.

    We want comments ISCSI features, I'm trying to reproduce the CSV volumes.

    Is this supported? Is there a document that describes the configuration and usage?

    Hello

    With Windows 2012 and 2012R2, there is a problem that currently prevents the HIT / replica ME volumes CSV.   Until it's resolved, you need to plan the replication of CSV volumes via the user interface of group.  I think this is mentioned in the HIT / ME v4.7.x documentation.

    Kind regards

  • Compatibility of the player with the virtual machine Workstation

    Hi people,

    Sorry if this is something obvious, I have not found all the details on the form of compatibility with the player...

    I have a virtual workstation 5.x image and I try to run it with a player of 3.1, but keeps the guest OS reboot. one thing that came to my mind, they are not compatible with each other no more.

    is there a way to figure this out?

    Thank you

    ssooll

    Hi Ssooll,

    Welcome to the forum.

    You should find the information in this KB .

    Concerning

    Franck

  • VMware Workstation with ESX3.5u4 - problems with the virtual machines within ESX3.5u4

    Hello world

    I really need a consultation on this one:

    I'm testing ESX3.5.

    As I don't want to buy any material for now I thought it would be a good idea to test ESX3.5 in my computer.

    I used this model to install ESX3.5 in my computer: http://xtravirt.com/node/100

    ESX3.5 works perfektly in workstation.

    The only problem is that if I create a computer virtual within the VM ESX3.5 works very very slow.

    I searched on the VMware Forum for this problem and found that you need Intel VT enabled to speed things up.

    But I think that my "Intel (r) Core (TM) 2 Quad CPU Q9300 @ 2.50 GHz, 2000 MHz" should have Intel VT.

    Does anyone have any ideas why my VMs on esx3.5 within the short slow workstation?

    Thank you all in advance for the help!

    Material used:

    ASUS P5B

    Intel Quad Core Q9300

    3 GB RAM

    Intel PRO/100 S-Serveradapter Ethernet

    According to your log file, the external VM using VT - x.  I'm afraid, it's as fast as your nested VMS are going to get.  While I would qualify as slow or even nested VM performance very slow, I'm not sure I'd go so far as "very very slow."  It is perhaps a matter of perception.

  • VMware networking help - network bridge / to access the virtual machines form other pc

    I have a computer 'server' that had 4 VM launched on it.

    I need to connect to these virtual machines, all of which have their own IP addresses. I can ping the server or the host of a remote computer, but must be able to communicate with the virtual machines in the remote/client computerss.

    Can anyone offer insight?  I tried to set up an automatic bypass at one of the virtual machines

    Any thoughts?

    Sorry, I'm not sure I can follow you. In any case, what you're trying to do is to configure adaper network of the virtual machine as "Bridged" within the parameters of the virtual machine and then change network card settings in as guest OS:

    IP address: 192.168.1.21 (where 21 must be an unused IP address currently)
    Subnet mask: 255.255.255.0
    Def gateway: 192.168.1.1

    Preferred DNS server: 192.168.1.1

    André

  • Unable to start the virtual machine and snapshots are missing from snapshot Manager.

    Hello

    I'm new here in the VMWARE communities and I don't know if I'm posting this survey in the right place. I am currently using VMWARE Workstation 9. The issue I'm having is that I can not start my VM. The error that says:

    vm error.png

    This is an overview of my settings:

    settings.png

    When I try to get a snapshot I can go back, I get this snapshot Manager screen:

    snapshot.png

    I checked the files on the directory of the virtual machine. The snapshot files are still there.

    I tried to solve the problem by editing the configuration of virtual machine file to use another vmdk. I got an error saying something about the parent and the child are not synchronized. Sorry I don't have a screenshot of that. I also tried to make a copy of one of the other VMDK and rename it to match with the name of the missing file. That also made me anywhere I tried looking on the net but I get answers to other vmware ESXi and vSphere products. So I don't know if they apply to my current situation.

    At this point, I'm hoping to recover my machine or at least be able to use snapshots. Please notify.

    I think that the restoration was the best way to solve this problem. I actually checked the different files, but it looks like I missed something. In any case, create snapshots with the virtual machine in a state engine is my personal preference. It is not only to save disk space (since there is no need to preserve the current state of memory), but also provides a consistent state. As for the number of snapshots, you're always on the stop side, and if you are not having issue of performace with small changes you make you should be ok. In case there is a performance problem, you may consider to store the computer virtual on an SSD that will certainly help.

    Since the Center of Documentation of VMware Workstation 10

    To the premises of the virtual machines, you can take more than 100 snapshots for each linear process. For shared virtual computers and remote, you can take a maximum of 31 snapshots for each linear process.

    André

    Post edited by: a.p. corrected fault, "SSD" instead of "SD".

  • SCSI driver is missing in the virtual machine. Driver is missing in the provided website. Instructions on how to install the driver (once you find) are missing.

    I get the text following error encrypted every time that I boot Windows XP in VMWare Fusion, since I've upgraded to version 4.02 a few months ago.  So I upgraded to version 5.02 hoping the error would go, but he didn't.

    When I try to start it, it says "he has at least a virtual SCSI device installed on this virtual Windows XP computer.

    Windows XP does not include the drivers for the card SCSI BusLogic VMware Fusion uses virtual SCSI devices.
    To use these virtual SCSI devices, install the VMware driver in the virtual machine. "Download the driver of"http://vmware.com/info?id=43"."
    Once I have to dismiss the message, everything seems to work properly.  How can I make this message disappear?

    I tried to go to the useless link that is provided (http://vmware.com/info?id=43), but it takes me just for a general download for all VMWare products page.  Then I tried searching for "SCSI" but it does not have the driver, I'm supposedly dedicated research

    After doing a bit of searching around, I finally found a driver called "vmscsi - 1.2.0.4.flp ', I connect to my virtual floppy drive.  Once I did, my virtual machine wouldn't boot (I get the error "NTDLR is missing.)  I then unplugged the virtual floppy drive, and now my virtual machine starts again.  I then re-connected the drive floppy and discovered the following content:
    Disk.Tag
    Txtsetup.OEM
    vmscsi.cat
    vmscsi.inf
    smscsi.sys
    OK... Now what?  No installer?  What the hell am I supposed to do with it?  I tried a double click on all of these files and have no significant results.  When the pilot is supposed to go?  No instructions? -What VMware calls "support"?

    The VMware Tools GUI has been removed because it has now integrated with the Virtual Machine settings, however you can still use the command line.

    C:\Program Files\VMware\VMware Tools>vmwaretoolboxcmd help
    Usage: vmwaretoolboxcmd  [options] [subcommand]
    Type 'vmwaretoolboxcmd help ' for help on a specific command.
    Type 'vmwaretoolboxcmd -v' to see the VMware Tools version.
    Use '-q' option to suppress stdout output.
    Most commands take a subcommand.
    Available commands:
       device
       disk
       script
       stat
       timesync
       upgrade (not available on all operating systems)
    
  • Monitoring VM - how to restart the virtual machine

    Hi all

    Hit a problem in our environment that can not be solved, but wanted to tender hand to people and see if they have found a way to replace.

    Currently have followed vm enabled in our cluster. Thing is watching us to restart the virtual machine VMware tools demonstrated to a status of "not running" - now, the key is to most of the definitions, the system is available in this case, can be crazy, RDP'ed etc, but we here again them restarted as he finally solves the issue we see (for example unable to connect via citrix for the machines in question)

    Duncan in the post below highlights in order to avoid false positives any i/o to storage/network activity will be verified after that heatbeats failed to "double check" there is a problem with the virtual machine

    Favorite VM monitoring (aka VM HA) - yellow bricks

    What I asked is it possible to replace verification of network storage/IO activity and then restart the virtual machine VMware tools on them stops as soon as?

    Many tx for all thoughts

    «.. . is there a way to replace check network activity of storage/IO and then restart the virtual machine of VMware tools on them stops as soon as...? »

    You can always use a supervision-process inside the virtual machine for this tool (perhaps more followed VM). It acts independently and allows much finer control, i.e. it can try first (re) start vm-tools before restarting. Same BSOD /-kernel panic can be dealt with by VM itself. It can actually be even more robust, not dependent on VMware infrastructure.

  • Service mgmt-vmware restart causes the virtual machine downtime

    I'm looking in the configuration of SNMP on our ESX for Solarwinds alert guests, and is the last step I have to restart the service mgmt-vmware.

    I looked around online and have been unable to find confirmation that it will not have all the time with the virtual machines running on those hosts, as production machines.


    We run ESX v4.1.0

    Thanks in advance.

    Hello and welcome to the Forums!

    Restart management agents will have no negative impact on your guests.

  • Converts to the virtual machine non-destructive?

    Hi all

    as securities suggestsi want to convert a working in a machine Server virtual to run in fusion so I can tinker with it, but the original physical server has to continue to operate after the conversion process complete a quantity.

    This will be the case?

    Hello and welcome to the communities.

    Yes, an agent will be installed on the physical system, but otherwise there will be no change for her. You often have to tinker with the virtual machine to clean any old material agents and etc, but the source will be relatively unchanged.

    Good luck!

  • No network on the virtual machine after the use of converter

    I was running a basic vm (WinXP) on an esxi4.1 host running short of disk space.

    So I ran the vCenter Converter Standalone client to copy the original VM on a new - the only thing that I changed the size of the disc thin provisioned avaiable.   The copy/convert seemed to work your.

    I started in the new virtual machine, and it came exactly as the old one (with the largest disk).

    ... but the network on the works of more than vm.

    I can still use vSphere to connect to the esxi server and bring up the VM console (which tells me that the network the server works very well).  When I look at the configuration of the virtual machine, it looks exactly like the old (complete with a network powered).   But on the virtual machine, I can't even ping the router, much less get to the dhcp server.

    I even went so far as to stop the virtual machine, remove the network card, restart the virtual machine (if the network has been removed from the virtual machine), stop the virtual machine again, add a NEW network adapter.

    Still the problem remains.  The virtual machine has a network card - but has no network.

    A few thoughts:

    You use a managed physical switch? If so, check if the MAC address of the VM is seen on one of the uplink ports.

    The network management and the virtual machine using the same IP subnet? You could probably try (if possible) is to create an another vSwitch and attach the XP VM to it to see if there is a problem with the virtual machine and the management on the same vSwitch network.

    André

  • Best way to back up the virtual machine

    What better way to back up a virtual machine with snapshots?

    I have copied the VM directory to a backup folder, but then had problems to restore.  Just right?

    Not sure if it was because of the way the backup that I did.

    Sorry my English!

    It is recommended to create the snapshot with the VM or disable?

    Snapshots can be created with the virtual machine or not. With the virtual machine running, it may take more time to create the snapshot, and you won't 'lose' disk space, due to the State of memory that will be instantaneous.

    When possible, I recommend you take the snapshot with the virtual machine power off.

    André

Maybe you are looking for

  • WebVPN Portal Clientless - Solution of the entrepreneur

    I'll set up a ASA 5520 to a Clientless WebVPN portal.  It is for others that the companies, access outside contractor only. The goal is to ensure that each different entrepreneur will have their own very specific access for what is needed inside. It

  • left and right outer join

    Hi gurus,Left outer join:-------------------Select * from A LEFT OUTER JOIN B on A.col = B.col;by definition, a left outer join brings the rows that match the join condition and lines not corresponding to table A.My question here is "corresponding to

  • Command line to deploy the project database in offline mode

    Y at - it a there command-line tool that will allow me to deploy database objects that I defined in a project database offline in a target database?I want to integrate continues an Oracle DB so I will need to:Compare a target DB with DB objects defin

  • Intel HD Graphics Driver - sp63641

    I just upgraded like m6 daughter of Windows 8 to 8.1 and tune has recommended installation of the driver package sp63641. However, after having successfully downloaded the package several times, the program never installs. What should I do?

  • I have a ransomware virus when I'm working, in addition the infested files are synchronized with CC.

    There is no way to save my files?and it's not bad? my CC is infested, so that your business isn't safe, I think.He reach the CC of another user? I am so worried about it.