Re: running Windows VM on Ubuntu 22 KVM

2023-12-13 Thread Nux
This is already possible. Stop the VM, go to Settings, change the 
rootDiskController and/or dataDiskController as you please.


https://i.imgur.com/ns7Cdzm.jpg

On 2023-12-13 06:16, Pratik Chandrakar wrote:

Hi Wei,
I think lots of users are unaware of PV OS Type to improve the 
performance,

I was also facing the same problem with Windows Machine and thanks to
this thread I also got better disk performance. So instead of changing 
the

OS type can ACS provide an option within the UI to change the
virtualization/driver (e.g. scsi/ide) mode in a stopped VM?

On Mon, Dec 11, 2023 at 4:14 PM Wei ZHOU  wrote:

If the OS type is "Windows Server ", the VM will be started with 
an

E1000 nic device and IDE disk.

You need to change to "Windows PV", vm will have virtio NIC and disk.
If you want better disk performance, you can try with "Other PV 
Virtio-SCSI

(64-bit)", which might require some changes on your windows templates.

-Wei


On Mon, 11 Dec 2023 at 11:34,  wrote:

> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not
working?
>
> -Ursprüngliche Nachricht-
> Von: Wei ZHOU 
> Gesendet: Montag, 11. Dezember 2023 11:29
> An: users@cloudstack.apache.org
> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>
> You can stop the vm, change the OS type to "Windows PV" and then start
the
> vm.
>
> -Wei
>
> On Mon, 11 Dec 2023 at 11:17,  wrote:
>
> > Hi all,
> >
> >
> >
> > I am kind of new to use KVM for Windows VMs and run into some problems.
> >
> > I used an English template for Windows Server 2022 and installed a VM
> > successfully via Cloudstack. Everything looks good and the NIC is
> > working Intel PRO 1000 emulation.
> >
> > As far as I understand you need to install the VirtIO driver to get a
> > better performance from your VM. I downloaded the ISO from:
> >
> > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stabl
> > e-virt
> > io/virtio-win.iso
> > <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stab
> > le-virtio/virtio-win.iso>
> >
> > And installed them inside the Windows Sever VM successfully. But even
> > after a reboot of the VM it looks like it is still using the emulated
> > Intel PRO
> > 1000 NIC and also QEMU ATA drivers for disk access.
> >
> >
> >
> > Did I miss something? Do I need to install anything on the KVM host,
too?
> > Performance is very poor inside the Wind VM.
> >
> >
> >
> > Thx for any help!
> >
> >
> >
> > Regards,
> >
> > Swen
> >
> >
>
>
>



Re: running Windows VM on Ubuntu 22 KVM

2023-12-12 Thread Pratik Chandrakar
Hi Wei,
I think lots of users are unaware of PV OS Type to improve the performance,
I was also facing the same problem with Windows Machine and thanks to
this thread I also got better disk performance. So instead of changing the
OS type can ACS provide an option within the UI to change the
virtualization/driver (e.g. scsi/ide) mode in a stopped VM?

On Mon, Dec 11, 2023 at 4:14 PM Wei ZHOU  wrote:

> If the OS type is "Windows Server ", the VM will be started with an
> E1000 nic device and IDE disk.
>
> You need to change to "Windows PV", vm will have virtio NIC and disk.
> If you want better disk performance, you can try with "Other PV Virtio-SCSI
> (64-bit)", which might require some changes on your windows templates.
>
> -Wei
>
>
> On Mon, 11 Dec 2023 at 11:34,  wrote:
>
> > Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not
> working?
> >
> > -Ursprüngliche Nachricht-
> > Von: Wei ZHOU 
> > Gesendet: Montag, 11. Dezember 2023 11:29
> > An: users@cloudstack.apache.org
> > Betreff: Re: running Windows VM on Ubuntu 22 KVM
> >
> > You can stop the vm, change the OS type to "Windows PV" and then start
> the
> > vm.
> >
> > -Wei
> >
> > On Mon, 11 Dec 2023 at 11:17,  wrote:
> >
> > > Hi all,
> > >
> > >
> > >
> > > I am kind of new to use KVM for Windows VMs and run into some problems.
> > >
> > > I used an English template for Windows Server 2022 and installed a VM
> > > successfully via Cloudstack. Everything looks good and the NIC is
> > > working Intel PRO 1000 emulation.
> > >
> > > As far as I understand you need to install the VirtIO driver to get a
> > > better performance from your VM. I downloaded the ISO from:
> > >
> > > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stabl
> > > e-virt
> > > io/virtio-win.iso
> > > <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stab
> > > le-virtio/virtio-win.iso>
> > >
> > > And installed them inside the Windows Sever VM successfully. But even
> > > after a reboot of the VM it looks like it is still using the emulated
> > > Intel PRO
> > > 1000 NIC and also QEMU ATA drivers for disk access.
> > >
> > >
> > >
> > > Did I miss something? Do I need to install anything on the KVM host,
> too?
> > > Performance is very poor inside the Wind VM.
> > >
> > >
> > >
> > > Thx for any help!
> > >
> > >
> > >
> > > Regards,
> > >
> > > Swen
> > >
> > >
> >
> >
> >
>


-- 
*Regards,*
*Pratik Chandrakar*


AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread me
Hi Ruben,

thx fort he link!

-Ursprüngliche Nachricht-
Von: Ruben Bosch  
Gesendet: Montag, 11. Dezember 2023 16:01
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

This is related to cgroups in Ubuntu 22: 
https://github.com/apache/cloudstack/issues/6744 

Met vriendelijke groet / Kind regards,

Ruben Bosch
CLDIN

> On 11 Dec 2023, at 15:42,   wrote:
> 
> I did some testing and it looks like dynamic scale of cpu works, but I get 
> this error:
> 
> 2023-12-11 15:35:52,098 ERROR [c.c.v.VmWorkJobHandlerProxy] 
> (Work-Job-Executor-124:ctx-66fc7dd5 job-656/job-657 ctx-08b950d5) 
> (logid:99e455c2) Invocation exception, caused by: 
> com.cloud.utils.exception.CloudRuntimeException: Unable to scale vm due to 
> Unable to scale VM {id: "50", name: "i-6-50-VM", uuid: 
> "3d11e9a9-1c38-47d8-91c1-cfda96470e57", type: "User"} memory to [4194304 
> KiB], CPU cores to [6] and cpu_shares to [12000] due to [error from service: 
> GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Value specified in 
> CPUWeight is out of range].
> 
> What I mean by it looks like it works is that the VM shows the new cpu value, 
> but CS runs into an error and shows the old value for cpu.
> Any idea what "Value specified in CPUWeight is out of range" means?
> 
> -Ursprüngliche Nachricht-
> Von: Nux 
> Gesendet: Montag, 11. Dezember 2023 12:57
> An: users@cloudstack.apache.org
> Cc: m...@swen.io
> Betreff: Re: AW: AW: running Windows VM on Ubuntu 22 KVM
> 
> If it is then it will certainly require the virtio drivers.
> That said I always avoided doing this operation, often prone to crashes in my 
> experience.
> 
> On 2023-12-11 11:53, m...@swen.io wrote:
>> Hi Nux,
>> 
>> thx, virtio-win-gt-x64.msi was the missing link. Now VM-snapshot do 
>> work!
>> What is not working at the moment is dynamically scaling cpu of a 
>> running VM. Is this even possible with Windows?
>> 
>> Regards,
>> Swen
>> 
>> -Ursprüngliche Nachricht-
>> Von: Nux 
>> Gesendet: Montag, 11. Dezember 2023 12:41
>> An: users@cloudstack.apache.org
>> Cc: m...@swen.io
>> Betreff: Re: AW: running Windows VM on Ubuntu 22 KVM
>> 
>> You can VM snapshot Windows, no issues, doesn't need any special tools.
>> That said, I usually bundle virtio drivers and QEMU guest agent in 
>> Windows VMs.
>> Basically install something like this:
>> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/arch
>> i ve-virtio/virtio-win-0.1.240-1/virtio-win-gt-x64.msi
>> 
>> On 2023-12-11 11:26, m...@swen.io wrote:
>>> Is it possible to create VM-snapshots of Windows VMs? Do I need to 
>>> install other guest tools?
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: Wei ZHOU 
>>> Gesendet: Montag, 11. Dezember 2023 11:43
>>> An: users@cloudstack.apache.org
>>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>>> 
>>> If the OS type is "Windows Server ", the VM will be started with 
>>> an
>>> E1000 nic device and IDE disk.
>>> 
>>> You need to change to "Windows PV", vm will have virtio NIC and disk.
>>> If you want better disk performance, you can try with "Other PV 
>>> Virtio-SCSI (64-bit)", which might require some changes on your 
>>> windows templates.
>>> 
>>> -Wei
>>> 
>>> 
>>> On Mon, 11 Dec 2023 at 11:34,  wrote:
>>> 
>>>> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not 
>>>> working?
>>>> 
>>>> -Ursprüngliche Nachricht-
>>>> Von: Wei ZHOU 
>>>> Gesendet: Montag, 11. Dezember 2023 11:29
>>>> An: users@cloudstack.apache.org
>>>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>>>> 
>>>> You can stop the vm, change the OS type to "Windows PV" and then 
>>>> start the vm.
>>>> 
>>>> -Wei
>>>> 
>>>> On Mon, 11 Dec 2023 at 11:17,  wrote:
>>>> 
>>>>> Hi all,
>>>>> 
>>>>> 
>>>>> 
>>>>> I am kind of new to use KVM for Windows VMs and run into some problems.
>>>>> 
>>>>> I used an English template for Windows Server 2022 and installed a 
>>>>> VM successfully via Cloudstack. Everything looks good and the NIC 
>>>>> is working Intel PRO 1000 emulation.
>>>>> 
>>>>> As far as I understand you need to install the VirtIO driver to 
>>>>> get a better performance from your VM. I downloaded the ISO from:
>>>>> 
>>>>> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/s
>>>>> t
>>>>> a
>>>>> bl
>>>>> e-virt
>>>>> io/virtio-win.iso
>>>>> <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/
>>>>> s
>>>>> t
>>>>> ab
>>>>> le-virtio/virtio-win.iso>
>>>>> 
>>>>> And installed them inside the Windows Sever VM successfully. But 
>>>>> even after a reboot of the VM it looks like it is still using the 
>>>>> emulated Intel PRO
>>>>> 1000 NIC and also QEMU ATA drivers for disk access.
>>>>> 
>>>>> 
>>>>> 
>>>>> Did I miss something? Do I need to install anything on the KVM host, too?
>>>>> Performance is very poor inside the Wind VM.
>>>>> 
>>>>> 
>>>>> 
>>>>> Thx for any help!
>>>>> 
>>>>> 
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Swen
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
> 
> 





Re: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread Ruben Bosch
This is related to cgroups in Ubuntu 22: 
https://github.com/apache/cloudstack/issues/6744 

Met vriendelijke groet / Kind regards,

Ruben Bosch
CLDIN

> On 11 Dec 2023, at 15:42,   wrote:
> 
> I did some testing and it looks like dynamic scale of cpu works, but I get 
> this error:
> 
> 2023-12-11 15:35:52,098 ERROR [c.c.v.VmWorkJobHandlerProxy] 
> (Work-Job-Executor-124:ctx-66fc7dd5 job-656/job-657 ctx-08b950d5) 
> (logid:99e455c2) Invocation exception, caused by: 
> com.cloud.utils.exception.CloudRuntimeException: Unable to scale vm due to 
> Unable to scale VM {id: "50", name: "i-6-50-VM", uuid: 
> "3d11e9a9-1c38-47d8-91c1-cfda96470e57", type: "User"} memory to [4194304 
> KiB], CPU cores to [6] and cpu_shares to [12000] due to [error from service: 
> GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Value specified in 
> CPUWeight is out of range].
> 
> What I mean by it looks like it works is that the VM shows the new cpu value, 
> but CS runs into an error and shows the old value for cpu.
> Any idea what "Value specified in CPUWeight is out of range" means?
> 
> -Ursprüngliche Nachricht-
> Von: Nux  
> Gesendet: Montag, 11. Dezember 2023 12:57
> An: users@cloudstack.apache.org
> Cc: m...@swen.io
> Betreff: Re: AW: AW: running Windows VM on Ubuntu 22 KVM
> 
> If it is then it will certainly require the virtio drivers.
> That said I always avoided doing this operation, often prone to crashes in my 
> experience.
> 
> On 2023-12-11 11:53, m...@swen.io wrote:
>> Hi Nux,
>> 
>> thx, virtio-win-gt-x64.msi was the missing link. Now VM-snapshot do 
>> work!
>> What is not working at the moment is dynamically scaling cpu of a 
>> running VM. Is this even possible with Windows?
>> 
>> Regards,
>> Swen
>> 
>> -Ursprüngliche Nachricht-
>> Von: Nux 
>> Gesendet: Montag, 11. Dezember 2023 12:41
>> An: users@cloudstack.apache.org
>> Cc: m...@swen.io
>> Betreff: Re: AW: running Windows VM on Ubuntu 22 KVM
>> 
>> You can VM snapshot Windows, no issues, doesn't need any special tools.
>> That said, I usually bundle virtio drivers and QEMU guest agent in 
>> Windows VMs.
>> Basically install something like this:
>> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archi
>> ve-virtio/virtio-win-0.1.240-1/virtio-win-gt-x64.msi
>> 
>> On 2023-12-11 11:26, m...@swen.io wrote:
>>> Is it possible to create VM-snapshots of Windows VMs? Do I need to 
>>> install other guest tools?
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: Wei ZHOU 
>>> Gesendet: Montag, 11. Dezember 2023 11:43
>>> An: users@cloudstack.apache.org
>>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>>> 
>>> If the OS type is "Windows Server ", the VM will be started with 
>>> an
>>> E1000 nic device and IDE disk.
>>> 
>>> You need to change to "Windows PV", vm will have virtio NIC and disk.
>>> If you want better disk performance, you can try with "Other PV 
>>> Virtio-SCSI (64-bit)", which might require some changes on your 
>>> windows templates.
>>> 
>>> -Wei
>>> 
>>> 
>>> On Mon, 11 Dec 2023 at 11:34,  wrote:
>>> 
>>>> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not 
>>>> working?
>>>> 
>>>> -Ursprüngliche Nachricht-
>>>> Von: Wei ZHOU 
>>>> Gesendet: Montag, 11. Dezember 2023 11:29
>>>> An: users@cloudstack.apache.org
>>>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>>>> 
>>>> You can stop the vm, change the OS type to "Windows PV" and then 
>>>> start the vm.
>>>> 
>>>> -Wei
>>>> 
>>>> On Mon, 11 Dec 2023 at 11:17,  wrote:
>>>> 
>>>>> Hi all,
>>>>> 
>>>>> 
>>>>> 
>>>>> I am kind of new to use KVM for Windows VMs and run into some problems.
>>>>> 
>>>>> I used an English template for Windows Server 2022 and installed a 
>>>>> VM successfully via Cloudstack. Everything looks good and the NIC 
>>>>> is working Intel PRO 1000 emulation.
>>>>> 
>>>>> As far as I understand you need to install the VirtIO driver to 
>>>>> get a better performance from your VM. I downloaded the ISO from:
>>>>> 
>>>>> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/s
>>>>> t
>>>>> a
>>>>> bl
>>>>> e-virt
>>>>> io/virtio-win.iso
>>>>> <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/
>>>>> s
>>>>> t
>>>>> ab
>>>>> le-virtio/virtio-win.iso>
>>>>> 
>>>>> And installed them inside the Windows Sever VM successfully. But 
>>>>> even after a reboot of the VM it looks like it is still using the 
>>>>> emulated Intel PRO
>>>>> 1000 NIC and also QEMU ATA drivers for disk access.
>>>>> 
>>>>> 
>>>>> 
>>>>> Did I miss something? Do I need to install anything on the KVM host, too?
>>>>> Performance is very poor inside the Wind VM.
>>>>> 
>>>>> 
>>>>> 
>>>>> Thx for any help!
>>>>> 
>>>>> 
>>>>> 
>>>>> Regards,
>>>>> 
>>>>> Swen
>>>>> 
>>>>> 
>>>> 
>>>> 
>>>> 
> 
> 



AW: AW: AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread me
I did some testing and it looks like dynamic scale of cpu works, but I get this 
error:

2023-12-11 15:35:52,098 ERROR [c.c.v.VmWorkJobHandlerProxy] 
(Work-Job-Executor-124:ctx-66fc7dd5 job-656/job-657 ctx-08b950d5) 
(logid:99e455c2) Invocation exception, caused by: 
com.cloud.utils.exception.CloudRuntimeException: Unable to scale vm due to 
Unable to scale VM {id: "50", name: "i-6-50-VM", uuid: 
"3d11e9a9-1c38-47d8-91c1-cfda96470e57", type: "User"} memory to [4194304 KiB], 
CPU cores to [6] and cpu_shares to [12000] due to [error from service: 
GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Value specified in 
CPUWeight is out of range].

What I mean by it looks like it works is that the VM shows the new cpu value, 
but CS runs into an error and shows the old value for cpu.
Any idea what "Value specified in CPUWeight is out of range" means?

-Ursprüngliche Nachricht-
Von: Nux  
Gesendet: Montag, 11. Dezember 2023 12:57
An: users@cloudstack.apache.org
Cc: m...@swen.io
Betreff: Re: AW: AW: running Windows VM on Ubuntu 22 KVM

If it is then it will certainly require the virtio drivers.
That said I always avoided doing this operation, often prone to crashes in my 
experience.

On 2023-12-11 11:53, m...@swen.io wrote:
> Hi Nux,
> 
> thx, virtio-win-gt-x64.msi was the missing link. Now VM-snapshot do 
> work!
> What is not working at the moment is dynamically scaling cpu of a 
> running VM. Is this even possible with Windows?
> 
> Regards,
> Swen
> 
> -Ursprüngliche Nachricht-
> Von: Nux 
> Gesendet: Montag, 11. Dezember 2023 12:41
> An: users@cloudstack.apache.org
> Cc: m...@swen.io
> Betreff: Re: AW: running Windows VM on Ubuntu 22 KVM
> 
> You can VM snapshot Windows, no issues, doesn't need any special tools.
> That said, I usually bundle virtio drivers and QEMU guest agent in 
> Windows VMs.
> Basically install something like this:
> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archi
> ve-virtio/virtio-win-0.1.240-1/virtio-win-gt-x64.msi
> 
> On 2023-12-11 11:26, m...@swen.io wrote:
>> Is it possible to create VM-snapshots of Windows VMs? Do I need to 
>> install other guest tools?
>> 
>> -Ursprüngliche Nachricht-----
>> Von: Wei ZHOU 
>> Gesendet: Montag, 11. Dezember 2023 11:43
>> An: users@cloudstack.apache.org
>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>> 
>> If the OS type is "Windows Server ", the VM will be started with 
>> an
>> E1000 nic device and IDE disk.
>> 
>> You need to change to "Windows PV", vm will have virtio NIC and disk.
>> If you want better disk performance, you can try with "Other PV 
>> Virtio-SCSI (64-bit)", which might require some changes on your 
>> windows templates.
>> 
>> -Wei
>> 
>> 
>> On Mon, 11 Dec 2023 at 11:34,  wrote:
>> 
>>> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not 
>>> working?
>>> 
>>> -Ursprüngliche Nachricht-
>>> Von: Wei ZHOU 
>>> Gesendet: Montag, 11. Dezember 2023 11:29
>>> An: users@cloudstack.apache.org
>>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>>> 
>>> You can stop the vm, change the OS type to "Windows PV" and then 
>>> start the vm.
>>> 
>>> -Wei
>>> 
>>> On Mon, 11 Dec 2023 at 11:17,  wrote:
>>> 
>>> > Hi all,
>>> >
>>> >
>>> >
>>> > I am kind of new to use KVM for Windows VMs and run into some problems.
>>> >
>>> > I used an English template for Windows Server 2022 and installed a 
>>> > VM successfully via Cloudstack. Everything looks good and the NIC 
>>> > is working Intel PRO 1000 emulation.
>>> >
>>> > As far as I understand you need to install the VirtIO driver to 
>>> > get a better performance from your VM. I downloaded the ISO from:
>>> >
>>> > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/s
>>> > t
>>> > a
>>> > bl
>>> > e-virt
>>> > io/virtio-win.iso
>>> > <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/
>>> > s
>>> > t
>>> > ab
>>> > le-virtio/virtio-win.iso>
>>> >
>>> > And installed them inside the Windows Sever VM successfully. But 
>>> > even after a reboot of the VM it looks like it is still using the 
>>> > emulated Intel PRO
>>> > 1000 NIC and also QEMU ATA drivers for disk access.
>>> >
>>> >
>>> >
>>> > Did I miss something? Do I need to install anything on the KVM host, too?
>>> > Performance is very poor inside the Wind VM.
>>> >
>>> >
>>> >
>>> > Thx for any help!
>>> >
>>> >
>>> >
>>> > Regards,
>>> >
>>> > Swen
>>> >
>>> >
>>> 
>>> 
>>> 




Re: AW: AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread Nux

If it is then it will certainly require the virtio drivers.
That said I always avoided doing this operation, often prone to crashes 
in my experience.


On 2023-12-11 11:53, m...@swen.io wrote:

Hi Nux,

thx, virtio-win-gt-x64.msi was the missing link. Now VM-snapshot do 
work!
What is not working at the moment is dynamically scaling cpu of a 
running VM. Is this even possible with Windows?


Regards,
Swen

-Ursprüngliche Nachricht-
Von: Nux 
Gesendet: Montag, 11. Dezember 2023 12:41
An: users@cloudstack.apache.org
Cc: m...@swen.io
Betreff: Re: AW: running Windows VM on Ubuntu 22 KVM

You can VM snapshot Windows, no issues, doesn't need any special tools.
That said, I usually bundle virtio drivers and QEMU guest agent in 
Windows VMs.

Basically install something like this:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/virtio-win-gt-x64.msi

On 2023-12-11 11:26, m...@swen.io wrote:

Is it possible to create VM-snapshots of Windows VMs? Do I need to
install other guest tools?

-Ursprüngliche Nachricht-
Von: Wei ZHOU 
Gesendet: Montag, 11. Dezember 2023 11:43
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

If the OS type is "Windows Server ", the VM will be started with
an
E1000 nic device and IDE disk.

You need to change to "Windows PV", vm will have virtio NIC and disk.
If you want better disk performance, you can try with "Other PV
Virtio-SCSI (64-bit)", which might require some changes on your
windows templates.

-Wei


On Mon, 11 Dec 2023 at 11:34,  wrote:


Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not
working?

