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

Re: How to force a VM use a specific host in a cluster?


Re: VMware vCenter Server 5.5 U1 on Windows Server 2012 R2 - not

$
0
0

Please check DNS, on vcenter and esxi resolves vice-verse.

Re: Failed VCP550 DCV

$
0
0

HI Vinsane,

 

I do have to agree that 135 questions in 2 hours is definitely pushing it, as I took my VCP550 exam I was constantly looking at the clock, and most of the time I was on the minute per question. I thought that I was doing alright as from experience of other exams, there is usually a few quick and simple questions to give you some extra time for the other questions. I got to about 50 minutes to and I was now behind by about 10 - 15 questions (and what do you do when you're behind - You rush).  Even with rushing I still missed the last 2 questions.

 

They've definitely turned it up a fair bit.

 

I also received the "Beta-Exam" comment at the start.

 

Anyway, Good luck for your next attempt. Count this as an experience and use it.

Re: Can you combine Get-VM and Get-View within the same script?

$
0
0

You'll probably need to do a foreach instead of ForEach-Object and make a custom PSObject. Where you're running the select-object is too far down in the pipeline for the first oneliner to work properly. I've had this problem before. Unfortunately I don't have the time to rework your script tonight but I can work on it if you need me to another day. It shouldn't be difficult if you know how to do it.

 

You'll basically do something like

$vms = Get-Cluster Management | get-vm | where {$_.powerstate -ne "PoweredOff" }

foreach ($vm in $vms) {

     $HDWVer = <the data output from the fist one liner>

#You may need another foreach after this comment, similar to the one liner you have listed as your second script.

     $ToolsVer = <use the expression to get the tools version>

     $ToolsStat = <use the expression to get the tools status>

 

     New-Object psobject -property @{    

          VM = $vm

          HardwareVersion = $HDWver

          ToolsVersion = $ToolsVer

          ToolsStatus = $ToolsStat

          }

}

 

 

This was really quickly done and I have NOT tested it so it may take some tweaking to get the right info into the variables.   

 

Good luck.

Re:

$
0
0

> Would the extendedProductInfo filed be the appropriate place to put it?

 

 

Yes, it's a good place. Your plugin is the only one to use this data  (It doesn't look like a list to me, just a ExtExtendedProductInfo object)

 

> how do I get a hold of the vcenter server's url/GUID so I can get the Extension object?


If you don't have an object reference you can rely on the UserSession.serversInfo array.  Since you need to register your plugin with every vCenter you can pick anyone in the list of servers, it should contain the same info for your plugin.


Re: How to find the corresponding vmdk of the /dev/sd* disk added in linux system?

$
0
0

You should be able to tell from the VM's properties ( In vmware client, right click VM -> Edit Settings -> The hard disk you want to remove ). You can tell by size or SCSI node which should be in same order as in linux.

Monitoring Hyper-V Cluster Shared Disk Space

$
0
0

Hi All,

 

I'm using Hyperic to monitor Hyper-V servers and the default agents do not appear to allow monitoring of disk space for cluster shared volumes.

 

The CSVs (cluster shared volumes) do not show up in the 'FileServer Mount' service. They do show up in the 'FileServer Physical Disk' and the 'HyperV Physical Disk' services but neither of these have disk space available as a counter.

 

Certainly within the Windows counters the bytes free are available, so I wanted to know if there is any further development being done, or if there is a plugin that may already have this counter.


Cheers

Will

Re: How many Virtual Machines can I get with this configuration

$
0
0

Hi,

 

Thanks for the information. Yes, looking at it the supported config is only ESXi 5.1 U2. I want to build Windows Server 2012 R2 Domain Controller, XenApp 7.5 and XenDesktop 7.5. I also plan to install PVS 7.1 if possible. So I would like to know now how many VMs can I get?

 

thanks in advance!


Re: Cant increase thin provisioned disk size

$
0
0

This also worked for me too.

Thanks a lot!

Re: VM Variable for VM object

$
0
0

Hello, max2001-

 

How about something like the following:

 

## get all VMs from all connect vCenters, and group them by name
$arrAllVMs_grouped=Get-VM | Group-ObjectName

$arrDesiredVMs= @()
## for any group of VMs where there is more than one (2, presumably), only return the PoweredOn VM in the group
$arrDesiredVMs=$arrAllVMs_grouped | ?{$_.Count -gt1} | %{$_.Group | ?{$_.PowerState -eq"PoweredOn"}}
## and for the groups of VMs where there is only one VM in the group, add that VM to the DesiredVMs array
$arrDesiredVMs+=$arrAllVMs_grouped | ?{$_.Count -eq1} | %{$_.Group}

 

That will:

  1. get all VMs, and group by name
  2. of the groups of VMs where there are more than one, just grab the ones that are in the PoweredOn PowerState
  3. and, grab all the VMs whose groups are of count 1 (uniquely named VMs), without regard to their PowerState


That do it for you?

fail to access vSphere with HTTP because of secure cookie

$
0
0

vSphere 5.5 / vSphere Client

 

I'm working around vSphere api, and want to get information how vSphere clients access vSphere sdk.

To do so, I tried to capture their http communication with WireShark only to fail.

Although communicating in http, the vSphere sends back authroization cookie with "secure". Secure cookie makes the client do not send itself in http communication, so queries after authentication always fail.

 

I did:

  1. changed the /etc/vmware/rhttpproxy/endpoints.conf to allow http access to /sdk.
  2. input "http://server-name:80" to vSphere client server name box.

 

How can I do?

