Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

kraft run on WSL2, no route #5

Open
windshome opened this issue Jan 28, 2022 · 6 comments
Open

kraft run on WSL2, no route #5

windshome opened this issue Jan 28, 2022 · 6 comments

Comments

@windshome
Copy link

I run these command on my WSL2 Ubuntu 20.04

$ sudo brctl addbr virbr0
$ sudo ip a a 172.44.0.1/24 dev virbr0
$ sudo ip l set dev virbr0 up

When I run " kraft run -b virbr0 "netdev.ipv4_addr=172.44.0.2 netdev.ipv4_gw_addr=172.44.0.1 netdev.ipv4_subnet_mask=255.255.255.0 --" " on my WSL2

after boot ,I wun "wget http://172.44.0.2:8123/"

it print:

 Connecting to 172.44.0.2:8123... failed: No route to host.

but how can I config the route on my WSL2?

@SikkiLadho
Copy link

I'm also facing the same issue. I was following USoC21 session and I also couldn't get response from the server with wget. I had the same error.

@razvand
Copy link
Contributor

razvand commented Apr 15, 2022

Unikraft / kraft doesn't currently support WSL. It's best to use a Linux host.

@SikkiLadho
Copy link

Unikraft / kraft doesn't currently support WSL. It's best to use a Linux host.

I forgot to mention that I'm running Arch linux.

@razvand
Copy link
Contributor

razvand commented Apr 15, 2022

@windshome , make sure the tap0 interface is up. Use the command sudo ip link set dev tap0 up.

@windshome
Copy link
Author

@razvand but what is tap0? When I run "ip" command,it response:

root@LAPTOP-683IEQSK:/mnt/c/Users/lenovo# ip l
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: bond0: <BROADCAST,MULTICAST,MASTER> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 5a:21:e7:d0:d9:f4 brd ff:ff:ff:ff:ff:ff
3: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 12:5f:c4:11:cf:9c brd ff:ff:ff:ff:ff:ff
4: tunl0@NONE: mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ipip 0.0.0.0 brd 0.0.0.0
5: sit0@NONE: mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
6: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000
link/ether 00:15:5d:80:26:09 brd ff:ff:ff:ff:ff:ff

@razvand
Copy link
Contributor

razvand commented Apr 26, 2022

@windshome , then I suggest you used a full fledged virtual machine. WSL2 may not work for Unikraft development / deployment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants