Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run pixiecore with cloud-init config? #135

Open
mahalel opened this issue Mar 13, 2022 · 1 comment
Open

Is it possible to run pixiecore with cloud-init config? #135

mahalel opened this issue Mar 13, 2022 · 1 comment

Comments

@mahalel
Copy link

mahalel commented Mar 13, 2022

Hey, first of all, this is a great tool, thank you for your work.

I have managed to boot Ubuntu Focal using the 'quick' command, which takes me to the setup wizard - all good.
I would like however to use the kernel flags discussed in this article to have it autoinstall using cloud-init.

I tried using the following, assuming the user config yaml file was in the 'root' directory where i ran the pixiecore executable.

--cmdline='ip=dhcp autoinstall ds="nocloud-net;s=http://192.168.70.193/" root=/dev/ram0 cloud-config-url=/dev/null'

I expected the file could be served from the webserver pixiecore is running but I suspect that is where I am not understanding it correctly.

Wonder if there is any advice on how to do this using just pixiecore and not setting up a separate TFTP/HTTP server.

@antermin
Copy link

Perhaps you can try this:

  1. On your server (let's suppose its IP is 192.168.70.193), create a directory which holds your meta-data and user-data.
  2. cd into that directory and set up a simple web server: python3 -m http.server (maybe there are other even simpler ways for a quick HTTP server, but this is the best that I can think of)
  3. Open TCP port 8000 (default for Python HTTP server, change accordingly if you are using another port)
  4. ds="nocloud-net;s=http://192.168.70.193:8000/"

The above sets up a separate HTTP server using Python, but I think it should be quick and simple enough to work around the issue of Pixiecore not being able to serve the cloud-init config.

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

No branches or pull requests

2 participants