-
Notifications
You must be signed in to change notification settings - Fork 42
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
Custom blueprints doesn't work #66
Comments
Hi @vilm725, Sorry to hear things aren't working, I agree the documentation is minimal on this. For Looking at your blueprint files, I noticed a few issues that could be preventing it from working. One is the instance/blueprint name, you're using Looking at the layout of the zip, make sure all your blueprints are in the Let me know if trying this works! If it doesn't, would you be able to send your Multipass logs and the output of |
Hi @Sploder12 👋🏻 First of all, THANK YOU SO MUCH for all your advice. I don't understand why your information isn't in the doc ... I apologize if I got the names wrong. I had one version of the files on github and another locally in order to perform several tests. For this test, I decided to make a I've modify
I've entered this command and, unlike usual, I don't get an immediate error, but rather 5 long minutes, only to get an time out error :
After that command, multipass crash everytime :
I've test
This is the log file :
To sum up, there's only this command Honestly, I don't understand why it doesn't work. The log file above doesn't describe any glaring errors ... Do you have any idea? Full log file : |
Thank you for providing so much detail @vilm725! Blueprints can take a long time to load so I recommend setting a long timeout, but this appears to be a more interesting issue. Could you try modifying line 14 of - customdocker: # * equal to the blueprint name
+ docker-blueprint: # * equal to the blueprint name If Multipass crashes badly, restarting your machine will get it back to normal. You can also try sending |
Hi @Sploder12 👋🏻 I would like to thank you again for your answers. I apologize for the late reply. There's a 6-hour time difference between your city and mine. I've rename Concerning the timeout function. If I remove (or comment on) the TestsNote I would like to clarify that I will be using a minimal blueprint for the test below, a blueprint that looks like this:
Concerning the vendor-data and cloud-init. I've just tried removing the cloud-init and vendor-data sections completely. I thought it would be enough if I only removed the command lines.
The vm has the same properties as the blueprint file :
Note In this second test, I add the cloud-init and vendor-data functions to my blueprint, blueprint that looks like this:
Very strange result 🤔:
Anyway, I'm leaving the timezone aside and testing the basic docker installation and ... It's work ✅ :
Do you know how to check that the tests have been carried out? A log file for this test ? Note Last test, using multipass launch . The blueprint is the same as above, but without the timezone, as this is a problem. I've test with this command, doesn't work ❌ :
I'd like to add that every time I run the multipass launch command with a git link, multipass crashes, and I'm forced to restart multipass by waiting at least 5/10min using this command Note In this third test, I using My blueprint is displayed ✅ :
I launch my blueprint using its name, it work ✅:
how can I display canonical's old blueprints, which are just as interesting, but at the same time display my own? A more concise question: can I display several different blueprint sources? I've uploaded the log file of this (already very frustrating 😄) morning. It's much shorter than yesterday, maybe you'll find a mistake I didn't see? The rare errors I find are:
Conclusion:
SuggestionI think it's urgent to add to blueprint documentation (https://multipass.run/docs/blueprint + https://multipass.run/docs/use-a-blueprint), even if it's not perfect :
Even if it's not perfect, it will allow many people to forget about cloud init and multipass. It will save other people precious hours of time. I'd like to contribute to the documentation of these two pages by showing short, clear and concise examples of the use of blueprints. How can I do this? Irrelevant questionI couldn't find it in the documentation either: how can I launch several vm via a cloud init or a blueprint? It's a silly question, but so essential. |
Hello @vilm725 👋 Thank you again for providing so much detail! I took a look into using As for the timeout, your blueprint is relatively light so using the default timeout is reasonable. But it is a common problem with heavy blueprints. The integration tests mentioned by The Unfortunately, there is no reasonable way to display multiple blueprint sources at once. A potential workaround would be having single source that aggregates all the sources you want, but that's cumbersome. Looking at the logs, the Your question about launching several vms is not silly! But the answer is that unfortunately that functionality is not present. Although the blueprint schema supports it, it is not implemented. We will follow up on documentation in the near future, thank you for your interest! 😄 |
Hello @Sploder12 👋🏻
No problem at all with access to my vms. Whether with a multipass shell or to access them with vscodium (vscode)
|
Hi everyone 👋🏻
I can't get the personal blueprints to work locally, even when put in my github repo (kde neon, ubuntu distrib 24.04 lts), despite forced update with
multipass find --force-update
andmultipass find --only-blueprints
. Themultipass launch file://myblueprint
command doesn't work with local blueprints either (see this article: https://discourse.ubuntu.com/t/doc-suggestion-how-to-use-custom-blueprints/42847).However, my cloud-init files work fine, for example:
multipass launch -n mydocker --cloud-init https://raw.githubusercontent.com/vilm725/multipass-blueprints/refs/heads/main/docker-custom.yml
I read the very short doc on the subject (https://github.com/canonical/multipass-blueprints?tab=readme-ov-file#testing) and saw that you have to modify the file
/etc/systemd/system/snap.multipass.multipassd.service.d/override.conf
in order to make blueprints work. So I put a blueprint in my repo and another cloud init file to test them: https://github.com/vilm725/multipass-blueprints/Here's what I've put in this file:
Finally, I restarted multipass:
When I search for my blueprints, I can't find anything:
So, please, how do you get blueprints to work? I confess I don't understand, the documentation is really minimal on this subject.
The text was updated successfully, but these errors were encountered: