From 6d19f9c891d77ed85daa30fe7177c2e131b87d4d Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 23 Sep 2024 17:20:20 +0700 Subject: [PATCH 1/2] Alpine cloud appliance --- appliances/alpine-cloud.gns3a | 56 ++++++++++++++++++ cloud-init/alpine-cloud/README.md | 9 +++ .../alpine-cloud/alpine-cloud-init-data.iso | Bin 0 -> 374784 bytes cloud-init/alpine-cloud/meta-data | 2 + cloud-init/alpine-cloud/user-data | 12 ++++ 5 files changed, 79 insertions(+) create mode 100644 appliances/alpine-cloud.gns3a create mode 100644 cloud-init/alpine-cloud/README.md create mode 100644 cloud-init/alpine-cloud/alpine-cloud-init-data.iso create mode 100644 cloud-init/alpine-cloud/meta-data create mode 100644 cloud-init/alpine-cloud/user-data diff --git a/appliances/alpine-cloud.gns3a b/appliances/alpine-cloud.gns3a new file mode 100644 index 0000000..f5b5bb5 --- /dev/null +++ b/appliances/alpine-cloud.gns3a @@ -0,0 +1,56 @@ +{ + "appliance_id": "edbaa01e-2032-4ee2-bb9f-dd5c4d84c270", + "name": "Alpine Cloud Guest", + "category": "guest", + "description": "Alpine Linux is a security-oriented, lightweight Linux distribution based on musl libc and busybox.", + "vendor_name": "Alpine Linux Development Team", + "vendor_url": "http://alpinelinux.org", + "vendor_logo_url": "https://raw.githubusercontent.com/GNS3/gns3-registry/master/vendor-logos/Alpine Linux.png", + "documentation_url": "http://wiki.alpinelinux.org", + "product_name": "Alpine Linux", + "product_url": "https://www.alpinelinux.org/cloud/", + "registry_version": 4, + "status": "stable", + "maintainer": "GNS3 Team", + "maintainer_email": "developers@gns3.net", + "usage": "Username: alpine\nPassword: alpine", + "port_name_format": "Ethernet{0}", + "qemu": { + "adapter_type": "virtio-net-pci", + "adapters": 1, + "ram": 1024, + "hda_disk_interface": "virtio", + "arch": "x86_64", + "console_type": "telnet", + "boot_priority": "c", + "kvm": "require", + "options": "-nographic" + }, + "images": [ + { + "filename": "generic_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2", + "version": "3.20.3", + "md5sum": "97ea89bbb8abd17c81c53148d6644796", + "filesize": 187826176, + "download_url": "https://www.alpinelinux.org/cloud/", + "direct_download_url": "https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/generic_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2" + }, + { + "filename": "alpine-cloud-init-data.iso", + "version": "1.0", + "md5sum": "5e7edd015dab0a0327c8641d5633de6a", + "filesize": 374784, + "download_url": "https://github.com/GNS3/gns3-registry/tree/master/cloud-init/alpine-cloud", + "direct_download_url": "https://github.com/GNS3/gns3-registry/raw/master/cloud-init/alpine-cloud/alpine-cloud-init-data.iso" + } + ], + "versions": [ + { + "name": "3.20.3", + "images": { + "hda_disk_image": "generic_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2", + "cdrom_image": "alpine-cloud-init-data.iso" + } + } + ] +} diff --git a/cloud-init/alpine-cloud/README.md b/cloud-init/alpine-cloud/README.md new file mode 100644 index 0000000..dbd5c6e --- /dev/null +++ b/cloud-init/alpine-cloud/README.md @@ -0,0 +1,9 @@ +# Alpine-cloud cloud-init-data image for GNS3 virtual appliance + +Generated using the following commands: + +``` +printf "#cloud-config\n\npassword: alpine\nchpasswd: { expire: False }\nssh_pwauth: True\n" > user-data +printf "instance-id: alpine-cloud\nlocal-hostname: alpine-cloud\n" > meta-data +mkisofs -output alpine-cloud-init-data.iso -volid cidata -joliet -rock user-data meta-data +``` diff --git a/cloud-init/alpine-cloud/alpine-cloud-init-data.iso b/cloud-init/alpine-cloud/alpine-cloud-init-data.iso new file mode 100644 index 0000000000000000000000000000000000000000..209fdcd49be3d4da47f9a9832248d29e1055938f GIT binary patch literal 374784 zcmeI*OK%&;0RZ4x2Sr>4P0^r8gFtQuX$vF=$&_u_kb7dOrL>9o0GA5vlfX)pEkv?Z zJ&*!z1NhYT*W?nQxBi}7jQ)gnmJchoR=W?`-9tlx_--Zpo(hR4Gf zAD>D7V-lGLv(&R;7D84%!quyxHaT4T`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0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&U zAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C7 z2oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N z0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+ z009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBly zK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF z5FkK+009C72oNAZfB*pk1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk z1PBlyK!5-N0t5&UAV7cs0RjXF5FkK+009C72oNAZfB*pk1PBlyK!5;&ACAC(020q4 Ae*gdg literal 0 HcmV?d00001 diff --git a/cloud-init/alpine-cloud/meta-data b/cloud-init/alpine-cloud/meta-data new file mode 100644 index 0000000..60fbcc8 --- /dev/null +++ b/cloud-init/alpine-cloud/meta-data @@ -0,0 +1,2 @@ +instance-id: alpine-cloud +local-hostname: alpine-cloud \ No newline at end of file diff --git a/cloud-init/alpine-cloud/user-data b/cloud-init/alpine-cloud/user-data new file mode 100644 index 0000000..ec99134 --- /dev/null +++ b/cloud-init/alpine-cloud/user-data @@ -0,0 +1,12 @@ +#cloud-config + +package_update: false +package_upgrade: false +package_reboot_if_required: false + +password: alpine +chpasswd: { expire: False } +ssh_pwauth: True + +users: +- default From 4b71ddb55c5a7ce97b280da509ec2a8a668ba3f3 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 10 Jan 2025 21:50:38 +0700 Subject: [PATCH 2/2] Working Alpine cloud appliance --- appliances/alpine-cloud.gns3a | 18 +++++++++--------- cloud-init/alpine-cloud/README.md | 4 ++-- .../alpine-cloud/alpine-cloud-init-data.iso | Bin 374784 -> 374784 bytes cloud-init/alpine-cloud/meta-data | 3 +-- cloud-init/alpine-cloud/user-data | 6 ++++-- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/appliances/alpine-cloud.gns3a b/appliances/alpine-cloud.gns3a index f5b5bb5..0015709 100644 --- a/appliances/alpine-cloud.gns3a +++ b/appliances/alpine-cloud.gns3a @@ -13,7 +13,7 @@ "status": "stable", "maintainer": "GNS3 Team", "maintainer_email": "developers@gns3.net", - "usage": "Username: alpine\nPassword: alpine", + "usage": "\nUsername: alpine\nPassword: alpine", "port_name_format": "Ethernet{0}", "qemu": { "adapter_type": "virtio-net-pci", @@ -28,17 +28,17 @@ }, "images": [ { - "filename": "generic_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2", - "version": "3.20.3", - "md5sum": "97ea89bbb8abd17c81c53148d6644796", - "filesize": 187826176, + "filename": "generic_alpine-3.21.2-x86_64-bios-cloudinit-r0.qcow2", + "version": "3.21.2", + "md5sum": "b40825dff2867e0ffaffbc4c87674462", + "filesize": 189726720, "download_url": "https://www.alpinelinux.org/cloud/", - "direct_download_url": "https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/cloud/generic_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2" + "direct_download_url": "https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/cloud/generic_alpine-3.21.2-x86_64-bios-cloudinit-r0.qcow2" }, { "filename": "alpine-cloud-init-data.iso", "version": "1.0", - "md5sum": "5e7edd015dab0a0327c8641d5633de6a", + "md5sum": "b1b4b16cc3bf0250c0fa377c19c97683", "filesize": 374784, "download_url": "https://github.com/GNS3/gns3-registry/tree/master/cloud-init/alpine-cloud", "direct_download_url": "https://github.com/GNS3/gns3-registry/raw/master/cloud-init/alpine-cloud/alpine-cloud-init-data.iso" @@ -46,9 +46,9 @@ ], "versions": [ { - "name": "3.20.3", + "name": "3.21.2", "images": { - "hda_disk_image": "generic_alpine-3.20.3-x86_64-bios-cloudinit-r0.qcow2", + "hda_disk_image": "generic_alpine-3.21.2-x86_64-bios-cloudinit-r0.qcow2", "cdrom_image": "alpine-cloud-init-data.iso" } } diff --git a/cloud-init/alpine-cloud/README.md b/cloud-init/alpine-cloud/README.md index dbd5c6e..e4e844c 100644 --- a/cloud-init/alpine-cloud/README.md +++ b/cloud-init/alpine-cloud/README.md @@ -2,8 +2,8 @@ Generated using the following commands: +Alpine + ``` -printf "#cloud-config\n\npassword: alpine\nchpasswd: { expire: False }\nssh_pwauth: True\n" > user-data -printf "instance-id: alpine-cloud\nlocal-hostname: alpine-cloud\n" > meta-data mkisofs -output alpine-cloud-init-data.iso -volid cidata -joliet -rock user-data meta-data ``` diff --git a/cloud-init/alpine-cloud/alpine-cloud-init-data.iso b/cloud-init/alpine-cloud/alpine-cloud-init-data.iso index 209fdcd49be3d4da47f9a9832248d29e1055938f..c336b4db4acf5442ac8c43ead42fff374501bce7 100644 GIT binary patch delta 661 zcmZqpAlC3fY{SL|ZVmbp@E^fv4NqHfq{&Xff1^J z0UBUHQL#C<*@cxC$y`Q;$sfDKCv|fS1~l2W>ocYP>s}hdR?EmGD91Bd;(@&ggeikU zP0oIx4^y+?frTE5Bupto9fLdr7|4r3XfcpFDU-=;4+Fqjq)fnS5fo610z|38ItaZE zq(xS5a?8U2Q3w;PMOF_+ZDbT@oAg2m<{F6?G8$0VK;xZ}(FB(}VqU26q1v-~!izTk zjf}6@r!dA_7Z+#57nCQKmSk8dloXYwaup;N7nkQ3rC2E><`iV+rE+m4XMn|0thf{u kQY#8Fi&Cu=(h_ruTW2%2&Sq+z&D=VhW$SF#)a{H60D0J_Gynhq delta 668 zcmZqpAlC3fY{SL|ZgvI+872k>Mj+Z;*xbZ8*{ocYP>s}hdR>LVS$gMD0;(@&ggeikU zP0oIx4^y+?frTE5Bupto9fLdr7|6>)Xj!m2#>s3C10Y%$A!^|iP>TXYsls{)y&kBA zUyOHh%fkRs2ot0QC<3E4GK#ZJdLaaJjl>HX4X`Z=uy|)=G{NPLm=|h%sP=50@S=^M zT{k%=zchtwBjaQCDU9(p1&PJQ<@rS^RtkwZ1(|uNT*(<=A)r9DLTW`pW>Kn@f?Hxv qajHTsS8;Jhd_j3)X-S5aLP$|*>nz6BSxl|7m|JJDY@NlLx*Y&fW2zkh diff --git a/cloud-init/alpine-cloud/meta-data b/cloud-init/alpine-cloud/meta-data index 60fbcc8..edb0ffa 100644 --- a/cloud-init/alpine-cloud/meta-data +++ b/cloud-init/alpine-cloud/meta-data @@ -1,2 +1 @@ -instance-id: alpine-cloud -local-hostname: alpine-cloud \ No newline at end of file +local-hostname: alpine \ No newline at end of file diff --git a/cloud-init/alpine-cloud/user-data b/cloud-init/alpine-cloud/user-data index ec99134..92af524 100644 --- a/cloud-init/alpine-cloud/user-data +++ b/cloud-init/alpine-cloud/user-data @@ -4,9 +4,11 @@ package_update: false package_upgrade: false package_reboot_if_required: false +ssh_pwauth: true password: alpine -chpasswd: { expire: False } -ssh_pwauth: True + +chpasswd: + expire: false users: - default