[xen-tools-discuss] Automatic installation of packages

Axel Beckert abe at deuxchevaux.org
Wed May 10 21:01:56 CEST 2017


Hi,

Tamas Gal schrieb am Wed, May 10, 2017 at 08:39:17PM +0200:
> I wanted to know how to automatise the installation of a list of
> packages via xen-tools.

There are several ways.

> So where exactly should I configure a hook, so it launches `apt-get
> install -y ...` after booting up the VM the very first time?

Is there a reason that they need to be installed at the first boot?
Usually, xen-tools installs packages _before_ the first boot at
bootstrapping time.

See /etc/xen-tools/role.d/xdm for an example on how to do that.

Then call xen-create-image with the option "--role=xdm" or whatever
you call your role.

If you need to install those packages after the first boot, you should
probably use a configuration management system and/or automated package
installers like aptitude-robot or pkgsync.

		Gruß, Axel
-- 
/~\  Plain Text Ribbon Campaign                   | Axel Beckert, PGP: 612616B5
\ /  Say No to HTML in E-Mail and News            | abe at deuxchevaux.org  (Mail)
 X   See http://arc.pasp.de/                      | abe at noone.org (Mail+Jabber)
/ \  I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)


More information about the xen-tools-discuss mailing list