Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all 179681 articles
Browse latest View live

Help with a newbie/intern

$
0
0

So I have a little background in programming and I have become extremely interested in PowerShell CLI. I was given the task to find and enter certain fields that the Server Team manager wants to have so we can create a CI when we switch software. Initially it was supposed to be done manually but I have found a script that can do it but I need to add some other information that my supervisor is looking for. Where is the best place to learn the syntax and structure for the language? Below is the code and I would like the script to find the

 

VM Host

Switchport

Data Stores

Data Center

Notes for the Equipment

Application Name

Application Info

App Owner

If it is for testing, development or production

System POC

Application Client PC

Domain

 

This is the script I have found. Just need to be pointed in the right direction to add the other fields to be filled. Thank you so much.

 

#Specify the output CSV file bellow

$ExportPath = "Output CSV file FullPath"

#Temporary variable to run this script faster

$VmInfo = Get-VM

$VMS = ($VmInfo).Name

#Getting the required value

$VCenter = @()

foreach ($VMin$VMS)

{

    $HostServer = (($VmInfo| ? {$_.Name -eq $VM}).Host).Name

    $VMSysInfo = Get-VMGuest -VM $VM

    $MyObject = New-Object PSObject -Property @{

       VMName = $VM

       VMHostName = $VMSysInfo.HostName

       VMIP = $VMSysInfo.IPAddress

       VMInstalledOS = $VMSysInfo.OSFullName

       PowerState = ($VmInfo| ? {$_.Name -eq $VM}).PowerState

       NumberOfCPU = ($VmInfo| ? {$_.Name -eq $VM}).NumCpu

       MemoryGB = (($VmInfo| ? {$_.Name -eq $VM}).MemoryMB/1024)

       VMDataS = (Get-Datastore -VM $VM).Name

       HostServer = (($VmInfo| ? {$_.Name -eq $VM}).Host).Name

       HostCluster = (Get-Cluster -VMHost $HostServer).Name    

    }

       $VCenter+= $MyObject

}

$VCenter| 

Select VMName,

       VMHostName,

       @{N='VMIPAddress';E={$_.VMIP -join '; '}},

       VMInstalledOS,

       PowerState,

       NumberOfCPU,

       MemoryGB,

       @{N='VMDataStore';E={$_.VMDataS -join '; '}},

       HostServer,

       HostCluster | 

Export-Csv$ExportPath-NoTypeInformation


vSphere Branch Office Licensing

$
0
0

Hi,

 

We have 2 branch offices with 2 ESXi hosts at each manged by 2 separate vCenter Servers, can a single vSphere Branch Office 25 VM Pack be split across both these sites? 

 

Thanks in advance.

 

Chris

Restore fail if there ar .vmx and .vmxf filesVM_ORIG_VMX=$(ls "${VM_TO_RESTORE}" | grep ".vmx")

$
0
0

Restoring a virtual machine via ghettoVB-restore.sh failed if there are .vmx and .vmxf files on it.

To correct this problem, I have changed the 165th line: VM_ORIG_VMX=$(ls "${VM_TO_RESTORE}" | grep ".vmx") by VM_ORIG_VMX=$(ls "${VM_TO_RESTORE}" | grep ".vmx$")

 

This mistake is always present on the script found at github.com/lamw

Where can I download my VMware digital certificate ?

$
0
0

Hello, I just passed the VCA6-DCV two days ago.

The certificate has already appeared on myTranscript tab as "passed", but I don't see any download link. Do I miss something ?

using p2v to copy from one data center to another

$
0
0

I have been able to use p2v to copy from one instance of vsphere to another instance of vsphere within the same datacenter without any issues.Now i am trying to use p2v to copy from one datacenter to another. When i use the standalone converter it detects the target vsphere and shows me the directory structure including all the esx hosts and datastores. I can select the one i need and proceed from there. Everything seems to work fine until it actually tries to start the job. the helper is created and appears in the target datacenter's vsphere.. but then the process stops and it gets deleted. i can ping the target vsphere host from the originating vsphere host so i know network connectivity is there. SHOULD what i am trying to do be possible? does anyone have any ideas on what i should try differently.For the helper, I use an ip/gateway/subnet mask that is accessible from the ip of the parent VM.

 

Any advice would be greatly appreciated.

 

thanks!

SRM

$
0
0

My lub:

vCenter 6.0

SRM 6.0

IBM SRA - IBMSVCSRA_2.3.1.0 for IBM v7000

 

There is VM on protected site. When I disconnect storage from host and do "run recovery plan(desaster recovery)" SRM start VM on recovery site and don't shutdown VM on protected site.

Eventually I have two VMs in power on(on protected site and on recovery site). VM on protected site respond on ping and have opened ports(example 3389 - RDP) but I cannot connect to RDP and console to this VM.

Is this normal?

And second question, How VM without datastore can work?

howto config log server for vm

$
0
0

I need to check and to keep log files for all virtual machines which vCenter server provides (e.g. vm shutdown, vmotion migration, network errors, ...) so I ask if it's possible to configure to send logs to an external syslog server. Is there document about it?

event error VMStatProvider id 257 and 259

$
0
0

Hi,

Last night we received the error "vmStatsProvider id 257" and "vmStatsProvider id 259" from one of our VM's.

Its a machine with server 2008R2 installed running on VMware 5.5

 

I can't seem to find any info on the internet so can anyone provide me with some info on this matther?

Everything seems to work just fine on the machine by the way...


Help me please...how do I download Windows 8.1 Pro

$
0
0

I got Fusion up and running, now I would like to try a free trail of Windows 8.1 Pro.  Can anyone help me out with this?

vSphere Web Client connection from internet

$
0
0

Hello,

 

I try to connect from the Internet, I opened port 9443 to my vcenter.

 

The connection is well with "https://vcenter.mydomain.com:9433/vsphere-client" but when SSO authentication creates a new url without port "https://vcenter.mydomain.com:websso/SAML2/SSOSSL?RelyingPartyEntityId=aHR0cHM6Ly92Y2VudGVyLmJhbWJvdWxlLmNvbTo5NDQzL3ZzcGhlcmUtY2xpZW50L3NhbWwvd2Vic3NvL21ldGFkYXRh"... so this is my web server answer (which is another machine)

 

What am I doing wrong?

 

Thank you in advance for your help

 

PS. sorry for my english :-/

Lost everything

$
0
0

This is a long story.

I powered down the ESXi 5.1 box to upgrade the RAM. It did not work out so I backed out.

 

When I went to power it back up, the disk was not recognized. I ended up using the install disk to boot the system, and was able to use the menu to boot from my HDD.

I had all of my VMs but when I powered them back up, i had to answer the question "i copied it" Bingo, I had everything up and running again!

 

Then I noticed the time in the BIOS was off and throwing all the VMs off. So I powered all the VMs down, and went into maintenance mode, then powered down the box.

I adjusted the tome rebooted the machine, logged into my client, and everything was gone.

 

I rebuilt the VMs using the disks in the data store, but they are only my snapshots from when I first built them. I logged in using CLI to see what was going on, and found many files (flat , delta, etc...)

Is there any way to.

1. fix this disk so I dont have to use the install disk to get it up and running?

2. get my VM back that is fully configured (not the snapshot)

 

Here is output from my CLI session to further clarify.

 

/vmfs/volumes/5140d3d9-b0585100-816b-6805ca0e442c/NetcomCUCM # ls -l

-rw-------    1 root     root     9076682752 Dec 31  2011 NetcomCUCM-000001-delta.vmdk

-rw-------    1 root     root           324 Dec 31  2011 NetcomCUCM-000001.vmdk

-rw-------    1 root     root     2148763232 Apr  8  2013 NetcomCUCM-Snapshot1.vmsn

-rw-------    1 root     root     107374182400 May 28 11:27 NetcomCUCM-flat.vmdk

-rw-------    1 root     root          8684 Dec 31  2011 NetcomCUCM.nvram

-rw-------    1 root     root           499 May 28 11:18 NetcomCUCM.vmdk

-rw-r--r--    1 root     root           438 Apr  8  2013 NetcomCUCM.vmsd

-rwxr-xr-x    1 root     root          2812 Dec 31  2011 NetcomCUCM.vmx

-rw-r--r--    1 root     root          3427 Apr  7  2013 NetcomCUCM.vmxf

-rw-r--r--    1 root     root         99259 Jun 24  2014 vmware-18.log

-rw-r--r--    1 root     root        120295 Jul  2  2014 vmware-19.log

-rw-r--r--    1 root     root        119102 Jul  8  2014 vmware-20.log

-rw-r--r--    1 root     root         98180 Jul  8  2014 vmware-21.log

-rw-r--r--    1 root     root        125432 Jan 29 21:44 vmware-22.log

-rw-r--r--    1 root     root        131279 May 27 16:55 vmware-23.log

-rw-r--r--    1 root     root        120086 Dec 31  2011 vmware.log

/vmfs/volumes/5140d3d9-b0585100-816b-6805ca0e442c/NetcomCUCM #

 

Thanks

VMWare Player 7.0.0 x64 build-2305329 Linux is getting signal 11

$
0
0

Hi, I got a "big" problem with VMWare Player 7.0.0 x64 build-2305329 Linux with a guest Windows 7 Enterprise.

The error is a VMX signal 11 error when the VM starts and we login to it.

On boot and startup everything working fine till the VM desktop start to work, then the whole system is crashed with the error message shown above.

 

I have attached the log file, it shown a panic at the end of the log.

 

+We have try to run the VM in 640x480 VGA mode, but after the login the same issue is happen.

 

Please let me know how can I fix this issue without loose the existing VM data.

 

I have an idea: this issue is because some of the vmware tools component is not installed, and/or failed to install?! It can be but I cannot be proof.

 

Message was edited by: garybsimon

Debian clearcase and shared folders

$
0
0

Hello,

 

