xva-img(1)
β¨ xva-img β¨
okay bestie, so this is the manpage for xva-img, aka the Citrix XenServer .xva disk extraction tool β it lives in section 1 of the manual, it's giving very much "I crack open VM images for a living", and honestly? iconic. π
NAME π
xva-img β Citrix XenServer .xva disk extraction tool
SYNOPSIS πΈ
xva-img [OPTION] [COMMAND]...
DESCRIPTION π¦
so like. xva-image (yes, with the extra e, that's literally how it's written, don't come for me) is a tool that does the two-way thing: it generates disk images from Citrix XenServer .xva VM images, and it also generates .xva VM images from raw disks plus the matching ova.xml files. round trip, bestie. we go both ways and we look cute doing it. π
OPTIONS β¨
one bullet per flag, no skipping, we're thorough here π
-h,--helpβ show a lil summary of all the options. the "help me help you" button.-v,--versionβ show the version of the program. what are we, actually? this tells you.-p,--progressβ show progress. so you can stare at it and feel something. π-s,--sparseβ create sparse files on export. tiny file, big energy.-i,--ignore-checksumβ only warn on failed checksum instead of... whatever it does otherwise. lowkey the "I'll deal with it later" flag. π
COMMANDS π
the three main-character moves:
package <xva-file> <file> [ ,<file>... ]disk-export <xva-disk> <disk-image>disk-import <xva-disk> <disk-image>
EXAMPLES π
okay this is the part where it gets real, follow along fr fr π«Ά
Extract the XVA file:
$ mkdir my-virtual-machine
$ tar -xf my-virtual-machine.xva -C my-virtual-machine
$ chmod -R 755 my-virtual-machine
Extract one of the disks:
$ xva-img -p disk-export my-virtual-machine/Ref\:1/ disk.raw
Splice the disk file (remove all files in the folder, required not to make any unnecessary mistakes):
$ rm -rf my-virtual-machine/Ref\:1/*
$ xva-img -p disk-import my-virtual-machine/Ref1\:/ disk.raw
β οΈ bestie. please. clear out the folder first like the manpage says β it's required so you don't make any unnecessary mistakes. don't freestyle this one. π
Rebuild the XVA file:
$ xva-img -p package my-virtual-machine-fixed.xva my-virtual-machine/ova.xml my-virtual-machine/Ref\:1/
Convert raw image to qcow2:
$ qemu-img convert -f raw -O qcow2 disk.raw disk.qcow2
SEE ALSO π§
go read these too, they're the supporting cast and they ate:
chmod(1), mkdir(1), qemu-img(1), rm(1), tar(1).
AUTHORS π
xva-img was written by Erik Lax.
This manpage was written by Francisco Vilmar Cardoso Ruviaro for the Debian project (but may be used by others). slay, and generous of him tbh πΈ
and that's the whole vibe check, bestie π this was xva-img version 1.5.0, dated 31 January 2024. go extract something beautiful. periodt. β¨ππ¦
π¦ where this page comes from
- debian trixie: xva-img 1.5-1+b1 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu noble: xva-img 1.5-1build2 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu questing: xva-img 1.5-1build2
- ubuntu resolute: xva-img 1.5-3 Β· GPL-2.0-or-later WITH OpenSSL exception
- ubuntu stonking: xva-img 1.5-3build1 Β· GPL-2.0-or-later WITH OpenSSL exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms