Quantcast
Channel: VMware Communities: Message List
Viewing all 294344 articles
Browse latest View live

Can't power off, reset or kill one VMs

$
0
0

Dear all,

 

one of my VM is unaccessible I want want to reset it somehow.

 

From command line:

vim-cmd vmsvc/power.off 288

Powering off VM:

Power off failed

 

or another try to kill

esxcli vm process kill -t force -w 46664

or

esxcli vm process kill -t hard -w 46664

Unable to kill Virtual Machine. Error was : Unable to kill virtual machine.  Error returned was No such process

 

but under:

esxcli vm process list

 

this ID is still active:

plsw-ts2012-fe1

   World ID: 46664

   Process ID: 0

   VMX Cartel ID: 46640

   UUID: 42 24 e8 f3 28 35 e1 77-dd 56 40 46 d2 a4 16 43

   Display Name: plsw-ts2012-fe1

   Config File: /vmfs/volumes/5156099e-00b6e9ef-83be-e41f131c77b4/plsw-ts2012-fe1/plsw-ts2012-fe1.vmx


 

 

Regards

GN


Re: VM Replica's Inaccessible after Network Failure

$
0
0

Can you supply a screenshot?

What is in /var/log/vmkwarning.log (or vmkernel.log) regarding those replica LUNs/VMs?

What status is shown for the NAS datastores?

helpful! customizing the vm when deploying vm by template occurred error using the vijava api!

$
0
0

    I want to change ip in vm when deploying it from the template(I used windows 2008R 64 bit template),so I planned to use the method customizeVM_Task() at first,but it failed for method chechCustomizationSpec() deny.

     then I used method cloneVM_Task() with the param CustomzationSpec,it done! but after vm cloned,vm startup once ,no configuration customized. And about one minutes later ,vm reboot itself !! weird! With the customization startup. Then the error about "Microsoft-Windows-Shell_setup" come out!

     helpful!! Is there anyone can tell me what's the problem ?

 

     my code is following  and the picture of the error is in the accessory :

 

          CustomizationSpec cspec = new CustomizationSpec();

            CustomizationGlobalIPSettings gIP = new CustomizationGlobalIPSettings();

            cspec.setGlobalIPSettings(gIP);

 

// This is windows so choose the sysprep

            CustomizationSysprep sprep = new CustomizationSysprep();

 

 

            CustomizationGuiUnattended guiUnattended = new CustomizationGuiUnattended();

            guiUnattended.setAutoLogon(false);   // do not autoLogin on reboot for customization.

            guiUnattended.setAutoLogonCount(0);  // do not autologin on reboot..

            guiUnattended.setTimeZone(4);  // set to Eastern time.

            sprep.setGuiUnattended(guiUnattended);

 

 

            // add VM to WORKGROUP

            CustomizationIdentification identification = new CustomizationIdentification();

            identification.setJoinWorkgroup("WORKGROUP");

            sprep.setIdentification(identification);

            String productId = vm.getSummary().getConfig().getGuestId();   // only needed for windows os's

 

// setup UserData

            CustomizationUserData userData = new CustomizationUserData();

            CustomizationFixedName n = new CustomizationFixedName();

            n.setName(name);

            userData.setComputerName(n);

            userData.setFullName("SomeName");  // This may change in the future

            userData.setOrgName("SomeOrganization");

            userData.setProductId(productId);  // Product Serial (needed for Windows 2003 and 2008)

            sprep.setUserData(userData);

            cspec.setIdentity(sprep);

           

            // NicSettingMap part

            CustomizationAdapterMapping adaptorMap = new CustomizationAdapterMapping();

            CustomizationIPSettings adapter = new CustomizationIPSettings();

            CustomizationFixedIp fixedIp = new CustomizationFixedIp();

            adapter.setDnsServerList(dnsList);

            adapter.setGateway(gatewayList);

            fixedIp.setIpAddress(ipAdd);

 

 

            adapter.setIp(fixedIp);

            adapter.setSubnetMask(subnetMask);

            adaptorMap.setAdapter(adapter);

            CustomizationAdapterMapping[] nicSettingMap = new CustomizationAdapterMapping[]{adaptorMap};

            cspec.setNicSettingMap(nicSettingMap);

            CustomizationWinOptions options = new CustomizationWinOptions();

            options.setChangeSID(true);

            options.setDeleteAccounts(false);

            cspec.setOptions(options);

 

 

            CustomizationSpecManager manager = si.getCustomizationSpecManager();

            cspec.setEncryptionKey(manager.getEncryptionKey());

 

  //clone vm from the template 

        VirtualMachineCloneSpec spec = new VirtualMachineCloneSpec();

        spec.setCustomization(cspec);

        VirtualMachineRelocateSpec relocSpec = new VirtualMachineRelocateSpec();

        ManagedObjectReference rpMor = ManagedObject.buildManagedObjectReference(rpNode);

        relocSpec.setPool(rpMor);

        spec.setLocation(relocSpec);

  spec.setPowerOn(false);

  spec.setTemplate(false);

Task task = vm.cloneVM_Task(folder, name,

  spec);

  String result = task.waitForMe();

