decrease the RAM on vsphere 5.5 clients using powershell
Hello
I have client vsphere with 4 GB ram deployed and the wish to reduce this amount to 1 GB, they are held in w8.1
can I do this using the powershell cli software and the script?
I can do what everyone turned off, then decreasing RAM within the interface of vsphere and then power it back on, but I need a better and faster way
and if we can do this using powershell is a ready to use script, I can use or change?
Thank you
Hello
With PowerCLI you can use cmdlets Set - VM with something MemoryGB parameter like below:
Get - VM VM1. Set-VM - MemoryGB 2
or
Get - VM $VMName | Set-VM - MemoryGB $memorysize - confirm: $false
If you want to feed off the coast of the first virtual machine, you can do
Get - VM $VMName | Stop-VM - confirm RunAsync: $false
#or
Get - VM $VMName | Stop-VMGuest-confirm: $false
#set memory in GB
Get - VM $VMName | Set-VM - MemoryGB $memorysize - confirm: $false
#then light
Get - VM $VMName | Start-VM - confirm RunAsync: $false
References:
vSphere PowerCLI reference Set - VM: vSphere 5.5 Documentation Center
VMware KB: Management of the virtual machines using PowerCLI
Thank you
Bayu
Tags: VMware
Similar Questions
-
Cloning of the network settings on the printer - Smart zero 4.4 clients using Xen
I ran into an issue trying to implement for thin client network printers Smart zero with the build Z6X44017 (same question for with prior build 4.3; same question for T520s, T610s, T620s): If the printer is set by the 'user' account in the HP printer Mapping utility, it does not pass by in a published desktop, XenApp as a printer available to all. When changing the account 'user' to the 'administrator' account, the printer is listed in the printer mapping GUI. But it is not available on the published desktop.
However, if the printer is CREATED or MODIFIED by the administrator via the GUI HP printer Mapping on the Xen login Panel, then it is displayed as the default printer on the published desktop.
As we seek to implement dozens of devices at once with the same network printer queue defined, it would be useful to set up once and then clone the settings.
Here's what I've done so far:
1 use the GUI HP printer Mapping utility to create (in administrator mode) network print queue and check that it works on the published desktop
2. use HPDM to capture the root > printer-mapping-Bishop and root > registry values printers from that device using a task of 'files and records.
3. apply these registry via the job template settings to the target group of devices.
It works very well with regard to obtaining the printer to display in the GUI of the mapping of the printers on the Xen login Panel. However, the same problem exists: unless I go again in administrator mode in the GUI and the Edit/save the printer, it is not available on the published desktop.
A possible solution might be to run a job to 'validate' the printer settings via a program that could be run from the command line, but I can't find such a program in the file system for the Linux client. It's just a bug in the configuration of the printer, or a limitation of this printer MUST be configured via the GUI only?
The local HP sales engineer for thin clients was able to track down the command of "committing" the printer settings after running the registry task to copy the settings. It is run as a task of type Script as a template file and registry.
Here is the command to run in the script:
/usr/share/Manticore/plugins/printer-mapping-Mgr/wrappers/apply.sh "root/printer-mapping-mgr.
It can be added as the second subtask under the task of file & registry.
The complete solution is:
1 use the GUI HP printer Mapping utility to create (in administrator mode) network print queue and check that it works on the published desktop
2. use HPDM to capture the root > printer-mapping-Bishop and root > registry values printers from that device by using a "file and registry" tasks and save it as a template
3 edit the template to add a second sub-task of Script to run the command ' root/printer-mapping-mgr ' /usr/share/manticore/plugins/printer-mapping-mgr/wrappers/apply.sh
4. run the task of file & registry model against the target devices. This model will then apply these registry settings for the group target devices and run the script to validate the changes on the target devices.
-
Use of the RAM of Firefox causing accidents?
In the last three days, I have observed a new problem with my Firefox. I never had this problem before.
If I load any text or images on a tab, it causes the RAM to increase usage. Its use does not diminish over time, and sites such as Facebook and 9GAG, with long flow of images and text, can cause the use of RAM go more than 2.5 Gigabits. Once it reaches this threshold, Firefox crashes. Manually close Firefox also removes the use of RAM, although the closing of tabs does not work.
I scoured the list help accidents, even if nothing is done.
I am running the latest version of Firefox (15.0)(Note: problems still occur with the functions below disabled)
Add-on:
Adblock Plus 2.1.2
AVG does not follow the 12.0.0.2189
Greasemonkey 1.0
Memory Fox 7.4 (attempted solution to problem, does not work)
Print Helper 2.5
TinEye Reverse Image Search 1.1
Xmarks 4.1.2
Plugins:
Adobe Acrobat
iTunes application detector
Java Deployment Toolkit
Microsoft Office 2010
Pando Web Plugin
Shockwave Flash
Silverlight plug-in
VLC Web plugin
Windows Live Photo GalleryStart Firefox in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance/themes).
- Do not click on the reset button on the start safe mode window or make changes.
- https://support.Mozilla.org/KB/safe+mode
Create a new profile as a test to see if your profile is the source of the problems.
See "basic troubleshooting: a new profile:
There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.
If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.
See:
-
I have 3 ESXi 5.5 hosts, all connected to a single server vCenter, where we try to authenticate directly to the host by using the windows logon credentials. I have installation of the Administrators group of ESX and filled with the admin accounts that I want to be able to authenticate to the host. The Netbios name of the domain is tstdomain (for example) where the domain name is tstdomain.com. If I connect directly to a host and check the checkbox 'Use Windows Session Credentials', the vSphere client will default by using the Netbios name of tstdomain\adminusername and the connection will fail indicating that the username and/or password is incorrect. If I enter the domain name of tstdomain.com\adminusername, I am able to connect to the host without error.
Does anyone know how get past that this matter have the vSphere client uses the domain name or to use the Netbios name and connect with the credentials to active directory? I looked by editing the file/etc/hosts and checked that the SPN of the host is correct in active directory with the command hostname setspn - l, with no luck on one. I also tried to change the field of research for the Netbios name of tstdomain rather than the tstdomain.com domain name, also did not work.
Thanks in advance for your suggestions on how to correct the problem.
Seems that this issue was due to a slow network and the connection timeout when you try to talk to the domain controller. I am able to connect with windows creds now, but the connection is very slow. I increased the default period of 30 to 60 seconds to help work around the problem.
-
How to connect to the server ESXI vSphere Client side WAN?
How to connect to the server ESXI vSphere Client side WAN?
through firewall
I tried to open the ports 902 903, 443... and so on...
and I tried several sites to find the solution but...
nothing works...
connectivity works on local network
Help, please...
Source Destination Port
ESXI 443/TCP client
ESXi 902/TCP client
ESXi 902/TCP Client
ESXi 902/UDP Client
ESXi 903/TCP client
Edit: Also check if the firewall ESXi all IP addresses are allowed to connect:
Example:
See attachment...
-
I add the service global services and global services-user interface on the server of virgo and start the server.
When I access vsphere web client, I get an error:
Could not load the module on vsphere-client/globalview-ui/locales/globalview-ui-en_US.swf resources.
I add the program chassisRackVSphere, I got the same error.
Is there something wrong? What should I do for this?
Please read the FAQ and tutorial doc in the Directory SDK docs, it's a typical error when you forget to compile the resources in your project file.
-
Avoid or prevent mirroring of the console in vSphere Client
I'm looking for more information on how to avoid and prevent the mirroring of the console in vSphere Client. As default the console could be perceived by several users at the same time. All those who have access to vSphere Client and server could connect and watch the console.
Is it possible to configure how the Console should behave?
Cordially Jens
You can add the RemoteDisplay.maxConnections setting in the advanced configuration of the virtual machine settings and set it to 1. If you want to do it without interruption of service, add the following line to each of the. VMX files:
RemoteDisplay.maxConnections = 1
After editing the VMX file, vMotion, the machine to re-read the config (otherwise the changes do not take effect until the reboot), and who should do it. There is a script PowerCLI here that will try to change this setting on all of your virtual machines.
-
Is there a way to generate a report of all definitions of the alarm as well as their client vsphere 4.0 settings?
something like that?
http://www.peetersonline.nl/index.php/VMware/report-vSphere-alarms-with-PowerShell/
-
How to find the RAM available on ESXi host 5.5
I am currently a 3 VM hosting on our ESXi 5.5 and I want that the amount that using a virtual machine but I see how the use of RAM total on the host computer that is available to be allocated?
You can see the use of the current memory as well as the capabilities of the host on the contents of the host tab in the vSphere Client.
The amount of additional memory you can assign to a virtual machine depends on not only the available host memory, but also for example the use of comments, if VMware Tools are installed in the guest...
ESXi uses several techniques to manage memory efficiently, which according to the guests, you can even approve memory. I suggest that you take a look at http://www.vmware.com/files/pdf/mem_mgmt_perf_vsphere5.pdf for more details.
André
-
Every day, I use my cell phone and I like it a lot. It's my only computer. I think to upgrade the RAM to 8 GB. What RAM specifications I shop for?
Thank you.
Mark KF8RV.
Hello
Your system has 2 slots module client-accessible/expandable memory that supports up to 8 GB of RAM ' DDR3/1333 MHz.
Your system supports the following configurations:
8192 MB total system memory (4096 × 2;)
not supported on 32-bit
operating system)
Total 6144 MB system memory (4096 × 1).
+ 2 048 × 1; not supported on 32-bit
operating system)
Total system memory of 4096 MB (4096 × 1).
or 2048 × 2)
Total system memory 3072 MB (2 048 × 1).
+ 1024 × 1).
Total system memory of 2048 MB (2 048 × 1).
or 1024 × 2)
Total system memory to 1024 MB (1024 × 1;)
not supported on a 64-bit
operating system)
Look HERE for more information on how to replace the memory.
-
Why windows doesn't use all the ram I have available to her?
new installation of windows 7. card mother support 16 GB of ram, 8 GB installed, windows will only recognize 3 GB, what's up?
Friday, May 14, 2010 21:12:42 + 0000, bigterry wrote:> new windows 7 install. card mother support 16 GB of ram, 8 GB installed, windows will only recognize 3 GB, what's up?You are using Windows 7 32 bit?All versions of Windows 32-bit client (not just Vista/XP/7) have a 4GBaddress space (64-bit versions can use much more). It's thetheoretical upper limit beyond which you cannot go.But you can not use all of the 4 GB of address space. Even if youhave a 4 GB address space, you can use * autour * 3. 1 GB of RAM.This is because some of the space is used by the hardware and is notavailable for the operating system and applications. The amount you canuse varies, depending on what hardware you have installed, but canrange from as little as 2 GB to 3.5 GB. It's usually around3. 1 GB.Note that the hardware is using the address * space *, not the realThe RAM itself. If you have a larger amount of RAM, the rest of the RAMgoes unused because there is no address to map space to.Ken Blake, Microsoft MVP (Windows desktop experience) since 2003Ken Blake
-
Basic questions about the port of Vsphere mirror
I set up a lightweight VM that would deal with inter-VM traffic. To do this, I want to activate the duplication of port between virtual machines.
I have ESXi 5.5 Update 1 installed, use the Vsphere (no webclient) client. I see no duplication of port capacity on my Vsphere Client
I have some very basic questions:
(1) all documentation I've read involving 'Port mirror' is done via web Vsphere client. Vsphere is provided with Vcenter (please, correct me if I'm wrong)
(2) only functions with "Distributed Virtual Switch", not "switch vSphere Standard" port mirroring. How can I activate "Distributed Virtual Switch"? What products can I download/install and try (suppose I go to the user a license for 60 days)
(3) exist what API to enable/disable/setup Port mirroring?
(1) all documentation I've read involving 'Port mirror' is done via web Vsphere client. Vsphere is provided with Vcenter (please, correct me if I'm wrong)
Because the mirror of port requires a distributed switch, you will need to vCenter Server and once in vCenter Server, you can the vSphere Web Client of the user or the vSphere Client (c# version).
(2) only functions with "Distributed Virtual Switch", not "switch vSphere Standard" port mirroring. How can I activate "Distributed Virtual Switch"? What products can I download/install and try (suppose I go to the user a license for 60 days)
You can download the server vCenter Server (60 day trial) and you'll have an Enterprise Plus version for your ESXi host vSphere.
(3) exist what API to enable/disable/setup Port mirroring?
Check the comments of this blog: http://blogs.vmware.com/vsphere/2013/01/vsphere-5-1-vds-feature-enhancements-port-mirroring-part-1.html
-
A new doubt on the license - VMware vSphere Essential Kit
Hi guys,.
I play virtualize physical servers in the company I work (about 10 smaller servers).
To start some tests, I bought a Dell r.620 server with two processors and 64 GB of RAM.
I think buy just one license of VMware vSphere Essential Kit, just to test some features, management, and support provided by VMware.
My doubt is: to support all the RAM (64 GB), I have purchase a license of the vSphere Essential Kit, or I need TWO?
I'm a little confused on how much physical RAM memory on a single server, the vShpere Essential Kit can handle.
OK, I know I can use a free version. But this test server will be transformed into a production server, and that the price of the vSphere Essential Kit is very good, I would buy it and start my test as a test of "production"...
Guys, sorry for my bad English, it is not my mother tongue. =(
Thanks much for any help.
Hi Alex,
Since you are doing a test on a single server so a Kit should be good at this point. In addition to Essential Kit do not fully support 64 GB of RAM so no need to buy two. Only the free versions have limits in support of only 32 GB of RAM.
Diagram below will give you a good idea on the different Kits.
Also, you can read about licensing and prices here: http://www.vmware.com/files/pdf/products/vsphere/VMware-vSphere-Pricing-Whitepaper.pdf
Please let us know if you have any other questions.
-
Prevent the ram comments are stored on the disk hard host
Unencrypted data appear in the ram of comments. This ram can be prevented from be ever recorded on the host drive, IE no file sharing, temporary files, registry, or anything that should never contain pieces of ram of comments?
To turn off the suspension of a VM - add
suspend.disabled = 'true '.mainmem.useNamedFile = "false".
This prevents that WS creates a random name vmem file in the directory of customers - instead vRAM invited is supported by real RAM that is paginated by pagefile.sys so Windows 7 think that it is necessarymainmem.useNamedFile = 'true '.
This indicates WS to create a file vmem random name in the clients directory - file is used to save the vRAM invited
mainmem.backing =
This parameter is used on Linux hosts only -
Hello
I bought an Intel S2600CP4 motherboard as well as two new Sandy Bridge E5-2600 processors.
I was thinking about the best RAM to my system, I have 64 GB of ram. What is the best option? I already bought 32 gb 1600 MHz Corsair Dominator, but now I understand that it is not a 'server' QUEENS, more than a 'gaming '. Is this a good RAM? This will affect the performance of my virtual machines running on vSphere? Should I get another 32 GB of Corsair Dominator? Or should I get 64 GB of another brand that is designed for the server? How is bad to mix RAM from different manufacturers on a single server?
What is the best ram you would recommend for this configuration?
Thank you!
When selecting RAM for vSphere, I would make three key recommendations:
1. the more the better (but be aware that the free license can only use 32 GB and will refuse to start if you have more than that)
2. faster the better (I think that 1600 MHz is good)
3. in the event that run absolutely stable in your system.
Therefore, carefully test you RAM (with memtest or similar tools) for the stability of the system.
For me, it is not sensible to recommend a specific brand. Even measuring 'server' RAM that you can have a bad chip, leading to instability. Test whether this is the most important thing.
-Andreas
Maybe you are looking for
-
Is it possible to run on Satellite A200 face recognition?
Hello world.I have A200 - 10 X. I'd do it for launch new security program "Toshiba Face Recognition' as A300.See this articlehttp://www.PCMag.com/Article2/0, 1759,2289030,00.asp Is it possible or not?Mishal
-
Are their plans to synchronize with ubuntu desktop?
Are their plans to synchronize with ubuntu desktop?
-
I have a Nettalk phone, and I received a message has a peripheral RNDIS TK6000 network driver problem and received a message that the windows blocked because of problems
-
The Acer applications are required to have it on your PC?
To be honest, I never go to use the Acer applications. I wonder if it's necessary or if I can just uninstall all. I just got my Acer Aspire V 14 touch, so I'll try to empty all the bloatware.
-
Videos on my Windows drive it is solid but not visuliations only one pic
I made videos with Windows movie maker sense 2002. Now, all of a sudden, yesterday, all the videos even from my web cam comes out as a Visual but there is sound. A regular DVD will play, but nothing that I made and saved on my computer.