File: sysprep-operations.pod

package info (click to toggle)
libguestfs 1%3A1.18.1-1%2Bdeb7u3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 49,156 kB
  • sloc: ansic: 282,408; ml: 22,707; sh: 16,121; perl: 5,946; java: 5,047; cs: 4,329; makefile: 3,191; haskell: 2,564; erlang: 1,510; python: 1,502; xml: 509; ruby: 217; pascal: 142; cpp: 11
file content (215 lines) | stat: -rw-r--r-- 5,925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
=encoding utf8

=head2 B<bash-history> *

Remove the bash history in the guest.

Remove the bash history of user "root" and any other users who have a
C<.bash_history> file in their home directory.

=head2 B<blkid-tab> *

Remove blkid tab in the guest.

=head2 B<ca-certificates>

Remove CA certificates in the guest.

=head2 B<cron-spool> *

Remove user at-jobs and cron-jobs.

=head2 B<dhcp-client-state> *

DHCP クライアントのリースを削除します。

=head2 B<dhcp-server-state> *

DHCP サーバーのリースを削除します。

=head2 B<dovecot-data> *

Remove Dovecot (mail server) data.

=head2 B<flag-reconfiguration>

Flag the system for reconfiguration.

Note that this may require user intervention when the guest is booted.

=head2 B<hostname> *

Change the hostname of the guest.

This operation changes the hostname of the guest to the value given in the
I<--hostname> parameter.

I<--hostname> パラメーターが指定されていないと、ホスト名が C<localhost.localdomain> に変更されます。

=head2 B<kerberos-data>

Remove Kerberos data in the guest.

=head2 B<logfiles> *

Remove many log files from the guest.

On Linux the following files are removed:

 /root/anaconda-ks.cfg
 /root/install.log
 /root/install.log.syslog
 /var/account/pacct
 /var/cache/gdm/*
 /var/lib/AccountService/users/*
 /var/lib/fprint/*
 /var/lib/logrotate.status
 /var/log/*.log*
 /var/log/BackupPC/LOG
 /var/log/audit/*
 /var/log/btmp*
 /var/log/ceph/*.log
 /var/log/chrony/*.log
 /var/log/cron*
 /var/log/cups/*_log
 /var/log/dmesg*
 /var/log/glusterfs/*glusterd.vol.log
 /var/log/glusterfs/glusterfs.log
 /var/log/httpd/*log
 /var/log/jetty/jetty-console.log
 /var/log/lastlog*
 /var/log/libvirt/libvirtd.log
 /var/log/libvirt/lxc/*.log
 /var/log/libvirt/qemu/*.log
 /var/log/libvirt/uml/*.log
 /var/log/mail/*
 /var/log/maillog*
 /var/log/messages*
 /var/log/ppp/connect-errors
 /var/log/secure*
 /var/log/setroubleshoot/*.log
 /var/log/spooler*
 /var/log/squid/*.log
 /var/log/tallylog*
 /var/log/wtmp*
 /var/named/data/named.run

=head2 B<mail-spool> *

ローカルのメールスプールのディレクトリから電子メールを削除します。

=head2 B<net-hwaddr> *

Remove HWADDR (hard-coded MAC address) configuration.

For Fedora and Red Hat Enterprise Linux, this is removed from C<ifcfg-*>
files.

=head2 B<package-manager-cache> *

Remove package manager cache.

=head2 B<pam-data> *

Remove the PAM data in the guest.

=head2 B<random-seed> *

Generate random seed for guest.

Write some random bytes from the host into the random seed file of the
guest.

以下の L</RANDOM SEED> を参照してください。

=head2 B<rhn-systemid> *

RHN システム ID を削除します。

=head2 B<samba-db-log> *

Remove the database and log files of Samba.

=head2 B<script> *

Run arbitrary scripts against the guest.

The C<script> module lets you run arbitrary shell scripts or programs
against the guest.

Note this feature requires FUSE support.  You may have to enable this in
your host, for example by adding the current user to the C<fuse> group, or
by loading a kernel module.

Use one or more I<--script> parameters to specify scripts or programs that
will be run against the guest.

The script or program is run with its current directory being the guest's
root directory, so relative paths should be used.  For example: C<rm
etc/resolv.conf> in the script would remove a Linux guest's DNS
configuration file, but C<rm /etc/resolv.conf> would (try to) remove the
host's file.

Normally a temporary mount point for the guest is used, but you can choose a
specific one by using the I<--scriptdir> parameter.

=head2 B<smolt-uuid> *

Smolt ハードウェア UUID を削除します。

=head2 B<ssh-hostkeys> *

仮想マシンの SSH ホストキーを削除します。

仮想マシンの次回起動時に(異なる) SSH ホストキーが再生成されます。

クローン後、仮想マシンが同じ IP アドレスを取得すると、ホストキーが変更されたという警告が ssh により表示されます:

 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

=head2 B<ssh-userdir> *

仮想マシンにある ".ssh" ディレクトリーを削除します。

Remove the C<.ssh> directory of user "root" and any other users who have a
C<.ssh> directory in their home directory.

=head2 B<sssd-db-log> *

SSSD のデータベースとログファイルを削除します。

=head2 B<udev-persistent-net> *

Remove udev persistent net rules.

Remove udev persistent net rules which map the guest's existing MAC address
to a fixed ethernet device (eg. eth0).

仮想マシンをクローンした後、通常 MAC アドレスは変わります。古い MAC アドレスは古い名前(たとえば eth0)を占有するため、このことは新しい
MAC アドレスが新しい名前(たとえば eth1)に割り当てられることを意味します。それは、一般的に好ましくありません。 udev の永続的な net
ルールを削除することにより、これを避けます。

=head2 B<user-account>

仮想マシンにあるユーザーアカウントを削除します。

Remove all the user accounts and their home directories.  The "root" account
is not removed.

=head2 B<utmp> *

utmp ファイルを削除します。

This file records who is currently logged in on a machine.  In modern Linux
distros it is stored in a ramdisk and hence not part of the virtual
machine's disk, but it was stored on disk in older distros.

=head2 B<yum-uuid> *

yum UUID を削除します。

yum は元々の UUID が削除されたことを通知するとき、次の実行時に新しい UUID を作成します。