Page 1 of 1

Hyper V install won't give IP

Posted: Tue Apr 06, 2021 12:44 pm
by sternbergm
I am trying to install Nagios XI on Windows Server 2012 R2 Hyper V. I followed the steps in this PDF, but an IP won't show up.

https://imgur.com/a/Yndb9uI

I've tried different virtual switches, that all work with other virtual machines on the same Hyper V. I've tried no virtual switch. I've tried enabling the VLAN ID. I've tried uninstalling the virtual machine and reinstalling it.

Any help would be appreciated.

Thank you,
Michael

Re: Hyper V install won't give IP

Posted: Tue Apr 06, 2021 4:42 pm
by dchurch
Can you post the rest of the virtual network adapter settings? Such as, DHCP ranges, network mask, port forwards, etc?

Then can you type this inside the virtual machine and post the output (screenshot is fine)?

Code: Select all

ip addr
ip route
cat /etc/resolv.conf
ipconfig -a

Re: Hyper V install won't give IP

Posted: Wed Apr 07, 2021 9:26 am
by sternbergm
Where do I find the DHCP ranges, network mask, port forwards, etc? Here are the settings for the virtual switch from Hyper V.

https://imgur.com/a/34MPfdK

Here is the output from the commands in the virtual machine.

https://imgur.com/a/64h5F1i

Re: Hyper V install won't give IP

Posted: Wed Apr 07, 2021 4:48 pm
by dchurch
Try configuring a static IP in Linux with the same address as your Windows machine has on the LAN.

If that doesn't work, try adding a virtual switch thru the Hyper-V manager and using that to let the Linux machine have an address thru DHCP. (Assign it to the guest machine)