[Libguestfs] guestfish Remote Images IPv6 Support

Jonathan Wright jonathan at knownhost.com
Fri Mar 29 23:17:17 UTC 2019


I have scoured the web and can't find anything on the topic: Is IPv6 
supported for remote image targets?

For example:

guestfish --format=raw --ro -a 
rbd://[fd00::cefc:1]:6789/images/CentOS-7-x86_64-GenericCloud-1901

Does not work citing the following:

libguestfs: trace: set_verbose true
libguestfs: trace: set_verbose = 0
libguestfs: create: flags = 0, handle = 0x5560231bdfb0, program = guestfish
libguestfs: trace: set_pgroup true
libguestfs: trace: set_pgroup = 0
libguestfs: trace: add_drive "images/CentOS-7-x86_64-GenericCloud-1901" 
"readonly:true" "format:raw" "protocol:rbd" "server:tcp:[fd00::cefc:1]:6789"
libguestfs: creating COW overlay to protect original drive content
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: disk_create "/tmp/libguestfs3pGMi6/overlay1.qcow2" 
"qcow2" -1 
"backingfile:rbd:images/CentOS-7-x86_64-GenericCloud-1901:mon_host=[fd00::cefc:1]\:6789:auth_supported=none" 
"backingformat:raw"
libguestfs: command: run: qemu-img
libguestfs: command: run: \ create
libguestfs: command: run: \ -f qcow2
libguestfs: command: run: \ -o 
backing_file=rbd:images/CentOS-7-x86_64-GenericCloud-1901:mon_host=[fd00::cefc:1]\:6789:auth_supported=none,backing_fmt=raw
libguestfs: command: run: \ /tmp/libguestfs3pGMi6/overlay1.qcow2
qemu-img: /tmp/libguestfs3pGMi6/overlay1.qcow2: invalid conf option 
:cefc:1]:6789:auth_supported: No such file or directory
Could not open backing image to determine size.
libguestfs: error: qemu-img: /tmp/libguestfs3pGMi6/overlay1.qcow2: 
qemu-img exited with error status 1, see debug messages above
libguestfs: trace: disk_create = -1 (error)
libguestfs: trace: add_drive = -1 (error)
libguestfs: trace: close
libguestfs: closing guestfs handle 0x5560231bdfb0 (state 0)
libguestfs: command: run: rm
libguestfs: command: run: \ -rf /tmp/libguestfs3pGMi6

Other variations of the IPv6 address fail in a similar fashion, some 
even failing with the URI parser.  It seems as though everything after 
the first : in the address is getting parsed as args.

Changing this IPv6 address over to a hostname allows the command to work.

Unfortunately I'm working within the confines of OpenStack and some of 
it's requests here and my Ceph cluster is v6-only so I can't easily just 
have it use hostnames to solve the issue.

-- 
Jonathan Wright
KnownHost, LLC
https://www.knownhost.com




More information about the Libguestfs mailing list