[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] kvm-qemu emulator problem



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. . 
-----------------------------------------------------------------------------------------------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]