How to detect the type of virtualization from the command line

Question: I am trying to write a shell script in which I need to detect whether the Linux server on which the script is running is a virtual machine, a container or actual bare-metal hardware. This is because the script should perform different tasks depending on whether the underlying server is virtual or physical. Is […]
Continue reading…

 

How to mount qcow2 disk image on Linux

Question: I have a qcow2-type disk image which is used by one my guest VMs on QEMU/KVM. I want to modify the content of the disk image without powering on the VM, and for this I need to mount the disk image somewhere. Is there a way to mount a qcow2 disk image on Linux? […]
Continue reading…

 

How to fix “hda-duplex not supported in this QEMU binary”

Question: When I try to install Linux on a new VM in virt-manager, the VM fails to boot with the following error: “unsupported configuration: hda-duplex not supported in this QEMU binary.” How can I fix this error? The cause for this VM error may originate from a qemu bug where a configured default sound card […]
Continue reading…