Deploy SONIC testbed (topo 0) on Ubuntu 20.04

 

One, install ubuntu20.04 virtual machine

https://releases.ubuntu.com/20.04/ubuntu-20.04.2.0-desktop-amd64

Two, configure the ubuntu20.04 virtual machine

1. Configure the network card

/etc/netplan/01-netcfg.yaml

2. Shared folder

(1) Windows sets the shared folder;

(2) Vmware enables shared folders;

(3) Enter the command vmware-hgfsclient to check whether the shared directory has been set successfully;

(4)mkdir /mnt/hgfs

(5).host:/shareforder /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0

(6)mount -a

3. Mount the iso file and configure the apt local source

(1) VMware Workstation, open "Virtual Machine Settings", click the "CD/DVD" option, and check "Connected" in "Device Status". Then select "Use ISO image file" below, click Browse, and select the system image file that is the same as the operating system of the virtual machine;

(2)mkdir /media/cdrom

(3)mount -t auto /dev/cdrom /media/cdrom

(4)sudo apt-cdrom -m -d=/media/cdrom add

(5)cat /etc/apt/sources.list

4. Install ansible

http://archive.ubuntu.com/ubuntu/pool/main/j/jinja2/python3-jinja2_2.11.2-1_all.deb

http://archive.ubuntu.com/ubuntu/pool/main/p/python-crypto/python3-crypto_2.6.1-13ubuntu2_amd64.deb

http://archive.ubuntu.com/ubuntu/pool/main/p/python3-stdlib-extensions/python3-distutils_3.8.5-1_20.04.1_all.deb

http://archive.ubuntu.com/ubuntu/pool/main/d/dnspython/python3-dnspython_2.0.0+really1.16.0-2ubuntu1_all.deb

http://archive.ubuntu.com/ubuntu/pool/main/i/ieee-data/ieee-data_20180805.1_all.deb

http://archive.ubuntu.com/ubuntu/pool/main/p/python-netaddr/python3-netaddr_0.7.19-4_all.deb

http://archive.ubuntu.com/ubuntu/pool/universe/a/ansible/ansible_2.9.9+dfsg-1_all.deb

5. Install docker

https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/containerd.io_1.4.4-1_amd64.deb

https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce-cli_20.10.5_3-0_ubuntu-focal_amd64.deb

https://download.docker.com/linux/ubuntu/dists/focal/pool/stable/amd64/docker-ce_20.10.5_3-0_ubuntu-focal_amd64.deb

Installation tutorial:

 cat gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

https://docs.docker.com/engine/install/ubuntu/

https://docs.docker.com/engine/install/linux-postinstall/

 

6.

http://archive.ubuntu.com/ubuntu/pool/main/s/setuptools/python3-pkg-resources_49.3.1-2_all.deb

http://archive.ubuntu.com/ubuntu/pool/main/s/setuptools/python3-setuptools_49.3.1-2_all.deb

http://archive.ubuntu.com/ubuntu/pool/universe/j/j2cli/j2cli_0.3.12b-2_all.deb

http://archive.ubuntu.com/ubuntu/pool/main/b/bridge-utils/bridge-utils_1.6-3ubuntu1_amd64.deb

http://archive.ubuntu.com/ubuntu/pool/main/n/net-tools/net-tools_1.60-26ubuntu1_amd64.deb

http://archive.ubuntu.com/ubuntu/pool/main/e/ethtool/ethtool_5.9-1_amd64.deb

 

Unfinished...

 

 

 

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_39094034/article/details/115027991