Set VM´s to specific hosts

Hello

I got a cluster HA distributed in 4 data centers. In each data center guests can connect to the local SAN storage and SAN storage, located in 3 other data centers. To reduce traffic to the data center of interconnections each host runs only the VM´s located on the premises of SAN storage.

When a host fails, the other host can run the vm´s. But then we have more traffic to the data center of interconnections.

Is it possible that the VM´s are automatically pushed to their origin? Maybe a script that checks once a day?

I have add this funny picture of me to get clear.

Finally had time to document these a bit and display

http://communities.VMware.com/docs/doc-9212

Tags: VMware

Similar Questions

  • How to force use of the VM a specific host in a cluster?

    I use vSphere vSphere Web Client 5.5 thru 5.0U2.

    When I create a virtual machine, I specify a host in a cluster as computing resources.  However, when I turn on the virtual machine, it uses another host.   How can I configure the virtual machine to use only a specific host in the cluster?

    Use the DRS-> Virtual Machine Options to disable the level of automation for the virtual machine. Who will be actually anchor her to this host. You could also put the VM on local storage or attach too to a resource (DVD-ROM) on this host, but the road of the DRS is the best way to go.

  • Migrate between the specific host

    Hello VMware Communiti

    How can I find out in the light of the comments I have a cluster HA I can't migrate. Ore to migrate only between specific host of towing.

    If you want to restrict the VMS to migrate to some hosts there is a work around.

    Create portgroup VM additional network on the hosts that you want to be allowed and connect VM to present portgroup.

    ---

    MCSA, MCTS, VCP, VMware vExpert 2009

    http://blog.vadmin.ru

  • script to stop the vm on the specific host

    I am writing a script to shutdown gracefully all the VMs on a specific host.  I can make it work very well by connecting directly to the host with:

    Get - esx myesxhost-user root - password password

    stop-vmguest *.

    that works really well. But what I want to do is to connect via VC to use accounts AD rather than use root host accounts.

    so:

    to connect-viserver (or get - vc) myvcserver-user me-password password

    stop-vmguest *-Server myesxhost

    makes me an error saying "cannot bind parameter 'server'. Could not convert "myesxhost" to "VMware.VimAutomation.Types.VIServer."

    I looked around and found some info when you are connected to the VC, a host does not count as a "Server" when you use the - Server parameter. Or something like that. I'm new to scripting so apologies if I'm doing it wrong.

    So I tried something that I found on the forum here, where you create a variable for $server that is bound to a host

    $server = get-vmhost myesxhost

    And then I tried:

    stop-vmguest *-Server $server

    and I get the same error as above, including the correct host name. So, I know that I managed to create $server, but apparently this is not the right solution to the problem.

    Help please?

    Thank you!

    You can do it with the right word.

    He stops only customers who are actually turned on.

    Get-VMHost -Name  | Get-VM | ? { $_.PowerState -eq 'PoweredOn' } | Shutdown-VMGuest
    
  • Link comments specific host NIC NIC

    I'm using VMWare workstation 8.0.4. I have two physical network adapters on the host (win7 x 64) machine. I have two network adapters that are configured on the client (win xp x 32). The two network adapters on the host are connected to two separate networks, a local business and local development LAN network. I need one of the NIC comments to each of the host NIC bridge. At the present time and bridged mode in all modes of "custom virtual network: specific", two NICS always binds to the same network, depending on what is the first available on the host connection. They both get a DHCP lease on the corporate LAN. I can work around it by disabling a host NIC, allowing an adapter comments link to it, allowing the second NIC host, then allowing the second guest NIC, but this is obviously less than ideal and must occur whenever I start. Is there a way to specify the host NIC to use for each virtual machine interface?

    You can link different network adapters to a specific VMnet using the virtual network editor and how to bind the virtual network adapter to a specific VMnet in settings of cards for the network of the Virtual Machine.  Suggest you read Chapter 5, setting up the network connections, by Using VMware Workstation.

  • Locking of the VMS in specific hosts in a cluster

    Is there a way to limit a virtual computer to a specific set of hosts in a cluster?

    I have created some DRS rules to separate and solidarity with virtual machines, but can not find a way (when it exists) to keep VMs locked to a set of hosts in a cluster.

    For example.

    8 guests: 6 with 16 GB of RAM and 2 with 32 GB of RAM

    2 development servers that will use 8 GB RAM each

    I want to force the dev VMs. 2 to migrate only between 2 hosts 32 GB while allowing the other VMS migrate freely among all the guests.

    Any ideas or suggestions are welcome

    Thanks in advance.

    DRS work in the field of the cluster, so there is no way actually lock VMs subset within the cluster

    If the creation of a separate cluster is not an option, a solution would be to keep the level of automation for those virtual machines to partially automated and then apply that recommendation which moves them to the desired hosts. Not a very optimal solution but it always work for non-critical virtual machines

    Méhul

    PS: If you correct or helpful answers, pl consider assigning points to perpetuate the spirit of these forums!

  • Set the time of ESX host

    Hello

    before that I have to download free 5.6 OPs of the trial, I used OPs 5.0.3 (Free Trial) in your Docs is States:

    "Time of the ESX host and the vCenter Server must be synchronized.

    In the Configuration without any server NTP tab I put a time but when go to Putty and connect to the host, and write the command 'date', the time is different from what I put.

    1 - is this problem due to lack NTP server?

    2 is it possible that I put the analytical UI VM and VM timezone to my zone schedule without host adjustment? (is this true?) (Is it that enough, I just set time zone of PAHO)

    Please help me

    Hello

    You must set the parameters of your ESXi host NTP.

    There is no timezoned in ESXi I know.

    Make sure when you look through the settings of Date and time on the ESXI host right now is what should be based on your local time.

    Let the time vC Ops to UCT. That should ensure the VAPP have the same time as the ESXI host.

    When you start the TIME you can check the time on the virtual computer is the same as hosts yoru.

  • I can't vmotion or svmotion machines a specific host

    Hi all

    I tried to storage vmotion virtual machine to a data store to another and it failed. I tried vmotion it to another host and don't have.

    Then I tried to pass the other machines that host and also failed. The vmotion network is ok. All virtual machines are working properly.

    When I try the following message apears to vmotion in vCenter:

    Could not initialize the migration to the source.  Error 195887268.  VMotion couldn't start due to lack of cpu or memory resources.
    Cannot allocate a bunch of migration.
    Cannot create a bunch of migrating size 30644464: not found
    It is not possible to reserve a slice of memory of migrations.  This host has reached its limit of simultaneous migration.  Please wait another migration to complete before trying again.
    The vMotion failed because the destination host has not received the data from the source on the vMotion network host.  Please check your network vMotion settings and physical network configuration and ensure that they are correct.

    and in vmkernel.log:

    (2012-03-14 T 15: 05:54.258Z cpu7:6120) migrate: vm 6121:3234: info setting VMOTION: ts = 1331737552515864 Source, ip src = < 192.168.100.12 > dest = < 192.168.100.11 > Dest wid = 6720052 using SHARED ip Exchange
    (2012-03-14 T 15: 05:54.258Z cpu7:6120) WARNING: migrate: vm 6121:3242: cannot create the migrate struct info: VMotion was able to start due to lack of cpu or memory resources

    When I try storage vmotion in vCenter I get:

    Could not initialize the migration to the source.  Error 195887107.  Not been found.
    [2130706433:1331737777063538] the remote VM 6923915 FSR is not found on this host. Cannot perform a quick interruption/resumption. Try instead the vMotion migration.
    Could not start the migration: VMotion was able to start due to lack of cpu or memory resources.
    Cannot allocate a bunch of migration.
    Cannot create a bunch of migrating size 54903584: not found
    It is not possible to reserve a slice of memory of migrations.  This host has reached its limit of simultaneous migration.  Please wait another migration to complete before trying again.

    and in vmkernel.log:

    (2012-03-14 T 15: 09:45.806Z cpu5:5589) Config: 346: "SIOControlFlag2" = 1, old value: 0, (State: 0x0)
    (2012-03-14 T 15: 09:46.078Z cpu7:264428) Config: 346: "SIOControlFlag2" = 2, old value: 1, (State: 0x0)
    (2012-03-14 T 15: 09:46.116Z cpu11:6923914) MemSched: 6923914:7453 vm: swap extended to 8192 pgs
    (2012-03-14 T 15: 09:46.352Z cpu2:6923914) World: vm 6923915:1260: from world vmm0:Tradeads04 with flags 4008
    (2012-03-14 T 15: 09:46.352Z cpu2:6923914) Sched: vm 6923915:6207: addition of world 'vmm0:Tradeads04', the group ' host/user/pool78', cpu: sharing =-3 min = 0 minLimit = - 1 max = - 1, mem: sharing =-3 min = 0 minLimit = - 1 max = - 1
    (2012-03-14 T 15: 09:46.352Z cpu2:6923914) Sched: vm 6923915:6222: renamed group 5771295 vm.6923914
    (2012-03-14 T 15: 09:46.352Z cpu2:6923914) Sched: vm 6923915:6239: Group 5771295 is under the 5770764 group
    (2012-03-14 T 15: 09:46.354Z cpu10:6923914) MemSched: 6923914:7453 vm: swap extended to 18435 pgs
    (2012-03-14 T 15: 09:46.424Z cpu4:6923914) migrate: vm 6923915:3234: info setting FSR: ts = 1331737777063538 Dest, src ip = < 127.0.0.1 > dest = < 127.0.0.1 > Dest wid = 0 help UNSHARED ip Exchange
    (2012-03-14 T 15: 09:46.424Z cpu4:6923914) WARNING: migrate: vm 6923915:3242: cannot create the migrate struct info: VMotion was able to start due to lack of cpu or memory resources
    (2012-03-14 T 15: 09:46.457Z cpu16:1567724) migrate: vm 1567725:3234: info setting FSR: ts = 1331737777063538 Source, ip src = < 127.0.0.1 > dest = < 127.0.0.1 > Dest wid = 6923915 using UNSHARED ip Exchange
    (2012-03-14 T 15: 09:46.457Z cpu16:1567724) WARNING: FSR: 311: 1331737777063538 S: did not migrate information to the distant world 6923915!

    (2012-03-14 T 15: 09:46.457Z cpu16:1567724) WARNING: FSR: 1927:1331737777063538 S: distance 6923915 of VM could not be found on this host. Cannot perform a quick interruption/resumption. Try instead the vMotion migration.
    (2012-03-14 T 15: 09:46.463Z cpu22:5585) Config: 346: "SIOControlFlag2" = 1, old value: 2 (Status: 0x0)
    (2012-03-14 T 15: 09:46.515Z cpu17:6213) Config: 346: "SIOControlFlag2" = 0, the old value: 1, (State: 0x0)

    I have enough resources on both hosts.

    I also tried to unplug vcenter, remove the host and it readd to the cluster.

    It is the only host of the 5-node cluster (all identical) who has this problem.

    I guess that a reboot might solve this problem, but I can't reboot with all running virtual machines.

    Thank you and excuse me for the long message,

    Razvan Stoica

    Hello.

    It is a known issue, and is corrected as described in the ESXi 5 Update 1 release notes.

    You're right in that a reboot it should be corrected.

    Good luck!

  • Setting advanced Configurations for a host

    I'm trying to set the value of CimoemProvideEnabled for all hosts in a VC.

    It works:

    Get-VMHost myhost.example.com | Set-VMHostAdvancedConfiguration -Name UserVars.CIMoemProviderEnabled -Value ([System.Int32] 1)

    This is not to :

    $esxhosts

    = Get-vmhost

    foreach

    ($esxhost in $esxhosts)

    {

    Game-VMHostAdvancedConfiguration

    -$vmhost $_ -name UserVars.CIMoemProviderEnabled -value ([System.Int32] 1)

    }

    The error message is:

    Game-VMHostAdvancedConfiguration: Impossible to validate the argument on the parameter "$vmhost". The prop

    t is null or empty.

    Where is the error? Thank you

    $esxhosts = Get-vmhost
    foreach ($esxhost in $esxhosts)
    {
    
    Set-VMHostAdvancedConfiguration -VMHost $esxhost -Name UserVars.CIMoemProviderEnabled -Value ([System.Int32] 1)
    
    }
    

    Or

    Get-vmhost | foreach {
         Set-VMHostAdvancedConfiguration -VMHost $_ -Name UserVars.CIMoemProviderEnabled -Value ([System.Int32] 1)
    }
    
  • VMs that newly set up cannot ping the host

    A few days ago vSphere VMs worked well on nested host A that was vSphere, too. Then, install a vDS and place all hosts. He because of problem that guests could not ping each other. But, other virtual machines (I mean windows OS above) can always ping the host. So, moved the hosts of the vDS and removed the vDS, the problem is there. And implemented a few new virtual machines, what operating system are vSphere, too on the nested host a. They can only ping itself, but cannot ping on nested host A, too. Then, remove the data center and set up a new. the probel is still here.

    The problem should be soon after vDS, how can I solve this problem?

    the configuration of these new virtual machines are inpicture.

    my thought here, you forgot to activate rear promicious (security) on vSwitch0 & 1 after the migration, both of vNDS

    http://www.no-x.org

  • How to fix a VM guest 1 or 2 of the specific hosts?

    Hi all

    From what I can tell / found it is not possible to make a specific guest vm only operate on two specific in our cluster, hosts this exact?

    At the moment ive disabled its in the DRS automation level, but that's just going to stick to a single host, where, as I wish it were possible to vmotion between 2 to 7 guests in our cluster, is it possible?

    See you soon

    Stewart

    From now on, the only option is to disable DRS for the virtual machine.

    Can you describe the reasoning behind the request?

    -MattG

    If you find this information useful, please give points to "correct" or "useful".

  • How to use a specific host directory in the ftp configuration?

    I'm restoring links in CS4 to my sites after an upgrade from Vista to 7.

    I use Go Daddy and the ability of subdirectory. I had a hard time to set up the ftp connection and I saw in another view that the directory of the host must be left blank. This actually worked. The problem is that I want to control the access of the various creators of Web sites that is contained in a hosting account. When I use the directory correct host in the Site Definition dialog box, as I did with my setup in Vista, I get the error message:

    «FTP error - could not open the remote folder [FileName] /.» Access denied. The file exists may not, or there may be a permissions problem. »

    However, the file exists. I tried various uses of oblique, in front, in the back and at the same time, without success. I don't know that there is an answer.

    Any ideas?

    Thank you

    Mark

    You can verify that your user account has access to other accounts?  Is it a reseller account where you have your own accounts or is it a box dedicated or VPS where accounts can be in different directories?  What is a Windows or Linux box

    There are a few things that could happen, but if it ends up being a permission Godaddy problem will be the only ones who can help you with that.  But just an example of a path on a Unix/Linux environment, "public_html /".  There is no leading slash, but there is a slash in the path.  If you connect to a Windows Server, it might be slightly different, but my only experience with Windows is in a network/VPN environment, so if this is your case, I'm sure someone here can help you.

  • Exclude specific hosts to ESXi Foglight Montioring

    Hello world

    I have a number of hosts ESXi (more than 100) I want to exclude the Foglight monitoring all together.

    I think I saw a page that explains how to exclude these ESXi hosts via edit some files in Foglight.

    Can anyone tell how this can be done?

    Thank you

    Hello

    See if that as soon as our edocs does the trick

    http://eDOCS.quest.com/Foglight/571/doc/wwhelp/wwhimpl/common/HTML/frameset.htm?context=cartridgeInf&file=vFoglightCartridge-install/CartridgeForVMwareInstall_Installation.17.php&single=true

    Golan

  • BlackBerry Q10 Q10 - set rington customized for specific contact

    I downloaded ringtones blackberry and can change the General Bell.  How can I customize ringtone for a specific contact.

    Well, here's another thing to check:

    -Go to Contacts, and then select a contact that you want to change the notification.

    -Click on edit on the bottom

    -Scroll to the bottom, and then click a button says 'Ring Tone and Notification'

  • Script for a specific host info

    Hi all

    Totally new to powershell/powercli...

    Have been out successfully a report to csv format to view the details of ESXi hosts. I know that's not the best scenario, but it does the trick so far.

    My question is (as I couldn't find properties for this): can we get information about the DIMM (s) installed on ESXi hosts and add to the script?

    Comments are appreciated

    $filename = "c:\reports\HostDetails_" + $filedate + ".csv".

    Get-vmhost | Select Name, @{Name = "DNS"; {Expression = {$_.NetworkInfo}}, @{Name = 'File'; Expression = {$_.} Parent}}, @{Name = "Standalone"; Expression = {$_.} IsStandalone}}, @{Name = 'ESXi Version'; Expression = {$_.} Version}}, @{Name = "ESXi Build"; Expression = {$_.} Build}}, @{Name = 'Model HW'; Expression = {$_.} Model}}, @{Name = "Processor Type"; Expression = {$_.} ProcessorType}}, @{Name = "Total RAM"; Expression = {[math]: tour ($_.)} (MemoryTotalGB, 0)}}, @{Name = "BIOS Version"; Expression = {$_.} ExtensionData.hardware.biosinfo.BiosVersion}}, @{Name = 'BIOS release Date'; Expression = {$_.} ExtensionData.hardware.BiosInfo.ReleaseDate}} | Export-csv $filename - NoType

    The best and most of the time the only way to recover the info is through the interface of the CIM.

    Try the attached script (updated the hostname and credentials)...

