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

VcHostDatastoreBrowserSearchSpec filter with match pattern?

$
0
0

Hi,

the VcHostDatastoreBrowserSearchSpec scriptable object has an attribut "matchPattern", see: https://www.vmware.com/support/orchestrator/doc/vco_vsphere55_api/html/VcHostDatastoreBrowserSearchSpec.html

Where can I apply this attribute, if I want to look for a specific folder on the datastore or look for a pattern in the file name? Or do I have to parse the actions output (string array) to filter out the values I need?

 

Here's the code, sorry for not formatting it properly, but I somehow can't access the advanced formatting options:

 

input: datastore and matchPattern (string)

 

-START-

 

var result = new Array();

var fileQuery = new Array(new VcIsoImageFileQuery());

var querySpec = new VcHostDatastoreBrowserSearchSpec();

querySpec.query = fileQuery;

 

var task = datastore.browser.searchDatastoreSubFolders_Task("[" + datastore.name + "]", querySpec);

var searchResults = System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,false,5);

 

for (var i in searchResults) {

     for (var j in searchResults[i].file) {

          result.push(searchResults[i].folderPath + searchResults[i].file[j].path);

     }

}

 

for each (var output in result) {

System.log(output);

}

 

return result;

 

-END-


Adding a Property to a virtual machine

$
0
0

Hello I would like to add a property to a VM in vCAC with vCO so far I am using the code below with the inputs of a virtualMachine, propertyName, propertyValue

 

 

var model = "ManagementModelEntities.svc";

var entitySet = "VirtualMachineProperties";

 

var found = false;

 

var properties = new Properties();

properties.put("VirtualMachineID", virtualMachine.virtualMachineID);

var virtualMachineEntity = vCACEntityManager.readModelEntity(host.id, model, "VirtualMachineProperties", properties, null);

 

//Find property by property name

var virtualMachinePropertiesEntities = virtualMachineEntity.getLink(host, entitySet);

for each (var virtualMachinePropertiesEntity in virtualMachinePropertiesEntities) {

    if (virtualMachinePropertiesEntity.getProperty("PropertyName") == propertyName) {

        found = true;

        break;

    }   

}

 

 

var properties = new Properties();

properties.put("PropertyName", propertyName);

properties.put("PropertyValue", propertyValue);

properties.put("IsHidden", propertyIsHidden);

properties.put("IsRuntime", propertyIsRuntime);

properties.put("IsEncrypted", propertyIsEncrypted);

 

var links = new Properties();

links.put("virtualMachine",virtualMachineEntity);

 

 

if (found == true) {

    if (doNotUpdate == false && propertyValue != "") {

        var entityKey = virtualMachinePropertiesEntity.entityKey;

        var entityKeyId = entityKey.get("Id");

        System.log("Update entity id " + entityKeyId + " with property " + propertyName + " : " + propertyValue + " on virtualMachine entity " + blueprint.displayName);

        }

        else    {

            if (doNotUpdate == true) System.log("doNotUpdate set to true - not updating property " + propertyName);

            if (propertyValue == "") System.log("not updating property " + propertyName + " with empty value");       

        }

}

else {

    System.log("Create property " + propertyName + " : " + propertyValue + " on virtualMachine entity " + blueprint.displayName);

}

 

 

I keep on getting an exception error any help would be apprciated

Convert vCAC Designer workflow to a vCO workflow.

$
0
0

I'm currently using vCAC Designer to modify the WFStubMachineProvisioned workflow to call a PowerShell script to add a DNS record.

In the script, I collect the info below, then use it later in the script to add the records. Works great.

 

$Hostname = $Properties["VirtualMachineName"]
$IPAddress = $Properties["VirtualMachine.Network0.Address"]
$ZoneName = $Properties["ZoneName"]

 

How would I go about doing this in vCO?

I do have the vCAC 6.0 extensibility package installed in vCO 5.5, but I'm new to vCO and am looking for an example of how to pull and pass vCAC VM properties in a PowerShell script.

