Canonical MAAS离线安装及MAAS SNAP包离线获取方法咨询
Hey there, let's work through your offline MAAS installation and snap download issue together!
First off, I feel your pain about the RPM packages—Canonical's MAAS doesn't officially support RPM-based distributions right now, so using the snap package is indeed the most reliable path for offline installs. Here's how you can get the MAAS snap offline and set it up:
Step 1: Download the MAAS snap on a network-connected machine
You'll need a machine with the same architecture (x86_64/arm64) as your offline target, and snapd installed (it's pre-installed on most Ubuntu releases, or you can install it via your distro's package manager if needed).
- To download the latest stable MAAS snap, run:
This will generate two files: asnap download maas.snappackage file (the actual MAAS software) and a.assertfile (used to verify the snap's authenticity). - If you need a specific version or channel (like beta/edge), first check available options with:
Then download with the desired channel/revision, for example:snap info maassnap download maas --channel=stable # Or specify a revision number snap download maas --revision=1234
Step 2: Transfer files to your offline machine
Copy both the .snap and .assert files to your offline system using a USB drive, external storage, or any offline transfer method you prefer.
Step 3: Install MAAS offline on your target machine
Since you already have snapd enabled on the offline machine, run these commands in order:
- First, validate the snap using the assertion file:
snap ack maas_*.assert - Then install the snap package:
snap install maas_*.snap
Once installed, you can proceed to initialize MAAS as you would normally (setting up the region controller, etc.). Just keep in mind that if you need boot resources, images, or firmware for your MAAS deployment, you'll need to pre-download those on a networked machine too and transfer them over—let me know if you need help with that part as well!
备注:内容来源于stack exchange,提问作者gone t'pub

