store the object reference handle (MOR) to synchronize with the virtual center of vSphere

Hello

I am able to store a bit in my own DB and assume that they don't change, so that I can match the entities in the virtual centre with those of my database loading my application?

Document best practices of Balaji Parimi (http://communities.vmware.com/docs/DOC-9912) States:

Caching of managed object references rather than their
Properties makes it easy to keep the cache to update. It is easier to maintain
the cache, as the references remain unchanged until the managed object is removed from the inventory of managed object.

Because of this comment, I am inclined to believe that I should be able to write the bit on my side in the DB and use them as described.

Why I ask this is because:

  • It seems that a lot of people is keen to track VMs by uuid.  I'm guessing they are only followed VMs, otherwise they would probably have the same problem I'm having (ex: If a Resource Pool gets renamed while the application is down, how can you identify whether the same as the one you had).

  • The vSphere Web Services SDK Programming Guide seems to be confusing by having a section entitled Do not store Managed Object reference values.  This section seems just to point out that the MOR is not the same between the vCenter server and ESX box.  Because I don't like to manage the host communicating directly with it (and keep track of the GPR in this way), I don't see how this would apply.

Has anyone been matching their own entities vmware with JAWS?  Is there a reason for (am I wrong something)?  Wouldn't be wonderful if this confusion has been cleared up by Balaji Parimi or VMware themselves.

Thank you

Ivan

The recommendation contained in the best practices doc is right.

You can store the MOR of an entity in your DB.

For such objects as hosts, VMs data warehouses, etc... Essentially, this is the unique key that identifies the object.

And the MOR will change during the lifetime of this object in the DB vCenter.

The only way it modifies if it removes and adds the object. So for all practical purposes it is a new object anyway.

What the program guide refers, is the fact that this MOR the 'ID' of the object is only within this system namespace.

Thus, the VM MOR is unique within the Victoria Cross.

That MOR are only may not or may not even be object even if you connect directly to the ESX host using the SDK.

The guide is just trying to clarify that the MOR of a VMS in vCenter isn't the same as if you connect to the ESX host directly.

That said, if you never connect to the ESX host directly you must not care about this specific recommendation in the guide.

Hope that clarifies things.

Tags: VMware

Similar Questions

  • Cannot access the virtual center with web access

    Hello

    I can access my ESX hosts without problem using web access but I can't access the virtual Center.

    I put https://hostnamevCenter

    I go as far as the home page and once I click on web access connection I get the following error:

    '503 service unavailable '.

    Any suggestions? Is web access configured automatically for vCenter or what I need to do something more?

    Thanks in advance

    Hello

    Check this http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1009291

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Prakash

  • How to add a data center on the virtual center via VI client server?

    How to add a data center on the virtual center via VI client server?

    I formatted ESX server & ESX Server Update installed keeping the data center on the storage (of many desktop computers)

    Now I have fresh installed a new server of virtual & added the ESX Server, but I'm unable to reattach existing data centers on storage.

    What will be the way to import of existing data on server Center virtual center?

    Help, please...

    Is ' VMware-VMimporter - 2.0.0 - 30557 "is the software through which I can solve my problem?

    You need to browse each data store, go to the folder of the virtual machine, right-click on the *.vmx file and add it to your inventory.

    Andrea

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • The upgrade of the Virtual Center 2 update 4 update?

    I am currently running ESXi on IBm blades and they are running version 3i, 3.5.0 Update 2

    We have Virtual Center 3.5 Update 2 installed as well.

    We seek to improve our 3i to 4 upgrade ESX and Virtual Center.  I was looking through the upgrade guide, but there wasn't this listed scenario.

    My plan was to:

    Take c and inplace upgrade of the Virtual Center Update 2 to 4 update server

    VMotion invited out of one of our blades, then update the blade and bring guests.

    Am I missing something?  Are there documents more precise that lists how should I do this?

    seems good... Just get a full backup of your DB vCenter before starting.

    The Upgrade Guide can be helpful as well.

    Also, VMware tools for your guest will require an upgrade as well.

    http://www.VMware.com/support/VI3/doc/vi3_esx3i_i_35u4_rel_notes.html

  • Unable to start the virtual Center after removal of the database

    Hello

    I've migrated my database of vc sql200O for sql 2008.

    The migration went smooth without error (I followed the vmware 7960893 kb). I changed the dsn system on the new server name.

    But when I try to start the virtual Center service that it fails.

    I get this error in the log:

    VDB::connection:TestConnection SQLExecute failed: S 42 02:208

    VDB::LockRepositoryHelper Missing table Vpx_dual

    Could not initialize the VMware VirtualCenter. Closing...

    Force the closure of VMware VirtualCenter now

    Someone at - it an idea?

    New server is win2008 64 bit thanks

    If anyone can confirm this?

    then of course, you have tested the connection, but you have not read the manual?

    NO, this is NOT supported, there is your problem.

  • How to record a custom message / event in the virtual center of the virtual machine

    Is it possible to record a personalized message in the virtual center of the VM?

    I use a vCLI script to reset a virtual machine. I want to report where (PC) this script is launched.

    And it would be great if it is possible to report to the event list or task of the virtual machine that will be reset.

    You can relate from where and which this script is initiated by the following script

    #!/usr/bin/perl -w
    # CustomEvent.pl
    
    #
    use strict;
    use warnings;
    use VMware::VILib;
    use VMware::VIRuntime;
    
    my %opts = (
       vmname => {
          type => "=s",
          help => "Name the virtual machine associated with the event",
          required => 1,
       },
    );
    
    Opts::add_options(%opts);
    
    Opts::parse();
    Opts::validate();
    Util::connect();
    
    my $vmname  = Opts::get_option('vmname');
    my $username, my $compname;
    ($username = `echo %USERNAME%`) =~ /(\S+)/; $username = $1;
    ($compname = `echo %COMPUTERNAME%`) =~ /(\S+)/; $compname = $1;
    
    my $EventManager = Vim::get_service_content()->eventManager;
    my $EventManager_view = Vim::get_view(mo_ref => $EventManager);
    my $vm_ref = Vim::find_entity_view(view_type => 'VirtualMachine', filter => {'name' => $vmname});
    eval {
        $EventManager_view->LogUserEvent(entity => $vm_ref, msg => "CE_RESTARTVM : VM $vmname restarted by $username from $compname.");
        Util::trace(0, "\n CUSTOMEVENT \'VM $vmname restarted by $username from $compname.\' post Successfully.\n");
    };
    if ($@) {print "Error: ". $@ . "\n";}
    Util::disconnect();
    
  • Migrate the Virtual Center databases

    I'll be moving on my DB Manager Update VM DB, composer DB VM and VM DB license to a new SQL 2005 server, virtual Center. Is it OK just to stop the services on the Virtual Center and DB SQL Server and then migrate the DBs to the new server? And then then recreate ODBC connections?

    Yes, I stopped services.  Also, see this KB, http://kb.vmware.com/kb/7960893 , it may be useful

  • The virtual Center database

    Quick question, what will happen if you restored an older version of database virtual Center on the virtual Center Server.

    Would you lose all the virtual machines on the server at this point in time?

    Thank you

    Chris

    No, you won't lose all the virtual machines.

  • Migration of the Virtual Center of SQL2005 database to a new server running SQL2008

    Virtual Center 2.5 Build 147633

    ESX hosts 3.5.0 143128

    Separate server database running SQL 2005

    We replace our SQL2005 server with a server SQL2008. We will migrate the database of VC on him. What are the steps on the side of Virtual Center. My plan is to:

    1. Backup the database

    2. Stopping VMWare services

    3. Migrate the database to SQL2008

    4. Change the Virtual Center ODBC connector to point to the new database server

    5. Restart the VMWare services.

    Is there anything, I'm missing or should be cautious?

    just note that, as of today, SQL 2008, is not a database supported for vCenter

    https://www.VMware.com/PDF/vi3_35/esx_3/R35/vi3_35_25_compat_matrix.PDF

  • Installation of SQL Server for the virtual Center Server

    Hi all

    We bought 16 x 2 for ESX server CPU licenses.  So, I will prepare a database of virtual server of the Management Center 16 guests. As SQL Server 2005 Express is installed during installation of Virtual Center Server but VMware is recommended for use only for 5 guests.

    So I would like to prepare a database of SQL for VC server, please help me how to make the database to the virtual Center Server. Are there special tables, configuration, permissions. I have no experience with databases then how should I go with it. Is there a guide for it. The ESX Server installation guide explains only create ODBC connections.

    Please help me with this I would be very obliged.

    I know that the procedure is restrited 2 steps (1 and 2) on page 68, but you need to install and configure SQL Server for your business standard (I guess asking the C: or D: and data/newspapers on E :). I'm not going to explain better how to install SQL Server on a server. For the SQL Server database:

    • Step 1: you create a database storing the files on the right disk (with at least 30 GB) with a default database size to the size defined by the "Calculator" (value of + 15% on the line of your choice statistical level).

    • Step 2: On your Microsoft SQL Server, create a user of SQL Server database with the database rights of operator (DBO). The default database for the DBO User is that you defined in step 1. Make sure the database user has a role of sysadmin server or the role of database db_ownerfixed on the VirtualCenter database and the MSDB database. The role db_owner on the MSDB database is required for the installation and upgradeonly. This role can be removed after installation or upgrade process iscompleted.

    The user must be created for your standard business as service account (password never expires) with a long and complex password.

    Other steps in the document are for the ODBC connection.

    Creating the tables is made during the installation of VC. Nothing to do. A characteristic is not to stop the SQL Server agent because some tasks are scheduled in the database to 'compact' statistics.

    For the record, the database is upgraded when installing patches VC creating of new tables, updating of data type or...

  • Script in time of latency list vm e/s and the data store the virtual machine is on

    Hello.  We have a vsphere 5.0 environment and we live a latency of IO heavy.  I'm looking for powercli script will get the latency of i/o for each virtual machine and get the data store name, to what it is now.  We will access our storage on optical fiber.  I'm trying to get a good overview of the latency of IO in a nice view in a csv file.  I found what could be a good basis to https://communities.vmware.com/thread/304827?start=0 & tstart = 0 , but I'm not sure how to get the name of the data store in the table and I think that it is written to the nfs in any case storage.  Thanks in advance for any info\advice!

    Try the next version, it includes the average latency time read/write for the virtual machine and PAHO are / s average for the virtual machine.

    Since the CSV has a row for each data store, the values for the virtual machine are repeated.

    I also added the host name

    $vmName = "VM*"
    
    $stat = "datastore.totalReadLatency.average","datastore.totalWriteLatency.average",  "datastore.numberReadAveraged.average","datastore.numberWriteAveraged.average"$entity = Get-VM -Name $vmName$start = (Get-Date).AddHours(-1)
    
    $dsTab = @{}Get-Datastore | Where {$_.Type -eq "VMFS"} | %{  $key = $_.ExtensionData.Info.Vmfs.Uuid  if(!$dsTab.ContainsKey($key)){    $dsTab.Add($key,$_.Name)  }  else{    "Datastore $($_.Name) with UUID $key already in hash table"  }}
    
    Get-Stat -Entity $entity -Stat $stat -Start $start |Group-Object -Property {$_.Entity.Name} | %{  $vmName = $_.Values[0]  $VMReadLatency = $_.Group |    where {$_.MetricId -eq "datastore.totalReadLatency.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $VMWriteLatency = $_.Group |    where {$_.MetricId -eq "datastore.totalWriteLatency.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $VMReadIOPSAverage = $_.Group |    where {$_.MetricId -eq "datastore.numberReadAveraged.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $VMWriteIOPSAverage = $_.Group |    where {$_.MetricId -eq "datastore.numberWriteAveraged.average"} |    Measure-Object -Property Value -Average |    Select -ExpandProperty Average  $_.Group | Group-Object -Property Instance | %{    New-Object PSObject -Property @{      VM = $vmName      Host = $_.Group[0].Entity.Host.Name      Datastore = $dsTab[$($_.Values[0])]      Start = $start      DSReadLatencyAvg = [math]::Round(($_.Group |           where {$_.MetricId -eq "datastore.totalReadLatency.average"} |          Measure-Object -Property Value -Average |          Select -ExpandProperty Average),2)      DSWriteLatencyAvg = [math]::Round(($_.Group |           where {$_.MetricId -eq "datastore.totalWriteLatency.average"} |          Measure-Object -Property Value -Average |          Select -ExpandProperty Average),2)      VMReadLatencyAvg = [math]::Round($VMReadLatency,2)      VMWriteLatencyAvg = [math]::Round($VMWriteLatency,2)      VMReadIOPSAvg = [math]::Round($VMReadIOPSAverage,2)      VMWriteIOPSAvg = [math]::Round($VMWriteIOPSAverage,2)    }  }} | Export-Csv c:\report.csv -NoTypeInformation -UseCulture
    
  • VMware workstation and ReadyNAS to store the virtual machine

    Hello

    I just bought a Netgear Readynas box for home (Readnas RND2000 XRAID SIN) and it seems like a big box to keep a backup of my critical data and flow data and video music.

    Now that will take about 100 GB in space and I'll always have weird to play with 400 GB and it made me think if I host all my test VM I created using VMware workstation, for the moment I use a local computer, but its lack of disk space, I tried to put the virtual computer on an external drive and performance is ok on it as well but for me , it would be ideal if I could store them on the readynas and open them through VM workstation.

    Of course put it on a NAS box could be problematic, has anyone tried this on one of these boxes ReadyNAS? its probably not designed for this type of data and traffic, but if anyone has got, it works, I would be interested to hear comments.

    One of the potential problems in my view is I'll be going through a wireless router with a 4 port 100 mb go and see that as a problem, it replaces a gigabit switch would make a huge difference, or would it still slow?

    I would appreciate any advice on this.

    Thank you

    I'll guess that your external hard drives are USB.  In this case my answer is Firewire.  I run several of my virtual machines to external Firewire drives very good success.  While I ran a few virtual machines from USB, USB just isn't the sustained performance of Firewire.  This is the case on my Macbook Pro and my HP Pavilion (with built-in Firewire.)

    That said, even if I don't have any experience with the ReadyNAS, I use a Windows Server as NFS storage to an ESX Server.  The gigabit switch is almost a necessity.  Possible about 100 MB, but significantly better on gigabit.  In addition, the link of the ESX to Windows NFS is on a physically separate local network segment, so I don't have any problems with the network traffic slows down the virtual machine.  I have not tried Workstation with storage NFS, as I always got Firewire on all my machines so I kept for most of the virtual machine from the network.  YMMV, of course, but I suspect that you will have to keep the rest of the traffic network in mind if you can not create a separate network for NFS storage.  (for example: no internet surfing on the host while the virtual machine is running.)

  • How adding script. VMX to store data (NFS) to the virtual Center

    Hi guys,.

    I hope that someone much better understand the scripting languages I know a simple way to do this?

    Basically, here's the scenario...

    We use data warehouses NFS running on Netapp file servers to accommodate all our virtual machines. Normally this works very well, but we had a few incidents recently with the spin that force us to move to our synchronous backups. Basically how it works is that each data store, say for example Datastore1 works normally on Filer1. This data store is regularly "synchronous" on Filer2. This snapmirror is a copy of the data store readonly. If we have a problem with Filer1, it is possible to reconfigure Filer2 to make writable snapmirror backup, effectively allowing us to see the virtual machine.

    Currently, in this case, in order to get the back of the virtual machine, to remove all the vm to Virtual Center inventory, then add the synchronous data store to all guests in Virtual Center, then browse the data store and manually add back all the vm individually by the usual right-click right/add to the inventory on each virtual machine.

    As I say we have recently had a problem and had to call it for the storages of 10 data housing almost 250 vm was therefore, as you can imagine quite a slow intensive task and work!

    What I tried to work, that's how I could this power CLI script? I saw LuCD excellent research Add .vmx script and looks a lot like what I would like to but can't work out how to change it for my purposes.

    What id' ideally like to go would be a script that I can specify an instance of Virtual Center, store data and Cluster as variables (say vcname$ = "ukvir0001", cluster$ = $ 'Datacentre1' and dsname = "datastore1") and then the script read the data store and add no matter what .vmx, it finds in the specified Cluster.

    I read with interest the new feature in PowerCLI4 data store provider and which resembles something that can provide an easy way to do it I can't work out how!

    Any help would be much appreciated as I have the daunting task of having to move back almost 250 vm to Filer1 now that give it has been fixed and do not have the luxury of a maintenance window several hours to do it manually!

    Thank you very much

    Sean.

    After a few PMs between Sean and myself, we arrived with a working version.

    Note that this latest version of the script has been tested in a vSphere against an ESXi v4 server environment.

  • Store the virtual machines folder has incorrect name

    We have a few VM servers that are stored in directories with incorrect names.  I'm looking on suggestions on repair to the top and go ahead.  When we build a new VM server to replace an existing one, we install and test on the day of migration that we rename the server and the new server, so this causes incorrect storage files.

    (1) what other people do to in this type of situation

    (2) how can I fix misnamed storage files?

    Thank you

    Ryan

    Hello.

    (1) what other people do to in this type of situation

    The same thing here.

    (2) how can I fix misnamed storage files?

    Rename the virtual computer, stop the virtual machine and then cold migrate.  This will make the names correspond to all levels.  OR rename the virtual computer and use Storage vMotion.

    Good luck!

  • Unable to access role to change the settings for the virtual Center

    Hi all

    I recently created two new roles to restrict the Active Directory in Virtual Center security group and the Resource Pool. I cloned VM Administrator role and tweaked so that this group can view full data center while being only able to create/delete the virtual machines in the resource pool. However, I can't work on what permission setting would completely restrict the role of access and changes to the "vCenter Server Settings" on the home page.

    Can someone please help?

    Virtual Center: 4.0.0 (Build: 208111)

    Thank you

    Fadi

    That sounds right.  roles and rights spread from host/cluster view for the sake of server configurations.

    If you set the role to the next level in vCenter 4 (which is the name/IP of your vCenter), they will have access to it.

    You can define a low level (data center), then define non-role or nothing at the top level.  you will need to place this permission/role on each object in the data center, you have for each of these connections.

    Kind regards

    Jonathan

    B.SC., RHCT, VMware vExpert 2009

    NOTE: If your question or problem has been resolved, please mark this thread as answered and awarded points accordingly.

Maybe you are looking for

  • Satellite L350 - he cannot close

    I am running Windows XP Pro SP3. When I try to stop by using the start / turn off computer / Turn Off, is without effect. (I close all running programs before I try to close) The computer continues to operate as if I had not tried to shut it down. Ev

  • CD-DVD LENS CLEANER: SAFE?

    I'm shopping for a CD-DVD LENS CLEANER clean the laser, but I read conflicting advice about this. Some say it will scratch the goal and speed the dvd turns will do more damage than good. Others say it's very good. Some say use a disk brushless appare

  • the 2nd monitor resolution

    Hi all I'm working on an application that uses 2 monitors. I have a VI that measures the resolution of the screen. I want to know the 2nd monitor resolution. How can I get that? Thank you Ritesh

  • Kodak Easyshare stops working

    I have purchasedf a new camera Kodak M577. I have been using a C743 and download for Kodak easyshare for many years. While trying to get my new camera to download on Easyhare a uccesfully I lost my many years of photos in this file. "When I try to re

  • Clean Windows 7 install on SSD

    I installed an SSD, with the original (laptop) now in an external USB enclosure hard disk, thought I could install a new copy of Windows 7 like that, but no luck. And I lost somehow the only DVD of Windows 7 I have had. I still have the activation ke