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

cloud-init from DO work with scaleway #80

Open
sr-tream opened this issue Aug 29, 2021 · 4 comments
Open

cloud-init from DO work with scaleway #80

sr-tream opened this issue Aug 29, 2021 · 4 comments

Comments

@sr-tream
Copy link

With little modify (remove PROVIDER):

#cloud-config
write_files:
- path: /etc/nixos/host.nix
  permissions: '0644'
  content: |
    {pkgs, ...}:
    {
      environment.systemPackages = with pkgs; [ vim ];
    }
runcmd:
  - curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | NIXOS_IMPORT=./host.nix NIX_CHANNEL=nixos-21.05 bash 2>&1 | tee /tmp/infect.log

Source: https://nixos.wiki/wiki/Install_NixOS_on_Scaleway_X86_Virtual_Cloud_Server

Tested and work on instances:

  • DEV-1S
  • DEV-1M

Also, it must work properly with:

  • DEV-1L
  • DEV-1XL

Tested with images:

  • Ubuntu Bionic - work
  • Ubuntu Focal Fossa - doesn't work
  • rockylinux 8 - doesn't work
@ppom0
Copy link

ppom0 commented Sep 23, 2021

Actually I'm trying the script on a Scaleway STARDUST1-S instance, and it doesn't function properly.
I'm able to build the system, but it doesn't add a /nix/var/nix/profiles/system-X-link.
I don't know why I have this strange issue...
Edit: I just needed to reboot to be able to do successful rebuilds. So I agree, Scaleway could be added!

@sr-tream
Copy link
Author

I'm trying the script on a Scaleway STARDUST1-S instance, and it doesn't function properly.

What image you use? Cloud init doesn't work with some new images, like rockylinux 8 and Ubuntu Focal Fossa

@ppom0
Copy link

ppom0 commented Sep 23, 2021

Yeah it was Ubuntu Focal Fossa.
To get it to work, I did reboot several times, changed configuration.nix & rebuild nixos several times.
I'm not sure how but it finally worked. What image would you recommend? Simply a not-too-new one?

@sr-tream
Copy link
Author

What image would you recommend? Simply a not-too-new one?

With Ubuntu Bionic all work fine for me

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