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