-Ursprüngliche Nachricht-
Von: Wei ZHOU 
Gesendet: Montag, 11. Dezember 2023 11:29
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

You can stop the vm, change the OS type to "Windows PV" and then
start the vm.

-Wei

On Mon, 11 Dec 2023 at 11:17,  wrote:

> Hi all,
>
>
>
> I am kind of new to use KVM for Windows VMs and run into some problems.
>
> I used an English template for Windows Server 2022 and installed a
> VM successfully via Cloudstack. Everything looks good and the NIC
> is working Intel PRO 1000 emulation.
>
> As far as I understand you need to install the VirtIO driver to get
> a better performance from your VM. I downloaded the ISO from:
>
> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/st
> a
> bl
> e-virt
> io/virtio-win.iso
> <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/s
> t
> ab
> le-virtio/virtio-win.iso>
>
> And installed them inside the Windows Sever VM successfully. But
> even after a reboot of the VM it looks like it is still using the
> emulated Intel PRO
> 1000 NIC and also QEMU ATA drivers for disk access.
>
>
>
> Did I miss something? Do I need to install anything on the KVM host, too?
> Performance is very poor inside the Wind VM.
>
>
>
> Thx for any help!
>
>
>
> Regards,
>
> Swen
>
>





AW: AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread me
Hi Nux,

thx, virtio-win-gt-x64.msi was the missing link. Now VM-snapshot do work!
What is not working at the moment is dynamically scaling cpu of a running VM. 
Is this even possible with Windows?

Regards,
Swen

-Ursprüngliche Nachricht-
Von: Nux  
Gesendet: Montag, 11. Dezember 2023 12:41
An: users@cloudstack.apache.org
Cc: m...@swen.io
Betreff: Re: AW: running Windows VM on Ubuntu 22 KVM

You can VM snapshot Windows, no issues, doesn't need any special tools.
That said, I usually bundle virtio drivers and QEMU guest agent in Windows VMs.
Basically install something like this:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/virtio-win-gt-x64.msi

On 2023-12-11 11:26, m...@swen.io wrote:
> Is it possible to create VM-snapshots of Windows VMs? Do I need to 
> install other guest tools?
> 
> -Ursprüngliche Nachricht-
> Von: Wei ZHOU 
> Gesendet: Montag, 11. Dezember 2023 11:43
> An: users@cloudstack.apache.org
> Betreff: Re: running Windows VM on Ubuntu 22 KVM
> 
> If the OS type is "Windows Server ", the VM will be started with 
> an
> E1000 nic device and IDE disk.
> 
> You need to change to "Windows PV", vm will have virtio NIC and disk.
> If you want better disk performance, you can try with "Other PV 
> Virtio-SCSI (64-bit)", which might require some changes on your 
> windows templates.
> 
> -Wei
> 
> 
> On Mon, 11 Dec 2023 at 11:34,  wrote:
> 
>> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not 
>> working?
>> 
>> -Ursprüngliche Nachricht-
>> Von: Wei ZHOU 
>> Gesendet: Montag, 11. Dezember 2023 11:29
>> An: users@cloudstack.apache.org
>> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>> 
>> You can stop the vm, change the OS type to "Windows PV" and then 
>> start the vm.
>> 
>> -Wei
>> 
>> On Mon, 11 Dec 2023 at 11:17,  wrote:
>> 
>> > Hi all,
>> >
>> >
>> >
>> > I am kind of new to use KVM for Windows VMs and run into some problems.
>> >
>> > I used an English template for Windows Server 2022 and installed a 
>> > VM successfully via Cloudstack. Everything looks good and the NIC 
>> > is working Intel PRO 1000 emulation.
>> >
>> > As far as I understand you need to install the VirtIO driver to get 
>> > a better performance from your VM. I downloaded the ISO from:
>> >
>> > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/st
>> > a
>> > bl
>> > e-virt
>> > io/virtio-win.iso
>> > <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/s
>> > t
>> > ab
>> > le-virtio/virtio-win.iso>
>> >
>> > And installed them inside the Windows Sever VM successfully. But 
>> > even after a reboot of the VM it looks like it is still using the 
>> > emulated Intel PRO
>> > 1000 NIC and also QEMU ATA drivers for disk access.
>> >
>> >
>> >
>> > Did I miss something? Do I need to install anything on the KVM host, too?
>> > Performance is very poor inside the Wind VM.
>> >
>> >
>> >
>> > Thx for any help!
>> >
>> >
>> >
>> > Regards,
>> >
>> > Swen
>> >
>> >
>> 
>> 
>> 




Re: AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread Nux

You can VM snapshot Windows, no issues, doesn't need any special tools.
That said, I usually bundle virtio drivers and QEMU guest agent in 
Windows VMs.

