set options for the VMS DRS
Hello
I read the post options modify HA virtual machine for customers and want to set options of drs in a similar way (because the game - vm is buggy).
what I have is:
function Set-DRSAutomationLevel
{
Param ($cluster, $vm, $DRSAutomationLevel)
$cluster_view = get-view ViewType - ClusterComputeResource-filter @{"Name" = $cluster}
$vm_view = get-View - ViewType VirtualMachine-filter @{"Name" = $vm}
$operation = 'Add '.
if($cluster_view.) ConfigurationEx.DrsVmConfig - no $null)
{
foreach ($guest as $cluster_view.) ConfigurationEx.DrsVmConfig)
{
if($Guest.) Key.Value - eq $vm_view. MoRef.Value)
{
$operation = "├editer".
}
}
}
$spec = new-Object VMware.Vim.ClusterConfigSpec
$VMspec = new-Object VMware.Vim.ClusterDrsVmConfigSpec
$VMspec.operation = $operation
$VMspec.Info = new-Object VMware.Vim.ClusterDrsVmConfigInfo
If ($DRSAutomationLevel - like "off")
{
$VMspec.Info.Enabled = $false
}
#elseif ($DRSAutomationLevel - as 'default')
#{
#TBD
#}
on the other
{
$VMspec.Info.Enabled = $true
$VMspec.Info.Behavior = $DRSAutomationLevel
}
$VMspec.Info.Key = $vm_view. MoRef
$spec. DrsVmConfigSpec = @($VMspec)
$task = get-view ($cluster_view.) ReconfigureCluster_Task ($spec, $true))
While ($task.Info.Status - eq "running" - or $task.Info.Status - eq "on hold")
{
$task. UpdateView()
}
}
everything works fine (thanks LucD), but I do not know how to set the default level (cluster configuration) drs.
my understanding is that I need to delete a custom virtual machine setting (if exists), but I don't know how to do this.
any help appreciated,
Thank you
Hello
To removed the custom setting of VM you need just to remove the entry for this virtual machine and ClusterDasVmConfigSpec.operation to 'delete' and passes the virtual computer as removeKey MoRef:
function Set-DRSAutomationLevel{ param($cluster, $vm, $DRSAutomationLevel) $cluster_view = Get-View -ViewType ClusterComputeResource -Filter @{"Name" = $cluster} $vm_view = Get-View -ViewType VirtualMachine -Filter @{"Name" = $vm} $operation = "add" if($cluster_view.ConfigurationEx.DrsVmConfig -ne $null) { foreach($guest in $cluster_view.ConfigurationEx.DrsVmConfig) { if($guest.Key.Value -eq $vm_view.MoRef.Value){ if ($DRSAutomationLevel -like "default") { # remove the custom DRS setting for that VM $operation = "remove" } else { $operation = "edit" } } } } if (($DRSAutomationLevel -like "default") -and ($operation -like "add")) { # if there is no VM specific DRS setting - do nothing }else { $spec = New-Object VMware.Vim.ClusterConfigSpec $VMspec = New-Object VMware.Vim.ClusterDrsVmConfigSpec $VMspec.operation = $operation $VMspec.Info = New-Object VMware.Vim.ClusterDrsVmConfigInfo if ($DRSAutomationLevel -like "disabled"){ $VMspec.Info.Enabled = $false $VMspec.Info.Key = $vm_view.MoRef }elseif ($DRSAutomationLevel -like "default"){ $VMspec.removeKey = $vm_view.MoRef }else { $VMspec.Info.Enabled = $true $VMspec.Info.Behavior = $DRSAutomationLevel } $VMspec.Info.Key = $vm_view.MoRef $spec.DrsVmConfigSpec = @($VMspec) $cluster_view.ReconfigureCluster($spec, $true) } }
In addition the object 'view' have 'blocking' of working methods that will wait for the completion of the task for you (IE ReconfigureCluster instead of ReconfigureCluster_Task)
Kind regards
Yasen
Tags: VMware
Similar Questions
-
Windows XP SP - 3.5 Internet Explorer 8
Hello
Re: Maximized Windows...
Ask you questions about windows Internet Explorer only, or others, such as programs, Windows Explorer, etc.?Re: seizure semi-automatic...
All options enabled in the Internet Options > content > AutoComplete > settings?Don
-
I looked at how to make a point of my computer because I have a usb wireless internet device for my laptop and I tried to get an ad hoc network setup but there is NO option for the CONFIGURATION of the NETWORK AD HOC when I go to network and sharing Center... what should I do?
original title: ad hoc isn't here...Hi NickBean2,
You can refer to the following articles and see if it helps.
Set up a computer-to-computer (ad hoc) network
Solve problems, find wireless networksHope this information is useful.
-
A software says I need 4 MB of VM set aside for the program to run.
Original title: virtual memory.
How to set 4 MB of virtual memory in windows xp? A software says I need 4 MB of VM set aside for the program to run.
Hi KennethBrasel,
Welcome to the Microsoft community where you can find all the answers related to windows.
According to the description provided, looks that you receive a virtual memory message when installing a program on Windows XP computer.
By default, the virtual memory paging file that is created during installation is 1.5 times the physical RAM on your computer. Therefore, a computer that has 1 GB of RAM installed will have 1.5 GB of virtual memory.
You can manually change the size of the swap file to make it larger or smaller. You can also optimize virtual memory use by dividing the space of files between multiple drives and by removing the disks slow or very open space.
He would be grateful if you can answer this question in order to help you further.
1. What is the size of your RAM memory?
2 are. what program you referring?I suggest you try the following steps to change the virtual memory:
a. Click Start, right click my computer and then click Properties.
b. in the System Properties dialog box, click the Advanced tab.
(c) in the results pane, click settings.
d. in the performance Options dialog box, click the Advanced tab.
e. in the virtual memory section, click on change.
f. change the initial size value and the value of maximum size to a higher value, click on set and then click OK.
g. click OK to close the performance Options dialog box and then click OK to close the System Properties dialog box.
Note: With virtual memory, the computer can use the hard drive as memory (RAM) space. The computer uses virtual memory to increase the ordinary RAM that is installed on the computer. If you reduce the size of the pagefile, some the program may not start correctly or may not start at all. This problem may occur even if the computer has plenty of RAM.
If you need Windows guru, do not hesitate to post your questions and we will be happy to help you.
-
I am trying to sync my iphone to my computer via i-tunes soft ware. It does give me an option for the phone device. How can I get the phone icon in the menu bar?
Mac or Windows?
-
How can I add "Shut down" as an option for the action of the Power button if it is not available
How can I add "Shut down" as an option for the action of the Power button if it is not available.
Hello
Welcome to the Microsoft Community and thanks for posting the question. Looks like you want to add shut down as an option for the power button.
Visit this link and try the steps mentioned:
There are two ways to change what happens when you press the power button on your computer. You can change what happens when you press the power button on your computer case (or the edge of your laptop) and you can change what happens when you press the close button in the start menu.
Change what happens when you press the power button on your computer
Hope this information helps. If you have questions to answer us and we will be happy to help you.
-
I installed Lightroom 4.4, serial number [removed-kglad]. Is there an Option for the update of Lightroom 6?
major version changes are paid upgrades, free updates not.
-
new to InDesign 6 months I do a newspaper page layout every two weeks. This time, when I opened my model, set up for the next issue, when I typed "W" to display the grid, I have something I never saw elsewhere. ". The background was filled with a new grid of tiles rather than the void behind the newspaper that I'm used to seeing. I don't know what happened, but it seems that Adobe has tinkered once more with the program. The last time this happened, I lost the icon "cover the columns" at the top; now, it's a case of two steps to put the head-lines across more than one column. NOT useful.
There is probably a command or a term, I don't know that this right but my main question is why, when I did this dozens of times before, doing something different will come this time. (I know, without replica.)
I'd also appreciate comments that someone out there could offer re why now when I tap on InDesign, is there a slight pause before that something happens to the screen. What is my new Mac, or something to do with the program that I can fix it?
Thanks, Sacie
It looks like the grid of the document, which can be disabled in the view menu.
-
Try to pay in Mexico with a Mexican credit card, but couldn't find options in Mexican pesos. And when you fill my card info shows the price in Argentine pesos and there is no option for the Mexico.
I already change my account and updated information to Mexican day with my address.
Have not now what else to doy in order to make the payment...
Weird.
Thank you.
Cecilia.
Hi Cecilia
The country associated with your Adobe ID is the Argentina.
You can create a new Adobe ID with the country or the following workaround solution allows to create a new ID using the same email address:
Change the country associated with your Adobe ID
Thank you
Bev
-
How can I get all the options for the creation of new titles? I'm stuck on a Board where it does not color or width/size options
If you have not all panels in the Titler then go and reset the current workspace that is located under the window.
-
SEARCH option for the queue rendering?
Hi all. Is there a way to search FOR a specific name/word/string/comp output file name in the render queue?
I could not find such an option within the AE and it would be very useful for me.
Thank you.
There is no search option for the render tail. You may submit a feature request.
-
set up for the BIG - AND - plus size small desktop computer?
Disappointment, do not respond unless a change do not know.
Can q. I set up for the two wide and normal sized desk?
Reactive Adobe Muse CC 2015 is now online. Please install the update of CC > Apps.
What's new: news summary
Release notes: https://helpx.adobe.com/muse/release-note/adobe-muse-release-notes.html
Delicate design:
Adobe help Muse | Create responsive Web sites
Adobe help Muse | Responsive web design in Adobe Muse
Adobe help Muse | Migrate existing Adobe Muse Web sites to answer
Tutorials
To get started with Adobe Muse (replaces how to make a website with Adobe Muse (coffee of Katie)):
- https://helpx.adobe.com/muse/how-to/create-responsive-website.html
Create a sensitive webpage with Adobe Muse:
- https://helpx.adobe.com/muse/how-to/responsive-web-design.html (more detailed features RWD of Muse demo)
Thank you
Sanjit
-
EP 9: "no options for the current tool.
When I try to replace the color in PSE 9, will not change the color. Instead, I get the message 'no options for the current tool. "
The instructions are simple: improve-> adjust color-> Replace color. However, when the eyedropper tool is selected, I get "no options for the current tool.» Any help will be greatly appreciated.
-GD
If you see that in the options toolbar, this is normal.
Here's a video showing how to use Enhance > adjust color > replace color
-
selector of color and the list of fonts in the options for the widget?
Is it possible to add a color to the options for the widget selector? How about access to the list of fonts of the site?
The new version of Muse, available today, has support for the color picker and the file picker. Still no list of fonts.
-
What are the best options for the composition of math in InDesign CS4?
What are the best options for the composition of math in InDesign CS4?
I tried a few versions of the composition of mathematics test. All have their advantages and disadvantages, but I can't decide on which the plugin/script will be the best in the long run (in taking account of the ePub and MathML).
So far the two best seems to be InMath (if it becomes compatible CS4) or Math + Magic Pro.
The biggest pro of InMath is editable on the screen, but it seems to have some risk: http://InDesignSecrets.com/InMath-update-with-new-reader-functionality.php
Math + Magic Pro works well with CS4, but need of equations to modify in the window of their plugin, and because they are EPS format. The file size and the ability to work with a digital player disappeared.And MathType seems pretty useless...
Someone at - it had positive experiences?
Not exactly the kerning, but you can move blocks wherever you want with the arrow keys. And you can change the spacing between the elements by changing the spacer between them. There are also defects of spacing.
Batch edit can be something again. I use 6.0, and I see that the most recent version is 6.5.
I had problems with files EPS of Mathtype, which may include a preview, but do not include fonts. So, I opened each equation of the word with my default settings (they automatically change the default fonts, spacing, size, etc.), copy, paste in Illustrator and save as have. So when I'm finished, my equations are always vector (if that's what you mean by text).
Microsoft has chosen to implement a version of Mathtype dumbed-down as the editor of Word equations for many years. So for me at least, long term has already been decided. There are several things wrong with Mathtype, but given the choice between the use of Mathtype to * convert * equations and using InMath or mathemagiques to * recreate * equations, I'll take Mathtype, warts and all.
Ken Benson
Maybe you are looking for
-
Satellite A660-17F - sensor above the keyboard lights stopped working
Hello I just got the phone two days ago. The first when turned on by pressing the power button. the small sensor that above the F keys were all lit and when I pressed them Flash and it stay on again. Also the above the mouse/Touchpad sensor and satel
-
"NFSU has unexpectedly" is the message I get after playing for about 1 minute. I saw many other people with the same complaint on other forums but you have not seen it mentioned on the forums of Palm. Despite what is a 3rd party app, I write here bec
-
as my system is old enough for the new technology, I have doubts about the graphics card, it can support... Make my system of support of these base maps, AMD/ATI HD 5450 512 MB DDR2 graphics card, Sapphire AMD/ATI Radeon HD 5450 1 GB DDR3 Graphics Ca
-
I have a simple motorolla krazr cell, all I want is to know how to transfer pictures on my Toshiba lap top. I managed to download the Motoralla software on top of the Tower, but I've been at this for 3 h and can not understand. Help, please...
-
BlackBerry smartphones a form any of perhaps of virus, which came with the update
I'm not technology savvy person most as it is, however, I received a message about a update available for my BB Tour. I accepted, and everything seemed to go well, until an hour ago. After every SMS, MMS, phone call, an appearance jazz singer sings t