I'm using vmware player. I made a VM with debian (Lenny) I need to access to clearcase views on my host which is under windows XP.

I created some shared folder on the letters of my clearcase views (V: and Z:). They appears in my debian's VM under /mnt/hgfs/V and /mnt/hgfs/Z but they are empty and I have a error message saying that the content of folder can't be shown.

If I create shared folder on others HD or network mapped on local drive everything is alright. What am I doing wrong ?

issue connecting via Blast when not using Blast Secure Gateway

$
0
0

We have a new View 6.1 environment up and everything works perfectly except when conecting via Blast.  On our internal Connection Servers the only way that I can successfully connect via Blast through a HTML 5 browser is by having the "Use Secure Tunnel connection to machine" and "Use Blast Secure Gateway for HTML access to machine" checkboxes checked.  When I uncheck them I receive the following error when attempting to connect to a pool:

 

Your desktop has been disconnected.

Attempting to reconnect to desktop...

Your desktop may have an untrusted security certificate. Click here to accept the security certificate, then try connecting to your desktop again.

 

Looking at the Connection Server debug log I see the following errors:

 

startSession failed, protocol error PROTOCOL_ERR_FAILURE

Error_Event:[BROKER_POOL_PROTOCOL_UNAVAILABLE] "Unable to launch from Pool ****** for user ******:  There were no machines available that reported protocol [BLAST] as ready": ProtocolId=[BLAST], SessionType=DESKTOP, Module=Broker, UserDisplayName=*******

User ****** could not be connected to existing session for launch item ******* does not support protocols [BLAST]: The requested protocol is unavailable at this time

Application launch failed, exception was: The display protocol for this desktop is currently not available. [NAME=BLAST, ERROR-CODE=PROTOCOL_ERR_FAILURE]

 

The "VMware Blast" service is running within the VM's in the pool and when I check those two boxes within the Connection Server configuration I'm able to successfully connect via the Blast protocol.

 

Anyone have any thoughts?

HTML Access Questions and Oddities.

$
0
0

First question is when I click on the menu bar along the top on an html access desktop, I only have the Disconnect option and not Disconnect and Log off. Is it no longer an option in Horizon 6 or do i need to enable it somewhere?

 

Second question: when using IE 11 to access html desktops, when i log off (standard windows logoff seeing as I don't have the above option), the desktop logs off but the windows stays open and display the message 'Your desktop has been disconnected. Attempting to reconnect to desktop...'.It never reconnects to the desktop and i don't want it to either as I want to log off. If I use chrome, the window closes and takes me back to the desktop selection page which is what I'd like in IE. Anyone seen this, is there a workaround? Tried compatibility mode, trusted sites etc.

 

Third question: when logging off a desktop, the desktop selection page seems to time out quite quickly and I have to log in again to see the list of desktops I am entitled to. Where is the timeout setting for the html client? I can see a timeout for the actual desktop session in View administrator which is currently set as the default of 600 minutes,


Deploying VM from Content Library Fails

$
0
0

Ok I did a search and multiple google searches and have found nothing. I even enlisted the twitter armies and they didn't know.

I can clone a template to my content library with no issues. The VM is off when I do it. When I try to create a new VM from that template in the content library it fails with the error

 

Cause:

RuntimeFault.summary

 

Size doesn't seem to make a difference. I have tried to back the content library with my ISCSI and my local DS. No difference. I have tried deploying all disk types - no change. Tried deploying to local or ISCSI with no change. I am starting to question my sanity at this point. Any help?

 

Mike

@it_muscle

vGPU mismatch

$
0
0

Hi,

 

We have 2 servers with horizon view 6.1 and vsphe re 6. One server has K1 and the otherserver has K2. I have deployed vGPU now and it seems to work ok, but i get the yellow warning message shown below. What is this ? Could it be a warning that we have a cluster with these servers and they have not the same Grid cards ? ... what i mean is do they both need to either have k1 or k2....

 

grid.png

VCDX Design and security

$
0
0

I'm struggling to find really in-depth materials to help guide details of the security related design decisions related to VCDX design.  There are infinite resources on DRS / HA cluster design. Availability, Manageability, Performance and Recoverability seem to have everything written about them that is needed to guide VCDX learning and preparation - where is the security stuff?

 

Where do you get really good, detailed, virtualization-focused security related reading material, videos, conference, etc that you need for the security and compliance aspects of a good VCDX design to help guide security and compliance related design decisions and map them to your design?

Horizon View 6 and Kiosk Mode via URL

$
0
0

I want to automate logging in to desktops via URL.

 

I found the following syntax to access a desktop: VMware-view://<fqn>/<desktop-name>?desktopProtocol. Is there a way to pass in username, password, domain so a user is not prompted?

 

I want to do that with the thick client and HTML5/blast.

Power on vm's from DR site........ ?

$
0
0

We have primary site and DR site and running SRM on this environment. Once primary site are failure VM's will power on from DR site or not. I want to know it's work like fault tolerance mode?

Viewing all 179681 articles
Browse latest View live


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