For AI agents: the complete documentation index is available at https://docs.us.ovhcloud.com/en/llms.txt, the full documentation bundle is available at https://docs.us.ovhcloud.com/en/llms-full.txt, and this page is available as Markdown at https://docs.us.ovhcloud.com/en/bare-metal-cloud/dedicated-servers/configure-windows-server-byoi-api-qcow2.md.
  • English

Configure Your Windows Server for the BYOI API in QCOW2

View as Markdown

Learn how to set up your Windows virtual machine for compatibility with the BYOI API in QCOW2.

BYOI stands for Bring Your Own Image this is a common method for customers to bring their own pre-configured cloud-init capable ISO provided in QCOW2 or raw format to the OVHcloud environment.

 

Requirements

 

Instructions

Set up your virtual environment

Mount your Windows Server installation via your virtualization software and configure the virtual hardware to fit your needs.

Once configured and booted, you can install Windows updates, configure SSH, etc.

 

Create your image

Download Cloudbase-Init, open the setup wizard, and click Next.

Qcow management - Configure Windows server byoi API qcow2 - step 1

Accept ☑ the License Agreement and click Next.

Qcow management - Configure Windows server byoi API qcow2 - step 2

Select your installation preferences and click Next.

Qcow management - Configure Windows server byoi API qcow2 - step 3

Choose a username, check the box ☑ to enable the Cloudbase-Init service to run as LocalSystem, and click Next.

Qcow management - Configure Windows server byoi API qcow2 - step 4

Select Install on the next screen.

Qcow management - Configure Windows server byoi API qcow2 - step 5

Check the boxes ☑ to Run Sysprep to create a generalized image and to Shutdown when Sysprep terminates, then click Finish.

Qcow management - Configure Windows server byoi API qcow2 - step 6

 

Convert your image

Once your VM has shut down, you can use qemu-img - a powerful and simple tool - to convert your image to QCOW2 format.

Tip

Click each tab for your operating system.

Windows
Linux
  1. Download qemu-img using this link.
  2. Open PowerShell and navigate to the qemu-img.exe.
  3. We recommend copying an extract of the qemu-img download contents to the directory of the source image.
    qemu-img -h
  1. Convert your source image to dest.qcow2 using the command below, where -O is the output format.
    qemu-img.exe convert source.vmdk -O qcow2 dest.qcow2

After converting your image, you are now ready to self-host and use BYOI to install via the link. More information can be found in this guide.

 

Go further

Browse all the Dedicated Servers guides.

Browse the rest of the OVHcloud US documentation for guides on our other products and services.

Learn more about Dedicated Servers on the OVHcloud US website.

Other resources: