Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - Fresh Install of Debian 12.10 on Dell R620
- - install curl (apt install curl)
- - install sudo (apt install sudo)
- - Verify Virtualiaztion is enabled
- dhoutz@soniclab01:~/clab-sonic$ sudo kvm-ok
- INFO: /dev/kvm exists
- KVM acceleration can be used
- - Install containerlab using install script
- - curl -sL https://containerlab.dev/setup | sudo -E bash -s "all"
- - newgrp docker
- - logout and back in
- - Install vrnetlab and build sonic image
- - git clone https://github.com/hellt/vrnetlab/
- - scp sonic-vs-202405.img.gz soniclab01:/home/dhoutz/vrnetlab/sonic
- - mv scp sonic-vs-202405.img.gz scp sonic-vs-202405.qcow2
- - make
- - Verify Sonic image built and added
- - docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- vrnetlab/sonic_sonic-vs 202405 bd5f3939cece 3 minutes ago 2.1GB
- - Create clab topology following ac2 git repo:
- $ cat vm.clab.yml
- name: vm
- topology:
- nodes:
- sonic:
- kind: sonic-vm
- image: vrnetlab/sonic_sonic-vs:202405
- srl:
- kind: nokia_srlinux
- image: ghcr.io/nokia/srlinux
- links:
- - endpoints: ["sonic:eth1", "srl:e1-1"]
- - Start lab
- - containerlab deploy
- dhoutz@soniclab01:~/clab-sonic$ containerlab deploy
- 12:28:12 INFO Containerlab started version=0.68.0
- 12:28:12 INFO Parsing & checking topology file=vm.clab.yml
- 12:28:12 INFO Creating docker network name=clab IPv4 subnet=172.20.20.0/24 IPv6 subnet=3fff:172:20:20::/64 MTU=1500
- 12:28:13 INFO Pulling ghcr.io/nokia/srlinux:latest Docker image
- 12:29:39 INFO Done pulling ghcr.io/nokia/srlinux:latest
- 12:29:40 INFO Creating lab directory path=/home/dhoutz/clab-sonic/clab-vm
- 12:29:41 INFO Creating container name=sonic
- 12:29:41 INFO Creating container name=srl
- 12:29:48 INFO Running postdeploy actions kind=nokia_srlinux node=srl
- 12:29:48 INFO Created link: sonic:eth1 ▪┄┄▪ srl:e1-1
- 12:30:18 INFO Adding host entries path=/etc/hosts
- 12:30:19 INFO Adding SSH config for nodes path=/etc/ssh/ssh_config.d/clab-vm.conf
- ╭───────────────┬────────────────────────────────┬────────────────────┬───────────────────╮
- │ Name │ Kind/Image │ State │ IPv4/6 Address │
- ├───────────────┼────────────────────────────────┼────────────────────┼───────────────────┤
- │ clab-vm-sonic │ sonic-vm │ running │ 172.20.20.2 │
- │ │ vrnetlab/sonic_sonic-vs:202405 │ (health: starting) │ 3fff:172:20:20::2 │
- ├───────────────┼────────────────────────────────┼────────────────────┼───────────────────┤
- │ clab-vm-srl │ nokia_srlinux │ running │ 172.20.20.3 │
- │ │ ghcr.io/nokia/srlinux │ │ 3fff:172:20:20::3 │
- ╰───────────────┴────────────────────────────────┴────────────────────┴───────────────────╯
- - check processes in container
- dhoutz@soniclab01:~/clab-sonic$ docker exec -it clab-vm-sonic bash
- root@sonic:/# ps ax
- PID TTY STAT TIME COMMAND
- 1 pts/0 Ss+ 0:00 python3 /launch.py --username admin --password admin --hostname sonic --connection-mode
- 13 pts/0 Sl+ 0:20 qemu-system-x86_64 -enable-kvm -display none -machine pc -monitor tcp:0.0.0.0:4000,serv
- 62 pts/1 Ss 0:00 bash
- 68 pts/1 R+ 0:00 ps ax
- - Check container logs
- dhoutz@soniclab01:~/clab-sonic$ docker logs -f clab-vm-sonic
- 2025-05-05 17:29:48,283: vrnetlab DEBUG class: SONiC_vm, disk_image: /sonic-vs-202405.qcow2, overlay: /sonic-vs-202405-overlay.qcow2
- 2025-05-05 17:29:48,283: vrnetlab DEBUG Creating overlay disk image
- 2025-05-05 17:29:48,301: vrnetlab DEBUG Starting vrnetlab SONiC
- 2025-05-05 17:29:48,301: vrnetlab DEBUG VMs: [<__main__.SONiC_vm object at 0x7f57bdb57950>]
- 2025-05-05 17:29:48,301: vrnetlab DEBUG VM not started; starting!
- 2025-05-05 17:29:48,301: vrnetlab INFO ----------------START ENVIRONMENT VARIABLES-----------------
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_INTFS: 1
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_NODE_GROUP:
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_NODE_KIND: sonic-vm
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_NODE_LAB_DIR: /home/dhoutz/clab-sonic/clab-vm/sonic
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_NODE_LONGNAME: clab-vm-sonic
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_NODE_NAME: sonic
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_NODE_TYPE:
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_OWNER: dhoutz
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CLAB_TOPO_FILE: /home/dhoutz/clab-sonic/vm.clab.yml
- 2025-05-05 17:29:48,301: vrnetlab INFO CLAB_LABEL_CONTAINERLAB: vm
- 2025-05-05 17:29:48,301: vrnetlab INFO CONNECTION_MODE: tc
- 2025-05-05 17:29:48,302: vrnetlab INFO DEBIAN_FRONTEND: noninteractive
- 2025-05-05 17:29:48,302: vrnetlab INFO DOCKER_NET_V4_ADDR: 172.20.20.0/24
- 2025-05-05 17:29:48,302: vrnetlab INFO DOCKER_NET_V6_ADDR: 3fff:172:20:20::/64
- 2025-05-05 17:29:48,302: vrnetlab INFO HOME: /root
- 2025-05-05 17:29:48,302: vrnetlab INFO HOSTNAME: sonic
- 2025-05-05 17:29:48,302: vrnetlab INFO LC_CTYPE: C.UTF-8
- 2025-05-05 17:29:48,302: vrnetlab INFO NO_PROXY: localhost,127.0.0.1,::1,*.local,172.20.20.0/24,3fff:172:20:20::/64,sonic,srl
- 2025-05-05 17:29:48,302: vrnetlab INFO PASSWORD: admin
- 2025-05-05 17:29:48,302: vrnetlab INFO PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- 2025-05-05 17:29:48,302: vrnetlab INFO TERM: xterm
- 2025-05-05 17:29:48,302: vrnetlab INFO USERNAME: admin
- 2025-05-05 17:29:48,302: vrnetlab INFO no_proxy: localhost,127.0.0.1,::1,*.local,172.20.20.0/24,3fff:172:20:20::/64,sonic,srl
- 2025-05-05 17:29:48,302: vrnetlab INFO -----------------END ENVIRONMENT VARIABLES------------------
- 2025-05-05 17:29:48,302: vrnetlab INFO Launching SONiC_vm with 1 SMP/VCPU and 4096 M of RAM
- 2025-05-05 17:29:48,302: vrnetlab INFO Scrapli: Disabled
- 2025-05-05 17:29:48,302: vrnetlab INFO Transparent mgmt interface: Disabled
- 2025-05-05 17:29:48,302: vrnetlab DEBUG number of provisioned data plane interfaces is 1
- 2025-05-05 17:29:48,302: vrnetlab DEBUG waiting for provisioned interfaces to appear...
- 2025-05-05 17:29:53,303: vrnetlab DEBUG highest allocated interface id determined to be: 1...
- 2025-05-05 17:29:53,304: vrnetlab DEBUG interfaces provisioned, continuing...
- 2025-05-05 17:29:53,305: vrnetlab DEBUG qemu cmd: qemu-system-x86_64 -enable-kvm -display none -machine pc -monitor tcp:0.0.0.0:4000,server,nowait -serial telnet:0.0.0.0:5000,server,nowait -m 4096 -cpu host -smp 1 -drive if=ide,file=/sonic-vs-202405-overlay.qcow2 -smp 2 -device pci-bridge,chassis_nr=1,id=pci.1 -device pci-bridge,chassis_nr=2,id=pci.2 -device pci-bridge,chassis_nr=3,id=pci.3 -device pci-bridge,chassis_nr=4,id=pci.4 -device virtio-net-pci,netdev=p00,mac=0C:00:22:d8:b4:00 -netdev user,id=p00,net=10.0.0.0/24,host=10.0.0.2,dns=10.0.0.3,dhcpstart=10.0.0.15,hostfwd=tcp:0.0.0.0:22-10.0.0.15:22,hostfwd=udp:0.0.0.0:161-10.0.0.15:161,hostfwd=tcp:0.0.0.0:80-10.0.0.15:80,hostfwd=tcp:0.0.0.0:443-10.0.0.15:443,hostfwd=tcp:0.0.0.0:830-10.0.0.15:830,hostfwd=tcp:0.0.0.0:6030-10.0.0.15:6030,hostfwd=tcp:0.0.0.0:8080-10.0.0.15:8080,hostfwd=tcp:0.0.0.0:9339-10.0.0.15:9339,hostfwd=tcp:0.0.0.0:32767-10.0.0.15:32767,hostfwd=tcp:0.0.0.0:57400-10.0.0.15:57400,tftp=/tftpboot -device virtio-net-pci,netdev=p01,mac=0C:00:2f:f3:0e:01,bus=pci.1,addr=0x2 -netdev tap,id=p01,ifname=tap1,script=/etc/tc-tap-ifup,downscript=no
- Can ping but can't ssh:
- dhoutz@soniclab01:~/clab-sonic$ ping clab-vm-sonic -c 1
- PING clab-vm-sonic(clab-vm-sonic (3fff:172:20:20::2)) 56 data bytes
- 64 bytes from clab-vm-sonic (3fff:172:20:20::2): icmp_seq=1 ttl=64 time=0.104 ms
- --- clab-vm-sonic ping statistics ---
- 1 packets transmitted, 1 received, 0% packet loss, time 0ms
- rtt min/avg/max/mdev = 0.104/0.104/0.104/0.000 ms
- dhoutz@soniclab01:~/clab-sonic$
- dhoutz@soniclab01:~/clab-sonic$
- dhoutz@soniclab01:~/clab-sonic$ ssh admin@clab-vm-sonic
- kex_exchange_identification: read: Connection reset by peer
- Connection reset by 172.20.20.2 port 22
Advertisement