Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all 178257 articles
Browse latest View live

Change LUN of RDM of VM using vSphere SDK for perl

$
0
0

I have a VM, which have a raw device mapper disk (RDM). The RDM is added by using LUN 6 of my storage device. Now, I want to change the RDM to LUN 9 (same properties as LUN 6), but it does not success. My source code as below:

my $backing = $disk->backing;

$backing->lunUuid("01000900003030303935374342313743385453315f5343");

$backing->deviceName("vml.01000900003030303935374342313743385453315f5343");

$disk->backing($backing);

$devspec = VirtualDeviceConfigSpec->new(operation => VirtualDeviceConfigSpecOperation>new('edit'), device => $disk, fileOperation=>VirtualDeviceConfigSpecFileOperation->new('replace'));

$vmspec = VirtualMachineConfigSpec->new(deviceChange => [$devspec] );

$task = $vm->ReconfigVM_Task( spec => $vmspec );

But when I run, it return error: "Invalid operation for device '0'". By the same way, I can change mapping file of RDM successfully. Do you have any idea how to change LUN for RDM?

$backing->deviceName("vml.01000900003030303935374342313743385453315f5343");
    $disk->backing($backing);

error opening installation log file verify that the specified log file exist and is writable

$
0
0

hi

can someone please tell me what's this error?

i have it when reinstalling vsa manager on my vcenter server..

Move-VM between datacenters on same vCenter

$
0
0

Hey all..

 

With a VM powered off, I'm trying to migrate a VM between datacenters within the same vCenter. There's no shared storage, different networks at the destination host. The GUI works (shows warning about missing network at destination), yet move-vm doesn't work between datacenters.

 

Trying: move-vm -vm test-20150309 -destination esx1 -datastore datastore1, I get the error:

 

move-vm : 3/9/2015 2:48:20 PM    Move-VM        Destination container must be in the same Datacenter.
At line:1 char:1
+ move-vm -vm test-20150309 -destination esx1. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (esx1:VMHostImpl) [Move-VM], VimException
    + FullyQualifiedErrorId : Client20_VmHostServiceImpl_CheckMoveVmParameters_InvalidDatacenter,VMware.VimAutomation.
   ViCore.Cmdlets.Commands.MoveVM

 

The manual states -Destination can be folder,host,cluster etc.. Since hosts AND folders are bound by datacenters, I'm guessing it needs to know the new host & new folder. I've tried to use -destination twice, and I've tried -destination host,folder.

 

Move-VM : Cannot bind parameter because parameter 'Destination' is specified more than once. To provide multiple values to parameters that can accept multiple values, use the array syntax. For example, "-parameter value1,value2,value3".

 

Move-VM : Missing an argument for parameter 'Destination'. Specify a parameter of type 'VMware.VimAutomation.ViCore.Types.V1.Inventory.VIContainer' and try again.

 

 

I'm using PowerCLI 5.8, and tried on vCenter 5.0 and 4.0.

move-vm : 3/9/2015 2:48:20 PM    Move-VM        Destination container must be in the same Datacenter.
At line:1 char:1
+ move-vm -vm test-20150309 -destination esx1. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (esx1:VMHostImpl) [Move-VM], VimException
    + FullyQualifiedErrorId : Client20_VmHostServiceImpl_CheckMoveVmParameters_InvalidDatacenter,VMware.VimAutomation.
   ViCore.Cmdlets.Commands.MoveVM

Matching VM Disks to Windows Disk for SCSI Controller 1 (scripts online always work for controller 0)

$
0
0

Hi Folks

 

I am looking to get to the bottom to the bottom of matching VMWare hard disks to disks in Windows using WMI.

 

So far all scripts I have found work with SCSI Controller 0, but it fails when trying to get details on SCSI Controller 1 and for some reason the details in WMI - it always incorrectly reports it as controller 0 even when its not.

 

I found this article which is great, but surely there is a Windows WMI way to get this to compare?

 

echo( "hello wordl" ): Match virtual hard disks in Virtual Center with their disk labels in Windows 2008

 

The other thing I was wondering was based on the article above, is it possible to get the location of the VMX file and read its contents into a variable so that you can match the "scsi1.pciSlotNumber"value to the number reported in WMI?

 

I have scoured the net and this is the closest thing I can find to unpicking this issue.

 

Any help would be greatly appreciated

Cannot open the disk or one of the snapshot disks it depends on - Failed to lock the file

$
0
0

Hello fellas,

 

i have a vm server with 3 VPS mounted on HD1 and a second HD with volume disk "backup.vmdk" only for backup.

 

what i need is, on config of each VPS attache this second virtual disk for backup proposes.

 

I was able to attach VPS1 to this virtual disk, using Add... (hardware tab).  BUT when i try to attach this same "backup.vmdk" to the second VPS2 i got an error.

 

So i Power off the VPS2 and the attach works, when i try to power On this vps2, i got another error and and don't Up.

 

 

Cannot open the disk  or one of the snapshot disks it depends on.

Failed to lock the file

 

'/vmfs/volumes/xxxxxxxxxxx/xxx/backup.vmdk'

TPS, Large page file and Disable Sharing Memroy

$
0
0

Hi

-1 If i disabled sharing memory on a paricular VM is there will be in effect on the peromance ?

- 2 In the Large bage file TPS is not enabled or not function is there any meaning to disable Shring memory  per host ? or there is no relation between TPS and sharing memory across VMS ?

slow VDP backup job

$
0
0

Hi Everyone,

.

I have some problem with VDP. I have successfully run the backup job manually but the speed is too slow as it elapsed for 5 hour but progress bytes is just 66.8GB.

 

I don't understand the reason why did it is so slow like this. I have check the storage's hardware already and it's all fine.

 

I also try copy the file from VM to the storage directly and it's really fast like 1GB per 1.5min

 

Thank for answer in advanced.

Which VSAN objects are on which host ? if VMs objects have correct VSAN policy....

$
0
0

I need to check if in cluster we have some VM which has some for example Hard Disk with only 1 copy.

i see we dont have assigned any Storage policy to Hard Disks then by default should be FTT=1 ? yes

 

I need this because we have last issue with VM where one Hard Disk was only 1 copy on host which was alert:

"Virtual SAN device is under permanent error" in consequence 3 of 4 disk groups was unmounted and object was innacessible.

VM dont started because object was inaccessible.

 

After host reboot unfortunatelly object dont back to cluster and in consequence we restored VM from backup.( thas was the fastest way)

We opened SR in Vmware but engineer dont recovered this object. Now we still trying check what was hapenning...

 

I would like try find some VM with incorrect policy for some Hard Disks to prevent similar situation in future.

 

I belive we can check this somehow by RVC or some other tool ? or command ?

Screenshot_8.png


VCenter in VSAN

$
0
0

hello

i have 4 servers each server has

14 data disk 1.2 TB SAS 10k

each server has 2 SSD 400GB

My question is where can I install my VCenter? and am I able to put it under VSAN  ?cluser

Create VMFS datastore without format the disk

$
0
0

When I use method CreateVmfsDatastore, it create datastore successfully, but the content of LUN is formated. So, is there any way to create the vmfs datastore but still keep the content of LUN.

BEst PRactice to create one large LUn or small LUN

$
0
0

Dear Team,

 

Storage team created one raid group size of 4TB, Now if I want to map this lun on one of the ESXi host so what should I do

 

map two LUN size of 2TB and create two datastore

or

map one LUN size of 4TB and create one datastore.

 

Need ur assistance on the same.

 

regards

Mr VMware

vCenter / vRops - Sharing my scripts

$
0
0

Hello Everyone,

 

I use vRops Suite-API and PowerCLI for vCenter to get data out for my day to day... sometimes I found a wealth of information on the interwebs and sometimes I couldn't find info at all..

 

So I started a blog last week to share the stuff that I am doing with vRops and vCenter specifically in the Capacity and Performance space....if you are interested feel free to check out my blog http://vman.ch/

 

Some of the scripts / examples I already have are:

vRops – suite-api – createCustomGroup

vRops – suite-api – addProperties

vRops – suite-api – createReport & downloadReport

 

For anyone which has ever tried to consume metric data via the Suite-API.... they know how painful it can be! one of the key script I built and which I keep building functionality into pulls multiple metrics, for multiple objects, transforms the data and push it into an XLS, it then builds in the Pivot + it generates a second tab in the XLS with information relating to the host, vm, datastore etc...  This is something i use on a daily basis to provide data to customers (I will be this one will be coming soon)... something which I started with here: Help using Suite-API - getStatsOfResourcesCSV with Powershell Invoke-RestMethod


For vCenter I will also be sharing a powershell script I built to collect Inventory, relationship and metric data... this includes real time data collection using multiple jobs to collect simultaneously (also coming soon)

 

Cheers

Jumbo Frame

$
0
0

Hi guy,

 

Can ESXi6 support Jumbo frame 1600 and 9600?

 

thank you. for any comment.

Extract ESXi host information from vm guest server

$
0
0

Hi All,

 

I have an issue with one of the vm's in our environment, what i would like to do is, extract esxi host information (hostname or IP) from a guest virtual machine running server 2008, could anyone help me with this ?

I know most will say it cant be done, others will ask why as it will expose a security flaw etc...Below i will try to explain to the best of my knowledge why i want to do this.

 

One/more of our system admins are a bit lazy unfortunately and have been cloning servers without running sysprep after the cloning process, as a result I have ended up with what looks like a vm powered off in the vmware console, however i am able to ping the machine, since its running in a terminal services environment, i can RDP to it and see that users are connected to the vm. Theres only 1 vm that shares the same IP and hostname.

 

Troubleshooting so far

- Search for hostname and IP address through the vSphere client

- Run a script that queries DNS names and IP addresses of all vm guests and displays its output

- Checked and matched up the MAC address of the NIC adaptor's

- Ran a couple of tools that also query vm hostnames and IP's to see if the output was the same as the script that was run.

 

Unfortunately the MAC address for the NIC is the same as the powered off VM, and the DNS queries etc all point to a powered off VM.

 

So i was wondering if i could get the esx hostname that the vm resides on from the guest, to carry out the next phase of my troubleshooting

 

Thanks in adavnce for your time

 

Fawad

Can a vcenter server run within a another vcenter ?

$
0
0

Can we run a vcenter server within another vcenter ?

 

This would be temporary.

 

We want to eliminate one of two vcenters (that are in linked mode).  They are both 5.1 running in linked mode.

 

I was thinking we can move the esxi hosts (4.1)  from one vcenter  to the other other. One of the esxi hosts has a 5.1 vcenter server and vcenter DB server running on it. Once all the esxi hosts are in the same vcenter, we can shut down the vcenter we no longer need.

 

Thanks in advance for your response.

 

Best Regards

Tom


Error when creating a Logical Switch - A specified parameter was not correct: spec.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort

$
0
0

I'm trying to create a logical switch and I get the following error:

 

 

Error creating network vxw-dvs-19864-virtualwire-8-sid-5003-LS3 - A specified parameter was not correct: spec.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort; nested exception is com.vmware.vim.binding.vmodl.fault.InvalidArgument:

invalidProperty = spec.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort

inherited from com.vmware.vim.binding.vmodl.fault.InvalidArgument: A specified parameter was not correct: spec.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort.

 

 

I see between the messages in the error a problem with the uplink port order. In my case I have two VTEP and the teaming is Load Balance - srcid.  Any help will be appreciated. Thanks

ESXi 5.5 passthrough Intel Patsburg 4-Port SATA Storage Control Unit

$
0
0

I am currently having difficulties with ESXi 5.5, in passing a Storage Controller to a virtual machine (VM).

 

Configuration:

ESXi started from USB flash disk

Motherboard  - Intel Server Board S2600CP (C602 chipset)

CPU - Intel Xeon Processor E5-2620 (15M Cache, 2.00 GHz)  x 2

DDR3 64Gb = 16384Mb 1600MHz Crucial (CT16G3ERSLD4160B) ECC Reg RTL x 4

HDD SSD 480 Gb connected to Patsburg 6 Port SATA ACHI Controller

 

image006.jpg

 

Second on board SATA Storage controller doesn't present in ESXi but it's OK.

image009.jpg

 

 

 

Patsburg 4-Port SATA Storage Control Unit doesn't have drivers for ESXi 5.5 http://www.intel.com/support/motherboards/server/sb/CS-033235.htm

I create VM with operating system Solaris from the operating system compatibility list.

image010.jpg

 

But VM can not start with passing a Storage Controller.

image013.png



 

# dmesg |grep 06:00.0

0:00:00:08.420 cpu0:32768)PCI: 447: 06:00.0: PCIe v2 PCI Express Endpoint

0:00:00:08.420 cpu0:32768)PCI: 206: 0000:06:00.0: Found Advanced Error Reporting support

0:00:00:08.420 cpu0:32768)PCI: 206: 0000:06:00.0: Found Alternative Routing-ID Interpretation support

0:00:00:08.420 cpu0:32768)PCI: 206: 0000:06:00.0: Found Single Root I/O Virtualization support

0:00:00:08.420 cpu0:32768)PCI: 382: 06:00.0: PCIe v2 PCI Express Endpoint

0:00:00:08.421 cpu0:32768)PCI: 1269: 0000:06:00.0 8086:1d6b 8086:357f discovered

0:00:00:08.421 cpu0:32768)PCI: 953: Add device: 0000:06:00.0

0:00:00:08.421 cpu0:32768)PCI: 998: 0000:06:00.0 8086:1d6b 8086:357f added

2014-09-04T15:48:26.826Z cpu15:33317)PCI: 655: 0000:06:00.0 to 3

2014-09-04T15:48:28.225Z cpu4:33441)PCI: 1095: 0000:06:00.0 named 'vmhba1' (was '')

2014-09-04T15:48:28.759Z cpu4:33441)PCIPassthru: PCIPassthruAttachDev:182: Attached to PCI device at 0000:06:00.0

2014-09-04T15:48:28.759Z cpu4:33441)PCIPassthru: PCIPassthruStartDev:320: Received start request for PCI device at 0000:06:00.0

2014-09-04T15:48:28.759Z cpu4:33441)PCIPassthru: PCIPassthruScanDev:224: Received scan request for PCI device at 0000:06:00.0

2014-09-04T16:06:00.010Z cpu7:34191)World: 14296: VC opID hostd-16ce maps to vmkernel opID d0de3636

2014-09-04T17:06:00.013Z cpu15:34838)World: 14296: VC opID EF405496-00000275 maps to vmkernel opID e6196769

2014-09-04T18:06:00.008Z cpu6:34242)World: 14296: VC opID hostd-b8b0 maps to vmkernel opID 69906aac

2014-09-04T19:06:00.010Z cpu22:34841)World: 14296: VC opID 1e4892af-9a maps to vmkernel opID debdbf47

2014-09-04T20:06:00.011Z cpu2:34193)World: 14296: VC opID EF405496-0000078D maps to vmkernel opID 4dcff7fb

2014-09-04T21:06:00.009Z cpu10:34241)World: 14296: VC opID EF405496-00000940 maps to vmkernel opID 2a347262

2014-09-04T22:06:00.009Z cpu14:34842)World: 14296: VC opID hostd-6121 maps to vmkernel opID 1ab11b11

2014-09-04T23:06:00.009Z cpu15:34829)World: 14296: VC opID hostd-e7d5 maps to vmkernel opID 6ebfa4cc

2014-09-05T00:06:00.011Z cpu21:34193)World: 14296: VC opID hostd-be6b maps to vmkernel opID 99ee3096

2014-09-05T01:06:00.010Z cpu2:34829)World: 14296: VC opID EF405496-00001012 maps to vmkernel opID 66a353f9

2014-09-05T02:06:00.012Z cpu2:34837)World: 14296: VC opID hostd-a53c maps to vmkernel opID 7ad30f34

2014-09-05T03:06:00.010Z cpu10:34842)World: 14296: VC opID hostd-d26f maps to vmkernel opID 5604ae98

2014-09-05T04:06:00.008Z cpu18:34837)World: 14296: VC opID hostd-fed2 maps to vmkernel opID f83f3d23

2014-09-05T05:06:00.012Z cpu2:34828)World: 14296: VC opID hostd-2775 maps to vmkernel opID e40ab870

2014-09-05T06:00:00.008Z cpu19:34836)World: 14296: VC opID hostd-bce6 maps to vmkernel opID 8fe6ad32

2014-09-05T06:00:01.815Z cpu3:34842)World: 14296: VC opID hostd-82cf maps to vmkernel opID 916caf4b

2014-09-05T06:06:00.011Z cpu17:34841)World: 14296: VC opID hostd-281f maps to vmkernel opID 99e69ca4

2014-09-05T07:06:00.010Z cpu22:34841)World: 14296: VC opID EF405496-00001A45 maps to vmkernel opID 259b6f0c

2014-09-05T08:06:00.012Z cpu10:34837)World: 14296: VC opID EF405496-00001BF5 maps to vmkernel opID 799a6e5

2014-09-05T09:06:00.009Z cpu1:34837)World: 14296: VC opID hostd-053b maps to vmkernel opID 96d29143

2014-09-05T10:06:00.006Z cpu10:34837)World: 14296: VC opID EF405496-00001F55 maps to vmkernel opID 72fbfc70

2014-09-05T11:06:00.010Z cpu18:34841)World: 14296: VC opID hostd-bf0d maps to vmkernel opID c8d6bac8

2014-09-05T13:06:00.012Z cpu17:34836)World: 14296: VC opID hostd-9847 maps to vmkernel opID c2fe68a0

2014-09-05T14:06:00.010Z cpu5:34828)World: 14296: VC opID hostd-214e maps to vmkernel opID e333d5c9

