Enabling DHCP network configuration for Windows Server 2022 Instances
The latest Windows Server 2022 and Windows Server 2022 Core images on Scaleway Instances now use DHCP for network configuration by default. This aligns with the standard mechanism used across all Scaleway Instance OS images.
For existing running Instances, no changes to network configuration are necessary unless you plan to update the public IPv4 address. In such cases, the Instance may retain its static network configuration, continuing to use the previous public IPv4 address. Follow the steps below to switch to DHCP, ensure the new address is applied correctly, and enable DHCP before assigning the new IP.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- An Instance running on Windows Server 2022
Enabling Serial Console access
Scaleway provides a Serial Console (TTY) for Instances, which is essential for troubleshooting network issues. For Windows Server Instances, you must configure the OS to enable the Special Administration Console (SAC) for serial access.
Enabling SAC on Windows (OS configuration)
Connect to your Windows Instance via RDP or another method and run the following commands in an elevated Command Prompt (Administrator) or PowerShell:
-
Enable Emergency Management Services (EMS):
bcdedit /emssettings EMSPORT:1 bcdedit /ems {current} on
-
(Optional, but recommended) Enable the boot menu in the Serial Console:
bcdedit /set {bootmgr} displaybootmenu yes bcdedit /set {bootmgr} timeout 10 bcdedit /set {bootmgr} bootems yes
-
Reboot the Instance to apply the changes:
shutdown /r /t 0
For more details, refer to Microsoft's Azure Serial Console for Windows documentation on enabling Serial Console for Windows VMs.
Accessing the Serial Console via Scaleway console
- Log in to the Scaleway console.
- Navigate to Compute > CPU & GPU Instances.
- Click on the Instance you want to configure.
- On the Instance Overview page, click Console to open the Serial Console in a pop-up window.
- Once connected, you should see the SAC prompt. Use commands like
cmd
to start a command channel, thench -si 1
to switch to it.
For more information on using the Scaleway Serial Console, see How to use the Serial Console to connect to an Instance.
Steps to enable DHCP configuration
Once Serial Console access is confirmed, configure DHCP using the Server Configuration tool (sconfig) on your Windows Instance. You can access sconfig via RDP, PowerShell, or the Serial Console.
-
Open an elevated Command Prompt (Administrator) or PowerShell and run:
sconfig
-
In the sconfig menu, select option 8 (Network settings).
-
Select the network adapter index (usually 1 for the primary adapter).
-
Select option 1 (Set network adapter address).
-
Choose D for DHCP.
-
The system will apply the changes and release any existing DHCP lease.
-
Return to the main menu and select option 13 (Restart server) to reboot and activate the configuration.
Below is an example interaction for reference:
===============================================================================
Welcome to Windows Server 2022 Datacenter
===============================================================================
1) Domain/workgroup: Workgroup: WORKGROUP
2) Computer name: WIN-010DQB68HIR
3) Add local administrator
4) Remote management: Enabled
5) Update setting: Download only
6) Install updates
7) Remote desktop: Enabled (all clients)
8) Network settings
9) Date and time
10) Telemetry setting: Required
11) Windows activation
12) Log off user
13) Restart server
14) Shut down server
15) Exit to command line (PowerShell)
Enter number to select an option: 8
===============================================================================
Network settings
===============================================================================
Available network adapters:
Index # | IP address | Description
1 | 1.1.1.1 | Red Hat VirtIO Ethernet Adapter
Select network adapter index # (Blank=Cancel): 1
===============================================================================
Network adapter settings
===============================================================================
NIC index: 1
Description: Red Hat VirtIO Ethernet Adapter
IP address: 1.1.1.1,
fe80::dc00:ff:ff:ff:ff:ff
Subnet mask: 255.255.255.255
DHCP enabled: False
Default gateway: 62.210.0.1
Preferred DNS server:
Alternate DNS server:
1) Set network adapter address
2) Set DNS servers
3) Clear DNS server settings
Enter selection (Blank=Cancel): 1
Select (D)HCP or (S)tatic IP address (Blank=Cancel): D
Setting NIC to use DHCP...
Successfully set gateway.
Successfully enabled DHCP.
Successfully released DHCP lease.. : 00-01-00-01-30-3E-73-36-DE-00-00-84-DB-2B
(Press ENTER to continue):
===============================================================================
Welcome to Windows Server 2022 Datacenter
===============================================================================
1) Domain/workgroup: Workgroup: WORKGROUP
2) Computer name: WIN-010DQB68HIR
3) Add local administrator
4) Remote management: Enabled
5) Update setting: Download only
6) Install updates
7) Remote desktop: Enabled (all clients)
8) Network settings
9) Date and time
10) Telemetry setting: Required
11) Windows activation
12) Log off user
13) Restart server
14) Shut down server
15) Exit to command line (PowerShell)
Enter number to select an option: 13
Are you sure you want to restart? (Y)es or (N)o: Y