5 virt-copy-in - Copy files and directories into a virtual machine disk image.
9 virt-copy-in -a disk.img file|dir [file|dir ...] /destination
11 virt-copy-in -d domain file|dir [file|dir ...] /destination
15 Using C<virt-copy-in> on live virtual machines can be dangerous,
16 potentially causing disk corruption. The virtual machine must be
17 shut down before you use this command.
21 C<virt-copy-in> copies files and directories from the local disk into
22 a virtual machine disk image or named libvirt domain.
24 You can give one of more filenames and directories on the command
25 line. Directories are copied in recursively. The final parameter
26 must be the destination directory in the disk image which must be an
27 absolute path starting with a C</> character.
31 Update C</etc/resolv.conf> in a guest:
33 virt-copy-in -d MyGuest resolv.conf /etc
35 Upload a home directory to a guest:
37 virt-copy-in -d MyGuest skel /home
39 =head1 JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH
41 This command is just a simple shell script wrapper around the
42 L<guestfish(1)> C<copy-in> command. For anything more complex than a
43 trivial copy, you are probably better off using guestfish directly.
47 Since the shell script just passes options straight to guestfish, read
48 L<guestfish(1)> to see the full list of options.
58 L<http://libguestfs.org/>.
62 Richard W.M. Jones (C<rjones at redhat dot com>)
66 Copyright (C) 2011 Red Hat Inc.
67 L<http://libguestfs.org/>
69 This program is free software; you can redistribute it and/or modify
70 it under the terms of the GNU General Public License as published by
71 the Free Software Foundation; either version 2 of the License, or
72 (at your option) any later version.
74 This program is distributed in the hope that it will be useful,
75 but WITHOUT ANY WARRANTY; without even the implied warranty of
76 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
77 GNU General Public License for more details.
79 You should have received a copy of the GNU General Public License
80 along with this program; if not, write to the Free Software
81 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.