Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1037987: virt-p2v: The script virt-p2v-make-disk attempts to call the redhat package manager 'dnf' during build.

69 views
Skip to first unread message

Matthew Seddon

unread,
Jun 15, 2023, 4:10:07 AM6/15/23
to
Package: virt-p2v
Version: 1.42.3-1
Severity: important
X-Debbugs-Cc: this...@gmail.com

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

* What led up to the situation?
* What exactly did you do (or not do) that was effective (or
ineffective)?
* What was the outcome of this action?
* What outcome did you expect instead?

*** End of the template - remove these template lines ***

Attempting to build a p2v iso to convert machines to vms.
When you run virt-p2v-make-disk -o ./p2v.iso it eventually throws an error:

```
[ 6.8] Downloading: http://builder.libguestfs.org/debian-12.xz
[ 7.7] Planning how to build this image
[ 7.7] Uncompressing
[ 13.2] Opening the new disk
[ 17.7] Setting a random seed
virt-builder: warning: random seed could not be set for this type of guest
[ 17.8] Uploading: /tmp/tmp.rs28NvEXtc/policy-rc.d to /usr/sbin/policy-rc.d
[ 17.9] Setting the hostname: p2v.local
[ 18.9] Running: hostname p2v.local
[ 19.0] Running: dnf -y update --exclude=kernel\*
/bin/sh: 4: dnf: not found
virt-builder: error: dnf -y update --exclude=kernel\*: command exited with
an error

If reporting bugs, run virt-builder with debugging enabled and include the
complete output:

virt-builder -v -x [...]
```

Manually changing the script to use 'apt-get update -y' instead of 'dnf update -y' allows the script to work.

```diff
249c249
< --run-command 'dnf -y update --exclude=kernel\*' \
---
> --run-command 'apt-get -y update' \
```




-- System Information:
Debian Release: 12.0
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages virt-p2v depends on:
ii binutils 2.40-2
ii libguestfs-tools 1:1.48.6-2
ii mawk 1.3.4.20200120-3.1
ii xz-utils 5.4.1-0.2

virt-p2v recommends no packages.

virt-p2v suggests no packages.

-- no debconf information
0 new messages