File: virt-p2v-make-disk.pod

package info (click to toggle)
libguestfs 1%3A1.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 65,676 kB
  • ctags: 42,708
  • sloc: ansic: 374,827; ml: 40,236; sh: 19,721; java: 8,493; perl: 8,244; makefile: 5,740; cs: 5,602; haskell: 5,088; python: 2,591; erlang: 2,197; xml: 1,494; ruby: 271; pascal: 218; yacc: 123; lex: 110; cpp: 10
file content (115 lines) | stat: -rw-r--r-- 2,716 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

=head1 名前

virt-p2v-make-disk - Build the virt-p2v disk using virt-builder

=head1 書式

 virt-p2v-make-disk -o /dev/sdX os-version

=head1 説明

L<virt-p2v(1)> converts a physical machine to run virtualized on KVM,
managed by libvirt, OpenStack, oVirt, Red Hat Enterprise Virtualisation
(RHEV), or one of the other targets supported by L<virt-v2v(1)>.

virt-p2v-make-disk is a script which creates a bootable disk image or USB
key containing virt-p2v.  It uses L<virt-builder(1)> to do this, and is just
a small shell script around virt-builder.

virt-p2v-make-disk has two required parameters:

The I<-o> parameter specifies where the output should go, for example to a
USB key (eg. C<-o /dev/sdX>) or to a file.  If you pass a device name, then
B<the existing contents of the device will be erased>.

The C<os-version> parameter is the base Linux distro to use for the
operating system on the ISO.  To list possible C<os-version> combinations,
do:

 virt-builder -l

=head2 例

Write a virt-p2v bootable USB key on C</dev/sdX> (and existing content is
erased), using Fedora 20 as the base distribution:

 virt-p2v-make-disk -o /dev/sdX fedora-20

Write a virt-p2v bootable virtual disk image, and boot it under qemu:

 virt-p2v-make-disk -o /var/tmp/p2v.img fedora-20
 qemu-kvm -m 1024 -boot c \
   -drive file=/var/tmp/p2v.img,if=virtio,index=0 \
   -drive file=/var/tmp/guest.img,if=virtio,index=1

where C</var/tmp/guest.img> would be the disk image of some guest that you
want to convert (for testing only).

=head1 オプション

=over 4

=item B<--help>

ヘルプを表示します。

=item B<-o> OUTPUT

=item B<--output> OUTPUT

Write output to C<OUTPUT>, which can be a local file or block device.  B<The
existing contents of the device will be erased>.

=item B<-V>

=item B<--version>

バージョン番号を表示して、終了します。

=back

=head1 ファイル

=over 4

=item C<$libexecdir/virt-p2v>

The L<virt-p2v(1)> binary which is copied into the bootable disk image.  The
location of the binary can be changed by setting the C<VIRT_P2V_DATA_DIR>
environment variable.

=item C<$datadir/issue>

=item C<$datadir/launch-virt-p2v.in>

=item C<$datadir/p2v.service>

Various data files that are copied into the bootable disk image.

=back

=head1 環境変数

=over 4

=item C<VIRT_P2V_DATA_DIR>

The directory where virt-p2v-make-disk looks for data files (see L</FILES>
above).  If not set, a compiled-in location is used.

=back

=head1 関連項目

L<virt-p2v(1)>, L<virt-p2v-make-kickstart(1)>, L<virt-v2v(1)>,
L<http://libguestfs.org/>.

=head1 著者

Richard W.M. Jones L<http://people.redhat.com/~rjones/>

=head1 COPYRIGHT

Copyright (C) 2009-2014 Red Hat Inc.