guest.cpu.mode=host-passthrough

should work like a charm if it doesn't work, this means the regression is
in the CloudStack code and it prevents setting the property.
Make sure you have set the correct line end character in UNIX format.

On Mon, Sep 13, 2021 at 7:00 PM Wei ZHOU <ustcweiz...@gmail.com> wrote:

> Hi Abishek,
>
> It is better to share your agent.properties
>
> -Wei
>
> On Mon, 13 Sept 2021 at 13:39, avi <halloesni...@gmail.com> wrote:
>
> > Hello Ivan,
> >
> > But I am still getting qemu virtual cpu in guest VM's(Windows). Did
> > everything as documented. I want the VM's to have same CPU as the host
> > machines Will it be possible?
> >
> > Thank You.
> >
> > On 2021/09/13 07:55:39, Ivan Kudryavtsev <i...@bw-sw.com> wrote:
> > > That is just fine. Go ahead, it's not an error.
> > >
> > > On Mon, Sep 13, 2021 at 2:24 PM avi <halloesni...@gmail.com> wrote:
> > >
> > > > Hello All,
> > > >
> > > > I am using cloudstack 4.15.1 with KVM host. I was playing with
> changing
> > > > guest cpu model and tested out
> > > > host-passthrough and host-model but I was unable to succed. I changed
> > the
> > > > parameter in the agent config file as documented but I received
> > following
> > > > error on both hosts:
> > > >  12:07:43,928 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Trying to fetch
> storage
> > pool
> > > > 0420bb0c-6e77-3a53-994a-8907905cd465 from libvirt
> > > >  12:07:44,092 INFO  [kvm.storage.LibvirtStorageAdaptor]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Trying to fetch
> storage
> > pool
> > > > 0420bb0c-6e77-3a53-994a-8907905cd465 from libvirt
> > > >  12:07:44,309 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy script
> > > > '/etc/cloudstack/agent/hooks/libvirt-vm-xml-transformer.groovy' is
> not
> > > > available. Transformations will not be applied.
> > > >  12:07:44,309 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy scripting
> engine
> > is
> > > > not initialized. Data transformation skipped.
> > > >  12:07:44,800 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy script
> > > > '/etc/cloudstack/agent/hooks/libvirt-vm-state-change.groovy' is not
> > > > available. Transformations will not be applied.
> > > >  12:07:44,801 WARN  [kvm.resource.LibvirtKvmAgentHook]
> > > > (agentRequest-Handler-5:null) (logid:a59f3a95) Groovy scripting
> engine
> > is
> > > > not initialized. Data transformation skipped.
> > > >
> > > > I only changed the option guest.cpu.mode in the agent file of both
> > host.
> > > > And restarted the agent and libvirtd. The host os is Centos 7. The
> > machine
> > > > starts sucessfully but the cpu is still set to qemu virtual cpu. Did
> I
> > miss
> > > > something during the configuration. Both the KVM host are of same
> > > > specification.
> > > > I will be grateful for any help.
> > > >
> > > > Thank You.
> > > >
> > > >
> > >
> >
>

Reply via email to