Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2009 22:39:20 +0000 (UTC)
From:      Marko Zec <zec@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/tools/tools/vimage Makefile vimage.8 vimage.c
Message-ID:  <200908202239.n7KMdR1E012171@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
zec         2009-08-20 22:39:20 UTC

  FreeBSD src repository

  Modified files:
    tools/tools/vimage   Makefile vimage.8 vimage.c 
  Log:
  SVN rev 196409 on 2009-08-20 22:39:20Z by zec
  
  vimage(8) is a legacy CLI interface for managing jails associated with
  network stack instances, which is provided for compatibility with
  older applications.  This change brings it back to life in a followup
  to the initial conversion of vimage to use the new jail(4)
  userland-kernel API:
  
  - when creating vimages via "vimage -c", by default turn on a few
  options expected by legacy applications, such as allow operations on
  raw sockets, FS mounts etc, and allow jail-related parameters to be
  optionally configured.
  
  - introduce the "-m" modifier which allows for configuring jail
  parameters of existing vimages / vnet-jails.
  
  - make "vimage name command ..." actually work.
  
  - when reassigning ifnets to vnets using "vimage -i", attempt to rename
  the ifnet as "ethXXX" on arrival in the target vnet.  Several legacy
  applications are known to depend heavily on such behavior.
  
  - vimage -l lists only jails associated with vnets.  The output is
  sorted using vimage / jail names as keys.
  
  - vimage -l by default searches only the current level in the jail
  hierarchy.  Recursive listing can be requested via -r switch.
  
  - vimage -l by default prints only jail names on each line, making
  such output suitable for pipelining to other commands.  More verbose
  output can be obtained via -v switch, and even more jail specific
  information will be displayed if -j switch is turned on.
  
  - there's no need to build vimage as statically linked, so update the
  Makefile accordingly.
  
  - update the vimage.8 man page.
  
  Approved by:    re (rwatson), julian (mentor)
  MFC after:      immediately
  
  Revision  Changes    Path
  1.3       +0 -1      src/tools/tools/vimage/Makefile
  1.2       +92 -61    src/tools/tools/vimage/vimage.8
  1.3       +309 -115  src/tools/tools/vimage/vimage.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908202239.n7KMdR1E012171>