Basically install something like this:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.240-1/virtio-win-gt-x64.msi

On 2023-12-11 11:26, m...@swen.io wrote:
Is it possible to create VM-snapshots of Windows VMs? Do I need to 
install other guest tools?


-Ursprüngliche Nachricht-
Von: Wei ZHOU 
Gesendet: Montag, 11. Dezember 2023 11:43
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

If the OS type is "Windows Server ", the VM will be started with an
E1000 nic device and IDE disk.

You need to change to "Windows PV", vm will have virtio NIC and disk.
If you want better disk performance, you can try with "Other PV 
Virtio-SCSI (64-bit)", which might require some changes on your windows 
templates.


-Wei


On Mon, 11 Dec 2023 at 11:34,  wrote:

Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not 
working?


-Ursprüngliche Nachricht-
Von: Wei ZHOU 
Gesendet: Montag, 11. Dezember 2023 11:29
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

You can stop the vm, change the OS type to "Windows PV" and then start
the vm.

-Wei

On Mon, 11 Dec 2023 at 11:17,  wrote:

> Hi all,
>
>
>
> I am kind of new to use KVM for Windows VMs and run into some problems.
>
> I used an English template for Windows Server 2022 and installed a
> VM successfully via Cloudstack. Everything looks good and the NIC is
> working Intel PRO 1000 emulation.
>
> As far as I understand you need to install the VirtIO driver to get
> a better performance from your VM. I downloaded the ISO from:
>
> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/sta
> bl
> e-virt
> io/virtio-win.iso
> <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/st
> ab
> le-virtio/virtio-win.iso>
>
> And installed them inside the Windows Sever VM successfully. But
> even after a reboot of the VM it looks like it is still using the
> emulated Intel PRO
> 1000 NIC and also QEMU ATA drivers for disk access.
>
>
>
> Did I miss something? Do I need to install anything on the KVM host, too?
> Performance is very poor inside the Wind VM.
>
>
>
> Thx for any help!
>
>
>
> Regards,
>
> Swen
>
>





AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread me
Is it possible to create VM-snapshots of Windows VMs? Do I need to install 
other guest tools?

-Ursprüngliche Nachricht-
Von: Wei ZHOU  
Gesendet: Montag, 11. Dezember 2023 11:43
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

If the OS type is "Windows Server ", the VM will be started with an
E1000 nic device and IDE disk.

You need to change to "Windows PV", vm will have virtio NIC and disk.
If you want better disk performance, you can try with "Other PV Virtio-SCSI 
(64-bit)", which might require some changes on your windows templates.

-Wei


On Mon, 11 Dec 2023 at 11:34,  wrote:

> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not working?
>
> -Ursprüngliche Nachricht-
> Von: Wei ZHOU 
> Gesendet: Montag, 11. Dezember 2023 11:29
> An: users@cloudstack.apache.org
> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>
> You can stop the vm, change the OS type to "Windows PV" and then start 
> the vm.
>
> -Wei
>
> On Mon, 11 Dec 2023 at 11:17,  wrote:
>
> > Hi all,
> >
> >
> >
> > I am kind of new to use KVM for Windows VMs and run into some problems.
> >
> > I used an English template for Windows Server 2022 and installed a 
> > VM successfully via Cloudstack. Everything looks good and the NIC is 
> > working Intel PRO 1000 emulation.
> >
> > As far as I understand you need to install the VirtIO driver to get 
> > a better performance from your VM. I downloaded the ISO from:
> >
> > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/sta
> > bl
> > e-virt
> > io/virtio-win.iso
> > <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/st
> > ab
> > le-virtio/virtio-win.iso>
> >
> > And installed them inside the Windows Sever VM successfully. But 
> > even after a reboot of the VM it looks like it is still using the 
> > emulated Intel PRO
> > 1000 NIC and also QEMU ATA drivers for disk access.
> >
> >
> >
> > Did I miss something? Do I need to install anything on the KVM host, too?
> > Performance is very poor inside the Wind VM.
> >
> >
> >
> > Thx for any help!
> >
> >
> >
> > Regards,
> >
> > Swen
> >
> >
>
>
>




Re: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread Wei ZHOU
If the OS type is "Windows Server ", the VM will be started with an
E1000 nic device and IDE disk.

You need to change to "Windows PV", vm will have virtio NIC and disk.
If you want better disk performance, you can try with "Other PV Virtio-SCSI
(64-bit)", which might require some changes on your windows templates.

-Wei


On Mon, 11 Dec 2023 at 11:34,  wrote:

> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not working?
>
> -Ursprüngliche Nachricht-
> Von: Wei ZHOU 
> Gesendet: Montag, 11. Dezember 2023 11:29
> An: users@cloudstack.apache.org
> Betreff: Re: running Windows VM on Ubuntu 22 KVM
>
> You can stop the vm, change the OS type to "Windows PV" and then start the
> vm.
>
> -Wei
>
> On Mon, 11 Dec 2023 at 11:17,  wrote:
>
> > Hi all,
> >
> >
> >
> > I am kind of new to use KVM for Windows VMs and run into some problems.
> >
> > I used an English template for Windows Server 2022 and installed a VM
> > successfully via Cloudstack. Everything looks good and the NIC is
> > working Intel PRO 1000 emulation.
> >
> > As far as I understand you need to install the VirtIO driver to get a
> > better performance from your VM. I downloaded the ISO from:
> >
> > https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stabl
> > e-virt
> > io/virtio-win.iso
> > <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stab
> > le-virtio/virtio-win.iso>
> >
> > And installed them inside the Windows Sever VM successfully. But even
> > after a reboot of the VM it looks like it is still using the emulated
> > Intel PRO
> > 1000 NIC and also QEMU ATA drivers for disk access.
> >
> >
> >
> > Did I miss something? Do I need to install anything on the KVM host, too?
> > Performance is very poor inside the Wind VM.
> >
> >
> >
> > Thx for any help!
> >
> >
> >
> > Regards,
> >
> > Swen
> >
> >
>
>
>


AW: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread me
Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not working?

-Ursprüngliche Nachricht-
Von: Wei ZHOU  
Gesendet: Montag, 11. Dezember 2023 11:29
An: users@cloudstack.apache.org
Betreff: Re: running Windows VM on Ubuntu 22 KVM

You can stop the vm, change the OS type to "Windows PV" and then start the vm.

-Wei

On Mon, 11 Dec 2023 at 11:17,  wrote:

> Hi all,
>
>
>
> I am kind of new to use KVM for Windows VMs and run into some problems.
>
> I used an English template for Windows Server 2022 and installed a VM 
> successfully via Cloudstack. Everything looks good and the NIC is 
> working Intel PRO 1000 emulation.
>
> As far as I understand you need to install the VirtIO driver to get a 
> better performance from your VM. I downloaded the ISO from:
>
> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stabl
> e-virt
> io/virtio-win.iso
> <https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stab
> le-virtio/virtio-win.iso>
>
> And installed them inside the Windows Sever VM successfully. But even 
> after a reboot of the VM it looks like it is still using the emulated 
> Intel PRO
> 1000 NIC and also QEMU ATA drivers for disk access.
>
>
>
> Did I miss something? Do I need to install anything on the KVM host, too?
> Performance is very poor inside the Wind VM.
>
>
>
> Thx for any help!
>
>
>
> Regards,
>
> Swen
>
>




Re: running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread Wei ZHOU
You can stop the vm, change the OS type to "Windows PV" and then start the
vm.

-Wei

On Mon, 11 Dec 2023 at 11:17,  wrote:

> Hi all,
>
>
>
> I am kind of new to use KVM for Windows VMs and run into some problems.
>
> I used an English template for Windows Server 2022 and installed a VM
> successfully via Cloudstack. Everything looks good and the NIC is working
> Intel PRO 1000 emulation.
>
> As far as I understand you need to install the VirtIO driver to get a
> better
> performance from your VM. I downloaded the ISO from:
>
> https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virt
> io/virtio-win.iso
> 
>
> And installed them inside the Windows Sever VM successfully. But even after
> a reboot of the VM it looks like it is still using the emulated Intel PRO
> 1000 NIC and also QEMU ATA drivers for disk access.
>
>
>
> Did I miss something? Do I need to install anything on the KVM host, too?
> Performance is very poor inside the Wind VM.
>
>
>
> Thx for any help!
>
>
>
> Regards,
>
> Swen
>
>


running Windows VM on Ubuntu 22 KVM

2023-12-11 Thread me
Hi all,

 

I am kind of new to use KVM for Windows VMs and run into some problems.

I used an English template for Windows Server 2022 and installed a VM
successfully via Cloudstack. Everything looks good and the NIC is working
Intel PRO 1000 emulation.

As far as I understand you need to install the VirtIO driver to get a better
performance from your VM. I downloaded the ISO from:
https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virt
io/virtio-win.iso

And installed them inside the Windows Sever VM successfully. But even after
a reboot of the VM it looks like it is still using the emulated Intel PRO
1000 NIC and also QEMU ATA drivers for disk access.

 

Did I miss something? Do I need to install anything on the KVM host, too?
Performance is very poor inside the Wind VM.

 

Thx for any help!

 

Regards,

Swen