Quantcast
Channel: VMware Communities : All Content - Virtual Machine, Guest OS and VM Tools
Viewing all 2641 articles
Browse latest View live

%VMWAIT and poor VM performance?

$
0
0

Hey all -

 

I have a Linux VM that runs a database backup task at a set time every evening. The backup task is IO intensive and the obvious problem seems to be storage latency, but I wanted to get a second opinion to see if I'm missing anything. Here are some observations:

 

From the guest OS level, the top command shows CPU utilization spikes with the start of the backup task. The "wait" counter in top (that measures time waiting for IO completion) goes from around 0 prior to the backup job to around 70. Load averages also go through the roof in top. This all settles down following backup job completion.

 

In esxtop, I see the following numbers for the VM's CPU:

 

- %USED = 41.27

- %WAIT = 1200.00

- %VMWAIT = 258.49 (this is head and shoulders above any other VM's value running on the same ESX host)

- %RDY = 0.14

- %IDLE = 120.39

- %CSTP = 1.01

- %SWPWT = 0.00

 

And the storage latency numbers for this VM go from less than 10ms normally to as high as 90ms during the backup job. After the backup job, storage latency goes back to less than 10ms.

 

Is there anything I've missed here or should be looking at additional? The %VMWAIT jumped out at me because that 258.49 value is just so much higher than any other VM during the backup job. Normal %VMWAIT for that VM is around 0.00.

 

The host does not appear to be saturated in CPU or memory at the time of the performance issue for the VM.

 

Thanks!


Several VLAN per Standard vSwitch

$
0
0

Hi,

 

how can i assign more then one VLAN to a Standard vSwitch?

 

We have vSphere 6.0 and ESXi 6.0 running.

P2V VMware vCenter Converter Standalone Client Failed " Failed to read request; stream......"

$
0
0

I am using VMware vCenter Converter Standalone Client 6.0.0 to convert a Windows Server 2003 machine that about 400GB of data file.

I am doing Hot cloning without the synch turn on. During the cloning, no other people will access to the server, so do not expect any file changes.

But i hit with this error:

 

2016-12-20T16:33:48.733+08:00 error vmware-converter-worker[02148] [Originator@6876 sub=Ufa.HTTPService] Failed to read request; stream: <io_obj p:0x029b611c, h:-1, <pipe '\\.\pipe\vmware-converter-worker-soap'>, <pipe '\\.\pipe\vmware-converter-worker-soap'>>, error: class Vmacore::TimeoutException(Operation timed out)

 

Can let me know what goes wrong? Please refer to the attached worker log.

Thank you.

"Guest Managed" VMware Tools

$
0
0

Is there anything wrong with "Guest Managed" tools.

 

How can i change it back to the regular VMware Tools

Port Trunk HP Procurve only 1 Gbit on VM

$
0
0

Hi,

i have some DL360 Servers here with 8 NIC's. 5 of this NICS are connected to a HP Procurve Switch and configured as a Trunk.

 

the vSwitch has the Load Balancing Policy "Route based on ip hash" enabled.

 

Everything looks good so far, but in VM (Windows 2012R2) connected to this vSwitch, i only have 1 Gbit Ethernet. Network Adapter is E1000E.

 

How can i get this 5 Gbit/s to the VM itself?

PXE boot VM's on multiple networks.

$
0
0

Running VCenter Server 6.0. ESXi 5.1.

 

First off its been a while since I have posted here I apologize if this is in the wrong place.

 

I am researching using a pxe server for our vm's. In the link below it says the pxe boot server must be on the same network as the VM's network adapter.

 

VMware vSphere 5.1

 

We have about 5 different VLANS that we stand VM's up in. Do I really have to have a PXE server in each VLAN or is there another way I can serve new pxe boot VM's that will be on different VLANS and point them to a single PXE server?

Is vmware strictly for 64-bit systems??

$
0
0

I only have 32-bit Linux laptops and would like to install vmware and Hadoop for learning purposes. Is this possible or do I have to use 64-bit systems only?? This is putting a dent in my learning Hadoop specifically because I'm looking to make a career change from working in command centers or NOC's to Hadoop programming and/or Hadoop system administration. Appreciate any assistance anyone can provide.

 

Thanks!!

VM in Portrait View?

$
0
0

I just built a new desktop machine.  I'm running Kubuntu 16.04 and have Workstation Pro 12.5 on it.  I created a Windows 10 VM, which works, but:  although my Linux is running in portrait view (screen turned 90 degrees), the VM insists on being in landscape view, which means it extends off the screen.  Within Windows 10, when I go into Settings/Display, the options to rotate the screen are grayed out.

The video card on the Linux machine is the GeForce GTX 750 Ti.  It is running NVIDIA's 367.57 driver, which I believe is the latest.  Within Linux, the display settings show the monitor rotated 90 degrees, as it should be.

 

I have no idea what to try next.  Within Workstation, the hardware setting for the VM display is on Audo detect, and, on the right side of the panel, "Use host settings for monitors."

 

I have a snapshot of the VM, so I can try just about anything without losing my place.  Ideas are welcome.  Thanks in advance.


VMware SOAP SSL issues

$
0
0

Hi,

 

I'm trying to use fence_vmware_soap to configure fencing with Pacemaker/Corosync on Debian Jessie.

 

The command line I am trying to connect with is this:

fence_vmware_soap -o list -a vsphereip -l "user" -p "password" --ssl-insecure -v

 

All I'm getting is the following:

Unable to connect/login to fencing device

 

In vSphere i can see the following:

[10488 warning 'ProxySvc'

SSL Handshake failed for stream <io_obj p:0x0000000009f68be8, h:3616, <TCP 'vsphereip:443'>, <TCP 'clientip:47810'>>, error: class Vmacore::Ssl::SSLException(SSL Exception: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca)

 

If there are any SSL issues, shouldn't --ssl-insecure ignore them?

I've tried to connect directly to the ESXi hosts as well without success.

 

Sorry if I've missed something obvious, I'm quite new to VMware.

 

Oh, and I'm using vSphere version 5.5.0

VM overruns monitor screen

$
0
0

I'm running Kubuntu 16.04 and have installed Workstation 12.5.2.  I have a Windows 10 VM.  The host machine (Kubuntu) fits the monitor just fine, but the Windows VM "screen" is too large; it has both vertical and horizontal scrollbars showing ("overstretch"?).  My graphics card is GE 750Ti, and I have NVIDIA's X Server Settings program installed as well.  Within the VM, the only choices for display resolution are the standards, all of which are in landscape mode.  I use portrait mode, so none of those do me any good.  Any ideas on what I should try next?  Thanks.

Is it possible to install the VMware Tools in Red Hat Linux 6.0 anymore?

$
0
0

Hey,

 

I have a VM of Red Hat Linux 6.0 (to clarify, I'm talking about the discontinued home distribution, not RHEL) running in VMware Workstation 12 Player. It's working, but X is limited to 640x480x16, and I'd like to increase the resolution and colour depth. According to this support article, better resolutions require the VMware Tools. Sadly, installation of the current VMware Tools using the menu option immediately fails:

[root@localhost vmware-tools-distrib]# ./vmware-install.pl

Can't locate warnings.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at ./vmware-install.real.pl line 20.

BEGIN failed--compilation aborted at ./vmware-install.real.pl line 20.

Is it still possible to obtain a version of VMware Tools which is intended for a guest distro this old? Would it be compatible with modern VMware? Help would be much appreciated.

linux install

System Requirements

$
0
0

i want to install redhat 7 on esxi 5.5 u2 but i cant find redhat' System Requirements . min memory and cpu for redhat 7 ?

P2V problem

$
0
0

I am doing P2V for DELL laptop but getting error on 98%

error "failed: A general System error Occurred;Plateform-specific error 2; an error occurred during reconfiguration"

 

can some some give solution to fix the issue

 

Regards

Mahendra Kashyap

Start Powershell scritps from other server

$
0
0

I try to start a Powershell script on a VM windows server.

I try this script in this discussion for update templates automatically.

Automation of Windows Updates for Templates

 

When i start the script manualy from my manage server then the scripts start perfect. And the script stops perfect. I see all the message in the powerCLI command Windows.

 

But when i use the task scheduler the scripts hang in the "Running" state.

I se that the vm is convert from template to VM.

And then start the VM.

And then VMWare Tools check.

 

But then nothing more happening.

It is running for no one day.

 

I Think the scripts hangs in the powershell command "Invoke-VMScript -ScriptType PowerShell"

 

I don't see any logs about this. I don't se whats heppening in the scripts.

 

Does anyone have experience with this problem.

 

Is the problem in the powershell sripts on the vm or are the problen about task scheduler.

What should I consider when it comes to this problem.

 

Regards

Patrik


Vmware Tools running but unsupported

$
0
0

I am having VC 5.0 and host running at ESX 4.1 , i can see at few VM summary that Vmware tools status as "Running (Unsopported)". I can confirm i am using the correct OS version i.e W2k3 Sp2 and as far recall this was not when i am using VC at 4.1

 

What is this Running (Unsupported) means and what is Vmware tools version status?

 

Thanks

Unable to access File since it is locked. Error

$
0
0

I have a VM Template that i am trying Deploy to a new machine, but the deploy tasks errors out with "A File was not found" error.  I converted the template back into a VM and tried to start it and got the error "Unable to access a file since it is locked"  How do i find the locked file and unlock it?

vSphere Replication 6: Introducting support for Linux Guest OS qiescing

$
0
0

I have scoured everywhere for more details on this.. and find NOTHING anywhere..  oh wait, I found this statement in a VMware KB2041909 that was updated Dec 28, 2016:

 

"vSphere Replication does not support quiescing for Linux" 

 

Can someone from VMware, or other knowledgeable vExpert, shed light on this... 

 

When reading the release notes of vSphere Replication 6, it actually states the following:

 

"Linux guest OS quiescing: introducing Linux guest OS quiescing service to provide file-system level crash consistency to replicated Linux-based VMs."

 

Is it just me, or does the "crash consistency" part of this statement stand out like a soar thumb?    I was under the impression that when a snapshot is taken without proper quiescing of the OS it will create a crash consistent image, and when properly quiesced the image becomes transaction consistent..

 

I did read long time ago that in the VMtools directory you can place files in it that contain your custom scripts to freeze and thaw, is this what this is referring to?  but if yes, this isn't new at all, I read this many years ago.. and even now can't find any reference to documentation on it.

 

Forget the points, beer for anyone who can share some expertise on this one..  but only when you are in Boston, I can't afford to travel to buy you a beer.. 

PowerShell cmd

$
0
0

PowerShellスクリプト(ps1)の実行を許可するには

IaaSのサーバではそのままで実行OK


Windows PowerShell スクリプトを実行する


> Set-ExecutionPolicy RemoteSigned

set-execpol.png

 

 

取得した情報を変数として引き渡すには、|(パイプ)と()を使う

Windows PowerShell の機能

 

 

if と switch

Windows PowerShell If Statement. Also 'Else and 'ElseIf' constructions

Windows PowerShell - Switch Statement Examples


特定のファイルが存在しているかどうかで処理を分岐させる

ファイルやフォルダが存在するかを確認する方法[PowerShell] : バヤシタ



標準出力とエラー出力、リダイレクトのまとめ

http://www.itlab51.com/?p=5595

 

 

 

about_WQL

https://technet.microsoft.com/ja-jp/library/jj679341.aspx

WQL は、Windows Management Instrumentation (WMI) のクエリ言語であり、WMI から情報を取得するために使用します。

WQL を使用するために必要な基本的な WQL ステートメントは、Select、Where、および From です。


Get-WmiObject で使用できる WQL クエリは、すべて Get-CimInstance でも使用できます。


Windows PowerShell 3.0 で導入された CIM コマンドレットは、WMI コマンドレットと同じタスクを実行します。CIM コマンドレットは、WS-Management (WSMan) 標準と Common Information Model (CIM) 標準に準拠しています。

そのため、コマンドレットは、Windows コンピューターと他のオペレーティング システムを実行しているコンピューターを、同じ手法で管理できます。

Get-WmiObject は ManagementObject を返しますが、Get-CimInstance は CimInstance オブジェクトを返します。ただし、どちらのオブジェクトも非常に似ています。

 

Wmi-Object と CimInstance は同じように使えるが、 CimInstance のほうが新しく作られた汎用的なコマンドレット・・・ということか?

Get-WmiObject または Get-CimInstance で、-ClassName と -Property のパラメータを指定する場合と、-Query で WQL を使用する場合は得られる結果にあまり違いがない。

ClassName が Win32_UserAccount のような、値の件数が多いケースで必要な項目の値だけを取得したい場合は、-Query や -Property で項目を指定するのではなく、

取得した値(のリスト)をパイプでSelectに引き渡してた方が、不要な項目名が無い状態で値を取得できる。(最後の実行例)



PS C:\Windows\system32> Get-CimInstance -ClassName Win32_Bios


SMBIOSBIOSVersion : L01 v02.53

Manufacturer      : Hewlett-Packard

Name              : Default System BIOS

SerialNumber      : JPA50796NS

Version          : HPQOEM - 20141020

 

PS C:\Windows\system32> Get-CimInstance -Query "Select * from Win32_Bios"

 

SMBIOSBIOSVersion : L01 v02.53

Manufacturer      : Hewlett-Packard

Name              : Default System BIOS

SerialNumber      : JPA50796NS

Version          : HPQOEM - 20141020

 

PS C:\Windows\system32> Get-CimInstance -ClassName Win32_Bios -Property Name


Status                :

Name                  : Default System BIOS

Caption              :

SMBIOSPresent        :

Description          :

InstallDate          :

BuildNumber          :

CodeSet              :

IdentificationCode    :

LanguageEdition      :

Manufacturer          :

OtherTargetOS        :

SerialNumber          :

SoftwareElementID    : Default System BIOS

SoftwareElementState  : 3

TargetOperatingSystem : 0

Version              : HPQOEM - 20141020

PrimaryBIOS          :

BiosCharacteristics  :

BIOSVersion          :

CurrentLanguage      :

InstallableLanguages  :

ListOfLanguages      :

ReleaseDate          :

SMBIOSBIOSVersion    :

SMBIOSMajorVersion    :

SMBIOSMinorVersion    :

PSComputerName        :

CimClass              : root/cimv2:Win32_BIOS

CimInstanceProperties : {Caption, Description, InstallDate, Name...}

CimSystemProperties  : Microsoft.Management.Infrastructure.CimSystemProperties

 

PS C:\Windows\system32> Get-CimInstance -Query "Select Name from Win32_Bios"

 

SMBIOSBIOSVersion :

Manufacturer      :

Name              : Default System BIOS

SerialNumber      :

Version          : HPQOEM - 20141020


 

PS C:\Windows\system32> Get-CimInstance -ClassName Win32_Bios | Select Name

 

Name

----

Default System BIOS

 

PS C:\Windows\system32> Get-CimInstance -ClassName Win32_UserAccount | select Name

 

Name

----

Administrator

Guest

H215015

QNDSYS16

___VMware_Conv_SA___

Administrator

Guest

krbtgt

SUPPORT_388945a0

melitdssadm

melitdsssys

melitdssusertemp

sysBackupexec

ZV46977

GN20309

RT04808

 : ※ MIND-AD ドメインのユーザー情報も全て取得してしまう。


 

WMI Class

Retrieving a WMI Class (Windows)

Win32_Account class (Windows)  グループのほう

 

Win32_UserAccount class


Win32_UserAccount の各プロパティの説明

512 は AccountType が Normal account であることを示す。

 

※ MIND-AD ドメイン参加PCでGet-CimInstance を実行するとドメインユーザー情報を取得してしまうので注意すること

 たぶん↓の注記はこのことを言っている?

Note  Because both the Name and Domain are key properties, enumerating Win32_UserAccount on a large network can negatively affect performance. Calling GetObject or querying for a specific instance has less impact.


GetObject はVBScriptでしか使えない。Queryでインスタンスを特定するには、以下のコマンド例のように、whare で LLocalAccount が Trure のみ抽出するよう指定すればよい。

これだと、ホスト名も影響しないので、実行サーバが変わっても大丈夫。

DSP-PC2081 でインスタンスを指定せずに実行すると 30分以上かかっていた処理が、一瞬で完了するようになった。(ADのユーザー情報を取得していないと思われ)

本番稼動中のサーバで、万が一、ドメインに参加しているサーバだったとしても、負荷の心配なく実行できる。

 

PS C:\Windows\system32> get-ciminstance -query "select * from Win32_UserAccount where LocalAccount = 'true'"

 

Name            Caption                            AccountType                        SID                                Domain

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

Administrator    DSP-PC2081\Administrator            512                                S-1-5-21-2989615179-323239334-30... DSP-PC2081

Guest            DSP-PC2081\Guest                    512                                S-1-5-21-2989615179-323239334-30... DSP-PC2081

H215015          DSP-PC2081\H215015                  512                                S-1-5-21-2989615179-323239334-30... DSP-PC2081

QNDSYS16        DSP-PC2081\QNDSYS16                512                                S-1-5-21-2989615179-323239334-30... DSP-PC2081

___VMware_Con... DSP-PC2081\___VMware_Conv_SA___    512                                S-1-5-21-2989615179-323239334-30... DSP-PC2081

 

 

比較実行例: インスタンスを指定せず、QueryのフィルタやLocalAccount 以外のインスタンスの指定方法を試した場合

このコマンドの実行結果では、結果的にMIND-AD ドメインのユーザー情報は出力されないが、完了するまでに30分程度かかっているのでADユーザー情報が処理対象から除外されているわけではない。

構築中のサーバはドメイン非参加のため問題ないが、本番稼動中のサーバでは注意が必要。

 

PS C:\Windows\system32> get-ciminstance -query "select * from Win32_UserAccount where Domain like '$env:computername'" | select Name, Caption

 

Name                                                                            Caption

----                                                                            -------

Administrator                                                                  DSP-PC2081\Administrator

Guest                                                                          DSP-PC2081\Guest

H215015                                                                        DSP-PC2081\H215015

QNDSYS16                                                                        DSP-PC2081\QNDSYS16

___VMware_Conv_SA___                                                            DSP-PC2081\___VMware_Conv_SA___

 

 

★★★ Issue

取得したユーザーアカウントのリストを使って、net user コマンドを実行できるようにする。

net user コマンドに、ユーザー名を $_ で渡しても「このコマンドの構文は次のとおりです」となってユーザー情報が取得できない。

net user の代わりに echo $_ 等を実行すると、userlist2.txt の各行をechoコマンドで表示できている。

 

$dir="C:\IaaSadmin\"

 

Get-CimInstance -Query "select * from Win32_UserAccount where LocalAccount = 'true'" | Select Name > $dir"userlist.txt"

(cat C:\IaaSadmin\userlist.txt)[3..((cat C:\IaaSadmin\userlist.txt).Length-3)] > $dir"userlist2.txt"

 

cat $dir"userlist2.txt" | Foreach-Object {net user $_;echo "---------------------------------------"}

 

★★★ Solve

.net - What's wrong with my foreach loop? - Stack Overflow

 

$_ を使わない方法にした

$UserList = Get-CimInstance -Query "select * from Win32_UserAccount where LocalAccount = 'true'"

foreach ($User in $UserList)

{

net user $User.Name;

echo "---------------------------------------"

}

 

 

ローカル ユーザー アカウント情報の取得


PowerShellでCIM cmdletを用いて対象PCのユーザーや所属するユーザーグループを調べる - tech.guitarrapc.cóm

https://technet.microsoft.com/en-us/library/jj590758.aspx

 

Windows OS入門:第1回 ユーザーとグループアカウント (2/2) - @IT

Windowsローカルユーザーのパスワード有効期限確認用PowerShellスクリプト - YOMON8.NET



WMI と Windows PowerShell を使用してユーザーの SID を取得する方法はありますか

 

後述のローカル セキュリティ ポリシーを取得するコマンドの実行結果で、ユーザー権利の割り当て等に設定されているユーザーがアカウント名ではなくSIDで出力されているため

SIDとユーザーアカウント名の紐付けのために、SIDも出力したファイルも出しておくといいかも?

 

 

Get-Content(cat)を使って、テキストファイルの任意の行を抽出する

上記方法で取得したユーザーアカウント一覧のテキストファイルから不要な先頭の3行を除いて、変数リストとして使えるようにする。

 

PowerShell/テキストファイルの指定した範囲を抽出する・Get-Content - Windowsと暮らす

PowerShell/テキストファイルの行数を取得する方法・Get-Content - Windowsと暮らす

 

get-ciminstance -query "select * from Win32_UserAccount where Domain like '$env:computername'" | select Name > $dir"userlist.txt"

(cat C:\IaaSadmin\users.txt)[3..((cat C:\IaaSadmin\users.txt).Length)] > $dir"userlist2.txt"

 

Get-CimInstance の実行結果をテキストファイルに出力し、4行目から最終行までを新しいテキストファイルに出力する。

 

 

空白行を削除

PowerShell: ◆テキストファイルから空行を取り除く

 

読み込んだファイルから空白行を除いて新しいファイルに出力する。

このとき、読み込んだファイルと同じファイル名を新しい出力ファイル名にすることはできないため、新しいファイルを出力後に不要であれば元ファイルはrmする。

 

例)

wmic SERVICE get "Name,DisplayName,StartMode,Startname,PathName,State" /TRANSLATE:NoComma /format:csv > $dir"service_b.csv"

Select-String -Pattern "\S" -Path $dir"service_b.csv" | %{$_.line} >service.csv

rm $dir"service_b.csv"

 

 

WMIC コマンド

Windows wmic command line command

WMIC - Windows Management | Windows CMD | SS64.com

サーバーの役割と機能 

Get-WindowsFeature

 

インストールされたプログラムの一覧を取得(WMIインストーラでインストールされたもののみ=プログラムと機能の一覧に表示されるもの)

get-wmiobject -class win32_product | format-list -property Name, Vendor, Version, installdate

 

 

https://www.petri.com/command-line-wmi-part-1

https://www.petri.com/command-line-wmi-part-3

 

 

 

ローカル セキュリティ ポリシー

secedit コマンドによるローカルセキュリティポリシーの操作 | 俺的備忘録 〜なんかいろいろ〜

どうやら、この一覧を見る限りPowerShellのコマンドレットにはグループセキュリティについて操作できるものはあっても、ローカルセキュリティポリシーについて操作するものは無いようだ。

 

一覧の取得は可能

例) コマンド実行時のカレントディレクトリにセキュリティ

> secedit /export /areas SECURITYPOLICY /cfg secedit.txt

項目名が全て英語だが、出力は一瞬で終わる。



diff

PowerShellで2つのファイルを比較する - Qiita



リモートサーバ上での操作

 

「クライアント側の信頼登録」

Set-Item WSMan:\localhost\Client\TrustedHosts -Value *

 

「リモート接続コマンド」

Enter-PSSession -ComputerName <HostIP or HostName> -Credential <HostIP or HostName>\<UserName>



パフォーマンスカウンタの取得

https://technet.microsoft.com/ja-jp/library/hh849685.aspx

https://technet.microsoft.com/ja-jp/magazine/ee872428.aspx

 

例)

> Get-counter -Counter "\Memory\Committed Bytes" -SampleInterval 120 –Continuous

> Get-counter -Counter "\Memory\Available MBytes" -SampleInterval 120 –Continuous

> Get-counter -Counter "\Memory\% Committed Bytes In Use" -SampleInterval 120 –Continuous

How to connect USB Devices to VM Guests in CentOS 7 and VMWARE 12?

$
0
0

Hi.

 

I have installed VMWARE 12 on CentOS 7

 

I have got the VM Guest Running Windows XP.

 

I have a USB Token, which i need to connect with Windows XP VM Guest, but when i right click on the guest tab, and select the removeable devices, it does not show the usb token.

 

I had the setup running in CentOS 6 with VMWARE 10, the same setup was working fine and i was able to connect the usb token with the VM Guest, but after the upgrade, VMWARE 12 is not showing any USB devices.

 

Where can i be wrong in setting up the devices.

 

Abhinav

Viewing all 2641 articles
Browse latest View live