From ec1550827d90eb1ffd14d8ad88df3e9fdb63dbc2 Mon Sep 17 00:00:00 2001
From: Peter Krempa
$ cat > demo.args <<EOF -LC_ALL=C PATH=/bin HOME=/home/test USER=test \ -LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 \ --nographic -monitor pty -no-acpi -boot c -hda \ -/dev/HostVG/QEMUGuest1 -net none -serial none \ --parallel none -usb -EOF - -$ virsh domxml-from-native qemu-argv demo.args -<domain type='qemu'> - <uuid>00000000-0000-0000-0000-000000000000</uuid> - <memory>219136</memory> - <currentMemory>219136</currentMemory> - <vcpu>1</vcpu> - <os> - <type arch='i686' machine='pc'>hvm</type> - <boot dev='hd'/> - </os> - <clock offset='utc'/> - <on_poweroff>destroy</on_poweroff> - <on_reboot>restart</on_reboot> - <on_crash>destroy</on_crash> - <devices> - <emulator>/usr/bin/qemu</emulator> - <disk type='block' device='disk'> - <source dev='/dev/HostVG/QEMUGuest1'/> - <target dev='hda' bus='ide'/> - </disk> - </devices> -</domain> -- -
NB, don't include the literal \ in the args, put everything on one line
--- 2.47.2