You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Dmitriy Kaluzhniy <dm...@gmail.com> on 2017/10/02 12:58:03 UTC

Primary interface on Windows templates

Hello,
I was working with templates and find out that Windows templates
automatically gets E1000 interface. Is there any way to change it to
Virtio?

-- 




*​Best regards,Dmitriy Kaluzhniy+38 (073) 101 14 73*

Re: Primary interface on Windows templates

Posted by Andrija Panic <an...@gmail.com>.
ps aux | grep VMNAME and you can see differences I guess :) probably next
to none (but I didn't check really)

We run all Windows VMs as "windows PV", but have also implemented
additional "Hyper-V Enlightments flags for KVM" in XML definition for all
"OS types" that have word "Windows" in it (
https://www.linux-kvm.org/images/0/0a/2012-forum-kvm_hyperv.pdf ,
http://blog.wikichoon.com/2014/07/enabling-hyper-v-enlightenments-with-kvm.html
) - Windows 2008 and Windows 7 likes to crash with BSOD often in busy VMs
without these KVM flags...

Simply install Windows as Windows PV, during boot, insert ISO with recent
VirtIO drivers in order to load SCSI/VirtIO drivers, and you are fine. Upon
boot, again install VirtIO drivers for NIC, and then proceed normally to
generate Windows template....sysprep and the end and you are done.

Best


On 4 October 2017 at 15:00, Dmitriy Kaluzhniy <dm...@gmail.com>
wrote:

> As I found - it is hardcoded here -
> libvirtComputingResource.isGuestPVEnabled
> So, there are two ways or I change it in code, or I set OS Type for
> template "Windows PV" or "Other PV". What is the difference between this
> two types?
>
> 2017-10-04 14:36 GMT+03:00 Dmitriy Kaluzhniy <dmitriy.kaluzhniy@gmail.com
> >:
>
> > Hello,
> > Thank you for your answer, Ivan. Yes, I think it will work, but it is
> very
> > unstable variant. I hope it can be done in other way.
> >
> > 2017-10-02 17:46 GMT+03:00 Ivan Kudryavtsev <ku...@bw-sw.com>:
> >
> >> Hi, I believe that if you change os type to linux, you'll get it. But it
> >> could lead to problems with storage drivers as acs will announce it as
> >> virtio too.
> >>
> >> 2 окт. 2017 г. 19:58 пользователь "Dmitriy Kaluzhniy" <
> >> dmitriy.kaluzhniy@gmail.com> написал:
> >>
> >> > Hello,
> >> > I was working with templates and find out that Windows templates
> >> > automatically gets E1000 interface. Is there any way to change it to
> >> > Virtio?
> >> >
> >> > --
> >> >
> >> >
> >> >
> >> >
> >> > *​Best regards,Dmitriy Kaluzhniy+38 (073) 101 14 73*
> >> >
> >>
> >
> >
> >
> > --
> >
> >
> >
> > *--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*
> >
>
>
>
> --
>
>
>
> *--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*
>



-- 

Andrija Panić

Re: Primary interface on Windows templates

Posted by Simon Weller <sw...@ena.com.INVALID>.
Also note that as of 4.10 there is new support for Virtio-Scsi on KVM


Check out this PR note for an example of how to set it up on a template:

https://github.com/apache/cloudstack/pull/1955#issuecomment-284440859


- Si





________________________________
From: Dmitriy Kaluzhniy <dm...@gmail.com>
Sent: Wednesday, October 4, 2017 8:00 AM
To: dev@cloudstack.apache.org
Subject: Re: Primary interface on Windows templates

As I found - it is hardcoded here -
libvirtComputingResource.isGuestPVEnabled
So, there are two ways or I change it in code, or I set OS Type for
template "Windows PV" or "Other PV". What is the difference between this
two types?

2017-10-04 14:36 GMT+03:00 Dmitriy Kaluzhniy <dm...@gmail.com>:

> Hello,
> Thank you for your answer, Ivan. Yes, I think it will work, but it is very
> unstable variant. I hope it can be done in other way.
>
> 2017-10-02 17:46 GMT+03:00 Ivan Kudryavtsev <ku...@bw-sw.com>:
>
>> Hi, I believe that if you change os type to linux, you'll get it. But it
>> could lead to problems with storage drivers as acs will announce it as
>> virtio too.
>>
>> 2 окт. 2017 г. 19:58 пользователь "Dmitriy Kaluzhniy" <
>> dmitriy.kaluzhniy@gmail.com> написал:
>>
>> > Hello,
>> > I was working with templates and find out that Windows templates
>> > automatically gets E1000 interface. Is there any way to change it to
>> > Virtio?
>> >
>> > --
>> >
>> >
>> >
>> >
>> > *Best regards,Dmitriy Kaluzhniy+38 (073) 101 14 73*
>> >
>>
>
>
>
> --
>
>
>
> *--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*
>



--



*--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*

Re: Primary interface on Windows templates

Posted by Dmitriy Kaluzhniy <dm...@gmail.com>.
As I found - it is hardcoded here -
libvirtComputingResource.isGuestPVEnabled
So, there are two ways or I change it in code, or I set OS Type for
template "Windows PV" or "Other PV". What is the difference between this
two types?

2017-10-04 14:36 GMT+03:00 Dmitriy Kaluzhniy <dm...@gmail.com>:

> Hello,
> Thank you for your answer, Ivan. Yes, I think it will work, but it is very
> unstable variant. I hope it can be done in other way.
>
> 2017-10-02 17:46 GMT+03:00 Ivan Kudryavtsev <ku...@bw-sw.com>:
>
>> Hi, I believe that if you change os type to linux, you'll get it. But it
>> could lead to problems with storage drivers as acs will announce it as
>> virtio too.
>>
>> 2 окт. 2017 г. 19:58 пользователь "Dmitriy Kaluzhniy" <
>> dmitriy.kaluzhniy@gmail.com> написал:
>>
>> > Hello,
>> > I was working with templates and find out that Windows templates
>> > automatically gets E1000 interface. Is there any way to change it to
>> > Virtio?
>> >
>> > --
>> >
>> >
>> >
>> >
>> > *​Best regards,Dmitriy Kaluzhniy+38 (073) 101 14 73*
>> >
>>
>
>
>
> --
>
>
>
> *--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*
>



-- 



*--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*

Re: Primary interface on Windows templates

Posted by Dmitriy Kaluzhniy <dm...@gmail.com>.
Hello,
Thank you for your answer, Ivan. Yes, I think it will work, but it is very
unstable variant. I hope it can be done in other way.

2017-10-02 17:46 GMT+03:00 Ivan Kudryavtsev <ku...@bw-sw.com>:

> Hi, I believe that if you change os type to linux, you'll get it. But it
> could lead to problems with storage drivers as acs will announce it as
> virtio too.
>
> 2 окт. 2017 г. 19:58 пользователь "Dmitriy Kaluzhniy" <
> dmitriy.kaluzhniy@gmail.com> написал:
>
> > Hello,
> > I was working with templates and find out that Windows templates
> > automatically gets E1000 interface. Is there any way to change it to
> > Virtio?
> >
> > --
> >
> >
> >
> >
> > *​Best regards,Dmitriy Kaluzhniy+38 (073) 101 14 73*
> >
>



-- 



*--С уважением,Дмитрий Калюжный+38 (073) 101 14 73*

Re: Primary interface on Windows templates

Posted by Ivan Kudryavtsev <ku...@bw-sw.com>.
Hi, I believe that if you change os type to linux, you'll get it. But it
could lead to problems with storage drivers as acs will announce it as
virtio too.

2 окт. 2017 г. 19:58 пользователь "Dmitriy Kaluzhniy" <
dmitriy.kaluzhniy@gmail.com> написал:

> Hello,
> I was working with templates and find out that Windows templates
> automatically gets E1000 interface. Is there any way to change it to
> Virtio?
>
> --
>
>
>
>
> *​Best regards,Dmitriy Kaluzhniy+38 (073) 101 14 73*
>