Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Network Connection Issue when create the Hyper-V VM using PowerShell

$
0
0

Hi guys,

I am facing a really weird issue IN my notebook : My OS is W2012 with Hyper V 3.0 (of course).

I have 2 Virtual Switches in Hyper-V, One for Internet (external) and one for LAN (private)

When I create the VM using Hyper-V GUI and add the Internet NIC, it works beautiful. But If I create the VM using PowerSHell, when the OS installation finishes, I am facing connection problems.

Then, if I use the GUI and remove the Adapter and add again, run the VM..it works.

Anyone knows what is happening ? I don't know what to do anymore.

Thanks

Here's my code :

New-VM -Name Test -Path c:\Vms -MemoryStartupBytes 512MB -NewVHDPath "c:\vms\test.vhdx" -NewVHDSizeBytes 127GB -SwitchName Internet
Set-VMDvdDrive -VMName Test -Path "c:\Softwares\WindowsServer2012STDFULL.iso"
Start-VM -Name test


Viewing all articles
Browse latest Browse all 21975

Trending Articles