Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit a5c5dc4

Browse files
committed
Clean up man pages to have sub catagories, just update them all around.
1 parent 88eb039 commit a5c5dc4

10 files changed

Lines changed: 1067 additions & 938 deletions

man/en/virt-clone.1

Lines changed: 48 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
.\" ========================================================================
133133
.\"
134134
.IX Title "VIRT-CLONE 1"
135-
.TH VIRT-CLONE 1 "2009-01-26" "perl v5.10.0" "Virtual Machine Install Tools"
135+
.TH VIRT-CLONE 1 "2009-03-03" "perl v5.10.0" "Virtual Machine Install Tools"
136136
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
137137
.\" way too many mistakes in technical documents.
138138
.if n .ad l
@@ -149,78 +149,76 @@ images using the \f(CW\*(C`libvirt\*(C'\fR hypervisor management library. It wil
149149
the disk images of any existing virtual machine, and define a new guest
150150
with an identical virtual hardware configuration. Elements which require
151151
uniqueness will be updated to avoid a clash between old and new guests.
152-
.PP
153-
Given suitable command line arguments, \f(CW\*(C`virt\-clone\*(C'\fR is capable of running
154-
completely unattended, with the guest 'kickstarting' itself too. This allows
155-
for easy automation of guest installs. A companion tool \f(CW\*(C`virt\-clone(1)\*(C'\fR is
156-
provided for cloning pre-existing guests if their installation cannot be easily
157-
automated from pristine media.
158152
.SH "OPTIONS"
159153
.IX Header "OPTIONS"
160-
Any of the options can be omitted, in which case \f(CW\*(C`virt\-clone\*(C'\fR will run
161-
interactively prompting for input as required.
154+
Most options are not required. Minimum requirements are \-\-original or
155+
\&\-\-original\-xml (to specify the guest to clone), \-\-name, and appropriate
156+
storage options via \-file.
162157
.IP "\-h, \-\-help" 4
163158
.IX Item "-h, --help"
164159
Show the help message and exit
165-
.IP "\-o \s-1ORIGINAL_GUEST\s0, \-\-original=ORIGINAL_GUEST" 4
160+
.IP "\-\-connect=CONNECT" 4
161+
.IX Item "--connect=CONNECT"
162+
Connect to a non-default hypervisor. See \fIvirt\-install\fR\|(1) for details
163+
.Sh "General Options"
164+
.IX Subsection "General Options"
165+
General configuration parameters that apply to all guest clones.
166+
.IP "\-o \s-1ORIGINAL_GUEST\s0, \-\-original=ORIGINAL_GUEST" 2
166167
.IX Item "-o ORIGINAL_GUEST, --original=ORIGINAL_GUEST"
167-
Name or uuid for the original guest to be cloned. This guest must be shut
168-
off since it is not possible to safely clone active guests at this time.
169-
.IP "\-n \s-1NAME\s0, \-\-name=NAME" 4
168+
Name of the original guest to be cloned. This guest must be shut off or paused
169+
since it is not possible to safely clone active guests at this time.
170+
.IP "\-\-original\-xml=ORIGINAL_XML" 2
171+
.IX Item "--original-xml=ORIGINAL_XML"
172+
Libvirt guest xml file to use as the original guest. The guest does not need to
173+
be defined on the libvirt connection. This takes the place of the
174+
\&\f(CW\*(C`\-\-original\*(C'\fR parameter.
175+
.IP "\-n \s-1NAME\s0, \-\-name=NAME" 2
170176
.IX Item "-n NAME, --name=NAME"
171177
Name of the new guest virtual machine instance. This must be unique amongst
172-
all guests known to the hypervisor on this machine, including those not
173-
currently active. To re-define an existing guest, use the \f(CWvirsh(1)\fR tool
174-
to shut it down & delete it prior to running \f(CW\*(C`virt\-clone\*(C'\fR. This parameter
175-
will be prompted for if omitted on the command line.
176-
.IP "\-u \s-1UUID\s0, \-\-uuid=UUID" 4
178+
all guests known to the hypervisor connection, including those not
179+
currently active.
180+
.IP "\-u \s-1UUID\s0, \-\-uuid=UUID" 2
177181
.IX Item "-u UUID, --uuid=UUID"
178-
\&\s-1UUID\s0 for the guest; if none is given a random \s-1UUID\s0 will be generated. If you
182+
\&\s-1UUID\s0 for the guest; if none is given a random \s-1UUID\s0 will be generated. If you
179183
specify \s-1UUID\s0, you should use a 32\-digit hexadecimal number. \s-1UUID\s0 are intended
180184
to be unique across the entire data center, and indeed world. Bear this in
181185
mind if manually specifying a \s-1UUID\s0
182-
.IP "\-f \s-1DISKFILE\s0, \-\-file=DISKFILE" 4
186+
.Sh "Storage Configuration"
187+
.IX Subsection "Storage Configuration"
188+
.IP "\-f \s-1DISKFILE\s0, \-\-file=DISKFILE" 2
183189
.IX Item "-f DISKFILE, --file=DISKFILE"
184190
Path to the file, disk partition, or logical volume to use as the backing store
185191
for the new guest's virtual disk. If the original guest has multiple disks,
186192
this parameter must be repeated multiple times, once per disk in the original
187193
virtual machine.
188-
.IP "\-m \s-1MAC\s0, \-\-mac=MAC" 4
189-
.IX Item "-m MAC, --mac=MAC"
190-
Fixed \s-1MAC\s0 address for the guest; If this parameter is omitted, or the value
191-
\&\f(CW\*(C`RANDOM\*(C'\fR is specified a suitable address will be randomly generated. For
192-
Xen virtual machines it is required that the first 3 pairs in the \s-1MAC\s0 address
193-
be the sequence '00:16:3e', while for \s-1QEMU\s0 or \s-1KVM\s0 virtual machines it must
194-
be '54:52:00'.
195-
.IP "\-\-connect=CONNECT Connect to hypervisor with \s-1URI\s0" 4
196-
.IX Item "--connect=CONNECT Connect to hypervisor with URI"
197-
Connect to a non-default hypervisor. The default connection is chosen based
198-
on the following rules:
199-
.RS 4
200-
.IP "xen" 4
201-
.IX Item "xen"
202-
If running on a host with the Xen kernel (checks against /proc/xen)
203-
.IP "qemu:///system" 4
204-
.IX Item "qemu:///system"
205-
If running on a bare metal kernel as root
206-
.IP "qemu:///session" 4
207-
.IX Item "qemu:///session"
208-
If running on a bare metal kernel as non-root
209-
.RE
210-
.RS 4
211-
.Sp
212-
It is only necessary to provide the \f(CW\*(C`\-\-connect\*(C'\fR argument if this default
213-
prioritization is incorrect, eg if wanting to use \s-1QEMU\s0 while on a Xen kernel.
214-
.RE
215-
.IP "\-\-preserve\-data" 4
194+
.IP "\-\-force\-copy=TARGET" 2
195+
.IX Item "--force-copy=TARGET"
196+
Force cloning the passed disk target ('hdc', 'sda', etc.). By default,
197+
\&\f(CW\*(C`virt\-clone\*(C'\fR will skip certain disks, such as those marked 'readonly' or
198+
\&'shareable'.
199+
.IP "\-\-nonsparse" 2
200+
.IX Item "--nonsparse"
201+
Fully allocate the new storage if the path being cloned is a sparse file.
202+
See \fIvirt\-install\fR\|(1) for more details on sparse vs. nonsparse.
203+
.IP "\-\-preserve\-data" 2
216204
.IX Item "--preserve-data"
217205
Preserve a new file to use as the disk image for the new guest.
218-
.IP "\-d, \-\-debug" 4
206+
.Sh "Networking Configuration"
207+
.IX Subsection "Networking Configuration"
208+
.IP "\-m \s-1MAC\s0, \-\-mac=MAC" 2
209+
.IX Item "-m MAC, --mac=MAC"
210+
Fixed \s-1MAC\s0 address for the guest; If this parameter is omitted, or the value
211+
\&\f(CW\*(C`RANDOM\*(C'\fR is specified a suitable address will be randomly generated. Addresses
212+
are applied sequentially to the networks as they are listed in the original
213+
guest \s-1XML\s0.
214+
.Sh "Miscellaneous Options"
215+
.IX Subsection "Miscellaneous Options"
216+
.IP "\-d, \-\-debug" 2
219217
.IX Item "-d, --debug"
220218
Print debugging information to the terminal when running the install process.
221219
The debugging information is also stored in \f(CW\*(C`$HOME/.virtinst/virt\-clone.log\*(C'\fR
222220
even if this parameter is omitted.
223-
.IP "\-\-force" 4
221+
.IP "\-\-force" 2
224222
.IX Item "--force"
225223
Prevent interactive prompts. If the intended prompt was a yes/no prompt, always
226224
say yes. For any other prompts, the application will exit.

man/en/virt-clone.pod

Lines changed: 44 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,30 @@ the disk images of any existing virtual machine, and define a new guest
1616
with an identical virtual hardware configuration. Elements which require
1717
uniqueness will be updated to avoid a clash between old and new guests.
1818

19-
Given suitable command line arguments, C<virt-clone> is capable of running
20-
completely unattended, with the guest 'kickstarting' itself too. This allows
21-
for easy automation of guest installs. A companion tool C<virt-clone(1)> is
22-
provided for cloning pre-existing guests if their installation cannot be easily
23-
automated from pristine media.
24-
2519
=head1 OPTIONS
2620

27-
Any of the options can be omitted, in which case C<virt-clone> will run
28-
interactively prompting for input as required.
21+
Most options are not required. Minimum requirements are --original or
22+
--original-xml (to specify the guest to clone), --name, and appropriate
23+
storage options via -file.
2924

3025
=over 4
3126

3227
=item -h, --help
3328

3429
Show the help message and exit
3530

31+
=item --connect=CONNECT
32+
33+
Connect to a non-default hypervisor. See L<virt-install(1)> for details
34+
35+
=back
36+
37+
=head2 General Options
38+
39+
General configuration parameters that apply to all guest clones.
40+
41+
=over 2
42+
3643
=item -o ORIGINAL_GUEST, --original=ORIGINAL_GUEST
3744

3845
Name of the original guest to be cloned. This guest must be shut off or paused
@@ -47,60 +54,62 @@ C<--original> parameter.
4754
=item -n NAME, --name=NAME
4855

4956
Name of the new guest virtual machine instance. This must be unique amongst
50-
all guests known to the hypervisor on this machine, including those not
51-
currently active. To re-define an existing guest, use the C<virsh(1)> tool
52-
to shut it down & delete it prior to running C<virt-clone>. This parameter
53-
will be prompted for if omitted on the command line.
57+
all guests known to the hypervisor connection, including those not
58+
currently active.
5459

55-
=item -u UUID, --uuid=UUID
60+
=item -u UUID, --uuid=UUID
5661

57-
UUID for the guest; if none is given a random UUID will be generated. If you
62+
UUID for the guest; if none is given a random UUID will be generated. If you
5863
specify UUID, you should use a 32-digit hexadecimal number. UUID are intended
5964
to be unique across the entire data center, and indeed world. Bear this in
6065
mind if manually specifying a UUID
6166

67+
=back
68+
69+
=head2 Storage Configuration
70+
71+
=over 2
72+
6273
=item -f DISKFILE, --file=DISKFILE
6374

6475
Path to the file, disk partition, or logical volume to use as the backing store
6576
for the new guest's virtual disk. If the original guest has multiple disks,
6677
this parameter must be repeated multiple times, once per disk in the original
6778
virtual machine.
6879

69-
=item -m MAC, --mac=MAC
80+
=item --force-copy=TARGET
7081

71-
Fixed MAC address for the guest; If this parameter is omitted, or the value
72-
C<RANDOM> is specified a suitable address will be randomly generated. For
73-
Xen virtual machines it is required that the first 3 pairs in the MAC address
74-
be the sequence '00:16:3e', while for QEMU or KVM virtual machines it must
75-
be '54:52:00'.
82+
Force cloning the passed disk target ('hdc', 'sda', etc.). By default,
83+
C<virt-clone> will skip certain disks, such as those marked 'readonly' or
84+
'shareable'.
7685

77-
=item --connect=CONNECT Connect to hypervisor with URI
86+
=item --nonsparse
7887

79-
Connect to a non-default hypervisor. The default connection is chosen based
80-
on the following rules:
88+
Fully allocate the new storage if the path being cloned is a sparse file.
89+
See L<virt-install(1)> for more details on sparse vs. nonsparse.
8190

82-
=over 4
91+
=item --preserve-data
8392

84-
=item xen
93+
Preserve a new file to use as the disk image for the new guest.
8594

86-
If running on a host with the Xen kernel (checks against /proc/xen)
95+
=back
8796

88-
=item qemu:///system
97+
=head2 Networking Configuration
8998

90-
If running on a bare metal kernel as root
99+
=over 2
91100

92-
=item qemu:///session
101+
=item -m MAC, --mac=MAC
93102

94-
If running on a bare metal kernel as non-root
103+
Fixed MAC address for the guest; If this parameter is omitted, or the value
104+
C<RANDOM> is specified a suitable address will be randomly generated. Addresses
105+
are applied sequentially to the networks as they are listed in the original
106+
guest XML.
95107

96108
=back
97109

98-
It is only necessary to provide the C<--connect> argument if this default
99-
prioritization is incorrect, eg if wanting to use QEMU while on a Xen kernel.
110+
=head2 Miscellaneous Options
100111

101-
=item --preserve-data
102-
103-
Preserve a new file to use as the disk image for the new guest.
112+
=over 2
104113

105114
=item -d, --debug
106115

0 commit comments

Comments
 (0)