"Allen Qiu"<my1stbox@163.com>
2014-Oct-29 16:44 UTC
[libvirt-users] Can't specify filename.xml when using virsh dumpxml
Hi all, Do you have any idea about this error? virsh # dumpxml csg01win7test > domain.xml error: unexpected data '>' Regards, Allen 2014-10-28 Allen Qiu
Eric Blake
2014-Oct-29 16:53 UTC
Re: [libvirt-users] Can't specify filename.xml when using virsh dumpxml
On 10/29/2014 10:44 AM, Allen Qiu wrote:> Hi all, > Do you have any idea about this error? > virsh # dumpxml csg01win7test > domain.xml > error: unexpected data '>'You are running virsh in interactive mode. Right now, dumpxml only outputs to stdout, and '>' only works as a redirection for shell mode. So, instead of: $ virsh virsh # dumpxml ... you want to do: $ virsh dumpxml ... > file But yes, it would be nice to write a patch to virsh to add an optional --output=file for each of the dumpxml family of functions, to write there instead of stdout, so that you can get interactive virsh to output xml to a file. Would you like to try your hand at the patch? -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Possibly Parallel Threads
- How could the admin do to grant me with permission to run virsh as unprivileged user?
- Any recommendation about benchmarking tools on Linux virtual machine?
- What is the difference between running "virt-manager" and "sudo virt-manager"?
- Libvirt "tc ingress qdisc" automatically removed by ovs vlan tag setting, how?
- libvirtd does not update VM .xml configuration on filesystem after virsh blockcommit