Installing a vmdk under QEMU/KVM

OpenVMS virtualization: OpenVMS on VirtualBox, VMWare, Hyper-V, KVM, and more.
Post Reply
User avatar

Topic author
martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

Installing a vmdk under QEMU/KVM

Post by martin » Wed Apr 03, 2024 11:30 am

I've just completed a basic installation using QEMU/KVM rather than the documented VirtualBox in the Community License Package email. The enclosed PDF is my write-up for myself, but may be of use to others using QEMU/KVM in a Alma/Rocky/RHEL/Fedora environment.
user vms [Lifeboat].pdf
(37.97 KiB) Downloaded 72 times
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.


hb
Valued Contributor
Posts: 79
Joined: Mon May 01, 2023 12:11 pm
Reputation: 0
Status: Offline

Re: Installing a vmdk under QEMU/KVM

Post by hb » Wed Apr 03, 2024 12:53 pm

martin wrote:
Wed Apr 03, 2024 11:30 am
I've just completed a basic installation using QEMU/KVM rather than the documented VirtualBox in the Community License Package email. The enclosed PDF is my write-up for myself, but may be of use to others using QEMU/KVM in a Alma/Rocky/RHEL/Fedora environment.user vms [Lifeboat].pdf
You can also convert to qcow2:

Code: Select all

qemu-img convert -O qcow2 community-flat.vmdk $HOSTNAME.qcow2
If the input disk image is not recognized, you can throw a

Code: Select all

-f vmdk
at it .


hajo
Visitor
Posts: 1
Joined: Wed Apr 03, 2024 3:22 pm
Reputation: 0
Location: Germany
Status: Offline

Re: Installing a vmdk under QEMU/KVM

Post by hajo » Wed Apr 03, 2024 5:14 pm

... and you can also use a Linux (i've used Rocky) OS as base.

User avatar

Topic author
martin
Valued Contributor
Posts: 73
Joined: Tue Mar 22, 2022 6:47 pm
Reputation: 0
Location: England
Status: Offline

Re: Installing a vmdk under QEMU/KVM

Post by martin » Wed Apr 03, 2024 5:47 pm

The instructions ONLY work under Linux, hence "Alma/Rocky/RHEL/Fedora environment". I've not tried them under Debian or Ubuntu so can't guarantee other distros.
Martin
  • Retired System Manager: VMS/UNIX/UNICOS/Linux.
  • Started on a VAX 11/782 in 1984 with VMS 3.6.


dholm
Visitor
Posts: 1
Joined: Wed Apr 03, 2024 8:14 pm
Reputation: 0
Status: Offline

Re: Installing a vmdk under QEMU/KVM

Post by dholm » Wed Apr 03, 2024 8:29 pm

I installed it on Ubuntu 22.04 using this command:

Code: Select all

$ sudo virt-install --name=openvms \
    --machine=q35 \
    --vcpus=2 \
    --memory=6144 \
    --disk=/storage/scratch/libvirt/images/community-flat.vmdk,bus=sata,format=vmdk \
    --boot=uefi,loader=/usr/share/ovmf/OVMF.fd,loader_secure=no \
    --os-variant=generic \
    --graphics=none
The only problem I ran into is that even though I added "loader_secure=no" to the boot argument, UEFI inside the VM still required secure boot. Once I entered the UEFI boot menu and turned off secure boot, everything was great.

Post Reply