.\" Automatically generated by Podwrapper::Man 1.32.7 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "virt-p2v-make-disk 1" .TH virt-p2v-make-disk 1 "2016-08-08" "libguestfs-1.32.7" "Virtualization Support" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "НАЗВА" .IX Header "НАЗВА" virt\-p2v\-make\-disk \- Build the virt\-p2v disk using virt-builder .SH "КОРОТКИЙ ОПИС" .IX Header "КОРОТКИЙ ОПИС" .Vb 1 \& virt\-p2v\-make\-disk \-o /dev/sdX os\-version .Ve .SH "ОПИС" .IX Header "ОПИС" \&\fIvirt\-p2v\fR\|(1) converts a physical machine to run virtualized on \s-1KVM,\s0 managed by libvirt, OpenStack, oVirt, Red Hat Enterprise Virtualisation (\s-1RHEV\s0), or one of the other targets supported by \fIvirt\-v2v\fR\|(1). .PP virt\-p2v\-make\-disk is a script which creates a bootable disk image or \s-1USB\s0 key containing virt\-p2v. It uses \fIvirt\-builder\fR\|(1) to do this, and is just a small shell script around virt-builder. .PP virt\-p2v\-make\-disk has two required parameters: .PP The \fI\-o\fR parameter specifies where the output should go, for example to a \&\s-1USB\s0 key (eg. \f(CW\*(C`\-o /dev/sdX\*(C'\fR) or to a file. If you pass a device name, then \&\fBthe existing contents of the device will be erased\fR. .PP The \f(CW\*(C`os\-version\*(C'\fR parameter is the base Linux distro to use for the operating system on the \s-1ISO. \s0 To list possible \f(CW\*(C`os\-version\*(C'\fR combinations, do: .PP .Vb 1 \& virt\-builder \-l .Ve .SS "ПРИКЛАДИ" .IX Subsection "ПРИКЛАДИ" Write a virt\-p2v bootable \s-1USB\s0 key on \fI/dev/sdX\fR (any existing content is erased), using Fedora 20 as the base distribution: .PP .Vb 1 \& virt\-p2v\-make\-disk \-o /dev/sdX fedora\-20 .Ve .PP Write a virt\-p2v bootable virtual disk image, and boot it under qemu: .PP .Vb 4 \& virt\-p2v\-make\-disk \-o /var/tmp/p2v.img fedora\-20 \& qemu\-kvm \-m 1024 \-boot c \e \& \-drive file=/var/tmp/p2v.img,if=virtio,index=0 \e \& \-drive file=/var/tmp/guest.img,if=virtio,index=1 .Ve .PP where \fI/var/tmp/guest.img\fR would be the disk image of some guest that you want to convert (for testing only). .SH "ДОДАВАННЯ ПРОФІЛЮ SSH" .IX Header "ДОДАВАННЯ ПРОФІЛЮ SSH" You can inject an \s-1SSH\s0 identity (private key) file to the image using the \&\fI\-\-inject\-ssh\-identity\fR option. .PP First create a key pair. It must have an empty passphrase: .PP .Vb 1 \& ssh\-keygen \-t rsa \-N \*(Aq\*(Aq \-f id_rsa .Ve .PP This creates a private key (\f(CW\*(C`id_rsa\*(C'\fR) and a public key (\f(CW\*(C`id_rsa.pub\*(C'\fR) pair. The public key should be appended to the \f(CW\*(C`authorized_keys\*(C'\fR file on the virt\-v2v conversion server (usually to \f(CW\*(C`/root/.ssh/authorized_keys\*(C'\fR). .PP The private key should be injected into the disk image and then discarded: .PP .Vb 2 \& virt\-p2v\-make\-disk [...] \-\-inject\-ssh\-identity id_rsa \& rm id_rsa .Ve .PP When booting virt\-p2v, specify the \s-1URL\s0 of the injected file like this: .PP .Vb 5 \& │ User name: [root_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_] │ \& │ │ \& │ Password: [ ] │ \& │ │ \& │ SSH Identity URL: [file:///var/tmp/id_rsa_\|_\|_\|_\|_\|_\|_\|_\|_\|_\|_] │ .Ve .PP or if using the kernel command line, add: .PP .Vb 1 \& p2v.identity=file:///var/tmp/id_rsa .Ve .PP For more information, see \*(L"\s-1SSH IDENTITIES\*(R"\s0 in \fIvirt\-p2v\fR\|(1). .SH "ПАРАМЕТРИ" .IX Header "ПАРАМЕТРИ" .IP "\fB\-\-help\fR" 4 .IX Item "--help" Показати довідкове повідомлення. .IP "\fB\-\-inject\-ssh\-identity\fR id_rsa" 4 .IX Item "--inject-ssh-identity id_rsa" Add an \s-1SSH\s0 identity (private key) file into the image. See \*(L"\s-1ADDING AN SSH IDENTITY\*(R"\s0 above. .IP "\fB\-o\fR ВИВЕДЕННЯ" 4 .IX Item "-o ВИВЕДЕННЯ" .PD 0 .IP "\fB\-\-output\fR ВИВЕДЕННЯ" 4 .IX Item "--output ВИВЕДЕННЯ" .PD Write output to \f(CW\*(C`OUTPUT\*(C'\fR, which can be a local file or block device. \fBThe existing contents of the device will be erased\fR. .IP "\fB\-V\fR" 4 .IX Item "-V" .PD 0 .IP "\fB\-\-version\fR" 4 .IX Item "--version" .PD Показати дані щодо версії і завершити роботу. .SH "ФАЙЛИ" .IX Header "ФАЙЛИ" .IP "\fI\f(CI$libexecdir\fI/virt\-p2v\fR" 4 .IX Item "$libexecdir/virt-p2v" The \fIvirt\-p2v\fR\|(1) binary which is copied into the bootable disk image. .Sp The location of the binary can be changed by setting the \&\f(CW\*(C`VIRT_P2V_DATA_DIR\*(C'\fR environment variable. .IP "\fI\f(CI$datadir\fI/virt\-p2v/issue\fR" 4 .IX Item "$datadir/virt-p2v/issue" .PD 0 .IP "\fI\f(CI$datadir\fI/virt\-p2v/launch\-virt\-p2v.in\fR" 4 .IX Item "$datadir/virt-p2v/launch-virt-p2v.in" .IP "\fI\f(CI$datadir\fI/virt\-p2v/p2v.service\fR" 4 .IX Item "$datadir/virt-p2v/p2v.service" .PD Various data files that are copied into the bootable disk image. .Sp The location of these files can be changed by setting the \&\f(CW\*(C`VIRT_P2V_DATA_DIR\*(C'\fR environment variable. .SH "ЗМІННІ СЕРЕДОВИЩА" .IX Header "ЗМІННІ СЕРЕДОВИЩА" .ie n .IP """VIRT_P2V_DATA_DIR""" 4 .el .IP "\f(CWVIRT_P2V_DATA_DIR\fR" 4 .IX Item "VIRT_P2V_DATA_DIR" The directory where virt\-p2v\-make\-disk looks for data files (see \*(L"\s-1FILES\*(R"\s0 above). If not set, a compiled-in location is used. .SH "ТАКОЖ ПЕРЕГЛЯНЬТЕ" .IX Header "ТАКОЖ ПЕРЕГЛЯНЬТЕ" \&\fIvirt\-p2v\fR\|(1), \fIvirt\-p2v\-make\-kickstart\fR\|(1), \fIvirt\-v2v\fR\|(1), http://libguestfs.org/. .SH "АВТОРИ" .IX Header "АВТОРИ" Richard W.M. Jones http://people.redhat.com/~rjones/ .SH "АВТОРСЬКІ ПРАВА" .IX Header "АВТОРСЬКІ ПРАВА" Copyright (C) 2009\-2016 Red Hat Inc. .SH "LICENSE" .IX Header "LICENSE" .SH "BUGS" .IX Header "BUGS" To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools .PP To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools .PP When reporting a bug, please supply: .IP "\(bu" 4 The version of libguestfs. .IP "\(bu" 4 Where you got libguestfs (eg. which Linux distro, compiled from source, etc) .IP "\(bu" 4 Describe the bug accurately and give a way to reproduce it. .IP "\(bu" 4 Run \fIlibguestfs\-test\-tool\fR\|(1) and paste the \fBcomplete, unedited\fR output into the bug report.