Re: vmx file is not a valid virtual machine configuration file - PLEASE HELP!

$
0
0

azee1v1 wrote: I have attached my log files, if anyone can help I would appreciate it

 

The attached "Windows_7_Pro.vmx.zip" file contains a new "Windows 7 Pro.vmx" file created from the supplied vmware.log file.

 

With VMware Fusion closed, unzip (double-click) the downloaded attached "Windows_7_Pro.vmx.zip" file and replace the original "Windows 7 Pro.vmx" file with the one here.

four issues I encountered deploying vCenter and SRM 5.5 in a Windows environment

$
0
0

I would like to share some installation ‘gotchas’ that I encountered while deploying vCenter and Site Recovery Manager 5.5. Although relatively minor issues, I hope that you may found this useful and may avoid some of the same headaches that I encountered.

Please note: these solutions are all based on VMware KBs (noted below) and were tested against vCenter Server and Site Recovery Manager 5.5 running on Windows Server 2012, with SQL Server 2012 SP1 supporting databases.


Connecting to vSphere Web Client Fails


Symptom:

      • HTTP Status 404

 

Solution:

      • When installing the vSphere Web Client, maintain the default installation directory. Avoid installing this component to an alternate drive or location (i.e. D:) [1].

Encountered a Perl Error While Installing SRM


Symptom:

      • SRM installation fails with the following message: “Failed to update Perl installation directories…”

 

Solution:

      • When specifiying the installation directory for SRM, avoid using long path names or spaces. Instead, use short paths: (i.e. D:\SRM) [2].

 

Storage Monitoring Service Fails

 

Symptom:

      • This issue can present itself in a few different ways, but it is very evident when looking at the overall health of the vCenter Server from the Server Status screen.

 

Solution:

      • This may be encountered when a custom service account is being used to start the vCenter Server, instead of the default Local System account. Ensure that the VMware vSphere Profile-Drive Storage Service is also being run using the same service account as the VMware VirtualCenter Service [3].

Update Manager Fails to Start


Symptom:

      • The VMware Update Manager service fails to start when using an SQL Server 2012 database, and the log may contain: “Panic: Unable to allocate memory”

 

Solution:

      • After installing VUM using the native ODBC client, I was able to initially connect to Update Manager using the the vSphere Client; however, at some point I began to consistently see this issue. To work around this, I removed the native SQL Server ODBC DSN for the VUM database, and replaced it with the non-native client. This solution may seem a bit counter intuitive, but it is based on a VMware KB [4].

 

References:

[1]“VMware KB: Connecting to vSphere Web Client fails with the error: HTTP Status 404.” [Online]. Available: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2044953. [Accessed: 09-Apr–2014].

[2]“VMware KB: Installing Site Recovery Manager fails with the error: Failed to update Perl installation directories.” [Online]. Available: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1028918. [Accessed: 09-Apr–2014].

[3]“VMware KB: VMware vCenter Storage Monitoring Service fails with the error: Service initialization failed after upgrading to vCenter 5.5.” [Online]. Available: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2060967. [Accessed: 09-Apr–2014].

[4]“VMware KB: VMware vSphere Update Manager 5.x fails to start when using SQL Server 2012.” [Online]. Available: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2050256. [Accessed: 09-Apr–2014].

Re: Lost Virtual Machine directory and library on MAC OS; Can I get it from MAC OS Time Machine?

$
0
0

Using Time Machine to backup Virtual Machines is not considered a proper* backup however if you do have a Time Machine backup the default location is "/Users/${USER}/Documents/Virtual Machines/" and you can try to restore.

 

==========

 

* It is a known fact that Time Machine is not 100% reliable backing up/restoring Virtual Machines under all circumstances/conditions.  Also backing up Virtual Machines via Time Machine is disk/time intensive and wastes a tremendous amount of space for something that may be corrupt and worthless come time to restore it.  At a minimum I would exclude Virtual Machines from Time Machine and with the Virtual Machines shutdown, not suspended, and VMware Fusion closed then manually copy the Virtual Machines Package(s) to an alternate location, preferably on to a different physical hard disk.  Then keep the User Data that is stored within the Virtual Machine backed up off of the Virtual Machine on a regular basis so as to always have a current User Data Backup.  If you have to restore a properly backed up Virtual Machine that is not as current at least you'll have a working Virtual Machine and current User Data to go forward with when you find out your Time Machine Backup of the Virtual Machine fails.

 

Also have a look at: Best Practices for virtual machine backup (programs and data) in VMware Fusion (1013628)

Re: Learning PowerCLI and Powershell


Re: Noob needs help with PowerCLI (VMDK, RDM LUN listing)

$
0
0

Hello,

check this.

 

It can be helpful.

 

 

Best regards,

Pablo

Re: Learning PowerCLI and Powershell

Re: Noob needs help with PowerCLI (VMDK, RDM LUN listing)

Re: Cold "offline" clone - what's the latest version of an ISO that will do this

$
0
0

Cheers for all your ideas / advice on this one.

 

In the end my solution was to create a virtual machine with the free ESXi 5.0 and create/use an NFS share that is shared between the 5.5 plaform and 5.0, from there cold clone using 4.0 or 4.0.3 into the free ESXi remove from the inventory, add to inventory on 5.5, migrate to a "normal" datastore and crack on from there. No new hardware needed or anything, just the overheads for another virtual machine

Re: Powercli create local user and grant shell permission on multiple esxi4.1 hosts

$
0
0

It shouldn't make a difference, but did you also try with '-GrantShellAccess:$true' ?

Viewing all 244951 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>