firecracker-microvm / firecracker-demo

A demo running 4000 Firecracker microVMs.
http://firecracker-microvm.io
Apache License 2.0
247 stars 56 forks source link

Firecracker Host ip not reachable #26

Closed subash1 closed 5 years ago

subash1 commented 5 years ago

PING 169.254.0.5 (169.254.0.5) 56(84) bytes of data. From 169.254.0.6 icmp_seq=1 Destination Host Unreachable From 169.254.0.6 icmp_seq=2 Destination Host Unreachable From 169.254.0.6 icmp_seq=3 Destination Host Unreachable From 169.254.0.6 icmp_seq=4 Destination Host Unreachable From 169.254.0.6 icmp_seq=5 Destination Host Unreachable From 169.254.0.6 icmp_seq=6 Destination Host Unreachable From 169.254.0.6 icmp_seq=7 Destination Host Unreachable From 169.254.0.6 icmp_seq=8 Destination Host Unreachable From 169.254.0.6 icmp_seq=9 Destination Host Unreachable From 169.254.0.6 icmp_seq=10 Destination Host Unreachable From 169.254.0.6 icmp_seq=11 Destination Host Unreachable From 169.254.0.6 icmp_seq=12 Destination Host Unreachable ^C --- 169.254.0.5 ping statistics --- 14 packets transmitted, 0 received, +12 errors, 100% packet loss, time 13302ms pipe 4

I am trying to boot multiple guest os.

while boot source, following is the boot args.

panic=1 pci=off reboot=k tsc=reliable quiet 8250.nr_uarts=0 ipv6.disable=1 ip=169.254.0.5::169.254.0.6:255.255.255.252::wlp59s0:off

while call network interface

/network-interfaces/1

req body { "iface_id": "1", "guest_mac": "02:FC:00:00:00:01" "host_dev_name" : "fc-1-tap0" }

these are my ip confi

docker0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 172.17.0.1  netmask 255.255.0.0  broadcast 172.17.255.255
        inet6 fe80::42:46ff:fe56:5595  prefixlen 64  scopeid 0x20<link>
        ether 02:42:46:56:55:95  txqueuelen 0  (Ethernet)
        RX packets 29  bytes 2207 (2.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 73  bytes 9641 (9.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

fc-0-tap0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 169.254.0.2  netmask 255.255.255.252  broadcast 0.0.0.0
        ether de:a2:67:14:a8:0d  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

fc-1-tap0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 169.254.0.6  netmask 255.255.255.252  broadcast 0.0.0.0
        ether 02:e7:64:f5:47:e4  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

fc-2-tap0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 169.254.0.10  netmask 255.255.255.252  broadcast 0.0.0.0
        ether 06:90:9e:7c:18:b6  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 721999  bytes 98827091 (98.8 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 721999  bytes 98827091 (98.8 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp59s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet   netmask 255.255.0.0  broadcast 172.22.255.255
        inet6 fe80::7354:26f6:30ee:c355  prefixlen 64  scopeid 0x20<link>
        ether 58:a0:23:63:36:25  txqueuelen 1000  (Ethernet)
        RX packets 4818696  bytes 6476454776 (6.4 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 728035  bytes 146492910 (146.4 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

seems firecracker process also started. here is the logs.

Running Firecracker v0.19.0
2019-11-13T15:23:49.156830091 [1:INFO:api_server/src/http_service.rs:616] The synchronous Put request on "/logger" with body "{\n              \"log_fifo\": \"/home/orchestly/Zoho/Firecracker/Binary/Multi/output/fc-log-1.log\",\n              \"metrics_fifo\": \"/dev/null\",\n              \"level\" : \"Info\",\n              \"show_level\" : true,\n              \"show_log_origin\" : true\n         }" was executed successfully. Status code: 204 No Content.
2019-11-13T15:23:49.177398842 [1:INFO:api_server/src/http_service.rs:654] The API server received a synchronous Put request on "/boot-source" with body "{\n              \"kernel_image_path\": \"hello-vmlinux.bin\",\n              \"boot_args\": \"panic=1 pci=off reboot=k tsc=reliable quiet 8250.nr_uarts=0 ipv6.disable=1 ip=169.254.0.5::169.254.0.6:255.255.255.252::wlp59s0:off\"\n         }".
2019-11-13T15:23:49.177724703 [1:INFO:api_server/src/http_service.rs:616] The synchronous Put request on "/boot-source" with body "{\n              \"kernel_image_path\": \"hello-vmlinux.bin\",\n              \"boot_args\": \"panic=1 pci=off reboot=k tsc=reliable quiet 8250.nr_uarts=0 ipv6.disable=1 ip=169.254.0.5::169.254.0.6:255.255.255.252::wlp59s0:off\"\n         }" was executed successfully. Status code: 204 No Content.
2019-11-13T15:23:49.195667706 [1:INFO:api_server/src/http_service.rs:654] The API server received a synchronous Put request on "/drives/rootfs" with body "{\n          \"drive_id\": \"rootfs\",\n          \"path_on_host\": \"hello-rootfs.ext4\",\n          \"is_root_device\": true,\n          \"is_read_only\": false\n     }".
2019-11-13T15:23:49.195861612 [1:INFO:api_server/src/http_service.rs:616] The synchronous Put request on "/drives/rootfs" with body "{\n          \"drive_id\": \"rootfs\",\n          \"path_on_host\": \"hello-rootfs.ext4\",\n          \"is_root_device\": true,\n          \"is_read_only\": false\n     }" was executed successfully. Status code: 204 No Content.
2019-11-13T15:23:49.206000480 [1:INFO:api_server/src/http_service.rs:654] The API server received a synchronous Put request on "/network-interfaces/1" with body "{\n              \"iface_id\": \"1\",\n              \"guest_mac\": \"02:FC:00:00:00:01\",\n              \"host_dev_name\" : \"fc-1-tap0\"\n         }".
2019-11-13T15:23:49.206465712 [1:INFO:api_server/src/http_service.rs:616] The synchronous Put request on "/network-interfaces/1" with body "{\n              \"iface_id\": \"1\",\n              \"guest_mac\": \"02:FC:00:00:00:01\",\n              \"host_dev_name\" : \"fc-1-tap0\"\n         }" was executed successfully. Status code: 204 No Content.
2019-11-13T15:23:49.213847634 [1:INFO:api_server/src/http_service.rs:654] The API server received a synchronous Put request on "/actions" with body "{\n        \"action_type\": \"InstanceStart\"\n     }".
2019-11-13T15:23:49.213934879 [1:INFO:vmm/src/lib.rs:1397] VMM received instance start command
2019-11-13T15:23:49.213965860 [1:INFO:vmm/src/vstate.rs:145] Guest memory starts at 7fbf7e992000
2019-11-13T15:23:49.222560588 [1:WARN:vmm/src/lib.rs:543] ***Could not add stdin event to epoll. Operation not permitted (os error 1)***
2019-11-13T15:23:49.223312351 [1:INFO:api_server/src/http_service.rs:616] The synchronous Put request on "/actions" with body "{\n        \"action_type\": \"InstanceStart\"\n     }" was executed successfully. Status code: 204 No Content.

Need help to login in the guest, Please help.