virt-tar-in(1)
π virt-tar-in(1) β the libguestfs girlies' guide π
okay so picture this: it's a manual page, it lives in the Virtualization Support section of libguestfs land, and it's literally about shoving a tarball into a disk image. bestie, it's giving "unpack and slay." π
β¨ NAME β¨
virt-tar-in β unpack a tarball into a virtual machine disk image. no cap, that's the whole vibe. π
π¦ SYNOPSIS π¦
virt-tar-in -a disk.img data.tar /destination
virt-tar-in -d domain data.tar /destination
zcat data.tar.gz | virt-tar-in -d domain - /destination
three iconic ways to do it, pick your fighter π
π¨ WARNING π¨
okay this is the part where we get serious for a sec, because this is not a drill:
Using virt-tar-in on live virtual machines, or concurrently with other disk editing tools, can be dangerous β potentially causing disk corruption. πππ
The virtual machine must be shut down before you use this command, and disk images must not be edited concurrently.
like, fr fr, shut it down first. no multitasking on the same disk. not the moment to be brave. π
πΈ DESCRIPTION πΈ
virt-tar-in unpacks an uncompressed tarball into a virtual machine disk image or named libvirt domain. (key word: uncompressed β she said what she said β¨)
So here's how the args work:
- The first parameter is the tar file. Use
-to read the tar file from standard input. yep, the humble hyphen, main character of pipes everywhere π«Ά - The second parameter is the absolute target directory to unpack into. absolute. not relative. don't try it. π
π EXAMPLES π
Upload a home directory to a guest β this is the classic, the blueprint, the moment:
virt-tar-in -d MyGuest homes.tar /home
ate. no crumbs. π₯
π§ JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH π§
ngl, this command is just a simple shell script wrapper around the guestfish(1) tar-in command. that's it. that's the tea. β
So if you want to do anything more complex than a trivial copy, you are probably better off using guestfish directly. like, go to the source, bestie. she has range. π
π OPTIONS π
Since the shell script just passes options straight to guestfish, read guestfish(1) to see the full list of options. that's the whole section. the options live over there. iykyk π¦
π SEE ALSO π
the whole friend group, assembled:
guestfish(1)virt-cat(1)virt-copy-in(1)virt-copy-out(1)virt-edit(1)virt-make-fs(1)virt-tar-out(1)http://libguestfs.org/
go say hi to all of them π
π AUTHORS π
Richard W.M. Jones (rjones at redhat dot com) β the legend, the icon, the moment. β¨
β COPYRIGHT β
Copyright (C) 2011-2025 Red Hat Inc. π
π LICENSE π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
(translation: it's free, it's GPL, and it comes with zero promises. read the license, it's literally right there π«Ά)
π BUGS π
found a bug? iconic of you. here's where to go:
To get a list of bugs against libguestfs, use this link: https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools
To report a new bug against libguestfs, use this link: https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools
When reporting a bug, please supply:
- The version of
libguestfs. - Where you got
libguestfs(eg. which Linux distro, compiled from source, etc) - Describe the bug accurately and give a way to reproduce it.
- Run
libguestfs-test-tool(1)and paste the complete, unedited output into the bug report. (complete AND unedited, bestie, don't trim it π)
and that's the page!! brought to you by libguestfs-1.61.3, dated 2026-09-16, filed under virt-tar-in(1). mwah πβ¨ π¦πΈπ
π¦ where this page comes from
- centos-stream 10: libguestfs 1:1.61.3-1.el10 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms