[libvirt] kvm-qemu emulator problem

Hi all , I am trying to use fvd for my guest machine for that I refer the link http://sites.google.com/site/tangchq/qemu-fvd now all works fine except the last step which said that if libvirt is used then the xml configuration file need to be changed to include the modified emulator qemu-system-x86_64 The default path is /usr/libexec/qemu-kvm But the change in xml configuration file is of no use which is in /etc/libvirt/qemu directory. Since it is created when the guest is created using virt-install. Well I don't know how I can change the default path for emulator, so that qemu-system-x86_64 act as a default emulator can anyone help ? DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------

Hi, the libvirt XML configuration file is having the emulator set and if you start the guest using libvirt (e.g. using virsh start <guest>) then it's being used. You can find the path to the emulator used for the VM in //domain/devices/emulator xPath query applied on the XML file, i.e.: <domain type='kvm'> ... <os> <type arch='i686' machine='pc-0.14'>hvm</type> <boot dev='hd'/> </os> <devices> <emulator>/usr/bin/qemu-kvm</emulator> ... </devices> </domain> Here, the "/usr/bin/qemu-kvm" is the emulator string to be spawned. If you change into any other existing location it will work fine. Also, for x86_64 guest you should change the architecture type of OS from i686 to x86_64 (which is the "//domain/os/type/@arch" node). But beware, you should define the XML first and start it using the "virsh start" command since if you create it using "virsh create" then it's being created with default emulator and I don't know whether it's possible to change the default emulator. Hope this helps! Michal On 01/05/2012 10:14 AM, Pankaj Rawat wrote:
Hi all ,
I am trying to use fvd for my guest machine for that I refer the link
http://sites.google.com/site/tangchq/qemu-fvd
now all works fine except the last step which said that if libvirt is used then the xml configuration file need to be changed to include the modified emulator *qemu-system-x86_64*
The default path is /usr/libexec/qemu-kvm
But the change in xml configuration file is of no use which is in */etc/libvirt/qemu* directory. Since it is created when the guest is created using virt-install.
Well I don’t know how I can change the default path for emulator, so that qemu-system-x86_64 act as a default emulator
can anyone help ?
DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

I created a xml file guestfvd.xml Then I made changes as u specified And when run command [root@localhost qemu]# virsh start guestfvd error: failed to get domain 'guestfvd' error: Domain not found: no domain with matching name 'guestfvd' Now this error make sence since we have'nt created a guest yet how can we start such one. Please correct me if I'm wrong Can you help me on this -----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Thursday, January 05, 2012 3:14 PM To: Pankaj Rawat Cc: libvir-list@redhat.com Subject: Re: [libvirt] kvm-qemu emulator problem Hi, the libvirt XML configuration file is having the emulator set and if you start the guest using libvirt (e.g. using virsh start <guest>) then it's being used. You can find the path to the emulator used for the VM in //domain/devices/emulator xPath query applied on the XML file, i.e.: <domain type='kvm'> ... <os> <type arch='i686' machine='pc-0.14'>hvm</type> <boot dev='hd'/> </os> <devices> <emulator>/usr/bin/qemu-kvm</emulator> ... </devices> </domain> Here, the "/usr/bin/qemu-kvm" is the emulator string to be spawned. If you change into any other existing location it will work fine. Also, for x86_64 guest you should change the architecture type of OS from i686 to x86_64 (which is the "//domain/os/type/@arch" node). But beware, you should define the XML first and start it using the "virsh start" command since if you create it using "virsh create" then it's being created with default emulator and I don't know whether it's possible to change the default emulator. Hope this helps! Michal On 01/05/2012 10:14 AM, Pankaj Rawat wrote:
Hi all ,
I am trying to use fvd for my guest machine for that I refer the link
http://sites.google.com/site/tangchq/qemu-fvd
now all works fine except the last step which said that if libvirt is used then the xml configuration file need to be changed to include the modified emulator *qemu-system-x86_64*
The default path is /usr/libexec/qemu-kvm
But the change in xml configuration file is of no use which is in */etc/libvirt/qemu* directory. Since it is created when the guest is created using virt-install.
Well I don't know how I can change the default path for emulator, so that qemu-system-x86_64 act as a default emulator
can anyone help ?
DISCLAIMER:
------------------------------------------------------------------------ -----------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. .
------------------------------------------------------------------------ -----------------------------------------------
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------

On 01/05/2012 11:43 AM, Pankaj Rawat wrote:
I created a xml file guestfvd.xml
Then I made changes as u specified And when run command
[root@localhost qemu]# virsh start guestfvd error: failed to get domain 'guestfvd' error: Domain not found: no domain with matching name 'guestfvd'
Now this error make sence since we have'nt created a guest yet how can we start such one. Please correct me if I'm wrong Can you help me on this
You forgot to define it first ;-) You have to define it using "virsh define guestfvd.xml" first and then start :-) The name of what guest to start have to be the same as the one in "//domain/name" node of xPath query applied to the XML file. Michal -- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

