Commit Graph

32 Commits

Author SHA1 Message Date
Andrey Sokolov
2e36347f71 Add ACOS 2021-08-23 15:07:26 +03:00
Mikhail Gordeev
60054e9f3d vm/cloud-systemd: add guest spice support 2020-09-18 12:45:09 +07:00
Anton Midyukov
30af48c871 vm.mk: Simplified conditions for choosing a bootloader depending on arch 2020-09-18 12:45:09 +07:00
Anton Midyukov
a2122b6943 vm.mk: vagrant available for i586, x86_64 only 2020-08-27 23:38:36 +07:00
Mikhail Gordeev
5e77ac4bd0 vm/cloud-systemd: use/tty/S0 to show log on COM port 2020-01-13 12:09:37 +03:00
Anton Midyukov
1dd9259b9a conf.d/vm.mk: fix portability 2019-09-09 19:31:58 +03:00
Mikhail Gordeev
a4d5464ade conf.d/vm.mk: Add locales and tzdata to vm/systemd 2019-04-02 17:44:02 +03:00
cf420b2174 vm.mk: add vm/.bare-grub{,-efi}
Some images will now be better off with GRUB;
rework ve/.bare while at that (splitting the
image targets appropriately).
2018-12-24 19:36:31 +03:00
890390a89a add vm/opennebula-systemd 2017-10-31 13:24:02 +03:00
91e0c6e933 cleanup vm/cloud-systemd 2017-10-31 13:23:56 +03:00
Michael Shigorin
24defe9461 mixin.mk: gather all mixin/* targets
These have appeared in desktop.mk, regular.mk, vm.mk
over time, and there are two problems around.

The minor one is that mixins have been introduced as
handy reusable bits close in context of their use;
this practically means that they fall under the same
class restrictions as their parent targets, that is
a mixin coming from regular.mk will only be available
for "distro" IMAGE_CLASS, and so on.

The major one is probably the worst design flaw in m-p:
building images from ground up, where ground is a valid
standalone buildable target as well.

Life has shown that we rather want to build up images
the other way around, choosing what essentials go in first
and then fitting the fine details along with the packaging.

The first sign of this difference appeared with ARMv7 Simply:
we had a well-built configuration aiming for x86 ISO, still
we needed roughly the same app/environment configuration
put into armh disk image.

Those platforms were different enough that we didn't actually
plan shipping *lots* of distributions but the problem was clear,
and it was much alike to the one that sprang m-p to life in the
first place (when we had a range of "common" distros and needed
to create and maintain a set of "school" ones that mostly had
similar or even identical difference to their respective base
ones -- and we couldn't do something like conf.d/p8.mk does now).

So mixins are going to become the softer way to turn m-p's
target configuration chain upside down to considerable extent:
build up what you're going to mix into the various deliverables,
and make it as portable across image classes, hardware platforms,
repository branches as feasible so that total maintenance effort
needed goes down or at least doesn't spike too bad.

And here's the first strike at that.
2017-09-25 23:58:40 +03:00
Michael Shigorin
b558f88bfa vm.mk: factor out mixin/cloud-init
This one has been clearly duplicated before.
2017-09-25 23:56:42 +03:00
4ff27b6a25 use use/net-eth/networkd-dhcp for vm/systemd-net 2016-03-02 07:39:26 +03:00
b7901e580d add vm/cloud-systemd and vm/cloud-sysv profiles
(amended with a later fixup)
2016-03-02 07:35:38 +03:00
Michael Shigorin
d4b3ccc0e4 vm.mk: don't be shy with thin disk image size
The resulting image size will be less than the specified maximal one
as it's thin-provided with contents taking up what they do.
2015-02-20 19:06:46 +03:00
Michael Shigorin
048c7c0834 vm.mk: initial vagrant-base
This should be built as vagrant-base.vdi (xz before publishing).
2015-02-16 23:49:27 +03:00
Michael Shigorin
ba3ded078d vm.mk: fix vm/net to handle ROOTPW
It's been ignored since the introduction of deflogin feature
and removal of build-vm specific ROOTPW variable handling;
might be adjusted to mandate this for vm/bare too, have to
think it over.
2014-12-04 21:04:49 +03:00
Michael Shigorin
0e0f1e065a vm.mk: added a note to bare one
It's not as bare as it should be due to interactivesystem
being slightly more than it ought to.
2014-09-29 15:59:20 +04:00
Michael Shigorin
dbe1d17dd8 desktop.mk, vm.mk: just use/net-eth
No need to require udev-rule-generator-net explicitly here,
it's been factored out into that feature.
2014-04-28 21:28:29 +04:00
Michael Shigorin
7a2b624b05 vm.mk: demo icewm image with "OEM" setup
This PoC will boot into locale and credentials setup GUI once
and should boot as usual ever since, that is into lightdm
in this case.
2014-04-28 21:28:28 +04:00
Michael Shigorin
b7e824b742 vm.mk: use sysvinit
I don't see any reason to use systemd within VM images,
and it would stick its journal as a syslog implementation
when not ditched explicitly :-/
2014-03-01 23:30:01 +04:00
Michael Shigorin
863fa04957 vm.mk: vm/net should use/repo
IOW one has every right to expect that package manager
is set up already in a networked virtual machine.
2014-03-01 23:30:01 +04:00
Michael Shigorin
43e76bd650 vm-net: feature retired
This one was replaced by the net feature completely
and has been declared obsolete since 1.1.1 (a month ago).

A few remaining users trivially adjusted.
2013-08-12 20:53:01 +04:00
Michael Shigorin
de94641c41 vm-ssh: renamed to net-ssh and cleaned up
There was no need to split carrying over the pubkey
and tightening up permissions on the file and its parent
directory to be done in two separate scripts; this should
be more generic now as a bonus.

Users adjusted accordingly.
2013-08-12 20:53:01 +04:00
Michael Shigorin
e8a067b4af vm.mk: add su to vm/net
It's pretty frustrating to be able to ssh into a vm
while being unable to administer it knowing the rootpw...
2013-06-20 16:17:52 +04:00
Michael Shigorin
a18295f223 {lib,conf.d}/{ve,vm}.mk: shift the real targets
lib/*.mk aren't going to be parsed for build targets
in the near future; and the early placement of those
targets was superseded by a dedicated configuration
snippet directory so just move these bits there.
2013-06-19 16:52:02 +04:00
Michael Shigorin
d22c793ee9 initial deflogin feature (security sensitive!)
The feature officially introduces the "engineering passwords"
including empty ones which have been around since forever but
weren't properly managed (and still are not, at least until
there are no stray passwd/chpasswd/usermod calls in both the
profile, installer-features and all the other related parts).

It is based on an m-p-d init3-users script by stanv@ but was
cleaned up and restructured in a pretty severe manner; thanks
glebfm@ for additional discussion.

This also cleans up the kludge previously stuck into build-vm.

Note that vm/icewm sports graphical autologin now as well as
the default root password (which can be overridden by passing
ROOTPW=... to make but it is a change from the previous state
of affairs indeed).
2013-06-17 14:03:54 +04:00
Michael Shigorin
e52e21781f actually useful vm/icewm
See http://www.opennet.ru/openforum/vsluhforumID3/86239.html#1
for a query that has led to this one; in particular,
- xdm dropped (won't log in root and there are no users yet);
- network is brought up and configured via DHCP by default;
- apt-get works out-of-box;
- default image size is twice the chroot size.
2012-09-03 19:16:50 +03:00
Michael Shigorin
307fb51f15 conf.d/test.mk: experimental stuff went here
Some images were unbuildable (at least without special setup,
like ve/centos), unusable or just not useful in any meaningful way
(like distro/live-isomd5sum); as these tend to get any attention
during experiments, I decided to put them together in a separate
configuration file that would be effectively skipped if DEBUG
is not requested.
2012-07-31 21:28:44 +04:00
Michael Shigorin
09be84beee initial vm-{net,ssh} features
A virtual machine isn't very useful if there are no means
to access it; let's bring up the basic networking and provide
root SSH access via pre-existing public key.

As the remote access with known default credentials is roughly
equivalent to just lending one's VMs to anyone with network
access to it, the fallback root password is now exterminated;
you have to provide one (or a long enough random string
if you plan to use keys only, see e.g. apg utility).
2012-06-25 19:29:38 +03:00
Michael Shigorin
0a5f164d65 cleanup, build-vm: mutual support
It appears that reusing installer-feature-*-stage3 packages
is perfectly fine with VM images; these just need to be removed
after the package scripts they carry have worked out.
2012-06-25 19:29:38 +03:00
Michael Shigorin
90be07fbf8 initial conf.d/vm.mk
After we have built a bare virtual machine image successfully
some variations are due, and these are to be described here.
2012-06-25 19:29:38 +03:00