Coder Social home page Coder Social logo

Comments (2)

melzhan avatar melzhan commented on August 21, 2024

Hi, we have been intending to remove Bazel support but haven't gotten around to it.

Please use the following workflow to build and run the server:

  1. Enter the server/emulator directory in a terminal

  2. Build with:
    go build main.go

  3. Run with:
    ./main

You can use the flag -alsologtostderr to easily view logs for the workflow.

To test against the emulated client provided:

  1. Open a second terminal and enter the client directory
  2. Build with: go build client.go
  3. Run with: ./client -alsologtostderr

Please let me know if I can help with anything else :)

from bootz.

ambhatti-zortik avatar ambhatti-zortik commented on August 21, 2024

Hi, thanks for the reply. I was using go build before, but I thought I might be missing something due to the many instances of bazel files. Thanks for clearing that up!

I'm now trying to run the built-in dhcp server locally by passing the dhcp option in emulator, and adding the virtual network interface's mac address to the inventory_local.prototxt file.

When I run the client (used the dhcp client from this and integrated in bootz/client) I'm getting:

2024/03/07 17:33:14 [eth0.2] sending Discover
2024/03/07 17:33:19 [eth0.2] error: resource temporarily unavailable

using tcp dump and pcap I have checked that the interface running the server is successfully receiving the requests, but no reponse is being sent by the server.

I'd be grateful you can point out what I'm doing wrong or if you can guide me to a better way to test the dhcp server and client locally(maybe using docker containers for each one), so i can move to the next stage of the boot process.

EDIT: nvm figured out how to run the dhcp server and client on different docker containers and actually get a valid response back by putting the dhcp on host network and client on a custom one. thanks regardless, I'll probably annoy you guys with further questions and issues down the line anyways.

from bootz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.