Skip to content

Instantly share code, notes, and snippets.

@PatrickLang
Last active October 6, 2022 05:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PatrickLang/a47c2cafd6a266d4defa02c537d8274f to your computer and use it in GitHub Desktop.
Save PatrickLang/a47c2cafd6a266d4defa02c537d8274f to your computer and use it in GitHub Desktop.
Testing SuSE Advanced Linux Platform (ALP) on Hyper-V

Background

The initial ALP Announcement was this week, and the ALP Deployment instructions only cover how to test it on KVM. Since all of the support needed for Hyper-V is in upstream Linux, I thought I would give it a try. Technically this is all feasible, it's just a matter of making sure the right kernel options (or modules) are compiled in, and that the VM is configured appropriately

What's Needed

  • Get the qcow image from ALP Download
  • Download a qemu-img build for Windows from my friends at CloudBase

Steps

# Convert qcow image to VHDX
.\qemu-img.exe convert -O vhdx ALP-VM.x86_64-0.0.1-kvm-Build14.6.qcow2 ALP-VM.x86_64-0.0.1-kvm-Build14.6.vhdx

# Extend image to a larger size (40GB)
# Resize-VHD -SizeBytes 80Gb .\ALP-VM.x86_64-0.0.1-kvm-Build14.6.vhdx


# Create VM
$vm = new-vm -Generation 2 -Path . -Name ALP -BootDevice VHD -VHDPath .\ALP-VM.x86_64-0.0.1-kvm-Build14.6.vhdx -MemoryStartupBytes 4Gb
$vm | Set-VMProcessor -Count 4
$vm | Set-VMMemory -MaximumBytes 8Gb
$vm | Set-VMFirmware -SecureBootTemplate MicrosoftUEFICertificateAuthority

At this point, it's best to launch the VM in "Hyper-V Manager" so you can monitor boot process and complete setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment