Håndtering af VM (virtuelle maskiner) disk images : libguestfs

Har du en guide til en funktion eller et program? Har du tips og trick, som du gerne vil dele med andre? Post dem her.
lath
Indlæg: 5095
Tilmeldt: 27. apr 2008, 02:16
IRC nickname: lars_t_h
Geografisk sted: Fyn

Håndtering af VM (virtuelle maskiner) disk images : libguestfs

Indlægaf lath » 20. nov 2018, 22:28

http://libguestfs.org/

Først:
Frygt ikke at der står at libguestfs er et C bibliotek (library) - altså ikke et program, fordi på højre side af web siden står der en meget lang liste af manual sider til CLI kommander.

libguestfs is a set of tools for accessing and modifying virtual machine (VM) disk images. You can use this for viewing and editing files inside guests, scripting changes to VMs, monitoring disk used/free statistics, creating guests, P2V, V2V, performing backups, cloning VMs, building VMs, formatting disks, resizing disks, and much more.

libguestfs can access almost any disk image imaginable. It can do it securely — without needing root and with multiple layers of defence against rogue disk images. It can access disk images on remote machines or on CDs/USB sticks. It can access proprietary systems like VMware and Hyper-V.

All this functionality is available through a scriptable shell called guestfish, or an interactive rescue shell virt-rescue.

libguestfs is a C library that can be linked with C and C++ management programs and has bindings for about a dozen other programming languages. Using our FUSE module you can also mount guest filesystems on the host.

The hivex subproject lets you merge changes into the Windows Registry in Windows guests. You can examine unknown disk images to find out what they contain.

libguestfs has been in continuous development since 2009, with a 250 page manual, deployed in enterprise environments, and with many happy and successful users.

Dozens of projects are using libguestfs today.


Fedora/RHEL/CentOS

Kode: Vælg alt

sudo yum install libguestfs-tools

Debian/Ubuntu

Kode: Vælg alt

sudo apt-get install libguestfs-tools


Kode: Vælg alt

guestfish --ro -i -a disk.im
g
Brug af guestfish, se http://libguestfs.org/guestfs-recipes.1.html
Jeg er Software ingeniør (Diplomingeniør) i Informationsteknologi og indlejede systemer, hvor indlejrede systemer er computer (microcontroller) + elektronik i for eksempel et TV, en router, en vaskemaskine og den slags

Tilbage til "Guides og HowTo's"

Hvem er online

Brugere der læser dette forum: [Bot] og 0 gæster