2014-09-05T14:45:49.318Z cpu0:32858)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T14:45:58.487Z cpu15:32857)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T14:47:51.360Z cpu7:32856)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T14:52:01.980Z cpu0:32856)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T15:06:00.008Z cpu20:34829)World: 14296: VC opID hostd-f02e maps to vmkernel opID 62a9100d

2014-09-05T15:43:17.055Z cpu18:32856)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T15:56:42.327Z cpu22:32856)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T15:58:59.653Z cpu14:32856)WARNING: IOMMU: 1978: Unable to unset device 06:00.0 since it hasn't been set.

2014-09-05T16:06:00.013Z cpu3:34837)World: 14296: VC opID hostd-25a9 maps to vmkernel opID de978e31

2014-09-05T17:06:00.007Z cpu2:34193)World: 14296: VC opID EF405496-00002BCF maps to vmkernel opID 516bf8e2

2014-09-05T18:06:00.008Z cpu21:34842)World: 14296: VC opID hostd-311f maps to vmkernel opID 26a35105

2014-09-05T19:06:00.007Z cpu13:34837)World: 14296: VC opID hostd-46a6 maps to vmkernel opID 3b1b8a45

2014-09-05T20:06:00.007Z cpu15:34192)World: 14296: VC opID hostd-9213 maps to vmkernel opID a54d8450

2014-09-05T21:06:00.006Z cpu2:34841)World: 14296: VC opID hostd-9300 maps to vmkernel opID 8826c44a


BIOS settings for this controller is "Intel RSTe"


--

Regards,

Rostislav.






Does Workstation Pro V12 KVM mode support 2 monitors?

$
0
0

Does Workstation Pro V12 KVM mode support 2 monitors?

How to Shrink a Windows 2012 R2 Server VM on Mac mini with Fusion Drive?

$
0
0

I have a Windows 2012 R2 Server virtual machine guest, running on a Mac mini that has an Apple fusion drive.

 

QUESTION: What is the procedure to shrink (compress) the .vmwarevm virtual machine file to its smallest possible size?


Once a week, I shutdown the virtual machine, copy it (and then restart it), compress the copy (using Finder's Compress), and then download the compressed file offsite. If I can shrink the virtual machine then the copy, compress, and download operations will take less time.

 

Here are some considerations that complicate the question for me:

 

* The virtual machine has two virtual drives. Here is more info:

C: 43 Gbytes used out of 80 Gbytes. This drive contains the Windows OS and applications. (SCSI. Not "split into multiple files")

D: 15 Gybes used out of 600 Gbytes. This drive contains the document database that is expected to grow over time. (SCSI. Split into multiple files).

 

* The virtual machine is running on a Mac mini with an Apple fusion drive. For some reason, Defrag cannot be run on this virtual machine:

In the "Optimize Drives" (formerly "defrag") control panel, Windows thinks that the Media type is "Solid state drive" and says that "Optimization not available." The "Last run" column says, "Never run."

This is my only Mac with an Apple fusion drive, so I wonder if VMware is telling Windows that the drive is solid state. The Windows virtual machines on my other Macs do not have this issue, but none of them is running Windows 2012 R2 Server. I have a little-used Windows 2008 R2 Server on an ordinary Mac host with a spinning disk.

 

* Normally I would cleanup the drives in Windows, run defrag, zero out the free space, and then run the shrink from the Mac command line (see below for the shrink command that I use). In this case, I have two concerns:

  + Zeroing out the free space on drive D: (600 Gbytes) might grow the physical file to 600 Gbytes and take an unreasonably long time.

  + Whether there is enough free space on the Mac's 1 Tbyte fusion drive to run the shrink command considering the large virtual size of the drive D:. Its "real" size is only 15 Gbytes.

 

* Here is the command I normally use to shrink:

/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager -k (append full path to .vmdk file in package after command)

 

What is the best way to compress this virtual machine after I run Windows cleanup (to delete unneeded recovery backups) and delete other unneeded files?

 

Any advice, suggestions, recommendations would be most appreciated.

"No operating system found" after transferring Windows 2012 from ESXi 5.5 to ESXi 6.0

$
0
0

Hi community,

I transferred a Windows 2012 R2 VM from one ESXi 5.5 to another ESXi 6.0 via scp.

The source works fine after this on 5.5 but the same thing on 6.0 is corrupt. The machine

starts with the selection of the keyboard-layout and will not find a valid operating system.

Any suggestions?

Thanks in advance

Torsten

Viewing all 178257 articles
Browse latest View live


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