Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. Using a cloud-init startup script for new VM / VPS deployments

Using a cloud-init startup script for new VM / VPS deployments

Scheduled Pinned Locked Moved Discuss
1-clickvps
12 Posts 6 Posters 2.1k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by girish
      #1

      Has anyone had any experience with booting new VMs / VPSs' with Cloudron by way of a startup/cloud-init script?

      Many VPS providers like DigitalOcean, AWS, Linode, LunaNode, etc (links directly to their feature documentation on startup scripts) include the ability to run startup scripts though they often all name it differently (Linode for example calls them "StackScripts").

      Anyways, thought I'd ask as I was just thinking a fun little project may be to build a script to run which automatically installs Cloudron at time of deployment (rather than after-the-fact as is the usual use-case). This is more for fun really, a quick learning project for myself, nothing I absolutely require by any means. πŸ™‚

      --
      Dustin Dauncey
      www.d19.ca

      1 Reply Last reply
      0
      • marcusquinnM Offline
        marcusquinnM Offline
        marcusquinn
        wrote on last edited by marcusquinn
        #2

        I tried and failed at that on a few, so just ended up doing manually.

        On this subject though - I think hosting partners that have Cloudron as an install option would be a good value-addition.

        They ought to pay for this sort of thing, they pay for all the other server manager platforms. Could be quite lucrative, which is good for reinvestment.

        Recommend you and anyone here email each provider's support, detailing Cloudron setup for VPS as a feature request. Even if they don't, their techies might like the look of it and join the club.

        More people that ask, the more attention Cloudron gets.

        I had a good conversation with the CEO of Upcloud, nice guy, I'm certain he'd be open to it. DM me if anyone wants his email to try.

        Web Design https://www.evergreen.je
        Development https://brandlight.org
        Life https://marcusquinn.com

        d19dotcaD 1 Reply Last reply
        0
        • marcusquinnM Offline
          marcusquinnM Offline
          marcusquinn
          wrote on last edited by
          #3

          Most of the founders of these hosts are active on Twitter too, worth some tweets @mentioning the platform and founders handles, they often respond.

          Web Design https://www.evergreen.je
          Development https://brandlight.org
          Life https://marcusquinn.com

          1 Reply Last reply
          0
          • marcusquinnM marcusquinn

            I tried and failed at that on a few, so just ended up doing manually.

            On this subject though - I think hosting partners that have Cloudron as an install option would be a good value-addition.

            They ought to pay for this sort of thing, they pay for all the other server manager platforms. Could be quite lucrative, which is good for reinvestment.

            Recommend you and anyone here email each provider's support, detailing Cloudron setup for VPS as a feature request. Even if they don't, their techies might like the look of it and join the club.

            More people that ask, the more attention Cloudron gets.

            I had a good conversation with the CEO of Upcloud, nice guy, I'm certain he'd be open to it. DM me if anyone wants his email to try.

            d19dotcaD Offline
            d19dotcaD Offline
            d19dotca
            wrote on last edited by
            #4

            @marcusquinn Ah darn, okay good to know. I ran some tests too and couldn't get it to work at all (almost as if the startup script didn't run), but have further testing I want to do.

            I currently use LunaNode and made them aware of Cloudron a while back when I posted on supporting automatic LunaNode DNS via their API (and linked them to it as well).

            I'll maybe reach out to them too after I've run some more tests on getting a startup script to work for their VMs to boot with installing Cloudron (and if I get one that works of course I'll share it here too).

            --
            Dustin Dauncey
            www.d19.ca

            1 Reply Last reply
            1
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              @d19dotca We are already on DO and AWS market place. We are working with the linode guys at https://github.com/linode/Marketplace-Apps/pull/13. We are also in touch with upcloud. If you know folks at LunaNode, we will happily work with them to get a 1-click image or equivalent.

              d19dotcaD 2 Replies Last reply
              1
              • girishG girish

                @d19dotca We are already on DO and AWS market place. We are working with the linode guys at https://github.com/linode/Marketplace-Apps/pull/13. We are also in touch with upcloud. If you know folks at LunaNode, we will happily work with them to get a 1-click image or equivalent.

                d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by
                #6

                @girish just to clarify, I’m not really looking for a one-click-image more so than trying to create one myself in a way using startup scripts. More for me to learn how to do it. πŸ™‚

                --
                Dustin Dauncey
                www.d19.ca

                1 Reply Last reply
                0
                • girishG girish

                  @d19dotca We are already on DO and AWS market place. We are working with the linode guys at https://github.com/linode/Marketplace-Apps/pull/13. We are also in touch with upcloud. If you know folks at LunaNode, we will happily work with them to get a 1-click image or equivalent.

                  d19dotcaD Offline
                  d19dotcaD Offline
                  d19dotca
                  wrote on last edited by d19dotca
                  #7

                  @girish I just looked at what you did for Linode on GitHub, and that may actually help as it’s a similar script to what I tried in my tests but not the same so I’m maybe missing some of what you did there. Specifically referring to the cloudron-stackscript.sh file. I’ll try that out. πŸ™‚ Thanks for sharing the GitHub link.

                  --
                  Dustin Dauncey
                  www.d19.ca

                  1 Reply Last reply
                  0
                  • jdaviescoatesJ Offline
                    jdaviescoatesJ Offline
                    jdaviescoates
                    wrote on last edited by jdaviescoates
                    #8

                    I recently signed-up to netcup (thinking of perhaps having my backups stored there instead of on Hetzner where my primary VPS is - although I also pay Hetzner for their native backup solution too for good measure, and occasionally run a snapshot as well) and I noticed that I could choose for Cloudron to be automatically installed, and so I did. But I've not actually even gone to the relevant url/ IP to complete the installation yet as not sure which url to use for it πŸ˜› (and just not got around to it).

                    Saying that, the UX of Hetzner is so much better than Netcup (they weirdly and confusingly make you pay 6 months up front even though you can cancel at any time and be refunded down to the hour) that I actually found the whole process of doing it manually on Hetzner easier!

                    I use Cloudron with Gandi & Hetzner

                    1 Reply Last reply
                    1
                    • d19dotcaD Offline
                      d19dotcaD Offline
                      d19dotca
                      wrote on last edited by
                      #9

                      FYI - I was able to get this to work with the following startup script which I borrowed from the Linode StartStack on GitHub.

                      #!/bin/bash
                      
                      set -eu
                      
                      wget https://cloudron.io/cloudron-setup
                      chmod +x cloudron-setup
                      ./cloudron-setup --provider generic
                      

                      It worked after a while, I think before I just wasn't waiting long enough for it and was also looking in the wrong area for the logs of the startup script.

                      7431ec37-a10d-4c45-9d5b-b156600d0e6d-image.png

                      Happy this works now. I'll keep this in my repertoire to save some time if I ever need to spin-up a new Cloudron quickly.

                      --
                      Dustin Dauncey
                      www.d19.ca

                      MooCloud_MattM 1 Reply Last reply
                      1
                      • robiR Offline
                        robiR Offline
                        robi
                        wrote on last edited by
                        #10

                        Will be interesting once we can do Cloudron within Cloudron.

                        Conscious tech

                        1 Reply Last reply
                        0
                        • d19dotcaD d19dotca

                          FYI - I was able to get this to work with the following startup script which I borrowed from the Linode StartStack on GitHub.

                          #!/bin/bash
                          
                          set -eu
                          
                          wget https://cloudron.io/cloudron-setup
                          chmod +x cloudron-setup
                          ./cloudron-setup --provider generic
                          

                          It worked after a while, I think before I just wasn't waiting long enough for it and was also looking in the wrong area for the logs of the startup script.

                          7431ec37-a10d-4c45-9d5b-b156600d0e6d-image.png

                          Happy this works now. I'll keep this in my repertoire to save some time if I ever need to spin-up a new Cloudron quickly.

                          MooCloud_MattM Offline
                          MooCloud_MattM Offline
                          MooCloud_Matt
                          wrote on last edited by
                          #11

                          @d19dotca
                          Many provider use build-from-snapshot feature, so you can use a pre-installed image with cloudron.

                          Matteo. R.
                          Founder and Tech-Support Manager.
                          MooCloud MSP
                          Swiss Managed Service Provider

                          d19dotcaD 1 Reply Last reply
                          0
                          • MooCloud_MattM MooCloud_Matt

                            @d19dotca
                            Many provider use build-from-snapshot feature, so you can use a pre-installed image with cloudron.

                            d19dotcaD Offline
                            d19dotcaD Offline
                            d19dotca
                            wrote on last edited by d19dotca
                            #12

                            @MooCloud_Matt Yes that's true too, but that wasn't what I wanted to achieve in this case. πŸ˜‰ I was specifically trying to teach myself how to use a cloud-init script / boot script, it was a learning project. Always trying to learn new things. πŸ™‚

                            --
                            Dustin Dauncey
                            www.d19.ca

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Bookmarks
                              • Search