Hi Ruben, thx fort he link!
-----Ursprüngliche Nachricht----- Von: Ruben Bosch <ruben.bo...@cldin.eu> 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, <m...@swen.io> <m...@swen.io> 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 <n...@li.nux.ro> > 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 <n...@li.nux.ro> >> 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 <ustcweiz...@gmail.com> >>> 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 xxxx", 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, <m...@swen.io> wrote: >>> >>>> Thx, Wei, I used OS Type Windows Server 2022 (64-bit). Is this not >>>> working? >>>> >>>> -----Ursprüngliche Nachricht----- >>>> Von: Wei ZHOU <ustcweiz...@gmail.com> >>>> 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, <m...@swen.io> 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 >>>>> >>>>> >>>> >>>> >>>> > >