<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>53423</bug_id>
          
          <creation_ts>2025-03-12 17:56:28 +0300</creation_ts>
          <short_desc>Не хватает зависимости на nbdkit</short_desc>
          <delta_ts>2025-03-13 19:10:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>virt-v2v</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Artem Varaksa">varaksaaa</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>shaba</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>260927</commentid>
    <comment_count>0</comment_count>
    <who name="Artem Varaksa">varaksaaa</who>
    <bug_when>2025-03-12 17:56:28 +0300</bug_when>
    <thetext>Шаги
====

# apt-get install virt-v2v libvirt -y
# systemctl enable --now libvirtd
# wget https://cloud-images.ubuntu.com/releases/bionic/release/ubuntu-18.04-server-cloudimg-amd64.img
# LIBGUESTFS_BACKEND=direct virt-v2v -v -x -i disk ubuntu-18.04-server-cloudimg-amd64.img -o qemu -os /var/tmp

Фактический результат
=====================

Образ не конвертируется:

&gt; info: virt-v2v: virt-v2v 2.6.0 (x86_64)
&gt; info: libvirt version: 11.0.0
&gt; libguestfs: trace: set_verbose true
&gt; libguestfs: trace: set_verbose = 0
&gt; libguestfs: trace: get_backend
&gt; libguestfs: trace: get_backend = &quot;direct&quot;
&gt; check_host_free_space: large_tmpdir=/var/tmp free_space=19810869248
&gt; [   0.0] Setting up the source: -i disk ubuntu-18.04-server-cloudimg-amd64.img
&gt; libguestfs: trace: set_verbose true
&gt; libguestfs: trace: set_verbose = 0
&gt; libguestfs: trace: disk_format &quot;ubuntu-18.04-server-cloudimg-amd64.img&quot;
&gt; libguestfs: command: run: qemu-img --help | grep -sqE -- &apos;\binfo\b.*-U\b&apos;
&gt; libguestfs: command: run: qemu-img
&gt; libguestfs: command: run: \ info
&gt; libguestfs: command: run: \ -U
&gt; libguestfs: command: run: \ --output json
&gt; libguestfs: command: run: \ ./ubuntu-18.04-server-cloudimg-amd64.img
&gt; libguestfs: parse_json: qemu-img info JSON output:\n{\n    &quot;children&quot;: [\n        {\n            &quot;name&quot;: &quot;file&quot;,\n            &quot;info&quot;: {\n                &quot;children&quot;: [\n                ],\n                &quot;virtual-size&quot;: 405667840,\n                &quot;filename&quot;: &quot;./ubuntu-18.04-server-cloudimg-amd64.img&quot;,\n                &quot;format&quot;: &quot;file&quot;,\n                &quot;actual-size&quot;: 405667840,\n                &quot;format-specific&quot;: {\n                    &quot;type&quot;: &quot;file&quot;,\n                    &quot;data&quot;: {\n                    }\n                },\n                &quot;dirty-flag&quot;: false\n            }\n        }\n    ],\n    &quot;virtual-size&quot;: 2361393152,\n    &quot;filename&quot;: &quot;./ubuntu-18.04-server-cloudimg-amd64.img&quot;,\n    &quot;cluster-size&quot;: 65536,\n    &quot;format&quot;: &quot;qcow2&quot;,\n    &quot;actual-size&quot;: 405667840,\n    &quot;format-specific&quot;: {\n        &quot;type&quot;: &quot;qcow2&quot;,\n        &quot;data&quot;: {\n            &quot;compat&quot;: &quot;0.10&quot;,\n            &quot;compression-type&quot;: &quot;zlib&quot;,\n            &quot;refcount-bits&quot;: 16\n        }\n    },\n    &quot;dirty-flag&quot;: false\n}\n\n
&gt; libguestfs: trace: disk_format = &quot;qcow2&quot;
&gt; virt-v2v: error: nbdkit is not installed or not working.  It is required to
&gt; use ‘-i disk’.
&gt; rm -rf -- &apos;/tmp/.private/root/v2v.tz9Yev&apos;
&gt; libguestfs: trace: close
&gt; libguestfs: closing guestfs handle 0x55c04f6cd2d0 (state 0)
&gt; libguestfs: trace: close
&gt; libguestfs: closing guestfs handle 0x55c04f6cd710 (state 0)

Ожидаемый результат
===================

Успешная сборка образа.

Дополнительно
=============

Установка пакета nbdkit решает проблему (но остаётся https://bugzilla.altlinux.org/53421).

Воспроизводимость
=================

Воспроизводится на виртуальных машинах:

[sisyphus] ALT Server 11.0 beta20250213 x86_64
virt-v2v-2.6.0-alt1.x86_64
libguestfs-1.54.0-alt1.x86_64
guestfs-tools-1.53.7-alt1.x86_64

[p11+374637] ALT Server 11.0 beta20250213 x86_64
virt-v2v-2.6.0-alt1.x86_64
libguestfs-1.54.0-alt1.x86_64
guestfs-tools-1.52.0-alt1.x86_64

[p11] ALT Server 11.0 beta20250213 x86_64
virt-v2v-2.4.0-alt1.x86_64
libguestfs-1.52.0-alt2.x86_64
guestfs-tools-1.52.0-alt1.x86_64</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>261004</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-03-13 19:10:04 +0300</bug_when>
    <thetext>virt-v2v-2.6.0-alt2 -&gt; sisyphus:

 Thu Mar 13 2025 Alexey Shabalin &lt;shaba@altlinux&gt; 2.6.0-alt2
 - Add nbdkit requires (ALT#53423)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>