Search This Blog

Saturday, March 17, 2012

Create Multiple VM using PowerShell in Windows 8

In my previous post, i have discussed about how to convert golden image from dynamic disk to fixed disk for deployment use. Now let move on to use these virtual hard by creating virtual machine configuration.

Previous post:-

Let start to create Virtual machine using Powershell in Windows 8.

1. Modify previous script and enter additional command:

new-vm -Name Test1VM -MemoryStartupBytes 1024MB -VHDPath E:\Test1.vhd -SwitchName Production -ComputerName Node1
new-vm -Name Test2VM -MemoryStartupBytes 1024MB -VHDPath E:\Test2.vhd -SwitchName Production -ComputerName Node1
new-vm -Name Test3VM -MemoryStartupBytes 1024MB -VHDPath E:\Test3.vhd -SwitchName Production -ComputerName Node1
new-vm -Name Test4VM -MemoryStartupBytes 1024MB -VHDPath E:\Test4.vhd -SwitchName Production -ComputerName Node1

Command description:-

new-vm –name (virtual machine name) –MemoryStartupBytes (startup memory value) –VHDPath (location of converted VHD) –SwitchName (virtual switch name) –computername (hyper-v host name)

Explanation:-

Create 4 virtual machine name “Test1VM,Test2VM,Test3VM, Test4VM” with the startup memory set to 1GB, pointing to exiting VHD path and assign to virtual switch: Production

Result:-

image

That should do the trick. No multiple step in GUI and i found using Powershell is much easier and fun as well. :)

1 comment:

  1. With the fish rolex replica uk face plus engraved tachometer bezel, this watch is considered impressive even simply the Rolex traditional. David Beckham has gone photographed wearing a person on a telephone number of occasions. Some high-priced hublot replica uk are fabricated from better quality content and have vital parts and natural leather straps. In addition, all the edges on an first fake rolex sale and her band are smooth, not sharp or coarse like a great deal of counterfeits. The replica watches sale creates a timepiece which wants to document. The reason over this is that can the bezel settings is so beautiful that snagging the diamonds that are generally on the rolex replica uk on clothing to other fabrics isn't feasible. Watches come in every bit of shapes, sizes in addition to the budgets. These are replica watches uk which are just sought after. First, if you are an athletic man, simply want a casual sports timepiece at daily use, may go for a single with date, your time alarm, temperature, lighting, and more painless features.

    ReplyDelete