KVM to Qubes

is it possible to turn a kvm virtual machine into a qubes vm?

I have a qcow2 file and the xml, and would like to run it as a qubes standalone.

Not sure about the xml, but you should be able to convert the .qcow2 file to .raw with qemu-img and import it in dom0. Here’s a part of the documentation that explains the process for .vmdk files, skip to the qemu-img command and replace .vmdk with .qcow2.

1 Like

Yes it is easy to do.

  1. Create the Qube.
  2. qvm-img convert /path/to/current/image.qcow2 root.raw
  3. Configure the Qube to have the required specifications and NetVM’s.

I did it in the past, even physical machines to virtual just using qemu-img once creating the virtual.

Doesn’t matter what the machine is, if it’s a drive, it will convert it.

Didn’t work :frowning:

Oh dear.

Seriously, do you think anyone can help you with this sort of comment?
We aren’t psychic - tell us exactly in what way it did not work, what

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

You would have to be psychic to understand that - what I tried to say
was :
tell us exactly in what way it did not work, what you tried to do, what
error messages you saw, and what errors in Qubes. Enough information that
someone can replicate your problem, and understand the issue.

I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.

I opened the terminal inside the folder where my qcow file is saved and typed command: qemu-img convert -O raw (file name).qcow (file name).raw

Same as described in the tutorial linked on this page but did not generate the file .raw from my virtual machine. Nothing happened. Maybe some argument of the command line is wrong