Maybe you are looking for

  • Unable to dump between 5s and 2014 imac iPhone

    Hello I tried to drop photos between my iMac 2014 iOS 9.1.3 and my iPhone 5s (9.3.5) for awhile. Bluetooth is enabled on both. However, even if I'm sitting in front of the iMac with my phone, it does not connect and throws me a message that the netwo

  • still visible hidden pictures

    I'm trying to hide some of my photos.  They appear in the 'hidden' album, but are still visible in the album "all photos". How I set up so that they appear in the album hidden pictures?

  • measurement of current with usb-6009

    Hi, my name is hung and I am a student in electrical engineering... I'm doing a thesis that the project using Labview and acquisition of data NOR UBS-6009 to simulate the function generator, Oscilloscope, Digital Microsoft (DMM)... and now I'm simula

  • Pavilion dv7-1285dx windows vista 64-bit

    the motherboard on my pavillion dv7-1285dx supports a newer processor? Socket 1156? 1366?  I was thinking about upgrading my cpu for core i5 or i7 processor?  I was also considering upgrading my nvidia video card as well.

  • Internet problem in a Simulator

    Hello Browser doesn't open sites. I got the following error. Unable to connect to the selected Mobile Data Service, please try again later. If the problem persists, please contact your administrator. and guest have none seen not a single line.