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