Skip to content

Commit

Permalink
debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasgun committed Feb 10, 2025
1 parent 77546dc commit d1501b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions ci_microshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ sudo yum install -y make golang
# Set the zstd compression level to 10 to have faster
# compression while keeping a reasonable bundle size.
export CRC_ZSTD_EXTRA_FLAGS="-10"

./createdisk.sh crc-tmp-install-data

# Delete the crc domain which created by snc so it can created
Expand Down
34 changes: 19 additions & 15 deletions createdisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ fi
# this mac address is used to allocate a specific IP to the VM
# when tap device is in use.
${SSH} core@${VM_IP} 'sudo bash -x -s' <<EOF
nmcli connection delete tap0
nmcli connection add type tun ifname tap0 con-name tap0 mode tap autoconnect yes 802-3-ethernet.cloned-mac-address 5A:94:EF:E4:0C:EE
EOF

Expand All @@ -109,25 +110,28 @@ EOF
${SSH} core@${VM_IP} 'sudo bash -x -s' <<EOF
podman create --name=gvisor-tap-vsock quay.io/crcont/gvisor-tap-vsock:latest
podman cp gvisor-tap-vsock:/vm /usr/local/bin/gvforwarder
mkdir -p /usr/share/udhcpc
podman cp gvisor-tap-vsock:/usr/share/udhcpc /usr/share/udhcpc
podman rm gvisor-tap-vsock
tee /etc/systemd/system/[email protected] <<TEE
[Unit]
Description=gvisor-tap-vsock Network Traffic Forwarder
After=NetworkManager.service
BindsTo=sys-devices-virtual-net-%i.device
After=sys-devices-virtual-net-%i.device
[Service]
Environment=GV_VSOCK_PORT="1024"
EnvironmentFile=-/etc/sysconfig/gv-user-network
ExecStart=/usr/local/bin/gvforwarder -preexisting -iface %i -url vsock://2:\\\${GV_VSOCK_PORT}/connect
[Install]
WantedBy=multi-user.target
TEE
[Unit]
Description=gvisor-tap-vsock Network Traffic Forwarder
After=NetworkManager.service
BindsTo=sys-devices-virtual-net-%i.device
After=sys-devices-virtual-net-%i.device
[Service]
Environment=GV_VSOCK_PORT="1024"
EnvironmentFile=-/etc/sysconfig/gv-user-network
ExecStart=/usr/local/bin/gvforwarder -preexisting -iface %i -url vsock://2:\\\${GV_VSOCK_PORT}/connect -debug
[Install]
WantedBy=multi-user.target
TEE
systemctl daemon-reload
systemctl enable [email protected]
systemctl daemon-reload
systemctl start [email protected]
EOF

Expand Down

0 comments on commit d1501b4

Please sign in to comment.