NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.6k stars 13.76k forks source link

Oracle Cloud Image - tracking issue #129891

Open colemickens opened 3 years ago

colemickens commented 3 years ago

Describe the bug

Oracle Cloud has a nice free-tier offer for access to a beefy ARM instance.

This issue is to track the creation/upload/publication of an official NixOS image for x86_64-linux and aarch64-linux in Oracle Cloud.

colemickens commented 3 years ago

So far it sounds like folks are kexec-ing into a naive KVM NixOS image with success. This makes me think that a relatively simple GHA workflow could be authored that:

I know in Azure this is not feasible because the owning organization has to pay for out-going bandwidth. I don't know if this is the case for Oracle or not.

Finally, a detail I left out -- it might be "important" for us to do this because free-tier users can not use custom images. Having official NixOS images available means that users could try Oracle Cloud + NixOS + aarch64 without having to pay for anything.

JJJollyjim commented 3 years ago

A friend and I have had success building an EFI qcow2 image with make-disk-image.nix and uploading it. Auto resizing etc works - I might have a go at porting the metadata SSH key grabber from one of the other image templates, and post an MVP.

I also emailed the person who is credited with posting the Kali Linux image, which is the only other free distro I can see in the marketplace, to ask about the transfer fee situation.

JJJollyjim commented 3 years ago

Got a reply: marketplace images are considered local to the cloud so there are no transfer fees :)

(The Kali uploader works at Oracle, so this is reasonably authoritative)

colemickens commented 3 years ago

From a quick skim of the Oracle Marketplace, It looks like publishing to it requires being an Oracle Partner, which sounds ... well less fun. But also it sounds like your Kali contact has already done this, so maybe it's not prohibitively annoying/exhausting?

JJJollyjim commented 3 years ago

Don't think so: my first reading was the same as yours, but actually I think there is a distinction between Partner Applications and Community Applications.

The contact also offered to put me in touch with the marketplace team once we have a working image, so that's an option if we need it :)

stale[bot] commented 2 years ago

I marked this as stale due to inactivity. → More info