VMware ESXi
Create a VM for gNB
GUI
- In the Navigator pane on the left, click on the Virtual Machines tab
- Click on Create/Register VM tab
- In the New Virtual Machine wizard, select the following:
- Select Creating Type > Create a new virtual machine
- Select a name and Guest OS >
- Name: gNB
- Compatibility: ESXi 7.0 U2 virtual machine
- Guest OS family: Linux
- Guest OS version: Ubuntu Linux (64 bit)
- Select the inventory location where the virtual machine should be created
- Select the customize settings as it shows the figure below. The ISO used is ubuntu 20.04
- Finish the wizard and power on the VM
Modify the network configuration
- Select the gNB virtual machine and Open console in new window
- In the top right corner of the screen displayed on the console, click on the network icon
- Click on Settings
- In this case, the VM has only one network connections.
- For the only network connection (ens160), we will click on the gear icon next to the connection name to access the settings for that connection and modify it based on the figure below.
- IPv4 Method: Manual
- Addresses:
- Address: 192.168.233.6
- Netmask: 255.255.255.0
- Gateway: 192.168.233.1
- DNS: 8.8.8.8,8.8.4.4
Verify connectivity
ping -c 2 192.168.233.1
ping -c 2 192.168.233.6
ping -c 2 google.comsudo apt update && sudo apt upgrade -y
sudo apt install openssh-server -yMake sure to make a snapshot before proceeding with the setup
Setup gNB and install UERANSIM
To download UERANSIM
cd ~
sudo apt install git -y
git clone https://github.com/aligungr/UERANSIM
cd UERANSIMInstall required tools
sudo apt install make
sudo apt install gcc -y
sudo apt install g++ -y
sudo apt install libsctp-dev lksctp-tools -y
sudo apt install iproute2
sudo snap install cmake --classicBuild UERANSIM
cd ~/UERANSIM
makeModify the config files
cd UERANSIM/config
sudo cp open5gs-gnb.yaml open5gs-gnb1.yaml
sudo nano open5gs-gnb1.yamlStart the gNB
cd ..
./build/nr-gnb -c config/open5gs-gnb1.yamlCreate a VM for UE
GUI
- In the Navigator pane on the left, click on the Virtual Machines tab
- Click on Create/Register VM tab
- In the New Virtual Machine wizard, select the following:
- Select Creating Type > Create a new virtual machine
- Select a name and Guest OS >
- Name: UE
- Compatibility: ESXi 7.0 U2 virtual machine
- Guest OS family: Linux
- Guest OS version: Ubuntu Linux (64 bit)
- Select the inventory location where the virtual machine should be created
- Select the customize settings as it shows the figure below. The ISO used is ubuntu 20.04
- Finish the wizard and power on the VM
Modify the network configuration
- Select the UE virtual machine and Open console in new window
- In the top right corner of the screen displayed on the console, click on the network icon
- Click on Settings
- In this case, the VM has only one network connections.
- For the only network connection (ens160), we will click on the gear icon next to the connection name to access the settings for that connection and modify it based on the figure below.
- IPv4 Method: Manual
- Addresses:
- Address: 192.168.233.7
- Netmask: 255.255.255.0
- Gateway: 192.168.233.1
- DNS: 8.8.8.8,8.8.4.4
Verify connectivity
ping -c 2 192.168.233.1
ping -c 2 192.168.233.7
ping -c 2 google.comsudo apt update && sudo apt upgrade -y
sudo apt install openssh-server -yMake sure to make a snapshot before proceeding with the setup
Setup UE and install UERANSIM
To download UERANSIM
cd ~
sudo apt install git -y
git clone https://github.com/aligungr/UERANSIM
cd UERANSIMInstall required tools
sudo apt install make
sudo apt install gcc -y
sudo apt install g++ -y
sudo apt install libsctp-dev lksctp-tools -y
sudo apt install iproute2
sudo snap install cmake --classicBuild UERANSIM
cd ~/UERANSIM
makeModify the config files
cd UERANSIM/config
sudo cp open5gs-ue.yaml open5gs-ue1.yaml
sudo nano open5gs-ue1.yamlStart the UE
cd ..
./build/nr-gnb -c config/open5gs-ue1.yaml