ALT Linux Distributions development
 help / color / mirror / Atom feed
From: Alexey Shabalin <a.shabalin@gmail.com>
To: Distributions development <devel-distro@lists.altlinux.org>
Subject: Re: [devel-distro] Детектирование VM в installer-alterator-pkg
Date: Fri, 20 Jun 2025 19:01:51 +0300
Message-ID: <CAEdvWkQB0-XG9j8GSJ-amYUFMjtp=_qrkX8KmtjPyHFUtdsVyw@mail.gmail.com> (raw)
In-Reply-To: <5585495.LvFx2qVVIh@ztation.smnr>

пт, 20 июн. 2025 г. в 17:11, Sergey <zerg@altlinux.org>:
>
> В письме от пятница, 20 июня 2025 г. 15:55 пользователь Jqt4 написал:
> > Добрый день!
> >
> > В установщике alt-server-11.0 можно выбрать группу "Поддержка работы в
> > виртуальных окружениях" при установке в VM.
> > А можно и не выбрать, о чём https://my.basealt.space/issues/184000
> >
> > В этом задача:
> > сделать, чтобы при установке в VM эта группа была выбрана по умолчанию,
> > а при установке на железо - не выбрана по умолчанию.
> >
> > Подскажите, кто-нибудь ставил и решал подобную задачу?
> Я решал схожую задачу.
> https://packages.altlinux.org/ru/sisyphus/srpms/installer-feature-vmservices/

Я решал похожую задачу, но с другой стороны :)
Для гостевых утилит:
vmware (open-vm-tools) -
/usr/lib/udev/rules.d/90-vmware-guest-tools.rules - vmtoolsd.service
qemu (qemu-guest-agent) -
/usr/lib/udev/rules.d/90-qemu-guest-agent.rules -
qemu-guest-agent.service
hyper-v (hypervvssd)- /usr/lib/udev/rules.d/hypervvssd.rules -
hypervvssd.service

Для этих систем виртуализаций(первое поле) присутствует udev
rules(второе поле), который если определяет какой-то тип и  запускает
нужный сервис (третье поле).
Поэтому, в систему могут быть установлены все эти пакеты вместе,
включать сервисы не нужно, udev налету определяет тип виртуализации и
запускает нужный сервис, не запуская другие.

Для virtualbox я такого не делал.

-- 
Alexey Shabalin

  reply	other threads:[~2025-06-20 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-20 12:55 Jqt4
2025-06-20 13:05 ` Anton Midyukov
2025-06-20 14:11 ` [devel-distro] " Sergey
2025-06-20 16:01   ` Alexey Shabalin [this message]
2025-06-20 20:21     ` [devel-distro] " Leonid Krivoshein
2025-06-23  8:39       ` Jqt4
2025-06-21 10:32     ` [devel-distro] " Sergey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAEdvWkQB0-XG9j8GSJ-amYUFMjtp=_qrkX8KmtjPyHFUtdsVyw@mail.gmail.com' \
    --to=a.shabalin@gmail.com \
    --cc=devel-distro@lists.altlinux.org \
    --cc=shaba@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git