Bug 53423 - Не хватает зависимости на nbdkit
Summary: Не хватает зависимости на nbdkit
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: virt-v2v (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-12 17:56 MSK by Artem Varaksa
Modified: 2025-03-13 19:10 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artem Varaksa 2025-03-12 17:56:28 MSK
Шаги
====

# 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

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

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

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

 Thu Mar 13 2025 Alexey Shabalin <shaba@altlinux> 2.6.0-alt2
 - Add nbdkit requires (ALT#53423)