I can't create a new virtual machine, for the error "invalid state" of vmware

Hi, I have an esx server with some production virtual machines vmware;

Yestarday I made a new VM, suse linux, froma cdrom; but the file system broke down, it has been altered, I don't know why,

and I had to cancel the machine using the "remove disc";

After that I could read "a system general error occurred" and when I click on create a new virtual machine (ctrl + n), I can't because the answer is "invalid state".

When I click on each virtual machine in 'events', I do not see the logs, I see this error "system general error occurred.

can someone help me? , should I restart the service mgmt-vmware?  (init.d) on the host server?

Thanks in advance, best regards

Toscano Max

If you use Virtual Center, rebbot VC server and try again. If this does not work, you may have to restart the ESX host.

Tags: VMware

Similar Questions

  • create a new virtual machine with the default settings?

    I was wondering if there was a way to create a new virtual machine with the default settings.

    For example, let's say I want all new Lion VM to have 2 CPU cores. Is there a way to set this automatically? There are other parameters I want a new machine to inherit automatically, I was wondering if there is an automatic way to do this, or is it a feature request...

    Thanks in advance

    lerker wrote:

    Just for my clarification, when you say a vm model, basically I would execute a finder copy then drag back to the VM library, right?

    Yes.

    On the orders of spcirpting, it would be unix commands or are there specific vmware controls that make your job easier (in Applications/VMware\ Fusion/content or elsewhere)...

    IIRC, VMware Fusion 3 and later versions has an AppleScript dictionary, but it is not yet officially supported and may not be able to do what you want so, basically, only Unix Shell scripts, that's what I was referring to.  For an example, see my script attached to the following response: Re: vmware - script of the creation of the vm and the operating system installation process

  • OsCustomizationSpec and OSCustomizationNicMapping they are a good way to set up the new virtual machine for the model

    I build a script to generate auto magicly VM when I have import information from a csv file. I have the latest PowerCli, I am trying to build servers r2 Sever 2012 model.  I tried several OsCustomizationSpec (OCS) of in the hope of getting something to work, but I had no luck so far.  In VCenter, it shows that it applies the OCS, but is not apear to have an impact on the server.  I have disabled UAC since the last time that I tried it so maybe that will make a difference.  I am under ESXi 5.1 update 2, just to try to give all the necessary information.  Ideally, I'd like Sysprep, the value of intellectual property, change the computer name and join the server to the domain.  That's all! lol I have the book "VMware vSphere PowerCLI Reffernece, automating vSphere Administration, I walked through step by step.  The new version of PowerCli seems not have the x 86 limitation as earlier versions of PowerCli.  I tried so many different things, I'm not sure what to put in place as a starting point.

    # Save the object credentials with permission to join the domain.
    $DomainCredentials = get-Credential "domain\testername."
    # Clone our Spec by adding the domain information.
    $Spec = get-OSCustomizationSpec "Windows Server 2012 R2"
    $Spec += get-OSCustomizationNicMapping - Spec $Spec
    #$Spec | Select *.

    # Get our VM
    # Change network settings
    Get - VM BigServername | Get-NetworkAdapter | Together-NetworkAdapter - NetworkName nic - 172.16.25 - VLAN225 - connected: $true '
    -Confirm: $false | out-null
    # Close the comments to make change.
    Stop-VMGuest - VM $VM - confirm: $false | out-null
    # Wait while feedback stops
    While ($vm. ExtensionData.Runtime.PowerState - not "poweredOff")
    {
    Start-Sleep - seconds 1
    $vm. ExtensionData.UpdateViewData ('Runtime.PowerState')
    }
    # Apply Spec customization to apply the new network settings
    Get - VM "BigServername" |
    Set-VM - OSCustomizationSpec "R2 Windows Server 2012" - confirm: $false |
    Start-VM

    I can rebuild the model, or something else, we must do this work.

    OR - is simply not the best way to configure the VM?  If not, what Sysprep?

    Good news, but first, I would really like to know where the log files are on which server to the OsCustomization process.

    I decided to reverse engineer and create a CSOS within vCeneter and once I got to work, I kept creating new CSO via PowerCli until I could get that to work, create a new virtual machine.  Once I got this to work, I have tryied to apply on a cloned vm, with no parameters. I got it works too.  I tried to go back to my original image, but I couldn't get this to work.  Something's wrong with this picture.  He wrath that the problem was related to the permissions on the local client.

    New OSCustomizationSpec - OrgName company OSType - Windows - ChangeSid-Server "vcenter.dom.com" - name PowerCliOnly4 - persistent administrator-Type FullName - AdminPassword! password123 - zone "Eastern (USA and Canada)" AutoLogonCount - 3 - domain dom dadmin - DomainUsername - DomainPassword! password123 NamingScheme - vm-Description "PowerCli Use only" - confirm: $false

    Get-OSCustomizationNicMapping - OSCustomizationSpec PowerCliOnly4 | Game-OSCustomizationNicMapping - Position 1 - IpMode UseStaticIP - IpAddress 10.10.10.98 - 255.255.255.0 - DefaultGateway 10.10.10.1 Dns subnet - mask "10.10.10.10","10.10.10.11" "-confirm: $false

    This seems to be very picky.  Because the area is one of the parameters, you cannot put it in the DomainUsername, no dom\dadmin. The part that I really want to know how to get more, is what happens if your vm has a different local administrator as the administrator account.  It turns out that FullName - is not the account that it to connect locally with tires. When I created the vCenter Medtronic Chondroitin, I put 'me' in the name and information of the Organization and that's what was settled in the FullName property:

    Name: PowerCliOnlyM
    Type: persistent
    ServerId: /VIServer = dom\[email protected]: 443.
    Server: vcenter.dom.com
    LastUpdate: 24/09/2014 13:33:19
    DomainAdminUsername: dadmin NO dom/dadmin here!
    DomainUsername: dadmin
    Description: PowerCli use only, done manually in vCenter.
    AutoLogonCount: 3
    ChangeSid: true
    DeleteAccounts: false
    DnsServer:
    DnsSuffix:
    Domain: vsi
    Full name: me
    GuiRunOnce:
    NamingPrefix:
    NamingScheme: Vm
    OrgName: CompanyTU
    OSType: Windows
    ProductKey:
    Time zone: (USA and Canada)
    Working Group:
    LicenseMode: NotSpecified
    LicenseMaxConnections:
    EncryptionKey: {-126, 3, 48, 108...}
    ExtensionData: VMware.Vim.CustomizationSpecItem
    ID: PowerCliOnlyM
    UID: /VIServer = vsi\[email protected]: 443/OSCustomizationSpec = PowerCliOnlyM /.
    Client: VMware.VimAutomation.ViCore.Impl.V1.VimClient
    AdminPassword: w
    DomainAdminPassword: N
    DomainPassword: N

    DNS: {10.10.10.10, 10.10.10.11}
    Wins                  :
    SpecId: PowerCliOnlyM
    Spec: PowerCliOnlyM
    SpecType: persistent
    NetworkAdapterMac:
    Position: 1
    IPMode: UseStaticIP
    IP address: 10.10.10.98
    Subnet mask: 255.255.255.0
    DefaultGateway: 10.10.10.1
    AlternateGateway:
    VCApplicationArgument:
    ID: /VIServer = dom\[email protected]: 443/OSCustomizationNicMapping = OSCustomizationNicMappingImpl-PowerCliOnlyM-persistent-1.
    UID: /VIServer = dom\[email protected]: 443/OSCustomizationNicMapping = OSCustomizationNicMappingImpl-PowerCliOnlyM-persistent-1.
    ExtensionData: VMware.Vim.CustomizationAdapterMapping
    Client: VMware.VimAutomation.ViCore.Impl.V1.VimClient
    Version: 1

    I think that it is good to know that the virtual machine reboot 4 or 5 times as it goes through this process.  It breaks is you try and do something for the virtual machine that interrupt the process.  I don't know that I'll think more questions in a second.

    In addition, it cost he had some problems with the put between quotation marks, single or double around the password, but I did not check this again, I just know that once I took them, he began to work.  I ran on other issues while testing as I was using a single IP address, so if I do not disable the test VM, the following would not work because of the conflct network, maybe I shouldn't admit that... lol

  • New virtual machine for the model with the specific name

    Hello

    I'm trying to add some model VM to VAPP using recomposeVApp (...). And it works well except that I can not change the name of the virtual machine while recomposing. It takes the name of the model. But how to add VMS to model with the specific name? I use the v1.0 API.

    This is my code:

    ReferenceType vmTemplateRef = new ReferenceType();
    vmTemplateRef.setName ("MyNewVM"); This name is ignored. The name of the model is taken!
    vmTemplateRef.setHref (vmRef.getHref ()); reference to the model

    CompositionItemParamType vmItem = new CompositionItemParamType();
    vmItem.setSource (vmTemplateRef);

    create the type params VAPP recompose.
    RecomposeVAppParamsType recomposeVAppParamsType = new RecomposeVAppParamsType();
    recomposeVAppParamsType.setName (vAppRef.getName ()); The name of vApp. It is ok.

    added the element of the virtual machine.
    The newItems < CompositionItemParamType > recomposeVAppParamsType = list
    . getItem().
    newItems.add (vmItem);

    Task task = vapp.recomposeVapp (recomposeVAppParamsType);

    Thank you

    Hello

    For after this code fragment:

    vmTemplateRef.setName ("MyNewVM"); This name is ignored. The name of the model is taken!

    The model name is ignored because vmTemplateRef is the only reference to the object that will be used for the operation of recomposition. If changing the name it will be always ignored.

    I think that changing the name of the virtual machine template for recompose cannot be done as follows:

    (1) operation recomposeVApp().

    (2) get the recomposed VAPP

    (3) download the children-> VM you want to change.

    (4) change the name of the virtual computer.

    I hope this helps!

  • How can I create a simple virtual machine with the CD in a newWorkflow

    I created a new workflow with simple virtual machine and added a cdrom workflow but an error is shown.

    How can I reuse of so that the new created VM add a new cdrom in a workflow

    Captura.PNG

    Help me please

    First of all, you only need a single attribute of type VC:VirtualMachine, not two as in the screenshot. You don't need to specify its value; When the first workflow completes, its output should be attributed to this attribute, and then the assigned value must be passed as input to the second workflow.

    To check/edit links, open the first workflow to change, go to the 'Visual links' tab and make sure the workflow output is line connected to the attribute. Do the same for the second workflow, and then make sure that the attribute is connected to the line to the corresponding input parameter.

    Take a look at the workflow attached if you don't know how the maps should look like.

  • VMware workstation, crashes when I try to create a new virtual machine

    Hello

    I never had this problem before, but I didn't create a new virtual machine in a very long time. Last time I created one was making Workstation 9 I think. Some time after the upgrade to Workstation 10 or 8.1 of Windows Update 1 it has started.

    In 10 Workstation running on Windows 8.1, I select the file > new Virtual Machine dialog coming upwards and in a few seconds crashes of VMware workstation and closes.

    So I checked the Windows event logs and find

    Warning "VMware Workstation to function properly, must be reinstalled after the upgrade to Windows."

    So, I upgraded from 10.0.2 to 10.0.3 and it uninstalled and reinstalled but I still get this warning.

    Followed by an error

    ***

    Journal name:Application
    Source:Application error
    Date:15/08/2014 23:33:53
    Event ID:1000

    Task category: (100)

    Level:Error
    Keywords:Classic
    User:N/A
    Computer:P7Win8MC

    Description:

    Name of the failing application: vmware.exe, version: 10.0.3.48389, time stamp: 0x539a4fb0

    Name of the failed module: MSVCR90.dll, version: 9.0.30729.8387, time stamp: 0x51ea24a5

    Exception code: 0xc0000005

    Offset: 0x0003bece

    ID of the process failed: 0 x 1788

    Start time of application vulnerabilities: 0x01cfb902de541c11

    The failing application path: C:\Program Files (x 86) \VMware\VMware Workstation\vmware.exe

    Path of the failing module: C:\WINDOWS\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.8387_none_5094ca96bcb6b2bb\MSVCR90.dll

    Report ID: 24d5effb-24f6-11e4-bedd-20cf30780548

    ***

    So I need help to track down what I am not sure what VMware paper to look to maybe see what is happening.

    Thank you

    Rainey

    Well, I found the problem.

    I looked in the UNK file and found a few ISO files wrongs tracks.

    I had mounted some ISO in the past and they have made the entry in this file of preferences such as "isoLocationMRUx".

    I'd change the leter this ISO file player so they could not be found as input, once I corrected the paths I can now create a new virtual machine.

    He is responsible for ion BONE the new virtual machine now.

  • 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

  • PowerCLI script - new virtual machine of the model

    Hi all

    I am very new to power CLI scripting, and these days, that I read a lot of help to automate the creation of a new virtual machine based on the model of the virtual machine.  Script that is not that hard, even location new virtual machine on a particular data and in a particular resource pool store is not difficult.  For this I came up with this very basic script/command:

    "New-VM - ResourcePool < resource_pool > - < folder_name > location - Datastore < datastore_name > - name < VM_name > - < template_name >"model

    However, I came across some problems that I can't find information in help or in the forums.  Problem with the above command is VM will be created in the pool of appropriate resources and file as long as they are unique, but if there are multiple instances of resource pool or a folder with the same name as the script spits out a mannequin.

    So for example if I want to create a new virtual machine to the location following Data_Centre = > RootFolder1 = > SubFolder1 = > SubFolder2 and SubFolder2 name is unique that no problem, the virtual machine is created at this location.  However, if the SubFolder2 exists in Data_Centre = > RootFolder2 = > SubFolder1 as well as the virtual machine is created in the folder root of the location of the model.  For example, if the model is in "DC = > Folder1 = > Subfolder1 = > Subfolder2 ' the virtual machine will be created in the folder Folder1

    Any suggestions on how to ensure that the virtual machine is created in the desired folder/location as well as a list of resources?  In my view, there are really smart guys here and I suspect that this issue would not be a problem at all.  Any help would be appreciated.

    See you soon

    It is not a matter of following the right path.

    You can use the location setting to get the exact folder you want. For example

    $dc = get-data center-name DC1

    $folder = get-file-name Folder1-location $dc

    $subfolder = get-file-name Folder2-location $Folder1

    or

    $dc = get-data center-name DC1

    $subfolder = get-file-name Folder2-location $dc

    You will need to find a "place" in the path to your destination folder where it will be unique.

  • You can create a new virtual machine snapshot from another machine?

    Hi all!  I was wondering - is it possible to create a new virtual machine with an existing snapshot of a running virtual machine?  Or should I essentially clone the machine to a new virtual machine and then go back to the snapshot I want?

    I use ESX Server 3.5 with a Lefthand SAN - and was curious to know if there may be either a separate utility, I can run or if the VI Client contains all the tools I would need?

    Thank you all for your time!

    Good question, I know you can do this with VMware Workstation:

    1 VM > overview > Snapshot Manager

    2. Select the snapshot > Clone

    However, for VMware ESX, I think you should use vmkfstools to the service console.

    Basically, you have already created a snapshot and just need to copy the vmdk files, create a new virtual machine and attach an existing drive. I think that's what you're looking for: cloning a Virtual Machine running using the Console Service

  • Create new virtual machine of the model that have two hard drives in the different data store

    We do VM deploy automation with PowerCLI.

    There is already a model created with at least two hard drives to one side and each hard drive belong to difference datastore,

    In the model's operating system is Windows server 2008 R2 already installed VMware Tools and other software in the second (other than C: driver) driver

    We can successfully deploy a new virtual machine with this manually with vSphere client model.

    But when we try to make the deployment with PowerCLI, can not find examples of similar scripts in the document of reference,

    and we also google this question, still no similar question was found.

    Is this possible with PowerCLI? If it's possible could you give me some advice or an example of script, thank you!

    Best regards.

    I already found the solution.

    With the vSphere SDK .NET API, we can create the new virtual machine to the model

    Mainly used API listed below, sorry because I can not give the source code here.

    • VMware.Vim.VirtualMachineCloneSpec
    • VMware.Vim.VirtualMachineRelocateSpec
    • VMware.Vim.ManagedObjectReference
    • VMware.Vim.VirtualMachineRelocateSpecDiskLocator
    • VMware.Vim.ManagedObjectReference
    • CloneVM_Task

    For reference, you can take a look at this post and this post

    LucD , thanks for your help!

  • Upgrade to ESXi 5.0 to 5.1 - No Hardware 9 option available when creating a new virtual machine

    Greetings,

    I improved my esxi U1 5.0 to 5.1 and attempted to create a new virtual machine in hopes of using the new version of material 9.

    Using the standard and Custom options I been unable to create a Version 9 hardware VM by default.

    The only option I had was manually upgrade to version 9 once the virtual machine was created.

    Any thought or is - this as planned? I need to reinstall from scratch, my host?

    dhayashi

    To create virtual machines with HW version 9, you can use the Web Client, rather than the windows based Client vSphere.

    André

  • Creating a new virtual machine, nothing happens

    Hi all

    Last year, with win xp sp3, I tried VMWare WS 6 and there is nothing to do: after installing the program, choose 'New virtual machine' in the home section, I did all the steps at the end I was with the same State of windows, as I have nothing (empty, just the Home tab)

    Now, on Windows 7 ultimate x 86, I was wondering to test your version 7.1, but what's funny, is that I have the same situation described above (with no error was shown)

    So, I don't know if there is that a service stopped victory that need VMWare runs correctly or any software like Daemon or Gizmo can interfere with VMWare, wath I know is that I spent several hours searching for in your forum and the web without any positive result.

    I also try to change the HARD disk where to save the virtual machine, to customize some settings in the wizard, leave all the default settings, but without success

    The corresponding files are created in the location I choose, but nothing more. Also if I choose 'open an existing virtual machine or the team', go to one of these files, nothing, nothing and nothing again

    Note that whenever I did the wizard, either one or several times, is impossible to close the main window of the program, I have to use the Task Manager

    I really hope that now that some can help me finally see work of VMWare

    Below is a screen all I can get VMware: nothing

    vmware.jpg

    TKS in advance

    KB article http://kb.vmware.com/kb/2051 describes as and problem and the possible solution.

    André

  • How to specify the file of virtual hard disk when you create a new virtual machine using virtual hard disk on the data store?

    I'm new to PowerCLI and find quite simple, but in the documentation I read, I don't see how to use a virtual hard drive, existing on a data store when you create a new virtual machine.

    Is this simple registration on the virtual hard disk, or did I miss something?

    My current create VM is the following statement:

    New-VM

    -Name $TargetHostName -host $TargetVMCenterHost -data store $TargetVMCenterDatastore DiskMB - 20000 -MemoryMB $TargetHostMemoryMB -NumCPU $TargetHostCPUs -ID $TargetHostOS -CD -Description $TargetHostName

    Didn't notice this before, but I think that vSphere will use a backslash instead of a slash in the paths.

  • A safety class is not found in this JAVA virtual machine for the following reason: sun.security.x509.CertAndKeyGen

    I'm trying to start OUD 11.1.2.2.0 after a new installation on Windows 2008 Server (oud - setup.bat) and I see the following error. Any ideas?

    [18/Apr / 2014:13:34:04-0600] category = gravity CORE = INFORMATION msgID = 132 msg = The Directory Server starts the configuration of the boot process

    [18/Apr / 2014:13:34:05-0600] category = gravity CORE VIEW msgID = 458886 msg = directory = unified Oracle 11.1.2.2.0 (build 20131115153045Z, R1311150604) commissioning

    [18/Apr / 2014:13:34:08-0600] category gravity = RUNTIME_INFORMATION = VIEW msgID = 20381717 msg = installation directory: C:\Oracle\Middleware\Oracle_OUD

    [18/Apr / 2014:13:34:08-0600] category gravity = RUNTIME_INFORMATION = VIEW msgID = 20381719 msg = Instance directory: C:\Oracle\Middleware\asinst_1\OUD

    [18/Apr / 2014:13:34:08-0600] category gravity = RUNTIME_INFORMATION = VIEW msgID = 20381713 msg = Information FMV: 1.8.0_05 - b13 by Oracle Corporation, architecture 32 bits, the size of the heap 652476416 bytes

    [18/Apr / 2014:13:34:08-0600] category gravity = RUNTIME_INFORMATION = VIEW msgID = 20381714 msg = JVM Host: slc00dbh.us.oracle.com, running Windows Server 2008 6.0 x 86, size of 8177541120 bytes of physical memory, the number of available processors 2

    [18/Apr / 2014:13:34:08-0600] category gravity = RUNTIME_INFORMATION = VIEW msgID = 20381715 msg = JVM Arguments: ' - Dorg.opends.server.scriptName = start - ds. "

    Exception in thread "main" java.lang.ExceptionInInitializerError: a safety class is not found in this JAVA virtual machine for the following reason: sun.security.x509.CertAndKeyGen

    to org.opends.server.util.Platform$ PlatformIMPL. < clinit > (Platform.java:132)

    to org.opends.server.util.Platform. < clinit > (Platform.java:85)

    at org.opends.server.util.CertificateManager.generateSelfSignedCertificate(CertificateManager.java:283)

    at org.opends.server.admin.AdministrationConnector.createSelfSignedCertifIfNeeded(AdministrationConnector.java:703)

    at org.opends.server.admin.AdministrationConnector.initializeAdministrationConnector(AdministrationConnector.java:182)

    at org.opends.server.core.ConnectionHandlerConfigManager.initializeAdministrationConnectorConfig(ConnectionHandlerConfigManager.java:356)

    at org.opends.server.core.DirectoryServer.initializeAdministrationConnector(DirectoryServer.java:2872)

    at org.opends.server.core.DirectoryServer.startServer(DirectoryServer.java:1539)

    at org.opends.server.core.DirectoryServer.main(DirectoryServer.java:9930)

    C:\Oracle\Middleware\Oracle_OUD > java-version

    Java version "1.8.0_05".

    Java (TM) SE Runtime Environment (build 1.8.0_05 - b13)

    The Client Java VM (build 25, 5 - b02, mixed mode, sharing)

    I used the following jdk based on the matrix and it worked fine:

    C:\Oracle\Middleware\Oracle_OUD>Java-version

    Java version "1.6.0_24".

    Java (TM) SE Runtime Environment (build 1.6.0_24 - b07)

    The Client Java VM (build 19.1 - b02, mixed mode, sharing)

  • How to configure the virtual machine for the changes to forget

    Hi, I want to ask if it is possible together in the virtual machine for the changes to forget. For example - user run VM... make some changes in the configuration. Then come a new user has it want to have clear (without changes in the configuration) virtual machine. Is possible together closed the machine after changes lost?

    Sorry for my English.

    Thanks for help.

    Hi Polo939

    First, you will need to take a snapshot of the virtual machine.

    • Select your virtual machine

    • Click on "take a snapshot" on the right-hand side of the web interface

    Then you must configure the virtual machine to go back to the snapshot when it is turned off.

    • Click on "configure the VM.

    • Click the "snapshot".

    • Select "back to overview" under when you feed off option

Maybe you are looking for