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

Re: How to get the last name of the user using the virtual machine?

$
0
0

Resolved.
The script worksonly 4 hours.

In the firstscript,I forgot tospecify the "-Location $ESXHost",

 

 

 

 

 

 

 

  

 

 

 

 

 

  

cls

$watch= [System.Diagnostics.Stopwatch]::StartNew()
$watch.Start() #Start time
$ErrorActionPreference="SilentlyContinue"

$name="Ann 1"
$name1="Ann 2"
$name2="Ann 3"
$name3="Ann 4"

$myCol= @()
$ESXHosts=Get-VMHost | select-ExpName
foreach ($ESXHostin$ESXHosts){
   
$RPs=Get-ResourcePool-Location$ESXHost | ?{$_.Name -ne"Resources"}
   
$VMs=Get-VM-Location$ESXHost# - in the first script I forgot to specify
        foreach ($VMin$VMs){   
           
$Ann=$vm | Get-Annotation-CustomAttribute$name, $name1, $name2 ,$name3
           
$VIe=$vm | Get-VIEvent | Where-Object {$_.userName -ne""`
           
-and$_.userName -ne"User"-and$_.userName -ne"vpxuser"`
           
-and$_.userName -ne"admin1"-and$_.userName -ne"admin2"`
           
-and$_.userName -ne"admin3"-and$_.userName -ne"admin4"`
           
-and$_.userName -ne"admin5"} | select-First1-ExpUserName
       
           
$Details="" | Select ESXHost,ResourcePool,VMName,$name,$name1,$name2,$name3,UserName
               
           
$Details.ESXHost =$ESXHost
           
$Details.ResourcePool =$VM.ResourcePool.Name
           
$Details.VMName =$VM.Name
           
$Details.$name=$Ann.value[0]
           
$Details.$name1=$Ann.value[1]
           
$Details.$name2=$Ann.value[2]
           
$Details.$name3=$Ann.value[3]
           
$Details.UserName =$VIe | Out-String

           
$myCol+=$Details           
        }
     
Write-Host$ESXHost

}

$myCol | Export-Csv-Delimiter"`t"-PathC:\PowerCLI\Report\Annotation.csv-encoding"unicode"–NoTypeInformation
$watch.Stop() #Stop time
Write-Host$watch.Elapsed #Run time

testing

Re: create new vm in drs cluster without selecting specific host

$
0
0

Hi LucD,

 

PowerCLI Version

----------------

   VMware vSphere PowerCLI 5.5 Release 1 build 1295336

---------------

Snapin Versions

---------------

   VMWare AutoDeploy PowerCLI Component 5.5 build 1262826

   VMWare ImageBuilder PowerCLI Component 5.5 build 1262826

   VMware vCloud Director PowerCLI Component 5.5 build 1295337

   VMware License PowerCLI Component 5.5 build 1265954

   VMware VDS PowerCLI Component 5.5 build 1295334

   VMware vSphere PowerCLI Component 5.5 build 1295334

 

waiting for your reply.

 

Thanks

Re: Question about vmware probe api

Help with begginer's script for datastore and harddisks

$
0
0

Hello there,

I'm quite new to writing scripts and recently I created a monstrosity below.

The problem is with the results. I have no idea why in the results I get the VM name and it's datastore over and over again until all of the disks are highlighted.

Any help will be very very very appreciated.

 

The script:

 

$raport = @()

 

 

 

 

Foreach ($i in  (Get-Content  'Y:\vms.txt'))

 

{

 

$rekord = ""

 

$vm = get-vm -name "$i"

 

$dysk1 = $vm | Get-HardDisk | where {$_.Name -eq "Hard disk 1"}

 

$datastore1 = $dysk1.filename.split("]")[0].split("[")[1]

 

$disks = $vm | Get-HardDisk

 

foreach ($disk in $disks){

 

$hd = ""

 

$disksize = ($disk.CapacityGB)

 

$hd += $disksize

 

$rekord += $vm.name + ";" + $datastore1 + ";" + $hd}

 

$raport += $rekord

 

}

 

$raport | out-file "Y:\dyski.csv"

 

The results in csv:

VM1Name;datastoreName;60;VM1Name:datastoreName;50;VM1Name;datastoreName;40

VM2Name;datastoreName;45;VM2Name;datastoreName;40

 

The dream results in csv:

VM1Name;datastoreName;60;50;40

VM2Name;datastoreName;45;40

etc

Change vCenter and SQL server NIC from E1000 to Vmxnet3

$
0
0

We have just implemented a new monitoring tool that is experiencing latency issues monitoring vCenter. One possible solution is to change the nic drivers from e1000 to vmxnet3 so i just wanted to ask the community if this would cause any known issues? We currently run vSphere 4.1, ESX 4.1, VM Version 7 and the guest os is Windows 2008R2 SP1.

 

My plan to achieve this is as follows so would appreciate any comments as to whether it is viable.

 

1. Note the ip config, network label and esx host for both the vcenter and sql servers

2. use vSphere client to connect to the hosts hosting the two VM's

3. stop and disable the virtual center services

4. stop and disable the SQL services

5. Uninstall the existing E1000 nics in windows

6. Power down the vm's

