Prevention of multiple clients, control a virtual machine

I use the VIX API to do a simple set of operations

I open a vm, back to a snaphsot, then turn on the virtual machine and run some commands on it. Finally I close. I have a problem that the virtual machine is accessible by several customers of VIX API - performing the same sequence. Clients are independent of each other. The only shared resource is the virtual machine. I was wondering if it is possible, somehow, to prevent clients from multiple access to the virtual machine at the same time. I want that the whole of the operation back to the snapshot to turn off the virtual machine to be atomic. I see that I can detect the power state and act accordingly, but this leaves a void while I get him back to the snapshot. Is it possible to use the functions WriteVariable and ReadVariable to act as indicators?

Thanks for your help in anticipation!

VIX deosn have some way to lock a virtual computer.  RaedVaraible and WriteVariable (of type VIX_VM_CONFIG_RUNTIME_ONLY) could allow you to put your own advice in place (plenty of room for races but still).  Note that the measurement of these values is in the .vmx file, choose your variables names closely (you won't affect the virtual machine by putting something important) and error recovery can also gets complicated if your application ends messy and does not clear the flag.

Tags: VMware

Similar Questions

  • He had to set multiple RDM on a virtual machine

    Hello geek,

    I'm writing a powercli script that attach multiple RDMs to a virtual machine. I google and a lot of scripts I received yet, but it's not obvious.

    I thought to create the csv file containing all the canonical of the RDM and importer names that helps import-CSV, then no idea how to go further.

    New drive hard cmdlet will join but how to attach multiple of RDM?

    Please answer

    Thank you

    Asif

    The UseCulture switch takes care of different separator characters that exist in different locales (locale).

    Get-Help Import-Csv-parameter UseCulture

    The character '%' is an alias for the ForEach-Object cmdlet.

    You can check by doing a

    Get-Alias %

    The Get-Help and Get-Alias cmdlets are very useful when you use PowerShell.

    Another useful is the Get-Member cmdlet, which displays the properties and methods on an object.

    Get-VM-name MyVM | Get-Member

  • problem with mcafee DLP Device control on virtual machines Windows XP

    Hallo,

    We use view ESX 4.1 and 4.5.
    I have the problem that we use DLP 9.1 with EPO 4.5 and have the problem that when we use DLP USB glue with series nummer they do not work through zeroclient on the virtual machine.

    We've set the rules in the operative part of DLP controll that she is allowed to use usb sticks which are content encrypted and where the serial number is saved in the DLP.


    It works fine on normal physical laptop but if I use the same USB on my zeroclient who got a machine virtual vmware as the stick got allways blocked.
    I also tried to register before the stick no serialnumber and used the VID and PID, but also that have the same result as the stick has blocked.


    If I disable all the rules of control of the aircraft as the stick got mapped from zeroclient to the virtual machine without problem.
    Can help you to use or is there any practice well known for using control of the device with virtual machines?

    I was also in touch with mcafee, but they want to say, this problem is related to vmware and I close go in contact with vmware.

    Best regards
    Heinze MS

    Hallo,

    so, we found the problem.

    The reason why in the virtual machine, it has no SN the stick that we couldn't resolve, but we are in contact with the zeroclient of the teradici seller.

    The reason why the instance id of the stick and PID or VID where does not have a problem in the permission set for the users who have applied the policy of the EPO.

    DLP policy showed he applied rules and also the show later when you loggon, but he was right on the configuration screen that this rule are configuried when you use DLP political configuration of the importation of the EPO server it load the config which is really being used and so we saw that when we have configured the USB via the instance VID PID or device that was never written on the server EPO and never applied to the virtual machine :-)

    best regards, perhaps it's useful for someone

  • Not configured VM prevents the recovery of the configured virtual machines?

    I try to test a recovery plan. There is a problem with one of the virtual machines on the data store. It has a disc attached to a volume that is not replicated.

    When I run the plan, it logs the error below for all of the active steps after "Suspend Non-critical VMs on recovery Site".

    Error - virtual "name VM" machines that
    are not protected by this protection group use warehouses "Volume name"
    that are in this protection group.

    I understand that I can't protect this particular virtual machine. The question is if it will prevent the other virtual machines being restored or is something else going on?

    If you have a data store in a protection group then * everything * VMs on this data store must be configured for protection, otherwise it will fail.

    That is, if it is not protected SRM is not aware, cannot stop it and which will not be able to remove the data store, etc.

  • Adding multiple RDMs to a virtual machine

    Hello community... we do a lot of fun virtual project of the SQL cluster, running on ESXi 5.0. Without going too much into the details of design, I'm looking to try to generate scripts, adding a bunch of RDM (45ish) for a virtual machine. The RDM were presented to the guests, so the next step is to add the ROW appropriate to the virtual machine in the right order.  Here is a partial list of the available RDM:

    lunlist.png

    Based on our design, I know that 46 LUN must go in SCSI 1:1, 47 LUN must go to SCSI 2:1, 48 LUN must go to SCSI 3:1, and so on. I have a worksheet that has a correlation between LUN ID and SCSI ID required.  I can also manually add 1:0, 2:0, 3:0 for created controllers. What I would do is script the rest.

    I saw a number of scripts, and I don't quite see what I need.  To begin with, how can I specify LUN ID?  From there the questions keep coming. Any ideas/suggestions?  Thank you!

    The error is because there are 2 controllers returned (the same one twice).

    If you have 2 connections open vSphere? Make one

    Global $: defaultviservers

    If there is more than 1 entry displayed, you should check if you are in multi mode. Make one

    Get-PowerCLIConfiguration

    scopes 1 says "multiple"?

    If so, cut 1 vSphere connections. For example, by

    Disconnect-ViServer-Server $global: defaultviservers [0] - confirm: $false

    Then check if the SCSI controller Get returns only 1 object.

  • VSphere Client limit "the virtual machine console.

    Hello

    I have done several searches and could not find anything relevant so I thought I'd post the question.

    I have ESXi 4.0 running with the installation of 3 virtual machines. I connect to the ESXi 4.0 via Client.exe vSphere hypervisor in windows.  I have a couple of people using the same account. For this reason, we have noticed that, if one of us is connected to a virtual machine, the other person can open the console of the virtual machine also and mess with what they do.  He warns that many people are watching the same virtual machine with the bar at the top of the screen indicating there are now 2 sessions of active console.

    My question is: is there a way to limit the client to only allow a connection active console both to a virtual machine?  That way if someone is already logged in / virtual console and a view, no one else can.

    I understand that I can create several vSphere client accounts with restrictions on the permission to have each account only have access to a specific virtual machine, but I would like to avoid that if possible. Everyone should have access to each virtual machine... but not at the same time...

    Perhaps there is a configuration file (or the customer's option) to limit connections of the console to one (I guess that there is a limit somewhere?).  I found there is a "VpxClient.exe.config", but it doesn't look like this kind of information can be changed here?  If this is something that is encoded in the software I will drop it, but I thought I don't know if I asked

    Thanks for your time to answer this question,

    Dan

    by default, it is set as 25, but that can be changed.  However, it is on a customer by customer basis, so as far as I know, there is no comprehensive way to do this.

    In your client - mounting - settings of the client

  • How can access us the Client on a virtual machine on the host ESXi VI?

    Good afternoon, we are evaluating a virtualization solution, our company is small and we want only 3 servers to virtualize, and we want to use one of the virtual machines on the ESXi host, using the Client of VI, so we can use the keyboard and the screen of this server to access virtual machines. Our idea is to use this virtual machine as a workstation.

    Is this possible? or we use VMware server?

    Kind regards

    Cristian Fernández

    It is really not possible. Since the physical ESXi console, you will see only the menus and COS screens.

    Marcelo Soares

    VMWare Certified Professional 310/410

    Master virtualization technology

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

  • retrieve multiple information for a virtual machine

    I need an overview of our virtual machines. PowerShell and the VIToolkit is new to me. So I'll try to explain what I want to do.

    with get-vm I want to collect the name, cpunum and MemoryMB get - hard drive should get the entire disk by virtual machine.

    All are formatted as a table so that I can see

    Name CpuNum MemoryMB hard drive

    vm1                2                    1024                50GB

    to get the values for a cmdlet without problem, but to JOIN them is the place where I resign.

    You can use foreach (alias is %) statement to loop through multiple values.

    First you get all the guests, then for each guest, you get all hard drives (can be greater than 1) and you store all properties in a variable ($row).

    Each $row is added in the $report table.

    In the end you simply view the full contents of the $report table

    $report = @()
    Get-VM | % {
        $vm = $_
         $vm | Get-HardDisk | % {
              $row = "" | select Name, CpuNum, MemoryMB, Harddisk
              $row.Name = $vm.Name
              $row.CpuNum = $vm.NumCpu
              $row.MemoryMB = $vm.MemoryMB
              $row.Harddisk = $_.CapacityKB
              $report += $row
         }
    }
    $report
    
  • Control of Virtual Machine

    Is it possible to use the virtual center server to monitor the free disk space on virtual machines, and then send an alert when disk space is low?

    With VC there is no space surveillance disk in a VM, however there are a number of tools available, take a look at this excellent vmetc article for a list of some free tools:

    http://VMETC.com/2008/04/14/free-disk-space-monitoring-solutions-for-VMware-virtual-infrastructure/

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

  • file-download webutil on WINDOWS 7 client and SUN virtual machine libraries

    downloads webutil client libraries on WINDOWS 7 and virtual SUN machine

    -------------------------------------------------------------------------------
    env is:
    Windows 7 Client company
    THAT IS TO SAY 8 / FF 4

    WebUtil Version 1.0.6
    Forms-Applet version: 10.1.2.0
    MACHINE virtual Sun 6_24

    -------------------------------------------------------------------------------
    The appserver downloads webutil libraries such as jacob.dll, myownapp.dll
    customers to C:\Program Files (x 86) \Java\jre6\bin\

    After open all windows access rights in this folder
    and put OFF user account control
    It works well.

    -------------------------------------------------------------------------------
    but to open all the level of security on this issue seems is not a good idea
    and I don't know what is, when change or update the sourcen java on the client.
    I may have to reopen this rights to this folder.

    ---------------------------------------------------------------------------------
    on change webutil.cfg and restart AS with ACE

    install.syslib.Location.client.0 = C:\temp\webutil

    but no change, webutil - dll where to download to C:\Program Files (x 86) \Java\jre6\bin\

    How can I tell webutil to use a separate folder on the client to download and access the webutil dll?

    concerning

    Forms 10.1.2.0 is not supported for use on Windows 7. You must patch 10.1.2.3 so that it works correctly. In addition, the "install.syslib.location.client.x" parameter is only available after you have patched for 10.1.2.3 and then applied a patch later, known as the patch Bundle of forms.

    Refer to MyOracleSupport notes 460886.1 and 1188127.1

  • How to configure NTP between Virtual Machines without using Vsphere Client

    I have a group of 8 virtual servers of 5.5 ESXi without an Internet connection. There are virtual machines on each of these 8 virtual servers.

    I did one of these 5.5 virtual ESXi host a NTP server by editing the file /etc/ntp.conf with below configuration and

    started the ntpd daemon. He began to take the time to its local clock, here's the output of ntpq Pei

    IP server 10.108.190.14

    ip address of the client 10.108.190.15

    Server /etc/ntp.conf

    > > driftfile/var/lib/ntp/drift

    > > server 127.127.1.0 maxpoll 4

    > > fondant 127.127.1.0 stratum 10

    | ntpq Pei

    |   refid distance st t when poll reach delay offset jitter

    | ==============================================================
    | * LOCAL (0). LIUX. 10 l 2 64 377 0.000 0.000 0.001

    Then I edited the file /etc/ntp.conf on customers with below configuration but the customer would not synchronize with the server. He

    wouldn t get response from the server. Here is the output of ntpq Pei

    Customer /etc/ntp.conf

    > > driftfile/var/lib/ntp/drift

    > > server 10.108.190.14 iburst

    | ntpq Pei

    |      refid distance st t when poll reach delay offset jitter

    | ==================================================================
    | 10.108.190.14 INIT. 16 u

    Now, when I configure NPT Client/Server on virtual machines through the Configuration Option under Option Configuration time

    in Vsphere Client everything works fine and the client and the server to synchronize with each other. I checked the file /etc/ntp.conf on both the client

    and the server and it has a couple of restrict 127.0.0.1 and restrict the lines added by default kod nomodify etc.

    So why NPT Server featured when enabled via Vsphere Client works very well, but it does not work when it is configured manually

    in the virtual servers directly.

    I was connected to a vCenter Server Appliance through the VSphere Client and enabled the synchronization of time of the NPT.

    I really need to know how to configure the NTP server without using the Vsphere Client so that I can automate the

    task by writing a python script that would connect to each virtual server and NTP Client/Server configuration.

    Any help in this issue deeply appreciated!

    Thank you!

    You can configure the ntp server without using viclient.

    Take a look @ http://kb.vmware.com/selfservice/documentLinkInt.do?micrositeID=&popup=true&languageId=&externalID=1003063

    Hope this helps

    -Assane

  • Change of virtual machines managed by SRM for VR in an event of DR

    Hello

    I have a virtual machine that is being replicated using replication vSphere + I configured a recovery SRM for virtual machine plan is managed by SRM.

    Screen Shot 2015-03-20 at 9.04.47 am.png

    In a DR situation:

    • To recover a virtual machine that is managed by VR everything I have to do is to connect to vCenter to your web site of DR via vSphere client, then click on recover.
    • To recover a virtual machine that is managed by MRS. all you need is to get a full vsphere to your DR site that has the plugin SRM installed before you can retrieve customer.

    My question:

    Suffice it to say at an event of DR MRS on the DR site was dismantled (so I couldn't recover virtual machines managed by SRM) but I can connect to the Web from vSphere client and retrieve virtual machine managed by VR, is it possible to manually change the virtual machines managed by SRM, so they are managed by new RV?

    See you soon

    Hello

    There are internal interface that allows you to do. Please contact VMware support team.

    Go get the current "recovered by" value:

    https://vrms_address:8043 / mob /? me = Recovery Manager & method = HmsRecoveryManagerGetGroupsRecoverySolution & vmodl = 1

    To reset the value "recovered by" RV:

    https://vrms_address:8043 / mob /? me = Recovery Manager & method = HmsRecoveryManagerSetGroupsRecoverySolution & vmodl = 1

    Call the method after replacing ME with the GID... replication value and clear the value (empty string) for the recoveredBy property.

    To retrieve the value, GID-... - look at the names of the replica files in target or check data warehouses the table GroupEntity in DB VRMS. To get prompt SQL embedded DB VRMS - use

    / opt/VMware/vpostgres/Current/bin/psql vrmsdb - U

    and

    \Q to quit smoking

    Please note that the foregoing is not officially supported and may change with the different versions of the VR.

    Kind regards

    Martin

  • How to get the host name of the physical computer inside a virtual machine until the user logs in Windows?

    I don't know if this is the right place to post this question, I develop software to support VMWare PCoIP and need to know how to get the host name of the physical machine (which manages the virtual machine and View Client) within a virtual machine before the user logs in Windows of the virtual machine.

    I understand there are two ways to read the host name, via the HKEY_CURRENT_USER\Volatile Environment registry and environment variables, but they are available once the user is connected. I need info before the user connects.

    Is there a VMware API that can be called or asked the host name?

    Thank you.

    Not on the broker, but there are the startup scripts to log on to the computer virtual itself: http://pubs.vmware.com/view-52/topic/com.vmware.view.integration.doc/view_integration_startsession_script.9.2.html

    Note that these executed when a virtual desktop computer allocated connection, not to the point that the client connects - it is possible for the customer to not complete the connection (crash, cancel, network failure) and so any what solution you design must handle this.

    Mike

  • Can I build a HA cluster with no heartbeat of the virtual machine?


    Hello

    I have some virtual firewall on two ESX hosts.

    The firewall running Unix and is not (for the moment) possible for me to install vmware tools.

    Is it possible to create an HA cluster where virtual machines are booted up on another host in the case of a failure of the host?

    Best regards

    Martin

    VMware Tools are only needed if you want to use the control of Virtual Machine in addition to the default host of HA monitoring. For host analysis only (i.e. the computer restarts virtual in the event of a host failure) there is no requirement for VMware Tools.

    André

  • How to get memory for a virtual machine?

    Hi all

    In vSphere Client > select a virtual machine > summary under general tab, shows:

    Guest OS: Windows XP

    VM version: 7

    CPU: 1 vCPU

    Memory: 1024 MB

    General memory 103,58 MB

    With PowerCLI, how to recover this figure "103.58' for VM 'vm123 '?

    Concerning

    marc0

    You can get the overhead of the memory of all your virtual machines with:

    Get - VM | Select Name,@{N="MemoryOverhead; E={$_. ExtensionData.Runtime.MemoryOverhead/1MB}}

    Best regards, Robert

Maybe you are looking for

  • I forgot the pascode restrictions how to change

    Hello My restrictions are 'On' but I don't turn them on. He now wants a password. I don't know this password! How can I change because I need to reset the settings of my! Please help me!

  • p6720f: the drivers for my desktop p6720f handle Windows 10 upgrade?

    I'm trying to updgrade my p6720f HP Desktop which is about 5 years old and wanted to know if the drivers etc... are updated to handle the upgrade of Windows 10?

  • How can I find sqlevn70.rll

    I have error your sql server installation is damaged or tampered with could sqlevn70.rll is not open please uninstall and then try to install again I have a netbook and that you do not have the installation discs

  • Frepeat of Maj keydown is 1 rather than 0. SHIFT and ctr get ignored.

    Recently I tried to go back and play games that I've not played in a while (maybe a few months) but I can not use thekeys Ctrl or shift (L and R). It seems that the game engine ignores the keys to repeat.I'm out spy ++ and checked the messages that a

  • Static IP for Smartphones blackBerry via WIFi

    Hello For my research, I need to connect a 8900 "BOLD" to a wireless gateway that does not DHCP or DNS. I am able to assosiate with the gateway and assign a static IP address for the BB. However I can't ping the IP address of the gateway. I can't do