Sorry for that I defined it now When I run the command [root@localhost qemu]# virsh start guestfvd error: Failed to start domain guestfvd error: internal error unknown disk format 'fvd' for /var/lib/libvirt/images/guestfvd I know this error sounds like the fvd is not installed but I havecompiled it and maked it myself Qemu-img command list the format fvd along with qed ,qcow2 The binary qemu-system-x86-64 isalso maked as a result of make install What to do now ??? -----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Thursday, January 05, 2012 4:14 PM To: Pankaj Rawat Cc: libvir-list@redhat.com Subject: Re: [libvirt] kvm-qemu emulator problem On 01/05/2012 11:43 AM, Pankaj Rawat wrote:
I created a xml file guestfvd.xml
Then I made changes as u specified And when run command
[root@localhost qemu]# virsh start guestfvd error: failed to get domain 'guestfvd' error: Domain not found: no domain with matching name 'guestfvd'
Now this error make sence since we have'nt created a guest yet how can we start such one. Please correct me if I'm wrong Can you help me on this
You forgot to define it first ;-) You have to define it using "virsh define guestfvd.xml" first and then start :-) The name of what guest to start have to be the same as the one in "//domain/name" node of xPath query applied to the XML file. Michal -- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------

I don't have any experience with fvd however this is not libvirt-related issue rather than qemu-related. Please try to ask qemu guys how to fix this. Michal On 01/05/2012 12:04 PM, Pankaj Rawat wrote:
Sorry for that I defined it now When I run the command
[root@localhost qemu]# virsh start guestfvd error: Failed to start domain guestfvd error: internal error unknown disk format 'fvd' for /var/lib/libvirt/images/guestfvd
I know this error sounds like the fvd is not installed but I havecompiled it and maked it myself
Qemu-img command list the format fvd along with qed ,qcow2
The binary qemu-system-x86-64 isalso maked as a result of make install
What to do now ???
-----Original Message----- From: Michal Novotny [mailto:minovotn@redhat.com] Sent: Thursday, January 05, 2012 4:14 PM To: Pankaj Rawat Cc: libvir-list@redhat.com Subject: Re: [libvirt] kvm-qemu emulator problem
On 01/05/2012 11:43 AM, Pankaj Rawat wrote:
I created a xml file guestfvd.xml
Then I made changes as u specified And when run command
[root@localhost qemu]# virsh start guestfvd error: failed to get domain 'guestfvd' error: Domain not found: no domain with matching name 'guestfvd'
Now this error make sence since we have'nt created a guest yet how can we start such one. Please correct me if I'm wrong Can you help me on this You forgot to define it first ;-) You have to define it using "virsh define guestfvd.xml" first and then start :-) The name of what guest to start have to be the same as the one in "//domain/name" node of xPath query applied to the XML file.
Michal
-- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

On Thu, Jan 05, 2012 at 12:07:40PM +0100, Michal Novotny wrote:
I don't have any experience with fvd however this is not libvirt-related issue rather than qemu-related. Please try to ask qemu guys how to fix this.
Actually it is a libvirt error message. if ((format = virStorageFileFormatTypeFromString(formatStr)) < 0) { virDomainReportError(VIR_ERR_INTERNAL_ERROR, _("unknown disk format '%s' for %s"), disk->driverType, disk->src); goto cleanup; } } else { We don't have any support for FVD in src/util/storage_file.[ch] We could add this in, but first we have to ask wether the FVD disk format actually has any future ? My understanding is that FVD is not going to be merged into QEMU, and that the good ideas from it, will used to create a QCow3 format. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

On 01/05/2012 12:34 PM, Daniel P. Berrange wrote:
On Thu, Jan 05, 2012 at 12:07:40PM +0100, Michal Novotny wrote:
I don't have any experience with fvd however this is not libvirt-related issue rather than qemu-related. Please try to ask qemu guys how to fix this. Actually it is a libvirt error message.
if ((format = virStorageFileFormatTypeFromString(formatStr)) < 0) { virDomainReportError(VIR_ERR_INTERNAL_ERROR, _("unknown disk format '%s' for %s"), disk->driverType, disk->src); goto cleanup; } } else {
We don't have any support for FVD in src/util/storage_file.[ch]
We could add this in, but first we have to ask wether the FVD disk format actually has any future ? My understanding is that FVD is not going to be merged into QEMU, and that the good ideas from it, will used to create a QCow3 format.
Regards, Daniel Oh, I didn't know that. I thought this is the message coming directly from qemu. Sorry for the confusion.
Michal -- Michal Novotny <minovotn@redhat.com>, RHCE, Red Hat Virtualization | libvirt-php bindings | php-virt-control.org

Thanks for that, might be there is some other way to use fvd. Rather than the one I just used. -----Original Message----- From: Daniel P. Berrange [mailto:berrange@redhat.com] Sent: Thursday, January 05, 2012 5:05 PM To: Michal Novotny Cc: Pankaj Rawat; libvir-list@redhat.com Subject: Re: [libvirt] kvm-qemu emulator problem On Thu, Jan 05, 2012 at 12:07:40PM +0100, Michal Novotny wrote:
I don't have any experience with fvd however this is not libvirt-related issue rather than qemu-related. Please try to ask qemu guys how to fix this.
Actually it is a libvirt error message. if ((format = virStorageFileFormatTypeFromString(formatStr)) < 0) { virDomainReportError(VIR_ERR_INTERNAL_ERROR, _("unknown disk format '%s' for %s"), disk->driverType, disk->src); goto cleanup; } } else { We don't have any support for FVD in src/util/storage_file.[ch] We could add this in, but first we have to ask wether the FVD disk format actually has any future ? My understanding is that FVD is not going to be merged into QEMU, and that the good ideas from it, will used to create a QCow3 format. Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :| DISCLAIMER: ----------------------------------------------------------------------------------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or NECHCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of NECHCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. . -----------------------------------------------------------------------------------------------------------------------
participants (3)
-
Daniel P. Berrange
-
Michal Novotny
-
Pankaj Rawat