This repository contains the mkosi definitions for the images
nspawn / mkosi-definitions Goto Github PK
View Code? Open in Web Editor NEWThis repository contains the mkosi definitions for the images
License: GNU General Public License v3.0
This repository contains the mkosi definitions for the images
License: GNU General Public License v3.0
Idk, if this is intentional, and if this is just missing on the homepage or an actual issue.
I just downloaded archlinux-archlinux.tar, and it worked successful until the point, at that it refused to write anything.
Inside the system, it reports it is a read-only filesystem - is this intended to be the case by default?
And outside of the system, I try to launch it via
machinectl read-only archlinux-archlinux-tar false
And get this error message, despite that I am root:
Could not mark image read-only: Access denied
Thanks!
systemd Portable Services is a great feature that systemd has implemented, currently, we build systemd-nspawn images would be good if we can have a Portabled repo in the future.
Documentation about Portable Services: https://systemd.io/PORTABLE_SERVICES/
machinectl start image.raw.zstd
Job for [email protected] failed because the control process exited with error code.
See "systemctl status [email protected]" and "journalctl -xeu [email protected]" for details.
systemctl status [email protected]
x [email protected] - Container image.raw.zstd
Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-02-27 13:33:08 CET; 40s ago
Docs: man:systemd-nspawn(1)
Process: 6278 ExecStart=systemd-nspawn --quiet --keep-unit --boot --link-journal=try-guest --network-veth -U --settings=override --machine=image.raw.zstd (code=exited, status=1/FAILURE)
Main PID: 6278 (code=exited, status=1/FAILURE)
Status: "Terminating..."
Error: 65 (Package not installed)
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: /var/lib/machines/image.raw.zstd.raw: Couldn't identify a suitable partition table or file system.
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: Note that the disk image needs to
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: a) either contain only a single MBR partition of type 0x83 that is marked bootable
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: b) or contain a single GPT partition of type 0FC63DAF-8483-4772-8E79-3D69D8477DE4
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: c) or follow https://systemd.io/DISCOVERABLE_PARTITIONS
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: d) or contain a file system without a partition table
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: in order to be bootable with systemd-nspawn.
Feb 27 13:33:08 cosmos64 systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Feb 27 13:33:08 cosmos64 systemd[1]: [email protected]: Failed with result 'exit-code'.
Feb 27 13:33:08 cosmos64 systemd[1]: Failed to start Container image.raw.zstd.
journalctl -xeu [email protected]
Feb 27 13:33:08 cosmos64 systemd[1]: Starting Container image.raw.zstd...
-- Subject: A start job for unit [email protected] has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit [email protected] has begun execution.
--
-- The job identifier is 1521.
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: /var/lib/machines/image.raw.zstd.raw: Couldn't identify a suitable partition table or file system.
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: Note that the disk image needs to
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: a) either contain only a single MBR partition of type 0x83 that is marked bootable
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: b) or contain a single GPT partition of type 0FC63DAF-8483-4772-8E79-3D69D8477DE4
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: c) or follow https://systemd.io/DISCOVERABLE_PARTITIONS
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: d) or contain a file system without a partition table
Feb 27 13:33:08 cosmos64 systemd-nspawn[6278]: in order to be bootable with systemd-nspawn.
Feb 27 13:33:08 cosmos64 systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit [email protected] has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Feb 27 13:33:08 cosmos64 systemd[1]: [email protected]: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit [email protected] has entered the 'failed' state with result 'exit-code'.
Feb 27 13:33:08 cosmos64 systemd[1]: Failed to start Container image.raw.zstd.
-- Subject: A start job for unit [email protected] has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit [email protected] has finished with a failure.
--
-- The job identifier is 1521 and the job result is failed.
Used command to install the nspawn image:
sudo machinectl pull-raw --verify=checksum https://hub.nspawn.org/storage/archlinux/archlinux/raw/image.raw.zstd
@shibumi knows all the details about this, I just opened it for tracking.
All containers don't have network.. This is something I would expect, so I will add it.
I just tested ubuntu/focal, ubuntu/jammy, and debian/sid.
The images were installed like this:
nspawn -i ubuntu/focal/tar
machinectl start ubuntu-focal-tar
machinectl login ubuntu-focal-tar
โ ~ sudo machinectl login ubuntu-focal-tar
Connected to machine ubuntu-focal-tar. Press ^] three times within 1s to exit session.
Ubuntu 20.04 LTS focal pts/1
focal login: root
Password:
Welcome to Ubuntu 20.04 LTS (GNU/Linux 6.2.1-arch1-1 x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
root@focal:~# ping www.google.de
ping: www.google.de: Temporary failure in name resolution
root@focal:~# apt update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
Temporary failure resolving 'archive.ubuntu.com'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
Temporary failure resolving 'archive.ubuntu.com'
Reading package lists... Done
Building dependency tree
Reading state information... Done
55 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Temporary failure resolving 'archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
fedora-34-tar
on the other hand worked. Maybe you can help :)
It would be very useful to have a GUIX image:
https://guix.gnu.org/
The definition can probably be dropped from the repo, nobody should be using f37 anymore.
Since Debian Buster is released, could you add it?
Current images have no space left to add any content to them (like installing one more package, for instance). Maybe a bit more of free space by default would be a great idea to make images more usable.
Thanks!
The fedora tarballs provided on nspawn.org do not have working package managers. There are no dnf/yum/rpm inside.
I wonder if we could use Github Actions for building all images. Thoughts @Edu4rdSHL ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.