search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Assign Static IP Address for VM on SCVMM
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 8,108 views | 13/02/2009 19:50

You can assign static ip address for new vm on SCVMM. You should use this command to do that:

1
New-VM -GuiRunOnceCommands "cmd", "netsh interface ipv4 set address ""Local Area Connection"" source=static 192.168.0.5 255.255.255.0 192.168.0.1", "netsh interface ipv4 add dnsserver ""Local Area Connection"" 77.75.34.10", "netsh interface ipv4 add dnsserver ""Local Area Connection"" 77.75.34.20 index=2"

As you see, -GuiRunOnceCommands execute netsh command after first boot of operating system. You should use “-GuiRunOnceCommands” with “New-VM”. If you look my previous posts, you can see exact command.

Tags: , ,


Leave a Reply