1virt-copy-in(1) Virtualization Support virt-copy-in(1)
2
3
4
6 virt-copy-in - Copy files and directories into a virtual machine disk
7 image.
8
10 virt-copy-in -a disk.img file|dir [file|dir ...] /destination
11
12 virt-copy-in -d domain file|dir [file|dir ...] /destination
13
15 Using "virt-copy-in" on live virtual machines can be dangerous,
16 potentially causing disk corruption. The virtual machine must be shut
17 down before you use this command.
18
20 "virt-copy-in" copies files and directories from the local disk into a
21 virtual machine disk image or named libvirt domain.
22
23 You can give one of more filenames and directories on the command line.
24 Directories are copied in recursively. The final parameter must be the
25 destination directory in the disk image which must be an absolute path
26 starting with a "/" character.
27
29 Update "/etc/resolv.conf" in a guest:
30
31 virt-copy-in -d MyGuest resolv.conf /etc
32
33 Upload a home directory to a guest:
34
35 virt-copy-in -d MyGuest skel /home
36
38 This command is just a simple shell script wrapper around the
39 guestfish(1) "copy-in" command. For anything more complex than a
40 trivial copy, you are probably better off using guestfish directly.
41
43 Since the shell script just passes options straight to guestfish, read
44 guestfish(1) to see the full list of options.
45
47 guestfish(1), virt-cat(1), virt-copy-out(1), virt-edit(1),
48 virt-tar-in(1), virt-tar-out(1), http://libguestfs.org/.
49
51 Richard W.M. Jones ("rjones at redhat dot com")
52
54 Copyright (C) 2011-2012 Red Hat Inc.
55
57 This program is free software; you can redistribute it and/or modify it
58 under the terms of the GNU General Public License as published by the
59 Free Software Foundation; either version 2 of the License, or (at your
60 option) any later version.
61
62 This program is distributed in the hope that it will be useful, but
63 WITHOUT ANY WARRANTY; without even the implied warranty of
64 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
65 General Public License for more details.
66
67 You should have received a copy of the GNU General Public License along
68 with this program; if not, write to the Free Software Foundation, Inc.,
69 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
70
72 To get a list of bugs against libguestfs, use this link:
73 https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
74
75 To report a new bug against libguestfs, use this link:
76 https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
77
78 When reporting a bug, please supply:
79
80 · The version of libguestfs.
81
82 · Where you got libguestfs (eg. which Linux distro, compiled from
83 source, etc)
84
85 · Describe the bug accurately and give a way to reproduce it.
86
87 · Run libguestfs-test-tool(1) and paste the complete, unedited output
88 into the bug report.
89
90
91
92libguestfs-1.20.11 2013-08-27 virt-copy-in(1)