Use of email ID required for the SRM Installation

$
0
0

Why we need  email ID required for the SRM Installation? what is the use of this email id?

Moving 6 VM's from 1 Intel too 2 AMD machine - Which AMD ?

$
0
0

Morning, I am currently running 5/6 virtual machines on a single i7-27k @ 4.5ghz. When all VM's are running I tend to get 95-100 cpu usage. Each virtual machine runs 2-5% CPU when idle but once running DirectX applications each changes too between 20-25% per VM (on the host). The machine is still useable for web browsing or streaming films but not much else. I have all the components apart from motherboard / CPU to move the VM's to another PC(s). I need the VM's for work however I'm a big gamer and would like to have dedicated machine(s) for the VM's. Each VM machine runs windows 8.1 has access to 4 cores 2GB of RAM and 35gb of HD space. The VM's are split between 2 SSD's.

 

I would prefer to have to have 2 machines and as AMD's seem quite cheap would I be able to run 3 VM's on a £100 AMD CPU (such as A10 7700k 3.8ghz) It's been 10 years since I have used an AMD and although I have looked at different benchmarks I don't think this would translate directly to running multiple VM machines. The host will be Windows 8.1 64bit as will the guests.

 

Regards

Simtech

LSI SAS 2308 terrible write performance in RAID 1, ESXi 5.5 u1 + updates

$
0
0

I have a Supermicro X10SL7-F motherboard, which includes an integrated LSI 2308 SAS/SATA controller, running on a fresh install of ESXi 5.5 Update 1 patch rollup 2.  I have updated the firmware of the LSI 2308 controller to v19 and updated to the latest VMWare driver (version 19, available here: VMware vSphere 5: Private Cloud Computing, Server and Data Center Virtualization).  Reminder: this LSI controller is on VMWare's supported device list.

 

