If I qemu-system-x86_64 ~/Whonix-Gateway-11.0.0.3.0.qcow2 I can start the machine without networking, I see that there is an .xml file included in the directory
<domain type='kvm'>
<name>Debian</name>
<description></description>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>2</vcpu>
....
How can I import it?
That's not a "qemu" XML file; that's a file for importing the image into libvirt.
If you have a libvirt XML file, you can import it using the virsh define
command:
virsh define /path/to/xmlfile.xml
This will define but not start the corresponding guest. You can start it using virsh start <name>
, or use a tool like virt-manager
. There is a virsh create
command that will define and start the guest in a single command:
virsh create /path/to/xmlfile.xml
For these to work, of course, you need to have libvirtd
running and you need to have appropriate permissions to access it. If you want to have functional networking you may need to modify the domain XML description to match your local environment (or you may not, if the XML assumes the standard libvirt default
network and you have that configured on your system).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With