Andrew Moa Blog Site

Hyper-V Virtual Switch NAT Setting Static IP

I have mentioned before that you can use NAT+port mapping to access a virtual machine, but I found a problem during use: every time the host machine is restarted, the default Default Switch IP address will change, causing the virtual machine to be unable to access the gateway and thus unable to connect to the Internet.

In order to ensure that the virtual machine is connected to the Internet, you must manually set the IP address of the adapter corresponding to the Default Switch every time you restart the machine, which is very inconvenient. The following is a solution given in reference to the Microsoft official document .

3 minutes to read
Andrew Moa

Hyper-V Installation Ubuntu24.04

1. Requirements

Consider installing Linux on a new computer, not a dual system, because it also needs to meet daily office work. If you don’t like to mess around, you can use WSL, which is implemented using Hyper-V, and at the same time, you can access the virtual machine through port mapping.

2. Preparation

2.1 Download Ubuntu

I am a CFD, so I naturally cannot do without Fluent. This thing is a distribution version. Confirm which distribution is supported from the official website information, and install which one is supported, so as not to reinstall the system later.

7 minutes to read
Andrew Moa