Introduction
In this article, we will discuss how to run Ubuntu successfully on a Windows 10 VirtualBox with IPv6 and a NAT network. We will cover the necessary steps to configure the VirtualBox machines, set up static IPv6 addresses, and test the network connectivity between the Windows 10 and Ubuntu machines.
Setting up VirtualBox Machines
To get started, we need to open VirtualBox and create two virtual machines - one for Windows 10 and another for Ubuntu 22.04 LTS. Once the virtual machines are created, we need to configure the network settings for both machines.
Configuring Network Settings
To configure the network settings, we need to select each virtual machine and follow these steps:
- Click on the "Settings" button.
- Click on the "Network" tab.
- Select "NAT" as the network type for both machines.
- Click "OK" to save the settings.
Setting up Static IPv6 Addresses
Now that we have configured the network settings, we need to set up static IPv6 addresses for both machines. Here are the steps to follow:
Windows 10 Virtual Machine
To set up a static IPv6 address for the Windows 10 virtual machine, follow these steps:
- Start the Windows 10 virtual machine.
- Click on the "Network and Sharing Center" button.
- Click on "Change adapter settings" on the left-hand side of the window.
- Right-click on the network adapter and select "Properties" from the context menu.
- Select "Internet Protocol Version 6 (TCP/IPv6)" and click the "Properties" button.
- Select "Use the following IPv6 address" and enter the static IPv6 address as "fc00:1337::19/64".
- Click "OK" to save the settings.
Ubuntu 22.04 LTS Virtual Machine
To set up a static IPv6 address for the Ubuntu 22.04 LTS virtual machine, follow these steps:
- Start the Ubuntu 22.04 LTS virtual machine.
- Open the terminal and enter the following command:
- Modify the file to include the following lines:
- Save and close the file.
- Apply the changes by running the following command:
sudo nano /etc/netplan/01-00-local.yaml
network:
version: 2
address: fc00:1337::20/64
gateway6: fc00:1337::1
sudo netplan apply
Testing Network Connectivity
Now that we have set up static IPv6 addresses for both virtual machines, we can test the network connectivity between them. Here are the steps to follow:
Windows 10 Virtual Machine
To test the network connectivity from the Windows 10 virtual machine, follow these steps:
- Open the command prompt and enter the following command:
- If the ping is successful, it means that the network connectivity is working correctly.
ping fc00:1337::20
Ubuntu 22.04 LTS Virtual Machine
To test the network connectivity from the Ubuntu 22.04 LTS virtual machine, follow these steps:
- Open the terminal and enter the following command:
- If the ping is successful, it means that the network connectivity is working correctly.
ping fc00:1337::19
In this article, we have discussed how to run Ubuntu successfully on a Windows 10 VirtualBox with IPv6 and a NAT network. We have covered the necessary steps to configure the VirtualBox machines, set up static IPv6 addresses, and test the network connectivity between the Windows 10 and Ubuntu machines. By following these steps, you can create a successful virtual machine environment for your development needs.