[libvirt-users] where is the libvirt.xml ?

Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the libvirt.xml for the command . Well , I mean that the libvirt.xml is genrated automatically, not by myself manually. Wish your help! Thanks a lot! -- Yours. suyi

There are a lot of ways to find one file in linux/unix systems. You can use find, locate or via rpm with rpm -ql libvirtd On Thu, Mar 8, 2012 at 5:47 AM, suyi wang <wangsuyi640@gmail.com> wrote:
Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the libvirt.xml for the command . Well , I mean that the libvirt.xml is genrated automatically, not by myself manually. Wish your help! Thanks a lot!
-- Yours. suyi
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Evaggelos Balaskas - Unix System Engineer http://gr.linkedin.com/in/evaggelosbalaskas

Dear: I think that I installed the libvirt by rpms automatically , then it does have a fixed location of the file--libvirt.xml , I want to know where is the file(the fixed location). Thanks! 2012/3/8 Evaggelos Balaskas <ebalaskas@ebalaskas.gr>
There are a lot of ways to find one file in linux/unix systems. You can use find, locate or via rpm with rpm -ql libvirtd
On Thu, Mar 8, 2012 at 5:47 AM, suyi wang <wangsuyi640@gmail.com> wrote:
Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the
libvirt.xml
for the command . Well , I mean that the libvirt.xml is genrated automatically, not by myself manually. Wish your help! Thanks a lot!
-- Yours. suyi
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users
-- Evaggelos Balaskas - Unix System Engineer http://gr.linkedin.com/in/evaggelosbalaskas
-- Yours. suyi

On 03/08/2012 11:47 AM, suyi wang wrote:
Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the libvirt.xml for the command . Well , I mean that the libvirt.xml is genrated automatically, not by myself manually. Wish your help! Thanks a lot!
If you start a guest with qemu command line directly, there is no libvirt XML for it, libvirt doesn't try to manage guest which is not created through libvirt API. For a guest created through libvirt, and it's persistent, the persistent XML is stored in /etc/libvirt/qemu/, and the running state XML is in /var/run/libvirt/qemu/, and you would see the generated qemu command line by libvirt either by # ps -ef | grep qemu # cat /var/log/libvirt/qemu/$guest.log Regards, Osier

On 03/08/2012 02:04 AM, Osier Yang wrote:
On 03/08/2012 11:47 AM, suyi wang wrote:
Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the libvirt.xml for the command . Well , I mean that the libvirt.xml is genrated automatically, not by myself manually. Wish your help! Thanks a lot!
If you start a guest with qemu command line directly, there is no libvirt XML for it, libvirt doesn't try to manage guest which is not created through libvirt API.
However, you _can_ teach libvirt about certain guests started directly by qemu; the 'virsh qemu-attach' command can attach to guests that were properly started with a socket monitor.
For a guest created through libvirt, and it's persistent, the persistent XML is stored in /etc/libvirt/qemu/, and the running state XML is in /var/run/libvirt/qemu/, and
Note that these files are to be treated as read-only. If you want to modify the guest, you must not edit these files, but instead should use commands like 'virsh edit' for the persistent definition, and hotplug actions like 'virsh add-device' for the live definition.
you would see the generated qemu command line by libvirt either by
# ps -ef | grep qemu
# cat /var/log/libvirt/qemu/$guest.log
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org

Thanks! I get it! Thanks again for your help! 2012/3/8 Eric Blake <eblake@redhat.com>
On 03/08/2012 02:04 AM, Osier Yang wrote:
On 03/08/2012 11:47 AM, suyi wang wrote:
Hi all: My OS is now Fedora16 , and the spice server is installed on it by rpms. Then I run 'qemu-kvm -hda /root/vaddsoft.img -m 512 -vga qxl -spice port=5930,disable-ticketing' , I want to find out where is the libvirt.xml for the command . Well , I mean that the libvirt.xml is genrated automatically, not by myself manually. Wish your help! Thanks a lot!
If you start a guest with qemu command line directly, there is no libvirt XML for it, libvirt doesn't try to manage guest which is not created through libvirt API.
However, you _can_ teach libvirt about certain guests started directly by qemu; the 'virsh qemu-attach' command can attach to guests that were properly started with a socket monitor.
For a guest created through libvirt, and it's persistent, the persistent XML is stored in /etc/libvirt/qemu/, and the running state XML is in /var/run/libvirt/qemu/, and
Note that these files are to be treated as read-only. If you want to modify the guest, you must not edit these files, but instead should use commands like 'virsh edit' for the persistent definition, and hotplug actions like 'virsh add-device' for the live definition.
you would see the generated qemu command line by libvirt either by
# ps -ef | grep qemu
# cat /var/log/libvirt/qemu/$guest.log
-- Eric Blake eblake@redhat.com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
-- Yours. suyi
participants (4)
-
Eric Blake
-
Evaggelos Balaskas
-
Osier Yang
-
suyi wang