Installing a vmdk under QEMU/KVM
-
Topic author - Valued Contributor
- Posts: 73
- Joined: Tue Mar 22, 2022 6:47 pm
- Reputation: 0
- Location: England
- Status: Offline
Installing a vmdk under QEMU/KVM
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.
Martin
- Retired System Manager: VMS/UNIX/UNICOS/Linux.
- Started on a VAX 11/782 in 1984 with VMS 3.6.
Re: Installing a vmdk under QEMU/KVM
You can also convert to qcow2:martin wrote: ↑Wed Apr 03, 2024 11:30 amI'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
Code: Select all
qemu-img convert -O qcow2 community-flat.vmdk $HOSTNAME.qcow2
Code: Select all
-f vmdk
-
- Visitor
- Posts: 1
- Joined: Wed Apr 03, 2024 3:22 pm
- Reputation: 0
- Location: Germany
- Status: Offline
Re: Installing a vmdk under QEMU/KVM
... and you can also use a Linux (i've used Rocky) OS as base.
-
Topic author - 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
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.
Re: Installing a vmdk under QEMU/KVM
I installed it on Ubuntu 22.04 using this command:
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.
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