GNS3 / gns3-registry

GNS3 devices registry
GNU General Public License v3.0
330 stars 395 forks source link

Alpine cloudinit image option #900

Open elico opened 4 months ago

elico commented 4 months ago

Hey,

I have been using cloud images of alpine linux for quite a while now and was wondering if there would be a possibility to add one into the registry. The cloud images are public at: https://www.alpinelinux.org/cloud/

For now this is the relevant image: https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/generic_alpine-3.20.1-x86_64-bios-cloudinit-r0.qcow2

and we just need to create a cloud-init iso to create any image we would like. It can be frr or openvswitch or a web server or just plain alpine linux with user root and password alpine or what ever.

@grossmj What do you think?

grossmj commented 3 months ago

@elico yes that would be great. Just a plain Alpine Linux 👍

Thanks.

grossmj commented 3 months ago

@elico do you have any update on this or need some help?

elico commented 3 months ago

I have a working cloud init and it's a bit different then debian and redhat.

Thanks for checking out. I will try this evening to update with hope that i will not forget.

בתאריך יום ד׳, 31 ביולי 2024, 20:22, מאת Jeremy Grossmann ‏< @.***>:

@elico https://github.com/elico do you have any update on this or need some help?

— Reply to this email directly, view it on GitHub https://github.com/GNS3/gns3-registry/issues/900#issuecomment-2261003460, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANUHMAI7PJ3IE7KTWEVTVDZPEMOFAVCNFSM6AAAAABK2PXAUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRRGAYDGNBWGA . You are receiving this because you were mentioned.Message ID: @.***>

elico commented 3 months ago

@grossmj I have published the user-data and meta-data templates at: https://git.ngtech.co.il/NgTech-LTD/disk-from-cloud-image/src/branch/master/gen-cloud-init

There is also a user-data-ovs which is using a github hosted script to generate an OVS appliance. It's very useful to use alpine based images in the registry and just for the example:

Indeed there are benefits for Docker containers but these cannot complete many networking tasks which are for infrastructure so these VM templates will benefit GNS3 users a lot.

Thanks, Eliezer

grossmj commented 1 month ago

@elico

I have tried to create a Alpine cloud appliance in https://github.com/GNS3/gns3-registry/pull/917 however I am facing some issues.

The appliance is connect to a NAT cloud so it should have access to Internet.

First the appliance takes some time to boot because it is looking for something: the cloud's instance metadata service (IMDS).

Image

Then even though it says the default username is "alpine" and I configured the password "alpine", I can't see to be able to login:

Image

I haven't had time to investigate more. Maybe I just missed something obvious? I just don't want to spend to much time creating / maintaining appliances.