reconfiguration of the machines RAM and CPU of VM

Hello!

Guys, please help me in my task. I need to reconfigure virtual servers CPU and RAM. That's why I need the following steps by PowerCLI

(1) stop the server

(2) change of CPU and RAM

(3) power on the server

I guess I'll have a csv file with 3 fields (servername, CPU, ram value value)

Can you please give me first push, example or tutorail to get this task performed.

Another question how server list will be processed? Each server will be processed one by one, or he is able to implement the above steps at the same time for each server in the list? What can advise you in this context?

Thank you in advance!

Try something like this

Import-Csv c:\vms.csv -UseCulture | %{
    $vm = Get-VM -Name $_.VMName    Shutdown-VMGuest -VM $vm -Confirm:$false    while($vm.PowerState -ne "PoweredOff"){
        sleep 5        $vm = Get-VM -Name $_.VMName    }
    Set-VM -VM $vm -MemoryGB $_.MemoryGB -NumCpu $_.NumCpu    Start-VM -VM $vm -Confirm:$false}

The CSV looks like this

"VMName", 'MemoryGB', 'NumCpu.

"VM1', '8 ', ' 2 '.

"VM2', '4 ', ' 1 '.

This script will do the changes-stop / start 1 VM of sequences at a time.

You can do this in parallel, but this will require the script to follow each of the substantive tasks before you begin the next step

Note: the script assumes that the VMware tools are installed on the virtual machines.

Tags: VMware

Similar Questions

  • Pavilion g6 - 2217cl: the HP Pavilion g6 - 2217cl RAM and CPU/GPU upgrade

    Hey there, I am looking to upgrade the RAM and CPU/GPU on my G6 Pavilion. Here's my current characteristics;

    Laptop model: HP Pavilion G6 - 2217cl

    Operating system: Windows 10 family (x 64)

    Current RAM: 6 GB (used 2 slots)

    CPU/GPU: AMD A8 - 4500 APU with Radeon HD graphics card

    What are the possibilities should I upgrade?

    If more information is needed, I'll be happy to provide.

    It supports up to 8 GB of memory and the processor can be upgraded to a 10 - 4600M. Here is the Manual:

    Manual

    There is no video card to upgrade, but for the models of series AMD A video is contained in the processor itself and an upgrade of the processor also carries with it an upgrade for HD 7640 G HD 7660 G video. It's light but a bit noticeable and clock speed go from 2.8 ghz to 3.2 ghz, which is not huge but noticeable. Memory is a DDR3-1600 module, and you can replace your 2 gig with a 4 gig to spend 6 to 8.

    Memory upgrade is as easy as... CPU/APU don't upgrade not so much.

    4 GB PC3 12800 1600 MHz shared 641369-001

    http://www.Amazon.com/HP-641369-001-1600Mhz-PC3-12800-memory/DP/B008L325TW?ie=UTF8 & Keywords = 641369-001 & qid = 1465472116 & ref_ = sr_1_2 & SR = 8-2

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • I want to monitor the disk space and CPU on a windows - DONT see machine

    I want to check the disk space and CPU on windows server 2003 box - DON'T see pltform for windows box all 'fileserver mount' or 'CPU '.  I do not see these services
    for my UNIX/LINUX platforms. What controls what in health platform services, and WHY doesn't show the windows platform the platform services. I have Server 3.02
    talk to the windows client running 3.02 box. I just reinstalled the client on windows
    box and still the same. Nothing in the health platformservices). I restart the HQ server and its
    client also. NOT knowing how to manage the windows box. I can go in manually and add an assembly file server service and name it and then this name appears in the services of the platform
    health. I shouldn't this for CPU, NetworkServer or mount fileserver interface. ???  I talked to John Mark Walker and is well why this is happening?

    I'm not an expert but I have encountered this problem also.  That's why I think it happened to me.

    1. I installed the server and checked it was running and I was able to connect to Headquarters.
    2. I installed my agent on another box and as soon as he said it started successfully killed him so that I could go ahead with the installation of the agent as a service.
    3. I installed the agent as a service and started it.
    4. this particular agent in central administration did not show one of the hard disks or WIN32.

    I fixed it by deleting the agent and put it back.  After you start the agent for the first time and it communicates with the server let it run for a while before you kill to install as a service.

    1. stop the service of the agent on the windows machine
    2. open your command line, change to your agents directory and run hq-agent you to uninstall as service
    3 remove the data of your agent directory folder
    4. use the download of SERVER installation to install your agent
    a. by running setup.bat - full (option 3 for the installation of the agent)
    5 finish the installation of the agent so that your window says 'agent started successfully.
    6. DO NOT CLOSE THIS WINDOW
    7. connect to your HQ and accept your inventory of auto-discovery, access this resource, and you should see that it is only partially completed
    8. Refresh every few minutes and you should see all the icons of availability to change green checks and your additional question as disks and CPU added.
    9. once filled close your agent, install it as a service, and then start it again.

    I was killing my initial discovery officer before he could finish, looks like you have the same symptoms.

  • Generate reports for ESX, VM, RAM, and CPU use list

    How will generate you a report for the list of ESX, VM, RAM and CPU used in your VSphere environment?

    Hello

    You can either use vCenter performance dashboards, select the chart options and chose the resource & corresponding metrics or select the host of the vSphere client, and then click file > report > summary of the host or Performance.

    Does that help?

  • Y at - it a utility to monitor the speed, temperature and cpu/gpu for desektop m9200T fan?

    My desktop running Win7 Home Premium m9200T computer crashes often.  It seems to be associated with temperature.

    I tried SpeedFan, but my computer crashed whenever I ran it.  The SpeedFan 20 window scroll a few lines of text that the computer crashed.  Y at - it a utility to monitor the speed, temperature and cpu/gpu for desektop m9200T fan?

    PC Wizzard works well on my computer.

    Thanks Big_dave.

  • Do I have to stop the machine virtual RAM and CPU?

    I have a virtual machine that has only 1 core and 1 GB of RAM I need to upgrade. Is in the past, I always stop the machine to do this, there a way for both without stopping the machine?

    Welcome to the community - with memory you can do it with the machine. CPU with vSphere 4 you need to close the virtual machine.

  • Equium L20-197: to upgrade RAM and CPU

    Hello
    I recently bought a l20 - 197 and if im happy of all, what I want to do is upgrade the ram and processor. Ive found a supplier for ram (www.crucial.com), even if I need some details on the processor that it taken and if it can actually be upgraded.
    Thank you!

    Hello

    Before I try to give you some info on the upgrade, I want to just comment on your ad. Satellite L20 is actually a unit of budget and doesn t expensive. Now, you want to invest enough money in the hardware upgrade. It's not really illogical. Why you didn t get more information and bought the best unit as Satellite M40 or same M70. For a 300 or 400 dollars more, you can have a superior unit.

    Sorry, but the best idea is to sell your one and buy another unit. This is my honest opinion on this subject.

    Now something about your questions: essentially upgrading the CPU is not possible due to the permanent connection method. The processors used in laptops are connected to the motherboard using a process called TCP (tape carrier package).

    RAM upgrade is possible and meaningful. Your device has 512 MB of Ram in one slot and unit can handle with 2 GB max.

    Good bye

  • HP compaq 610: I want to upgrade my ram and cpu

    Hello

    I have a laptop HP compaq 610 with a intel core 2 duo 2 GHz with 4 GB of ram and a 64-bit processor

    It is therefore not good for games

    now I ask you for the the hardware options available for the upgrade of my camera

    I wanted to add a 8 GB of DDR3 ram and a 3 GHz cpu

    so can I use RAM

    and what are the cpu options can you give me

    Thank you for your valuable time.

    LoRdRedh wrote:

    Thank you very much

    It is just that this processor is not good for the games so I have any options?

    You need to get a gaming laptop and those cost 2000US started playing HD games.

  • Re: Satellite M70-131 - RAM and CPU upgrade

    Hello, I have 2 questions:
    1 is it possible to install more then 2048 MB RAM in M70 - 131. If someone tried this?
    2. is it possible to install the new processor of M70 - 131? Now, i've got Pentium M (750) 1, 86GHz (Dothan, 533 MHz). Can I install for example Pentium M (780) 2.26 GHz or higher?

    Hello

    The M70 supports max 2 GB of RAM and upgrade the CPU is usually not possible and undesirable for different reasons.
    In most cases the overheating is the main reason why you shouldn't t try to upgrade the processor. Secondly, the BIOS was not designed to handle the different processors and no one will be able to tell if your cell phone will work stable after an upgrade of the CPU.

  • Compaq Presario C731TU: RAM and CPU max UPGRADE Presario C731tu chipset GLS960 cpusocket PPGA478 RAM and CPU max UPGRADE

    Hi all!

    I have a Compaq Presario C731TU I absolutely need to upgrade its opportunities top of page. I discovered that he could run processor family Intel core 2 duo, and celeron family, that sounds really good!

    Then consulted taken PPGA478 processors on the site of intel with their processor feature filter (http://ark.intel.com/search/advanced?s=t&FamilyText=Legacy%20Intel%C2%AE%20Core%E2%84%A22%20Processo...)   the best option seems to be Intel® Core™ 2 Duo Processor T9500 (2.60 GHz, 800 MHz FSB, 6 MB Cache).

    My question is:

    Is there another cpu option better? Inside of a forum, I read that it can withstand up to Intel C2D T9xxx family but after T9500 (e.g. T9600 or T9900) taking turns into PGA478 and not PPGA478. What is the difference between PPGA478 and PGA478? are they the same or not?

    Are there limits on the CPU with the BIOS upgrade? (mine is upgrated to F34 which should be the latest version)

    About RAM: this laptop should work max 2 GB of ram but in fact I use it with 3 GB of ram (with these config.: 1 GB on the inner slot and 2 GB on the external, the inverse solution does not work, can not guess why), but someone "found a way" to use the 2 banks of 2 GB 4 GB total (and if according with this http://www.intel.com/Assets/PDF/specupdate/316274.pdf - pag. 19 - should be quite possible) , what ram 2x2gb modules can be accepted if? Help me = S

    Thank you very much in advance!

    I opened the laptop and the chipset inside the computer, wirtten there is an INTEL GL 960 who should manage only 553 mhz FSB... But... I installed inside, as the core 2 duo t9300, which has 800 Mhz FSB and it is fully functional in frequency from 800 Mhz to FSB. Really good news =)

    AIDA 64 tool (former Everest) shows the FSB of GL960 chipset can run on 533, 667 and 800 Mhz frequency.

  • Need direction for the upgrade RAM and graphics card in my all-in-one Center B320 Office idea.

    Hello

    I want to level of Ram and graphics card I have my all in one ideacenter B320 Office.

    current specification of my office:

    CPU - 2nd gen cor i3 (3.10 ghz)

    RAM - 3 GB

    Graphics - 1 GB (AMD)

    can I put at 1.5 GB or 6 GB and 2 GB graphics card ram level.

    orientation need help pls...

    Thanks to adwance...

    Hi Mahendranaik63

    Welcome to the Community Forums of Lenovo!

    I guess these B320 data can help you with updates.

    Data sheet B320of Lenovo. (The information you are looking for 'KEY FEATURES' statement).

    Also check this personal reference guide under Lenovo B320 page.

    I hope this helps.
    See you soon!

  • IBM lenovo R60e maximum ram and CPU speed

    Hello!!

    I have a Lenovo R60e and I want to updrade it. Can you please tell me what is the maximum speed of Ram that can handle (667 or 800) and what is the maximum processor?

    Thank you!

    While you can install modules DIMM 800 Mhz, the machine will always operate at 667 Mhz.

    I have one of these machines (use my twin boys) I have modded quite heavily and it is quite lovely.

    Happy update.

  • Windows 7 RAM and CPU problem

    Last week, I was playing League of legends and I was in the middle of a match, during the match, the client is crushed and restart windows because he had needed updating. After the update, I open League of legends to start my computer. And it took like 10 minutes usually, it takes about 30 seconds. Then when I've finally got back in the game you the fps went from 60 (before the update) to 12 (after the update). So I decided to look at the Task Manager, and it took up to 99% of the CPU. I reinstalled the game, the FPS was always the same, but he was faster. I tried to open my browser google chrome, it took a good 2 minutes. The CPU and ram, however, was very good. So I opened up a little more of my games and they are starting to take a lot of memory and CPU. I ran my full analysis of the 360 North, no viruses. I've done sfc/scannow, nothing wrong. I think scvhost programs might be the problem because when I analyze wait chain on my programs that take up a lot ran and CPU it is still a program scvhost in there. Help me please, this update of windows did the damage.

    Hello

    You can try to follow the following suggestions to solve the problem.

    Measures to reduce the use of CPU.

    1 - Press 'Ctrl', 'Shift', 'Esc' on your keyboard. This opens the task without any intermediate screen Manager.

    2 - Click on the "process" button in the Task Manager.

    3 - Click the "CPU" column heading up to what the arrow next to the label down points.

    4-click on a program you recognize who is using a high percentage of the CPU and click ' end process.» Click on "complete the process"reconfirm.» This facilitates upward on the load of the CPU. Use this step if you are not using a process, or the process is not responding. Do not use this procedure for windows processes.

    Reference:

    Optimize Windows 7 for better performance

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    Note: Has ny data files that are infected must be cleaned only by removing the file completely, which means there is a risk of data loss.

    I hope this helps. Otherwise, feel free to write us again and we will be happy to help you.

    Thank you

  • Card replaced mother, RAM and CPU. Should I re - install or re - activate my Windows 7?

    3 months ago I finished my 3rd generation PC. I built an AMD/AM2 socket system and I bought an OEM of Windows 7 Professional (32 bit) version. After only 2 months of use, the thermal paste between my processor and the heatsink dribbled out and down onto my card mother socket. This fried my M/B and the CPU. They no longer worked. I replaced my M/B and CPU with a socket AM3/AMD system, which includes a different type of RAM, as well. My o/s is on my SSD and the storage of my data on a mechanical hard drive. I have already paid my o/s and you simply want to change the parts concerned. How should I proceed regarding the re-use of my brand new Windows 7 Professional with minimal headaches? I heard of re-activation of phone procedures. Should what steps I take to make sure that my operating system is allowed up and running and safe?

    You need to convince MS that your cause is just (it seems to me that it is) - and use telephone activation.

    activation by telephone (call of the operator)

    Click the Start button

    in the search box, type

    SLUI 4

    and press the Enter key

    Follow the instructions, but when asked what service you need the ansafone phone, don't answer - it should oblige the operator to answer, who can deal with you

  • HP laptop - 14-ac107nl: is it possible to upgrade the processor, ram and storage internal HP laptop - 14-ac107nl?

    The computer is very slow, and I just fill the MEM 28 GB? How can I upgrade RAM and MEM?

    In the model of Celeron, you need memory (2 GB) is soldered to the motherboard and cannot be upgraded. If you wanted to make a better computer the only real choice is to replace the motherboard. There is the version with an included i5 processor. Storage is a MEMBER, and even with your model theoretically you can remove the MEM module and replace it with a hard SATA or SSD disk, but would require the purchase of new equipment to mount the drive.

    See pages 38 and 39 of the manual here:

    Manual

    Likely upgrades will cost more than a new, best laptop.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

Maybe you are looking for