GenVM - Add packages

GenVM include two possibilities to add your whished packages on disk images:

  • from command line with option “-A”
  • by recording package in file specified to GenVM by “-l”

Obviously this two methods can be combined.

The packages are installed after base system with apt-get. The recommended packages aren’t installed.

From command line

Additional packages can be specified, with option “-A”, as a list of name of package comma-separated:

fhh@aaricia ~ $ su -c "genvm -A xfsprogs,isc-dhcp-client,ifupdown,vim vm.vmdk"

This method is ideal for short list of packages or to generate an unique virtual machine.

From file

Other possibility, recording packages, one by line, on simple text file.

Comments, preceded by ‘#’ or ‘//’ are authorized.

# Packages for network :
 ifupdown
 openssh-server
 isc-dhcp-client

# Text editor :
 vim

# log management :
 rsyslog
 logrotate

# Mail system :
 heirloom-mailx
 postfix

# Other packages :
 locales
 ntp
 cron

File is specified to genvm by “-l”:

fhh@aaricia ~ $ su -c "genvm -l packages.lst vm.vmdk"

Mix command line and file

You can mix command line definition and file:

fhh@aaricia ~ $ cat packages.lst
# Packages for network :
 ifupdown
 openssh-server
...
fhh@aaricia ~ $ su -c "genvm -P :xfs -l packages.lst -A xfsprogs vm.vmdk"

In this example, the root filesystem is formated as xfs, so we install all usuals packages noted on file “packages.lst” and we add “xfsprogs” on command line.