tamalsaha/learn-firecracker

Resource Busy

Opened this issue · 3 comments

I'm assuming that you are using 4 tap interfaces, right? 🙂 (edited)

Gabriel Ionescu
2 hours ago
Second question, are you launching these two VMs on the same machine over and over? If yes, are the interfaces removed after a launch? There might be a hanging firecracker process that's still using the tap FDs; you can find that out by running fuser on all the FDs before launch.

Feb 27 22:00:08 gha-0 gh-ci-hostctl[1899]: time="2023-02-27T22:00:08Z" level=debug msg="PUT /network-interfaces/eth0 HTTP/1.1\r\nHost: localhost\r\nUser-Agent: Go-http-client/1.1\r\nContent-Length: 74\r\nAccept: application/json\r\nContent-Type: application/json\r\nAccept-Encoding: gzip\r\n\r\n{\"guest_mac\":\"AA:FC:ac:1a:00:01\",\"host_dev_name\":\"fc1\",\"iface_id\":\"eth0\"}\n\n"
Feb 27 22:00:08 gha-0 gh-ci-hostctl[1899]: time="2023-02-27T22:00:08Z" level=debug msg="HTTP/1.1 400 \r\nContent-Length: 247\r\nConnection: keep-alive\r\nContent-Type: application/json\r\nServer: Firecracker API\r\n\r\n{\"fault_message\":\"Could not create the network device: Open tap device failed: Error while creating ifreq structure: Resource busy (os error 16). Invalid TUN/TAP Backend provided by fc1. Check our documentation on setting up the network devices.\"}\n"