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