Re: libguestfs-devel is not supported in RHEL9
by Richard W.M. Jones
[Correcting the mailing list address]
When you feel like answering the questions I asked below with
precision, you can send something to the mailing list. Until then,
please don't waste my time any more.
Rich.
On Tue, Nov 26, 2024 at 08:50:47AM +0000, Richard W.M. Jones wrote:
> On Tue, Nov 26, 2024 at 06:52:23AM +0000, Teja Konapalli wrote:
> > Hi Richard,
> >
> > Hope you are doing well. Could you please help us with support of
> > libguestfs-devel package in RHEL 9 and above. I somehow remembered I
> > installed in one of my test machine last year and did mount and
> > unmount disk operations.
> >
> > If yes how to install in RHEL 9 and above machines( I think package suite
> > (libguestfs and libguestfs-devel) during installation).
>
> We had a lengthy conversation about this last year, so yet again I
> have to ask:
>
> What are you trying to achieve?
>
> What did you try?
>
> What did or didn't work?
>
> What was the precise error message?
>
> If you don't answer these questions, I will cease any further
> communication with you, so choose your answers wisely.
>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> nbdkit - Flexible, fast NBD server with plugins
> https://gitlab.com/nbdkit/nbdkit
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW
6 days, 13 hours
virt-{X} command cannot parse url when rbd keyring include slash('/')
by brownie4597@gmail.com
Hi,
Could you check url parser for rbd protocol?
When i execute this,
$ /bin/virt-inspector --format=raw -a 'rbd://admin:AQBDtCln1ccACxAAY8e09wa7rSnrIp7pV/4bAA==@1.1.1.1:3300/poolname/imagename'
it returns
--add: could not parse URI rbd://admin:AQBDtCln1ccACxAAY8e09wa7rSnrIp7pV/4bAA==@1.1.1.1:3300/poolname/imagename
it seems to be failed when rbd keyring contains slash('/')
(original keyring is 'AQBDtCln1ccACxAAY8e09wa7rSnrIp7pV/4bAA==')
Thanks.
1 week, 3 days
Minor fix for xpath example
by Emmanuel Kasper
Hi
The xpath example at https://libguestfs.org/virt-resize.1.html
|virsh dumpxml guestname | xpath /domain/devices/disk/source|
does not work anymore with recent xpath versions ?
virsh dumpxml domain | xpath /domain/devices/disk/source
Usage:
/usr/bin/xpath [options] -e query [-e query...] [filename...]
If no filenames are given, supply XML on STDIN. You must provide at
least one query. Each supplementary query is done in order, the
previous query giving the context of the next one.
On Debian 12 and Fedora41 I need to add the -e switch to get the command
working:
virsh dumpxml domain | xpath -e /domain/devices/disk/source
Found 1 nodes in stdin:
-- NODE --
<source file="/var/lib/libvirt/images/debian11.qcow2" />
On both systems I have xpath 1.48 coming from libxml-xpath-perl.
2 weeks
trouble mounting .vhd files in Linux Mint 22 with guestfish
by muh muh
Greetings, I am so far unsuccessful mounting .vhd files using guestfish.
I am running:
System:
Kernel: 6.8.0-48-generic arch: x86_64 bits: 64 compiler: gcc v:
13.2.0 clocksource: tsc
Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt:
7 dm: LightDM v: 1.30.0
Distro: Linux Mint
guestfish is version 1.52.0
The complete, unedited output from this command:
$ guestfish run list-filesystems mount-ro -v -x -a 0008989.vhd
--progress-bars --inspector --ro win:c:\\ /mnt/vhdmount/
is listed below. After that is my full system info.
username@T520i:/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)$ guestfish run list-filesystems
mount-ro -v -x -a 0008989.vhd --progress-bars --inspector --ro win:c:\\
/mnt/vhdmount/
libguestfs: trace: set_pgroup true
libguestfs: trace: set_pgroup = 0
libguestfs: trace: add_drive "0008989.vhd" "readonly:true"
libguestfs: creating COW overlay to protect original drive content
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfskqRtcE/overlay1.qcow2"
"qcow2" -1
"backingfile:/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd"
libguestfs: trace: disk_format
"/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd"
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: \
/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd
libguestfs: parse_json: qemu-img info JSON output:\n{\n "children":
[\n {\n "name": "file",\n "info": {\n
"children": [\n ],\n "virtual-size": 20180480,\n
"filename":
"/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd",\n
"format": "file",\n "actual-size": 20180992,\n
"format-specific": {\n "type":
"file",\n "data": {\n }\n
},\n "dirty-flag": false\n }\n }\n
],\n "virtual-size": 20180480,\n "filename":
"/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd",\n "format":
"raw",\n "actual-size": 20180992,\n "dirty-flag": false\n}\n\n
libguestfs: trace: disk_format = "raw"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o
backing_file=/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfskqRtcE/overlay1.qcow2
Formatting '/tmp/libguestfskqRtcE/overlay1.qcow2', fmt=qcow2
cluster_size=65536 extended_l2=off compression_type=zlib size=20180480
backing_file=/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)/0008989.vhd backing_fmt=raw
lazy_refcounts=off refcount_bits=16
libguestfs: trace: disk_create = 0
libguestfs: trace: add_drive = 0
libguestfs: trace: is_config
libguestfs: trace: is_config = 1
libguestfs: trace: launch
libguestfs: trace: max_disks
libguestfs: trace: max_disks = 255
libguestfs: trace: version
libguestfs: trace: version = <struct guestfs_version = major: 1, minor:
52, release: 0, extra: , >
libguestfs: trace: get_backend
libguestfs: trace: get_backend = "direct"
libguestfs: launch: program=guestfish
libguestfs: launch: version=1.52.0
libguestfs: launch: backend registered: libvirt
libguestfs: launch: backend registered: direct
libguestfs: launch: backend=direct
libguestfs: launch: tmpdir=/tmp/libguestfskqRtcE
libguestfs: launch: umask=0002
libguestfs: launch: euid=1000
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: begin building supermin appliance
libguestfs: run supermin
libguestfs: command: run: /usr/bin/supermin
libguestfs: command: run: \ --build
libguestfs: command: run: \ --verbose
libguestfs: command: run: \ --if-newer
libguestfs: command: run: \ --lock /var/tmp/.guestfs-1000/lock
libguestfs: command: run: \ --copy-kernel
libguestfs: command: run: \ -f ext2
libguestfs: command: run: \ --host-cpu x86_64
libguestfs: command: run: \ /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
libguestfs: command: run: \ -o /var/tmp/.guestfs-1000/appliance.d
supermin: version: 5.2.2
supermin: package handler: debian/dpkg
supermin: acquiring lock on /var/tmp/.guestfs-1000/lock
supermin: build: /usr/lib/x86_64-linux-gnu/guestfs/supermin.d
supermin: reading the supermin appliance
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/base.tar.gz type gzip base
image (tar)
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/daemon.tar.gz type gzip
base image (tar)
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/excludefiles type
uncompressed excludefiles
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/hostfiles type uncompressed
hostfiles
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/init.tar.gz type gzip base
image (tar)
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages type uncompressed
packages
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages-hfsplus type
uncompressed packages
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages-reiserfs type
uncompressed packages
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/packages-xfs type
uncompressed packages
supermin: build: visiting
/usr/lib/x86_64-linux-gnu/guestfs/supermin.d/udev-rules.tar.gz type gzip
base image (tar)
supermin: mapping package names to installed packages
supermin: resolving full list of package dependencies
supermin: build: 207 packages, including dependencies
supermin: build: 7972 files
supermin: build: 4266 files, after matching excludefiles
supermin: build: 4269 files, after adding hostfiles
supermin: build: 4269 files, after removing unreadable files
supermin: build: 4276 files, after munging
supermin: kernel: looking for kernel using environment variables ...
supermin: kernel: looking for kernels in /lib/modules/*/vmlinuz ...
supermin: kernel: looking for kernels in /boot ...
supermin: kernel: kernel version of /boot/vmlinuz-6.8.0-48-generic =
6.8.0-48-generic (from filename)
supermin: kernel: picked modules path /lib/modules/6.8.0-48-generic
supermin: kernel: kernel version of /boot/vmlinuz-6.8.0-47-generic =
6.8.0-47-generic (from filename)
supermin: kernel: picked modules path /lib/modules/6.8.0-47-generic
supermin: kernel: kernel version of /boot/vmlinuz-6.8.0-45-generic =
6.8.0-45-generic (from filename)
supermin: kernel: picked modules path /lib/modules/6.8.0-45-generic
supermin: kernel: kernel version of /boot/vmlinuz-6.8.0-38-generic =
6.8.0-38-generic (from content)
supermin: kernel: picked modules path /lib/modules/6.8.0-38-generic
supermin: kernel: picked vmlinuz /boot/vmlinuz-6.8.0-48-generic
supermin: kernel: kernel_version 6.8.0-48-generic
supermin: kernel: modpath /lib/modules/6.8.0-48-generic
cp: cannot open '/boot/vmlinuz-6.8.0-48-generic' for reading: Permission
denied
supermin: cp -p '/boot/vmlinuz-6.8.0-48-generic'
'/var/tmp/.guestfs-1000/appliance.d.u5glwd06/kernel': command failed,
see earlier errors
libguestfs: error: /usr/bin/supermin exited with error status 1, see
debug messages above
libguestfs: trace: launch = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x5fb989175d70 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfskqRtcE
username@T520i:/mnt/54d396d8-1dd0-4b35-be7a-e4c9d459772d/1teraWDMyPassportUSB-VHDfiles/Disk
images/Virtual PC Virtual Disk (.vhd)$
My system info is:
System:
Kernel: 6.8.0-48-generic arch: x86_64 bits: 64 compiler: gcc v:
13.2.0 clocksource: tsc
Desktop: Cinnamon v: 6.2.9 tk: GTK v: 3.24.41 wm: Muffin v: 6.2.0 vt:
7 dm: LightDM v: 1.30.0
Distro: Linux Mint 22 Wilma base: Ubuntu 24.04 noble
Machine:
Type: Laptop System: LENOVO product: 4239CTO v: ThinkPad T520 serial:
<superuser required>
Chassis: type: 10 serial: <superuser required>
Mobo: LENOVO model: 4239CTO serial: <superuser required> uuid:
<superuser required>
UEFI: LENOVO v: 8AET45WW (1.25 ) date: 05/13/2011
Battery:
ID-1: BAT0 charge: 4.1 Wh (100.0%) condition: 4.1/47.5 Wh (8.6%)
volts: 12.2 min: 10.8
model: SANYO 42T4791 type: Li-ion serial: <filter> status: full
CPU:
Info: dual core model: Intel Core i3-2310M bits: 64 type: MT MCP smt:
enabled arch: Sandy Bridge
rev: 7 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
Speed (MHz): avg: 2093 min/max: 800/2100 cores: 1: 2093 2: 2093 3:
2093 4: 2093 bogomips: 16745
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3
Graphics:
Device-1: Intel 2nd Generation Core Processor Family Integrated
Graphics vendor: Lenovo
driver: i915 v: kernel arch: Gen-6 ports: active: LVDS-1,VGA-1
empty: DP-1, DP-2, DP-3,
HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0 chip-ID: 8086:0116
class-ID: 0300
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6
driver: X: loaded: modesetting
unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 1680x1818 s-dpi: 96 s-size: 445x481mm
(17.52x18.94") s-diag: 655mm (25.8")
Monitor-1: LVDS-1 pos: primary,bottom-r model: LG Display 0x02e3 res:
1366x768 hz: 60 dpi: 101
size: 344x194mm (13.54x7.64") diag: 395mm (15.5") modes: 1366x768
Monitor-2: VGA-1 pos: top-left model: Samsung SyncMaster serial:
<filter> res: 1680x1050 hz: 60
dpi: 90 size: 474x296mm (18.66x11.65") diag: 559mm (22") modes:
max: 1680x1050 min: 720x400
API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv:
crocus device: 1 drv: swrast
surfaceless: drv: crocus x11: drv: crocus inactive: gbm,wayland
API: OpenGL v: 4.5 compat-v: 3.3 vendor: intel mesa v:
24.0.9-0ubuntu0.2 glx-v: 1.4
direct-render: yes renderer: Mesa Intel HD Graphics 3000 (SNB GT2)
device-ID: 8086:0116
Audio:
Device-1: Intel 6 Series/C200 Series Family High Definition Audio
vendor: Lenovo ThinkPad T520
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20
class-ID: 0403
API: ALSA v: k6.8.0-48-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
status: active
2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
Device-1: Intel 82579LM Gigabit Network vendor: Lenovo ThinkPad T520
driver: e1000e v: kernel
port: 5080 bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200
IF: enp0s25 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: Intel Centrino Ultimate-N 6300 driver: iwlwifi v: kernel
pcie: speed: 2.5 GT/s
lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:4238 class-ID: 0280
IF: wlp3s0 state: down mac: <filter>
Drives:
Local Storage: total: 465.76 GiB used: 26.03 GiB (5.6%)
ID-1: /dev/sda vendor: Toshiba model: MK5076GSXN size: 465.76 GiB
speed: 3.0 Gb/s tech: HDD
rpm: 5400 serial: <filter> fw-rev: 1M scheme: GPT
Partition:
ID-1: / size: 124.93 GiB used: 23.73 GiB (19.0%) fs: ext4 dev: /dev/sda2
ID-2: /boot/efi size: 511 MiB used: 6.1 MiB (1.2%) fs: vfat dev:
/dev/sda1
Swap:
ID-1: swap-1 type: file size: 3.92 GiB used: 439.9 MiB (11.0%)
priority: -2 file: /swapfile
ID-2: swap-2 type: partition size: 32 GiB used: 0 KiB (0.0%)
priority: -3 dev: /dev/sda5
USB:
Hub-1: 1-0:1 info: full speed or root hub ports: 3 rev: 2.0 speed:
480 Mb/s lanes: 1
chip-ID: 1d6b:0002 class-ID: 0900
Hub-2: 1-1:2 info: Intel Integrated Rate Matching Hub ports: 6 rev:
2.0 speed: 480 Mb/s
lanes: 1 chip-ID: 8087:0024 class-ID: 0900
Device-1: 1-1.2:3 info: Microsoft Basic Optical Mouse type: mouse
driver: hid-generic,usbhid
interfaces: 1 rev: 1.1 speed: 1.5 Mb/s lanes: 1 power: 100mA
chip-ID: 045e:0084 class-ID: 0301
Hub-3: 2-0:1 info: full speed or root hub ports: 3 rev: 2.0 speed:
480 Mb/s lanes: 1
chip-ID: 1d6b:0002 class-ID: 0900
Hub-4: 2-1:2 info: Intel Integrated Rate Matching Hub ports: 8 rev:
2.0 speed: 480 Mb/s
lanes: 1 chip-ID: 8087:0024 class-ID: 0900
Device-1: 2-1.1:3 info: Canon MF220 Series type: printer driver:
usblp interfaces: 3 rev: 2.0
speed: 480 Mb/s lanes: 1 power: 2mA chip-ID: 04a9:27a8 class-ID:
0701 serial: <filter>
Sensors:
System Temperatures: cpu: 51.0 C mobo: N/A
Fan Speeds (rpm): cpu: 2588
Repos:
Packages: pm: dpkg pkgs: 2462
No active apt repos in: /etc/apt/sources.list
Active apt repos in:
/etc/apt/sources.list.d/official-package-repositories.list
1: deb http: //packages.linuxmint.com wilma main upstream import
backport
2: deb http: //mirror.ca-tr.kamatera.com/ubuntu noble main
restricted universe multiverse
3: deb http: //mirror.ca-tr.kamatera.com/ubuntu noble-updates main
restricted universe multiverse
4: deb http: //mirror.ca-tr.kamatera.com/ubuntu noble-backports
main restricted universe multiverse
5: deb http: //security.ubuntu.com/ubuntu/ noble-security main
restricted universe multiverse
Active apt repos in:
/etc/apt/sources.list.d/official-source-repositories.list
1: deb-src http: //packages.linuxmint.com wilma main upstream
import backport
2: deb-src http: //mirror.ca-tr.kamatera.com/ubuntu noble main
restricted universe multiverse
3: deb-src http: //mirror.ca-tr.kamatera.com/ubuntu noble-updates
main restricted universe multiverse
4: deb-src http: //mirror.ca-tr.kamatera.com/ubuntu noble-backports
main restricted universe multiverse
5: deb-src http: //security.ubuntu.com/ubuntu/ noble-security main
restricted universe multiverse
Info:
Memory: total: 4 GiB available: 3.71 GiB used: 2.43 GiB (65.6%)
Processes: 254 Power: uptime: 2h 30m states: freeze,mem,disk suspend:
deep wakeups: 0
hibernate: platform Init: systemd v: 255 target: graphical (5)
default: graphical
Compilers: gcc: 13.2.0 Client: Cinnamon v: 6.2.9 inxi: 3.3.34
Can someone help?
3 weeks