Skip to content

Commit 4e0a92e

Browse files
committed
Signed-off-by: Gunjan Vyas <vyasgun20@gmail.com>
debug changes
1 parent 77546dc commit 4e0a92e

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

ci_microshift.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ sudo yum install -y make golang
1010
# Set the zstd compression level to 10 to have faster
1111
# compression while keeping a reasonable bundle size.
1212
export CRC_ZSTD_EXTRA_FLAGS="-10"
13+
1314
./createdisk.sh crc-tmp-install-data
1415

1516
# Delete the crc domain which created by snc so it can created

createdisk.sh

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ fi
101101
# this mac address is used to allocate a specific IP to the VM
102102
# when tap device is in use.
103103
${SSH} core@${VM_IP} 'sudo bash -x -s' <<EOF
104+
nmcli connection delete tap0
104105
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
105106
EOF
106107

@@ -109,25 +110,26 @@ EOF
109110
${SSH} core@${VM_IP} 'sudo bash -x -s' <<EOF
110111
podman create --name=gvisor-tap-vsock quay.io/crcont/gvisor-tap-vsock:latest
111112
podman cp gvisor-tap-vsock:/vm /usr/local/bin/gvforwarder
113+
podman cp gvisor-tap-vsock:/usr/share/udhcpc /usr/share/
112114
podman rm gvisor-tap-vsock
113115
tee /etc/systemd/system/gv-user-network@.service <<TEE
114-
[Unit]
115-
Description=gvisor-tap-vsock Network Traffic Forwarder
116-
After=NetworkManager.service
117-
BindsTo=sys-devices-virtual-net-%i.device
118-
After=sys-devices-virtual-net-%i.device
119-
120-
[Service]
121-
Environment=GV_VSOCK_PORT="1024"
122-
EnvironmentFile=-/etc/sysconfig/gv-user-network
123-
ExecStart=/usr/local/bin/gvforwarder -preexisting -iface %i -url vsock://2:\\\${GV_VSOCK_PORT}/connect
124-
125-
[Install]
126-
WantedBy=multi-user.target
116+
[Unit]
117+
Description=gvisor-tap-vsock Network Traffic Forwarder
118+
After=NetworkManager.service
119+
BindsTo=sys-devices-virtual-net-%i.device
120+
After=sys-devices-virtual-net-%i.device
121+
122+
[Service]
123+
Environment=GV_VSOCK_PORT="1024"
124+
EnvironmentFile=-/etc/sysconfig/gv-user-network
125+
ExecStart=/usr/local/bin/gvforwarder -iface %i -url vsock://2:\\\${GV_VSOCK_PORT}/connect -debug
126+
127+
[Install]
128+
WantedBy=multi-user.target
127129
TEE
128130
systemctl daemon-reload
129131
systemctl enable gv-user-network@tap0.service
130-
systemctl daemon-reload
132+
systemctl start gv-user-network@tap0.service
131133
132134
EOF
133135

0 commit comments

Comments
 (0)