Scroll to navigation

libguestfs-make-fixed-appliance(1) Virtualization Support libguestfs-make-fixed-appliance(1)
 

名前

libguestfs-make-fixed-appliance - libguestfs 向け "fixed appliance" (固定アプライアンス) を作成します

書式

 libguestfs-make-fixed-appliance [--options] OUTPUTDIR
 libguestfs-make-fixed-appliance [--options] --xz

説明

libguestfs-make-fixed-appliance により、事前に構築されたバイナリーの libguestfs 向けアプライアンスを作成できます。
Note that ordinary users should not need to run this tool.
Some reasons why you might want to use this include:
You want to make a self-contained libguestfs appliance that can be copied to another machine or platform that doesn't support supermin(1).
You have multiple users on the same machine and want to avoid the storage duplication and start-up overhead of having multiple cached copies of the appliance.
You want to have very predictable performance from libguestfs (see guestfs-performance(1)).
For deeper understanding of why you might need this tool, read the section "FIXED APPLIANCE" below.
Instead of running this tool, you can download fixed appliances from http://libguestfs.org/download/binaries/appliance/. These appliances were made using this tool.
このツールを使用する方法が二つあります。
出力ディレクトリーを指定します、たとえば:
 libguestfs-make-fixed-appliance /usr/local/lib/guestfs/appliance
    
出力ディレクトリーが存在しなければ、作成されます。4 つのファイルがこのディレクトリーに作成されます:
 <OUTPUTDIR>/kernel
 <OUTPUTDIR>/initrd
 <OUTPUTDIR>/root
 <OUTPUTDIR>/README.fixed
    
" OUTPUTDIR/root" はスパースなファイルのため、これをコピーするときに注意する必要があります。
You can then run libguestfs (possibly after copying this directory to another machine) by setting the environment variable LIBGUESTFS_PATH to "OUTPUTDIR".
圧縮 tar ファイルを作成する、もう一つの方法は --xz オプションを使用することです:
 libguestfs-make-fixed-appliance --xz
    
これは呼び出した カレント ディレクトリーに tar ファイルを作成します:
 appliance-<VERSION>.tar.xz
    
(ここで "VERSION" は libguestfs のバージョンです)。 tar ファイルは 4 つのファイルを含みます:
 appliance/kernel
 appliance/initrd
 appliance/root
 appliance/README.fixed
    
"appliance/root" はスパースファイルであるため、コピーするときには気をつける必要があるため、注意してください。

オプション

--help
簡単な使用法を表示して、終了します。
-V
--version
バージョン番号を表示して、終了します。
--xz
Instead of creating the appliance in an output directory, create a compressed tarball of the appliance in the current directory called "appliance- VERSION.tar.xz" where "VERSION" is the version of libguestfs.
Using --xz can take some time. If working normally, the tool is completely silent when it is running.

固定アプライアンス

When libguestfs (or libguestfs tools) are run, they search a path looking for an appliance. The path is built into libguestfs, or can be set using the "LIBGUESTFS_PATH" environment variable.
Normally a supermin appliance is located on this path (see "SUPERMIN APPLIANCE" in supermin(1)). libguestfs reconstructs this into a full appliance by running "supermin --build".
However, a simpler "fixed appliance" can also be used. libguestfs detects this by looking for a directory on the path containing four files called "kernel", "initrd", "root" and "README.fixed" (note the "README.fixed" file must be present as well).
If the fixed appliance is found, libguestfs skips supermin entirely and just runs qemu with the kernel, initrd and root disk from the fixed appliance.
Thus the fixed appliance can be used when a platform or Linux distro does not support supermin. You build the fixed appliance on a platform that does support supermin, and copy it over, and use that to run libguestfs.

ライセンス

The fixed appliance is a complete Linux binary distro. If you distribute it, you may need to distribute corresponding source files to remain in legal compliance with the licenses of the software in the appliance (such as the GNU General Public License).

終了ステータス

アプライアンスがエラーなくビルドされると、libguestfs-make-fixed-appliance は 0 を返します。

環境変数

libguestfs に影響する環境変数の完全な一覧は guestfs(3) マニュアルページを参照してください。

関連項目

guestfs(3), supermin(1), xz(1), http://libguestfs.org/, http://qemu.org/.

著者

Richard W.M. Jones ("rjones at redhat dot com")

COPYRIGHT

Copyright (C) 2009-2014 Red Hat Inc.

LICENSE

BUGS

To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
When reporting a bug, please supply:
The version of libguestfs.
Where you got libguestfs (eg. which Linux distro, compiled from source, etc)
Describe the bug accurately and give a way to reproduce it.
Run libguestfs-test-tool(1) and paste the complete, unedited output into the bug report.
2014-10-18 libguestfs-1.28.1