libguestfs: pinda uye gadzirisa dhisiki mifananidzo yemakina chaiwo

libguestfs

Pamwe havasi vazhinji vanoziva libguestfs, raibhurari yakanyorwa muC uye seti yezvishandiso zvinokutendera iwe kuti uwane uye kugadzirisa iyo chaiyo disk mifananidzo inoshandiswa mumashini chaiwo.. Pamusoro pezvo, iwe unozogona kushanda ne akati wandei Linux KVM-yakavakirwa virtualization mapuratifomu, uye iyo VM mifananidzo ichaiswa yakananga kumugadziri uchishandisa iyo FUSE module uye guestmount/guestunmount maturusi.

Chimwe chinhu chakanaka nezve libguestfs ndechekuti inogona kuwana chero chero FS, kana faira system, uye iyo inosanganisira ese Linux (ext2, ext3, ext4, XFS, btrfs,…), MS Windows (VFAT neNTFS), macOS (HFS neHFS+), pamwe neBSD, uye kunyange LVM2 vhoriyamu manejimendi. Zvese izvi mune zvese MBR uye GPT.

Kana ari virtual disk marudzi iyo yaunogona kuwana, inogona kuva:

  • qcow2
  • VirtualBox .vdi
  • VMWare .vmdk
  • Hyper-V .vhd uye .vhdx

Iwe unogona zvakare kuwana uye kugadzirisa mafaera, emuno zvishandiso, ISO mifananidzo, SD memori makadhi, kana kuzviita uri kure kuburikidza protocol akadai se:

  • ftp
  • HTTP
  • SSH
  • iSCSI
  • NBD
  • GlusterFS
  • Ceph
  • Sheepdog
  • etc.

Kune rumwe rutivi, libguestfs haidi maropafadzo, iyo inofadzawo. Nekuda kwepurojekiti iyi, iwe uchave neakasiyana ekuraira maturusi senge guestfish, guestmount, guestunmount, virt-recue kugadzirisa unbootable VMs, virt-cat, virt-tar, nezvimwe.

libguestfs inoshandawo se API kukwanisa kubatanidza zvirongwa zvekutonga mumitauro yakasiyana-siyana yekuronga:

  • C
  • C ++
  • Perl
  • Python
  • Ruby
  • Java
  • PHP
  • Haskell
  • erlang
  • Lua
  • C#
  • etc.

Iwe unogona zvakare shandisa kubva muzvinyorwa, iyo inoshanda zvakanyanya pakuronga masisitimu. Zvakare, chirongwa ichi naRichard Jones chinogona kuisirwa kubva munzvimbo dzeakawanda anozivikanwa distros nenzira iyi:

  • Debian / Ubuntu uye zvigadzirwa
sudo apt install libguestfs-tools

  • Fedora/CentOS/RHEL uye zvinobva
sudo dnf install libguestfs

  • Arch Linux uye zvigadzirwa
sudo pacman -Sy libguestfs

Nenzira, kana uri kushandisa libvirt uye iwe unoyedza kukumbira chero chezvishandiso kana maturusi anosanganisirwa mu libguestfs, unogashira a mhosho sezvizvi:

libguestfs: error: could not create appliance through libvirt.

La mhinduro zviri nyore sekutumira kunze shanduko se "yakananga" sekudaro:

export LIBGUESTFS_BACKEND=direct

Mamwe mashoko - Yepamutemo Webhusaiti


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako