virtio-win / virtio-win-pkg-scripts

Scripts for packaging virtio-win drivers
GNU General Public License v2.0
1.94k stars 150 forks source link

Balloon driver installation failure on Windows Server 2008 R2 #58

Open MohammadrezaNasrabadi opened 2 years ago

MohammadrezaNasrabadi commented 2 years ago

Hi, I want to install some drivers for Windows Server 2008 R2 VM, using autounattend.xml file to automatically install my needed drivers.

My desired drivers were installed successfully, but when I want to install the ballooning driver located in iso virtio image, I face with error shown here:

image_2022-04-05_14-46-23

I used the latest stable version of virtio-win.iso linked in repository. Also I used old versions but I faced with same error. I would be appreciate if you help me.

MohammadrezaNasrabadi commented 2 years ago

This is part of my autounattend file that I specified which drivers must be installed.

<PathAndCredentials wcm:action="add" wcm:keyValue="1">
    <Path>E:\NetKVM\2k8r2\amd64\</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="2">
    <Path>E:\amd64\2K8R2\</Path>
</PathAndCredentials>
<PathAndCredentials wcm:action="add" wcm:keyValue="3">
    <Path>E:\Balloon\2k8r2\amd64\</Path>
</PathAndCredentials>
YanVugenfirer commented 2 years ago

Hi @MohammadrezaNasrabadi ,

In the latest packages we removed the support of older OSes. The oldest OS that is supported is Windows 8 (Windows Server 2012).

MohammadrezaNasrabadi commented 2 years ago

Hi @MohammadrezaNasrabadi ,

In the latest packages we removed the support of older OSes. The oldest OS that is supported is Windows 8 (Windows Server 2012).

Hi @YanVugenfirer

Thanks for your response.

Could you please tell me which version of older virtio supports Windows Server 2008 R2 drivers?

YanVugenfirer commented 2 years ago

@vrozenfe can you please write what's the lates version with Windows Server 2008 R2 drivers ?

vrozenfe commented 2 years ago

E:\Balloon\2k8r2\amd64\ from "latest" (https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/archive-virtio/virtio-win-0.1.215-2/) should work. The balloon driver there is from build 174 cross-signed with RH SHA1 certificate issued by DigiCert

Do you have any problems installing the balloon driver manually on WS2008R2 VM?

Thanks, Vadim.

MohammadrezaNasrabadi commented 2 years ago

Hi dear @vrozenfe thanks for sharing the link

As you said, I tried to install VirtIO Balloonnig driver whether with automatically with autounattend file or manually based on the version you mentioned, but with both approaches it doesn't work.

After many trying since yesterday, when I tried to install manually, there are warnings that I faced them:

image_2022-04-07_12-18-39

image_2022-04-07_12-22-30

Despite of your comment that this driver has issued by certificate, I guess that for this specific driver, there is not any digital signing or certificate for validation.

image_2022-04-07_12-33-43

vrozenfe commented 2 years ago

@MohammadrezaNasrabadi No worries. Do you have the balloon device attached to your VM? Can you please share the qemu command line and the qemu version?

Thanks, Vadim.

MohammadrezaNasrabadi commented 2 years ago

@MohammadrezaNasrabadi No worries. Do you have the balloon device attached to your VM? Can you please share the qemu command line and the qemu version?

Thanks, Vadim.

I just added balloon device now, there is results:

In autounattend mode i faced with this accident: image_2022-04-07_15-21-40

In manually, is the same mentioned in previous comment

This is my qemu command line:

/usr/bin/qemu-system-x86_64 -netdev user,id=user.0 -boot once=d \
-qmp unix:qemu-drives/windows-server-2008-r2.monitor,server,nowait \
-name windows-server-2008-r2 \
-drive file=qemu-drives/windows-server-2008-r2,if=virtio,cache=writeback,discard=unmap,format=qcow2,index=4 \
-drive file=virtio-win.iso,media=cdrom,index=3 \
-drive if=virtio,file=install.iso,index=5,media=cdrom \
-cdrom windows_server_2008_r2.iso -smp cpus=2,sockets=2 \
-vnc 0.0.0.0:91 \
-fda /tmp/packer1618261514 \
-machine type=pc,accel=kvm \
-device virtio-balloon-pci,deflate-on-oom=on \
-device virtio-net,netdev=user.0 \
-m 4096M

The version of my qemu is: 5.2.0

vrozenfe commented 2 years ago

@MohammadrezaNasrabadi

Thanks, I need to check it then. bugcheck code 7E usually happens when installing Win8 drivers on Win7/WS2008R2 platforms. https://github.com/virtio-win/kvm-guest-drivers-windows/issues/61

Best, Vadim.

MohammadrezaNasrabadi commented 2 years ago

@MohammadrezaNasrabadi

Thanks, I need to check it then. bugcheck code 7E usually happens when installing Win8 drivers on Win7/WS2008R2 platforms. virtio-win/kvm-guest-drivers-windows#61

Best, Vadim.

Thanks a lot

I will waiting for you ;)

vrozenfe commented 2 years ago

@MohammadrezaNasrabadi Confirmed. Ping me at vrozenfe_at_redhat_dot_com Vadim.