Re: Linux P2V fails with fingerprint verification

$
0
0

Hello

 

DSA keys have been added in 5.5.1 but it seems you have tried with it.

You succeed with 4.0.1 because fingerprint verification of the source machine is not done, which is less secure. The verification has been added in 5.1, i.e the behavior you get when logging in the helper VM is expected.

You could use 5.0.1 as workaround, too. You can convert to vSphere 5.5 with it, it will just create a lower VM hardware version. Don't try with 5.0 though, it will crash when targeting vSphere version higher than 5.0!

However this looks like a bug that should be fixed. Can you please upload the logs for investigation? Export the full bundle from the failed task and attach it here (you will need to click on 'Use advanced editor' on the forum's page)

 

Regards,

Plamen

Re: One of my virtual machine cannot ping 8.8.8.8

$
0
0

Hello, oaram.

So "Mail" or "TNS3" can not ping 8.8.8.8. Didn`t you set VLAN tag in virtual guest? Can both vms ping the gateway?

Overview/statistics about Thanks/Badges

$
0
0

Hi,

 

is it possible to see statistics about how many and which Thanks/Badges were used? Like for a month.

I know that you can see on a profile how many Thanks a person got, but not as an overview over the whole community.

 

Regards,

Benjamin

Re: Can't power off, reset or kill one VMs

Re: virtual machine consolidation is needed

$
0
0

Este artigo da VMware irá ajuda-lo a resolver esse segundo problema: vSphere Data Protection appliance fails to power on with the error: Cannot open the disk /vmfs/volumes/xxxxxxxx-xxx/vm_disk.vmdk or one of the snapshot disk it depends on (2056256)

 

Resumidamente, quando você tira backup de uma VM, o VDP tira um snapshot da VM em questão, monta o disco base na VM do VDP, e após finalizar o backup, o disco é desmontado do VDP e o snapshot é deletado.

 

Como possivelmente o backup estava com algum problema, o que inclusive fez o alerta de "consolidation is needed", o snapshot não era deletado e possivelmente o disco da VM SONNY ficou associado a VM SALVATORE.


Re: Iaas deployment fails with SSL /TLS error

$
0
0

Hi,

 

Should I update the wildcard cert to IIS prior to run Iaas setup on server. And I can follow second step once I have Iaas installed on server however Iaas Setup is failing with the error I mentioned above. Looking forward to hear further.

 

Thanks in advance,

Re: Basic questions about Vsphere port mirror

$
0
0

Thank you for you and vfk for the pointers. Looks like I must use VDS, i'll go ahead and get a 60 day trail license. I have been working largely with KVM and OVS, so not much product based restrictions.

Re: New host disconnecting from storage - Need help troubleshooting

$
0
0

I just found the corresponding Qlogic card for the AK344A is QLE2560. Searching spec sheet, but we may also try to ENABLE MSI-X on the HBA with issues currently showing INT-X as enabled.

Problems with fresh Vcenter install ("Network Card")

$
0
0

Just built a fresh 2014-07-23_1447.png5.5 install from the appliance, when it boots I get the following screen, no many how many times I run that script in red I cant' get an I address either off or DHCP or can I seem to assign one.

View VM Status Script - How to Increase Performance?

$
0
0

Hello,

 

I have been researching how to grab VM View Status (connected, available, startup, deleting, etc.). I have a script that leverages several capabilities to collect the proper information for determining the desktop statuses that one sees in View. However, it currently takes 3 seconds per VM. I need to get it under 1 second as I have 1000s of pooled VMs to collect. I've looked at doing this by scraping View but, its not a webpage, its flash page.

 

It does work and will work if you have 50-100 vms you want to poll every hour or 30 minutes but beyond that it takes too much work.

 

Essentially you need the following commands all run from the View server so you have access to View PowerCLI, as well as vSphere PowerCLI installed on View server.

 

vdmadmin.exe

Get-VM

Get-DesktopVM

LDAP Connection to ADAM DB

Gwmi Win32_ComputerSystem -Comp

 

I run those commands per VM into a variable to leverage the data

    

$poolVMs = get-vm *[name]*

$objGetVM = $poolVMs[$vmNum]

$objVDM = vdmadmin.exe -A -d $poolName -m $vmName -getstatus

$objGetDesktop = get-desktopvm -name $vmName

 

$LDAPPath = 'LDAP://' + $viewServer + ':389/OU=Servers,DC=vdi,DC=vmware,DC=int'

$LDAPEntry = New-Object DirectoryServices.DirectoryEntry $LDAPPath

# Create a selector and start searching from the path specified in $LDAPPath

$Selector = New-Object DirectoryServices.DirectorySearcher

$Selector.SearchRoot = $LDAPEntry

$Selector.Filter = "(&(objectClass=pae-VM)(iphostnumber=" + $vmName + ".serco.cms))"

$objADAM = $Selector.FindAll()


$objSession = Gwmi Win32_ComputerSystem -Comp $vmName

 

This is the set of if, elseif, else statements that provide the 'algorithm' to determine the status of the vm

 

if(    $objVDM[8].Split(" ")[2] -eq 0 -and

    $objGetVM.PowerState -eq "PoweredOn" -and

    $objGetDesktop.hostname -and

    $objGetDesktop.ipaddress -and

    $objGetDesktop.isinpool -eq "true" -and

    $objADAM[0].properties.'pae-vmstate' -eq "READY" -and

    $objSession.username

    ){

    $intConnected++

    #Write-Host $vmName "Is Connected"

}

elseif (    $objADAM[0].properties.'pae-vmstate' -eq "DELETING"   

            ){

    $intDeleting++

    #Write-Host $vmName "Is Deleting"

}

elseif (    !$objVDM -and

            $objGetVM.PowerState -eq "PoweredOff" -and

            !$objGetDesktop.ipaddress -and

            $objGetDesktop.isinpool -eq "false" -and

            !$objADAM[0]   

            ){

    $intProvisioning++

    #Write-Host $vmName "Is Provisioning"

}

elseif (    !$objVDM -and

            $objGetVM.PowerState -eq "PoweredOn" -and

            $objGetDesktop.ipaddress -and

            $objADAM[0].properties.'pae-vmstate' -eq "READY"   

            ){

    $intUnreachable++

    #Write-Host $vmName "Is Agent Unreachable"

}

elseif (    !$objVDM -and

            $objGetVM.PowerState -eq "PoweredOn" -and

            $objGetDesktop.guestfullname -and

            !$objGetDesktop.ipaddress -and

            $objGetDesktop.isinpool -eq "true" -and

            !$objADAM[0]   

            ){

    $intCustomizing++

    #Write-Host $vmName "Is Customizing"

}

elseif (    $objGetDesktop.composerTask -eq "mkChkPoint" -and

            $objADAM[0].properties.'pae-vmstate' -eq "CUSTOMIZING" -and

            $objADAM[0].properties.'pae-svivmoperationstatus' -eq "scheduled"

            ){

    $intCustomizingChkpnt++

    #Write-Host $vmName "Is Customizing - Refreshing Checkpoint"

}

elseif (    !$objVDM -and

            $objGetVM.PowerState -eq "PoweredOn" -and

            !!$objGetDesktop.guestfullname -and

            !$objGetDesktop.ipaddress -and

            $objGetDesktop.isinpool -eq "true" -and

            $objADAM[0]   

            ){

    $intStartup++

    #Write-Host $vmName "Is Startup"

}

elseif (    !$objVDM -and

            $objGetVM.PowerState -eq "PoweredOff" -and

            !$objGetDesktop.ipaddress -and

            $objGetDesktop.isinpool -eq "true" -and

            $objADAM[0]   

            ){

    $intProvisioned++

    #Write-Host $vmName "Is Provisioned"

}

else {

    $intAvailable++

    #Write-Host $vmName "Is Available"

}


I think i can speed up polling by using Get-View with filters instead of Get-VM


The reason I am sharing this is because I thought someone else could help speed up the process, thoughts on speeding it up, or know of another way.

My next steps:

  1. is to implement with Get-View
  2. Split up pool polling so speed up the time to complete but there is a problem due to limit of sessions to VIServer that I need to work with/around.


Does anyone have any support to this work you can provide?

I will attach my code and config files if anyone is interested.


Re: Does VMware Fusion support cloud synchronization for installed apps?

Re: ALL Browsers slow on OS X side when Fusion 5.x is running

$
0
0

What's the computer and virtual machine configuration (RAM and Processor/Cores)?  Sounds like you may be starving the host.


Re: Contradictory advice for OSX guests

$
0
0

Hey Darius,

 

Nope, it was a clean 10.10 DP1 build, then upgraded to 2,3 and 4 - this happened at 4.

 

Even with that though, isn't that incorrect advice?  I though that OSX always expected 2 cores and having less could cause it to hang.

 

I'm somewhat stuck troubleshooting at the moment - the VM barely runs due to the 'stuck on writing' vmware tools bug, but will do what I can.

Re: Problems with fresh Vcenter install ("Network Card")

$
0
0

Welcome to the Community,

 

I actually installed the appliance this way - without a DHCP server in place - a couple of times. Once you login to the applicane and run /opt/vmware/share/vami/vami_config_net you should see the following Main Menu:

 

 

Running the options in the order 6, 2, 3, 4 and  optionally 5 should work fine.

 

André

Re: Getting host root access from vCenter (somehow)

$
0
0

Thx André!

We don't have Enterprise Plus so that's out. We'll try the ESX Admins group to see if that works. Is this because there's a built in 'ESX Admins' group in ESX hosts?

I'll let you know how it goes...

 

André - The 'ESX Admin' group worked! Thanks a million!

Re: How do I install the web client

$
0
0

Thanks to you both. I have the vCenter Server Appliance deployed and have configured an IP address for it.

I need to know how to access it... or if there's more configuration to do.

Re: Extra vms after a reprotect

$
0
0

I opened an SR and provided logs. I haven't gotten any feedback yet. I was able to do a recovery back to our main site and also reprotect without any issues.

No extra vms were left by those operations

Viewing all 294344 articles
Browse latest View live




Latest Images