Cannot Connect Domain VM to Windows Server 2019 on VirtualBox

Abstract: Resolve VirtualBox domain join failures by configuring matching internal networks, static IPs, and correct DNS settings on the client VM.

Created: 2026-08-26 by
To connect a Domain VM to a Windows Server 2019 on VirtualBox, ensure both virtual machines are configured with the same internal network type, such as an Internal Network or Host-only Adapter. This creates a private bridge that allows the client and server to communicate without external interference. Properly configure the DNS settings on the client to point to the server’s IP address before attempting domain join operations.

Network Configuration Prerequisites

The most common reason for connection failures in this scenario is misconfigured networking within VirtualBox. By default, many virtual machines use NAT (Network Address Translation), which isolates them from other VMs on the host machine. To allow the Domain VM to see and communicate with the Windows Server 2019, they must share a common network segment.

You need to adjust the network adapter settings for both the client VM and the server VM. Navigate to the settings of each virtual machine and select the Network tab. Change the Attached to dropdown menu from NAT to either Internal Network or Host-only Adapter. If you choose Internal Network, create a new network name, such as internal-net, and ensure both VMs use this exact name. This ensures they are on the same logical switch inside the hypervisor.

If you prefer using a Host-only Adapter, verify that the VirtualBox Host-only Ethernet Adapter is enabled in your host operating system’s network settings. Assign static IP addresses manually to both VMs if DHCP is not functioning correctly between them. For example, set the server to 192.168.56.10 and the client to 192.168.56.11 with a subnet mask of 255.255.255.0.

DNS and Name Resolution Setup

Active Directory relies heavily on DNS for locating domain controllers. Even if the network cables are virtually connected, the Domain VM will fail to find the server if it cannot resolve its name. You must configure the DNS settings on the Domain VM to point directly to the IP address of the Windows Server 2019.

On the Domain VM, open the network connections panel and locate the active Ethernet adapter. Right-click and select Properties, then double-click on Internet Protocol Version 4 (TCP/IPv4). In the Preferred DNS server field, enter the static IP address of your Windows Server 2019. Leave the Alternate DNS server blank unless you have a secondary controller.

On the Windows Server side, ensure that the DNS Server role is installed and running. The server should automatically create a forward lookup zone for your domain (e.g., example.local). Verify that the A record for the domain controller exists in this zone. If the records are missing, you may need to restart the DNS service or flush the cache on the client side using the ipconfig /flushdns command.

Firewall and Service Verification

Windows Server 2019 includes a robust firewall that can block incoming requests from other machines by default. Before attempting to join the domain, you must ensure that necessary ports are open. Key services like LDAP (port 389), Kerberos (port 88), and RPC (dynamic ports) must be accessible.

Check the Windows Firewall status on the server. It is often easiest to temporarily disable the firewall during the initial setup to rule out blocking issues, though this is not recommended for production environments. Alternatively, create inbound rules specifically allowing traffic from the client VM’s IP range. Ensure that file and printer sharing is enabled for Private networks on the server, as some discovery protocols rely on SMB traffic.

Verify that the Active Directory Domain Services are fully initialized. Open Server Manager and confirm that the AD DS role is healthy. Run dcdiag in the command prompt to check for any replication or connectivity errors within the domain structure itself.

Joining the Domain

Once networking, DNS, and firewalls are correctly configured, you can proceed to join the Domain VM to the domain. On the client machine, go to System Properties and select Change Settings under the Computer Name tab. Click Change and select Domain instead of Workgroup. Enter the full domain name exactly as it appears in the Active Directory Users and Computers console.

You will be prompted for credentials. Use an account that has permission to join computers to the domain, typically the Administrator account or a dedicated enterprise admin. If successful, you will receive a welcome message confirming that you have joined the domain. Restart the Domain VM immediately after joining.

If you encounter errors such as "The specified domain either does not exist or could not be contacted," revisit the DNS configuration. Most join failures stem from the client pointing to the wrong DNS server or the DNS server not having the correct SRV records for the domain controller. For more detailed installation guidance, you might also want to review Windows Server Installation with VirtualBox to ensure the base image was configured correctly.

Troubleshooting Common Errors

When the join process fails, specific error codes can guide your diagnosis. Error 1355 usually indicates a DNS resolution issue where the client cannot find the domain controller. Error 5719 suggests that the computer account password is out of sync, which can happen if the server was restored from a snapshot incorrectly.

Always ensure that the time synchronization between the client and server is accurate. Kerberos authentication requires time differences to be less than five minutes. If the times are skewed, enable NTP synchronization on the client to point to the server’s time source.

Frequently Asked Questions

Why can't my Domain VM ping the Windows Server?

This is almost always due to network adapter configuration mismatches. Ensure both VMs are attached to the same Internal Network name or Host-only Adapter in VirtualBox settings. Check that their IP addresses are in the same subnet and that no host-level firewall is blocking ICMP traffic.

What is the difference between Internal Network and NAT Private Pool?

An Internal Network creates a closed switch visible only to VMs assigned to it, ideal for isolated lab environments. NAT Private Pool allows VMs to talk to each other but also provides outbound internet access via the host. For domain joins, Internal Network is preferred to prevent accidental exposure to the outside world.

How do I fix error 1355 when joining the domain?

Error 1355 means the domain could not be contacted, which points to a DNS failure. Verify that the client’s primary DNS server is set to the Windows Server’s IP address. Also, ensure the DNS Server role on the host is running and has created the necessary SRV records for the domain.

Can I use a Host-only Adapter instead of Internal Network?

Yes, a Host-only Adapter works well for this purpose. It creates a private network between the host and the VMs. Just ensure that the Windows Server’s firewall allows traffic from the host-only subnet, as some security policies restrict access from host interfaces by default.

Do I need to install any additional drivers on the VMs?

While not strictly required for basic networking, installing VirtualBox Guest Additions improves performance and enables features like shared folders. However, the standard Microsoft-provided network drivers included in Windows Server and Client OS versions are sufficient for establishing a domain connection.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More