I use two Western Digital Caviar Black 2TB drives in RAID 1 configuration on this controller, and the write performance is absolutely terrible.  The "out of the box" write performance was about 4 MB/s, and after contacting Supermicro support and setting the Disk Cache Policy = Enabled I get about 13 MB/s write throughput.  (FYI, this disk cache policy setting is not accessible via the BIOS menu, you HAVE to use LSI's Megaraid Storage Manager software to set it, which is a huge headache all its own).  This same RAID 1 configuration allows for over 100 MB/s read performance in ESXi, and that is perfectly acceptable.

 

Before people jump all over me for using an integrated controller with no onboard RAM cache, I temporarily ran Fedora Linux and was able to demonstrate over 135 MB/s reads and writes to the same RAID 1 configuration.  Also, as a test I re-configured the RAID settings temporarily to run as RAID 0 (stripe) and the read and write performance in ESXi was just fine, and exceeded 100 MB/s. To me, this clearly indicates the write performance is a problem with VMWare's driver and is not a limitation of the controller or the underlying hard drives.

 

I have scoured the internet and all I see are people re-flashing the controller to run in IT mode, then they use passthrough to get the drives accessible to some underlying VM (e.g. a ZFS storage array, then re-share it back to its parent hypervisor via NFS or iSCSI).  I really don't want to do this if I don't have to!

 

Please, is there anyone who has words of wisdom to make the RAID 1 performance on a LSI 2308 controller not suck on ESXi?  Does anyone know if this same problem exists when running a RAID 10 configuration?

Dashboard sharing or cloning for Log Readers

$
0
0

Hi,

Some of our log readers want some way of sharing dashboards between each other. They are not admins so can't write to shared dashboards.

I presume, at this point, there is no way of granting certain users write/move to rights for some shared dashboards??

OR Is there any way, as an admin, I can clone another users (not my) dashboard to a shared dashboard ??

 

Any ideas / fudges welcome!

 

v 2.0 GA

 

Thanks,

 

Chris

 


Exchange Server 2007 - Unable to connect to MKS error connecting to /bin

$
0
0

Hi Guys,

I'm having problem in getting this resolved. The issue started by Veeam is not removing the snapshots successfully and freezes the VM for a long time till the snapshot removed. Then I have started having Backup Exec agent to backup the Exchange and that was damn slow from 3000 mb/m dropped to 140 and less MB/m which is ridicules.

 

Today I'm having a Shutdown window of 2 hours and first started by stopping exchange services and then I have taken manual snapshot of the VM to delete All the old snapshot and this almost 1 hour and 15 minutes and the progress still 36%.

 

While Snaphsot is going on the entire VM is freeze and ping to the VM is almost Request Timed Out and very high latency.

eply from 192.168.10.91: bytes=32 time=136ms TTL=127

eply from 192.168.10.91 bytes=32 time=2671ms TTL=127

eply from 192.168.10.91: bytes=32 time=8ms TTL=127

eply from 192.168.10.91: bytes=32 time=198ms TTL=127

eply from 192.168.10.91: bytes=32 time=588ms TTL=127

eply from 192.168.10.91: bytes=32 time=274ms TTL=127

eply from 192.168.10.91: bytes=32 time=137ms TTL=127

eply from 192.168.10.91: bytes=32 time=1493ms TTL=127

eply from 192.168.10.91: bytes=32 time=1524ms TTL=127

eply from 192.168.10.91: bytes=32 time=1589ms TTL=127

eply from 192.168.10.91: bytes=32 time<1ms TTL=127

eply from 192.168.10.91: bytes=32 time=388ms TTL=127

eply from 192.168.10.91: bytes=32 time=330ms TTL=127

eply from 192.168.10.91: bytes=32 time=243ms TTL=127

eply from 192.168.10.91: bytes=32 time=1326ms TTL=127

eply from 192.168.10.91: bytes=32 time=720ms TTL=127

equest timed out.

eply from 192.168.10.91: bytes=32 time=272ms TTL=127

eply from 192.168.10.91: bytes=32 time=2992ms TTL=127

eply from 192.168.10.91: bytes=32 time=5ms TTL=127

 

Based on the error I got in the VM console the solution is to re-create a VM and re-attach the VMDK disks to it, but as you know this is Exchange and doing this work is tedious, i'm thinking of if its possible to V2V the VM using vConverter will it sort the issue?

 

Thanks,


How to Set NumLock in the Bios?

$
0
0

I've tried searching everywhere and looked through all the properties on the views, but still can't find anything..


How can I control NumLock behaviour on existing and or when creating a new VM?

 

Thanks in advance.

 

David

Passing machine name to vCO workflow

$
0
0

I just want to make sure I'm on the right track here.  I'm working on a workflow that will kickoff during MachineProvisioned stub to change the dvsportgroup.  I brought in a get virtual machine by name at the beginning of the workflow which then converts the array to a vc:virtualmachine and pass that on.  Is this the best way to get the VM name for the workflow to automatically run? 

 

 

Is it possible to run this during building?  I have a workflow that names my machine.  Maybe if I put a wait in place to allow the VM to finish cloning then change the dvsportgroup?

Vsphere 5.5 Realtek drivers - ping stops responding after starting of services

$
0
0

Hi I slipped stream my realtek drivers into my 5.5 iso.

I have 2 identical servers.  I one server everything is working perfectly

On my second server, 5.5 installs and gets an ip address from my network, however incoming and outgoing pings fails

On reboots, the network activates ( pings works ) until I hit the services section, somewhere just before or on hostd service

my ping fails.

 

So on startup, the pings works until some thing kicks in which stops the ping

 

any help

thanks

 

zak

unable to add the VM to inventory

$
0
0

unable to add the VM to inventory

Unable to delete hung backup job

$
0
0

Hello,

 

I have a hung backup job which I would like to delete... How do I go about doing that? (screen shot attached).

I am able to start new backups and those completed successfully.

 

vCenter server appliance is on Windows Server 2008 R2

VMware VirtualCenter 5.1.0 build-1064983

 

Thanks,

PCTan

ESXi 5.5 installation issue on HP Zbook 15- Integrated Intel I217LM Gigbyte Netowrk (vPRO Configuration)

$
0
0

hi Team,

 

Greetings!!

 

I am trying to setup a small test lab of ESXi 5.5 on HP Zbook 15 Mobile Workstation. the Config of the machine is Intel core i7 vPRO, 32 GB RAM, 500 GB smart Sata HDD.

 

During the installation, network card is not detected and installation aborts.

 

Network Card Details:

 

Integrated Intel I217LM Gigabyte Network Connection (vPRO Configuration)

 

Attached is the tech specs of the workstation for your reference. At this point I have tried couple of vib files which doesn't recognize this network card. I have attached these files as well.

 

Request your help to get the network drivers for ESXi 5.5 for this hardware.

 

your help is this regards is highly appreciated.

 

Thanks in advance.

 

Regards,

 

Amol K.

Taskbar Icon problem with Google Chrome 32

$
0
0

Hi Everyone,

 

I have a problem when I try to thinapp Google Chrome 32. I did the capture with WinXP using Thinapp 5.0. The application is working very well but I only have one problem. The Chrome taskbar icon in Windows 7 is not working. Instead, I see the icon included in the screenshot. If Chrome is locally installed on the machine, it works. I tried to capture on a Win7 32 and 64 bits and it gives the same problem. Does anyone had the same problem and found a solution?

 

Thank you

 

Francis

Screenshot.jpg


ERROR: failed to locate and extract VM_ID

$
0
0

Hello i got a Problem with my ghettvcb backup script. It always shows the error ERROR: failed to locate and extract VM_ID for vmdkname.vmdk!

 

I use the right vmdk name with case sensitiv. I start the Script with following command : 

./ghettoVCB.sh -g ghettoVCB.conf -f vm_to_backup -d dryrun

 

im allready in the folder of ghettovcb for the command below... I dont know what im doing wrong.

 

heres the ghetto.conf

 

VM_BACKUP_VOLUME="/vmfs/volumes/Backup NFS/backup_restore"

DISK_BACKUP_FORMAT=thin

VM_BACKUP_ROTATION_COUNT=1

POWER_VM_DOWN_BEFORE_BACKUP=0

ENABLE_HARD_POWER_OFF=0

ITER_TO_WAIT_SHUTDOWN=3

POWER_DOWN_TIMEOUT=5

ENABLE_COMPRESSION=0

VM_SNAPSHOT_MEMORY=0

VM_SNAPSHOT_QUIESCE=0

VMDK_FILES_TO_BACKUP="all"

ENABLE_NON_PERSISTENT_NFS=0

UNMOUNT_NFS=0

NFS_SERVER=NFS_serverip

NFS_VERSION=nfs

NFS_MOUNT="/vmfs/volumes/Backup NFS/"

NFS_LOCAL_NAME=nfs

NFS_VM_BACKUP_DIR=Servername_dir

SNAPSHOT_TIMEOUT=15

How to recover corrupt SQL MDF file when T-SQL script got failed to recover it?

$
0
0

In order to recover the corrupted SQL database from a Full database backup I tried this SQL Statements: RESTORE DATABASE { database_name | @database_name_var } [ FROM[ ,...n ] ] [ WITH   {     [ RECOVERY | NORECOVERY | STANDBY =         {standby_file_name | @standby_file_name_var }       ]   | , [ ,...n ]   | ,  | ,  | ,  | ,  | ,  } [ ,...n ] ] [;]

But the output which I got is undesirable hence resulting in Error. I can’t access SQL database any more please help me to out this disastrous situation. And please don’t provide options like restart SQL Server services, run DBCC CHECKDB etc. I got completely disappointed with these options.

ESXi 5.5 U1 on IBM x3650 M4 Server

$
0
0

Hello all,

 

I am trying to install VMware ESXi 5.5 U1 on my IBM x3650 M4 (MT: 7915-N6A) Server but server could not boot up from 5.5 U1 ISO. I download that ISO from IBM official website only so I thin not any issue about compatibility or anything else and same server could boot with ESXi 5.0 but setup stuck at imgpayld.tgz everytime.

 

After that I download ISO from VMware website and got same issue. I also tried to boot from CD and USB storage, 5.5 and 5.1 ISO also but not suceed. I checked ESXi and server compatibility on VMware website, It seems together both working good.

 

Can anyone help me to solve out?

 

Regards,

Kalpesh Padariya

How does VDP incremental backup really work?

$
0
0

Hi,

 

I'm a little bit confused about how VDP incremental backup really work.

 

VDP-timeline.jpg

 

Let's say I use 7 days retention policy.

On the first day, VDP does full backup. Then on, the subsequent backups after full backup are always be incremental.

 

My questions are:

  1. On day 8, VDP would run another backup job. To comply with the policy, will VDP delete backup on Day 1 or will it merge Day 1 & Day 2 backups into one? My confusion is, if VDP delete backup on Day 1, the subsequent backups after full backup will be useless.
  2. If VDP does merge Day 1 & 2 backups, what type of backup (full or incremental) would VDP do on Day 8?

 

I hope my questions are clear enough.

 

Note: I'm using VDP 5.1 (if there is any behavior difference between 5.1 & 5.5).

 

Thank you.

 

Regards,

Apenk

Storage troubles VMFS 5.58 still MBR

$
0
0

Hi all,

 

Recently i needed to upgrade both our ESX hosts with 2 disks on their local SAN's. I expanded the raid via hpssacli. They are both DL380P Gen8's with custom HP ESXi images upgraged to 5.5.

 

The expand procedure on ESX01 was going fine. After the expand i increased the size of logicaldrive 1 to set=max. I could then increase the size via the vsphere client. However, the client didn't perform the GPT upgrade as it should.

So, i did the exact same procedure on our ESX02 host. Increasing the logicaldrive to set=max and increasing the size in vsphere client. ESX02 did perform the upgrade to GPT and saw the 2.2Tb datastore.

 

Is there anyone out here with information about this particular issue? I would love to be able to change the partition table from MBR to GPT on ESX01 without data loss.......... Gparted maybe?!

partedUtil gettbl output on ESX01:

partedUtil getptbl /vmfs/devices/disks/naa.600508b1001ccfdf519408d1376f2c04

msdos

291828 255 63 4688226224

1 32 8388639 11 128

2 8402944 4294961684 251 0

 

Strange, there appears to be a second partition? Whilst on ESX02 there is only one partition:

 

partedUtil gettbl output on ESX02:

partedUtil getptbl /vmfs/devices/disks/naa.600508b1001c5b8e894d9f3237618fbd

gpt

291828 255 63 4688226224

1 2048 4688224255 AA31E02A400F11DB9590000C2911D1B8 vmfs 0

 

Also, partedUtil getusablesectors on ESX01:

partedUtil getUsableSectors /vmfs/devices/disks/naa.600508b1001ccfdf519408d1

376f2c04

1 4688226223

And on ESX02:

partedUtil getUsableSectors /vmfs/devices/disks/naa.600508b1001c5b8e894d9f32

37618fbd

34 4688226190

 

I also added 2 screenshots from the GUI. There you can also see ESX01 and ESX02 with difference in SCSI Disk info.

 

Maybe someone can help me setup the correct partedUtil syntax to increase the VMFS on ESX01 and change the part.tbl to GPT instead of MBR without losing data!

 

Our ESX02 hosts only replica servers, so as worst case scenario i could migrate all the live servers, delete the VMFS and create a new one. However, i hope there are other options for us.

 

Thanks in advance,

With kind regards,

Rick van der Boor

Viewing all 178040 articles
Browse latest View live


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