Using diskimage-creator for vhd format
Hi all. As an example I was trying to run something like this command: sudo tox -e venv -- disk-image-create -o ubuntu-min-gold.vhd vm block-device-gpt ubuntu-minimal -t vhd However, I do get the error message that vhd-util isn't available. "vhd output format specified but no vhd-util executable found." I read the commit where this was deprecated in favor of qemu-img https://opendev.org/openstack/diskimage-builder/commit/a3e9e7f89e1059ae09296... I can't seem to get the syntax for the command to work, not sure what I am missing but any help would be greatly appreciated. QEMU emulator version 6.2.0 Diskimage-builder 3.33.1 I'm running this in WSL Ubuntu, it seems to work. I was able to create an image - just not the vhd format I need. Thanks in advance for any advice. -Tony -- Tony Lombardo Systems Administrator Division of Public Safety Access Control Department Cornell University
On Thu, Sep 05, 2024 at 04:35:39PM +0000, Tony Lombardo wrote:
However, I do get the error message that vhd-util isn't available.
"vhd output format specified but no vhd-util executable found."
I read the commit where this was deprecated in favor of qemu-img
https://opendev.org/openstack/diskimage-builder/commit/a3e9e7f89e1059ae09296...
Unfortunately that was later reverted with b52b560fb05102312361a1ce47d71a5de5c19e94 There is a writeup on the VHD situation at https://docs.openstack.org/diskimage-builder/latest/developer/vhd_creation.h... It's been a while since I dug into it, but the VHD for Xenserver, particularly what we need for images on the RAX clouds we have as CI resources, can only effectively be made with the old patched tools. If you need a VPC format (still given a .vhd extension AFAIK) for ... Azure I guess? ... you might have success outputting a .raw and then using qemu-img to convert manually? But DIB will want to use vhd-utils by default. If you need Xen format, we do maintain a PPA of the tools at https://launchpad.net/~openstack-ci-core/+archive/ubuntu/vhd-util Hope that helps, -i
Hi, I recently had to do something similar I found it helpful to create an ubuntu:focal container and install/run vhd-util in there. This is far from a sustainable solution but it worked. This is roughly what I did: https://paste.opendev.org/show/bkiqlHWvdgAAw227k2D On Fri, 6 Sept 2024 at 08:26, Ian Wienand <iwienand@redhat.com> wrote:
On Thu, Sep 05, 2024 at 04:35:39PM +0000, Tony Lombardo wrote:
However, I do get the error message that vhd-util isn't available.
"vhd output format specified but no vhd-util executable found."
I read the commit where this was deprecated in favor of qemu-img
https://opendev.org/openstack/diskimage-builder/commit/a3e9e7f89e1059ae09296...
Unfortunately that was later reverted with b52b560fb05102312361a1ce47d71a5de5c19e94
There is a writeup on the VHD situation at
https://docs.openstack.org/diskimage-builder/latest/developer/vhd_creation.h...
It's been a while since I dug into it, but the VHD for Xenserver, particularly what we need for images on the RAX clouds we have as CI resources, can only effectively be made with the old patched tools.
If you need a VPC format (still given a .vhd extension AFAIK) for ... Azure I guess? ... you might have success outputting a .raw and then using qemu-img to convert manually? But DIB will want to use vhd-utils by default.
If you need Xen format, we do maintain a PPA of the tools at
https://launchpad.net/~openstack-ci-core/+archive/ubuntu/vhd-util
Hope that helps,
-i
-- Yours Tony.
Good morning and thank you for the reply. Unfortunately, I tried the URL you provided and got a file not found. But I think I have an idea of what you are getting at. Thanks again! -Tony -- Tony Lombardo Systems Administrator Division of Public Safety Access Control Department Cornell University ________________________________ From: Tony Breeds <tony@bakeyournoodle.com> Sent: Thursday, September 5, 2024 11:12 PM To: Ian Wienand <iwienand@redhat.com> Cc: Tony Lombardo <ajl44@cornell.edu>; openstack-discuss@lists.openstack.org <openstack-discuss@lists.openstack.org> Subject: Re: Using diskimage-creator for vhd format Hi, I recently had to do something similar I found it helpful to create an ubuntu:focal container and install/run vhd-util in there. This is far from a sustainable solution but it worked. This is roughly what I did: https://paste.opendev.org/show/bkiqlHWvdgAAw227k2D On Fri, 6 Sept 2024 at 08:26, Ian Wienand <iwienand@redhat.com> wrote:
On Thu, Sep 05, 2024 at 04:35:39PM +0000, Tony Lombardo wrote:
However, I do get the error message that vhd-util isn't available.
"vhd output format specified but no vhd-util executable found."
I read the commit where this was deprecated in favor of qemu-img
https://opendev.org/openstack/diskimage-builder/commit/a3e9e7f89e1059ae09296...
Unfortunately that was later reverted with b52b560fb05102312361a1ce47d71a5de5c19e94
There is a writeup on the VHD situation at
https://docs.openstack.org/diskimage-builder/latest/developer/vhd_creation.h...
It's been a while since I dug into it, but the VHD for Xenserver, particularly what we need for images on the RAX clouds we have as CI resources, can only effectively be made with the old patched tools.
If you need a VPC format (still given a .vhd extension AFAIK) for ... Azure I guess? ... you might have success outputting a .raw and then using qemu-img to convert manually? But DIB will want to use vhd-utils by default.
If you need Xen format, we do maintain a PPA of the tools at
https://launchpad.net/~openstack-ci-core/+archive/ubuntu/vhd-util
Hope that helps,
-i
-- Yours Tony.
On 2024-09-06 14:22:03 +0000 (+0000), Tony Lombardo wrote:
On 2024-09-05 23:12:00 +0000 (+0000), Tony Breeds wrote:
I recently had to do something similar I found it helpful to create an ubuntu:focal container and install/run vhd-util in there. This is far from a sustainable solution but it worked.
This is roughly what I did: https://paste.opendev.org/show/bkiqlHWvdgAAw227k2D
Good morning and thank you for the reply. Unfortunately, I tried the URL you provided and got a file not found. But I think I have an idea of what you are getting at.
Looks like https://paste.opendev.org/show/bkiqlHWvdgAAw227k2D4/ was the URL he intended to reference. For posterity, I'm attaching it as a plain text file too. -- Jeremy Stanley
Ah, yes thank you Jeremy. The link to the VHD writeup cleared things up for me. I have other IT adventures to tend to today but will give this a go over the weekend. Thanks! -Tony -- Tony Lombardo Systems Administrator Division of Public Safety Access Control Department Cornell University ________________________________ From: Ian Wienand <iwienand@redhat.com> Sent: Thursday, September 5, 2024 6:25 PM To: Tony Lombardo <ajl44@cornell.edu> Cc: openstack-discuss@lists.openstack.org <openstack-discuss@lists.openstack.org> Subject: Re: Using diskimage-creator for vhd format On Thu, Sep 05, 2024 at 04:35:39PM +0000, Tony Lombardo wrote:
However, I do get the error message that vhd-util isn't available.
"vhd output format specified but no vhd-util executable found."
I read the commit where this was deprecated in favor of qemu-img
https://opendev.org/openstack/diskimage-builder/commit/a3e9e7f89e1059ae09296...
Unfortunately that was later reverted with b52b560fb05102312361a1ce47d71a5de5c19e94 There is a writeup on the VHD situation at https://docs.openstack.org/diskimage-builder/latest/developer/vhd_creation.h... It's been a while since I dug into it, but the VHD for Xenserver, particularly what we need for images on the RAX clouds we have as CI resources, can only effectively be made with the old patched tools. If you need a VPC format (still given a .vhd extension AFAIK) for ... Azure I guess? ... you might have success outputting a .raw and then using qemu-img to convert manually? But DIB will want to use vhd-utils by default. If you need Xen format, we do maintain a PPA of the tools at https://launchpad.net/~openstack-ci-core/+archive/ubuntu/vhd-util Hope that helps, -i
participants (4)
-
Ian Wienand
-
Jeremy Stanley
-
Tony Breeds
-
Tony Lombardo