7. Add a new NIC using the vmxnet3 driver and configured on the correct network

8. logon to the VM's console directly connected to the ESX hosting the VM's

9. Configure the IP settings

10 enable and restart SQL services

11. enable and restart the vCenter services

 

Any advise would be much appreciated.

VMware workstation 12

$
0
0

My host is running on Win7 Pro and when I open VMWare 12 workstation it tells me that it cannot connect to Suny Sony Visulisatrion Camera driver - does anyone have any idae what I might do to get round this? I don't have anything on the host called Suny Sony Camer.

tHANKS FOR ANY HELP FORTHCOMING

Re: Cannot copy file from Host machine to VM

$
0
0

Hi,

 

For being able to copy that file into your virtual machine you need about 2GB of free disk space within the VM on the disk that has the temp folder.

 

The RAM size on the VM doesn't really matter.

--

Wil


Re: my storage down

Re: V to P

Re: my storage down

Re: vRA 6.2 Blueprint - Custom Hostname instead of Prefixes/Numbering

$
0
0

You can use the custom hostname workflow provided by Daily Hypervisor (the file is updated, ignore the page title for 5.2)

http://dailyhypervisor.com/vcloud-automation-center-vcac-5-2-custom-hostnaming-extension/

And simply create a property that asks for user input and does not use any auto-numbering. If you are interested in learning how vRO works to deal with all of this, it's very well written for learning how a machineid is used to gather custom properties and then re-writing the machineid's hostname.

Re: Trying to create Mac OSX 10.6.8 Server VM in Fusion 8

$
0
0

I have my OS 10.6.8 server purring along in a  VM now, but my next question is, is there a way in the VM to access the Thunderbolt/USB3 drives attached to my host Mac? They are not showing up on the desktop at all and I see no option to add them.

 

Thanks

Windows 10 in fullscreen on Workstation Player 12

$
0
0

I have installs of Win7 on WSP12 and they go fullscreen without issue.

I upgraded one of the Win7 installs to Win10, and when it completed, the desktop does not expand to the full screen size when I click the fullscreen icon on the WSP menubar at the top. I've tried playing around with resolution settings in Win10 and manually setting resolutions in WSP for that VM, but no joy so far.

 

How do I get fullscreen mode (with the whole desktop filling the screen) with Win10 under WSP12?

NSX 6.2 to vCenter 6.0 u1 registration

$
0
0

Hello,

 

I was playing with NSX 6.2 in my lab and noticed some strange behavior when trying to register my NSX manager 6.2 to vCenter Server 6.0 u1 with external PSC.

I usually try to connect all services with their respective accounts. So instead of using administrator@vsphere.local to register to vCenter and PSC, I used precreated nsxmgr@vsphere.local user which was part of Administrator group and therefore had full access to the system.

 

So, NSX to vCenter connection was a success, but as I logged in vSphere Web Client as administrator@vsphere.local, I was unable to see newly registered NSX manager under Networking & Security section of Web Client. Workaround for this situation was:

  1. Re-register NSX Manager to vCenter with administrator@vsphere.local account
  2. Login to Web Client with administrator@vsphere.local account, switch to Networking & Security section and make sure that NSX Manager is visible
  3. Re-register NSX Manager to vCenter with nsxmgr@vsphere.local account

 

So, my questions (or invitations to discussion) are:

  1. Has anyone seen behavior like this? What is the cause of this issue?
  2. What user with which rights do you use to register NSX to vCenter? Install guide says best practice is to use administrator@vsphere.local, but I just don't feel like it. What if someone changes administrator@vsphere.local password, for example?

Re: Gateway IP sub-allocation --can I list these contents?

$
0
0

Not exactly...the get-externalnetworks cmdlet when run against my env will give me the UsedIpCount and TotalIpCount, so it helps me to know when I am running low on available IP's, but what I really want is a nice, neat table that lists every Org and their Sub-allocate IP Pool list.  I think I am looking in the wrong place...since this is Org specific, it must be something that can be provided in one of the other cmdlets

Re: Adding ESXI host to vcenter server

$
0
0

No NAT used, i was able to add any host to it with no issues, but now no matter what host i add to the cluster in vsphere it changes the ip address to same external ip address of the firewall.

Re: Reports in vRealize Operations manager

$
0
0

I imported the template but it produced no data. i used the powershell and i got the list with VMs and the information that i need. Is this report works on your side?


I had an issue with importing report/views using Chrome. IE worked


Mac OS X Server 10.6.8 and externals…

$
0
0

AM I right in assuming that I will not eb able to access any USB3 or Thunderbolt peripherals in my 10.6.8 Server VM? They are attached to my Host just fine but will not show in the VM and I see no way of getting them to show. All it ants to see is USB2 stuff…

 

Thanks for any help

Re: Is there a storage issue or not?

$
0
0

I don't think it is firmware or drivers. We're running 4 flavours of ESXi, 6 different drivers, 3 sets of firmware. With VMware and EMC and Cisco Support we switched drivers, ESXi versions, firmwares on the blade, nothing seem to help. Then suddenly, after we replaced our SAN switches, the issues were gone for about two weeks. Now they're back again :-(

Viewing all 193777 articles
Browse latest View live


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