[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

OT: Windows Server 2019 mit qemu-kvm virtualisieren



Hallo,

ich habe eine Frage, die möglicherweise etwas OT ist.

Ich habe einen Server mit Debian/Buster. Darauf möchte ich gerne in einer VM
Windows Server 2019 laufen lassen. Egal was ich versuche, die Installation
endet immer darin, dass nach dem ersten Reboot der VM folgende Meldung kommt:
"Der Computer wurde unerwartet neu gestartet oder ein unerwarteter Fehler ist
aufgetreten. Die Windows-Installation kann nicht fortgesetzt werden. Klicken
Sie auf "OK" um den Computer neu zustarten, und führen Sie dann die
Installation dann erneut aus."


Ich verwende das neuste ISO für Windows Server 2019 von der Microsoft-Webseite.
Ich habe bei "OS Information" die Einstellung "Microsoft Windows Server 2016"
ausgewählt, etwas neueres kennt virt-manager nicht (andere Einstellungen, bis
hin zu "generic", ändern nichts am Problem).
Egal ob ich für die Festplatte, NICs usw. als "Gerätemodell" virtio, e1000e,
SATA oder SCSI auswähle, es bleibt immer bei dieser Fehlermeldung. Stelle ich
alles auf virtio, ist es egal, ob ich den letzten stable Treiber oder den
latest build von Fedora nehme, egal welche Treiber ich unter Windows
installieren lassen, immer die gleiche Fehlermeldung.

Im Log steht zu den Startparametern der VM:
2020-07-12 11:44:12.060+0000: starting up libvirt version: 5.0.0, package: 4+deb10u1 (Guido Günther <agx@sigxcpu.org> Thu, 05 Dec 2019 00:22:14 +0100), qemu version: 3.1.0Debian 1:3.1+dfsg-8+deb10u5, kernel: 4.19.0-9-amd64, hostname: ahorn.innofinity.de
LC_ALL=C \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
QEMU_AUDIO_DRV=none \
/usr/bin/qemu-system-x86_64 \
-name guest=winav,debug-threads=on \
-S \
-object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-22-winav/master-key.aes \
-machine pc-q35-3.1,accel=kvm,usb=off,vmport=off,dump-guest-core=off \
-cpu SandyBridge-IBRS,vme=on,ss=on,pcid=on,hypervisor=on,arat=on,tsc_adjust=on,umip=on,md-clear=on,ssbd=on,xsaveopt=on,pdpe1gb=on,hv_time,hv_relaxed,hv_vapic,hv_spinlocks=0x1fff \
-m 16384 \
-realtime mlock=off \
-smp 8,sockets=8,cores=1,threads=1 \
-uuid 75eb731a-060f-499a-a7db-e198df697494 \
-no-user-config \
-nodefaults \
-chardev socket,id=charmonitor,fd=28,server,nowait \
-mon chardev=charmonitor,id=monitor,mode=control \
-rtc base=localtime,driftfix=slew \
-global kvm-pit.lost_tick_policy=delay \
-no-hpet \
-no-shutdown \
-global ICH9-LPC.disable_s3=1 \
-global ICH9-LPC.disable_s4=1 \
-boot menu=off,strict=on \
-device pcie-root-port,port=0x10,chassis=1,id=pci.1,bus=pcie.0,multifunction=on,addr=0x2 \
-device pcie-root-port,port=0x11,chassis=2,id=pci.2,bus=pcie.0,addr=0x2.0x1 \
-device pcie-root-port,port=0x12,chassis=3,id=pci.3,bus=pcie.0,addr=0x2.0x2 \
-device pcie-root-port,port=0x13,chassis=4,id=pci.4,bus=pcie.0,addr=0x2.0x3 \
-device pcie-root-port,port=0x14,chassis=5,id=pci.5,bus=pcie.0,addr=0x2.0x4 \
-device pcie-root-port,port=0x15,chassis=6,id=pci.6,bus=pcie.0,addr=0x2.0x5 \
-device pcie-root-port,port=0x16,chassis=7,id=pci.7,bus=pcie.0,addr=0x2.0x6 \
-device pcie-pci-bridge,id=pci.8,bus=pci.4,addr=0x0 \
-device qemu-xhci,p2=15,p3=15,id=usb,bus=pci.3,addr=0x0 \
-drive file=/dev/drbd14,format=raw,if=none,id=drive-sata0-0-0,cache=writeback,aio=threads \
-device ide-hd,bus=ide.0,drive=drive-sata0-0-0,id=sata0-0-0,bootindex=1,write-cache=on \
-drive file=/mnt/data/libvirt/images/17763.737.190906-2324.rs5_release_svc_refresh_SERVERESSENTIALS_OEM_x64FRE_de-de_1.iso,format=raw,if=none,id=drive-sata0-0-1,media=cdrom,readonly=on,cache=writethrough,aio=threads \
-device ide-cd,bus=ide.1,drive=drive-sata0-0-1,id=sata0-0-1,write-cache=off \
-drive file=/mnt/data/libvirt/images/virtio-win-0.1.185.iso,format=raw,if=none,id=drive-sata0-0-2,media=cdrom,readonly=on,cache=writethrough,aio=threads \
-device ide-cd,bus=ide.2,drive=drive-sata0-0-2,id=sata0-0-2,write-cache=off \
-netdev tap,fd=31,id=hostnet0 \
-device e1000e,netdev=hostnet0,id=net0,mac=52:54:00:7b:c6:3d,bus=pci.1,addr=0x0 \
-netdev tap,fd=32,id=hostnet1 \
-device e1000e,netdev=hostnet1,id=net1,mac=52:54:00:cc:61:e1,bus=pci.2,addr=0x0 \
-chardev pty,id=charserial0 \
-device isa-serial,chardev=charserial0,id=serial0 \
-device usb-tablet,id=input0,bus=usb.0,port=1 \
-vnc 127.0.0.1:2 \
-device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vram64_size_mb=0,vgamem_mb=16,max_outputs=1,bus=pcie.0,addr=0x1 \
-chardev spicevmc,id=charredir0,name=usbredir \
-device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 \
-chardev spicevmc,id=charredir1,name=usbredir \
-device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 \
-device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
-msg timestamp=on


Die XML-Datei von libvirt sieht so aus:
root@ahorn:~# cat /etc/libvirt/qemu/winav.xml 
<!--
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:
  virsh edit winav
or other application using the libvirt API.
-->

<domain type='kvm'>
  <name>winav</name>
  <uuid>75eb731a-060f-499a-a7db-e198df697494</uuid>
  <metadata>
    <libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0";>
      <libosinfo:os id="http://microsoft.com/win/2k16"/>
    </libosinfo:libosinfo>
  </metadata>
  <memory unit='KiB'>16777216</memory>
  <currentMemory unit='KiB'>16777216</currentMemory>
  <vcpu placement='static'>8</vcpu>
  <os>
    <type arch='x86_64' machine='pc-q35-3.1'>hvm</type>
    <bootmenu enable='no'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <hyperv>
      <relaxed state='on'/>
      <vapic state='on'/>
      <spinlocks state='on' retries='8191'/>
    </hyperv>
    <vmport state='off'/>
  </features>
  <cpu mode='host-model' check='partial'>
    <model fallback='allow'/>
  </cpu>
  <clock offset='localtime'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
    <timer name='hypervclock' present='yes'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <pm>
    <suspend-to-mem enabled='no'/>
    <suspend-to-disk enabled='no'/>
  </pm>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='writeback' io='threads'/>
      <source dev='/dev/drbd14'/>
      <target dev='sda' bus='sata'/>
      <boot order='1'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='writethrough' io='threads'/>
      <source file='/mnt/data/libvirt/images/17763.737.190906-2324.rs5_release_svc_refresh_SERVERESSENTIALS_OEM_x64FRE_de-de_1.iso'/>
      <target dev='sdb' bus='sata'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='writethrough' io='threads'/>
      <source file='/mnt/data/libvirt/images/virtio-win-0.1.185.iso'/>
      <target dev='sdc' bus='sata'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <controller type='usb' index='0' model='qemu-xhci' ports='15'>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='pci' index='6' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='6' port='0x15'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x5'/>
    </controller>
    <controller type='pci' index='7' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='7' port='0x16'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x6'/>
    </controller>
    <controller type='pci' index='8' model='pcie-to-pci-bridge'>
      <model name='pcie-pci-bridge'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:7b:c6:3d'/>
      <source bridge='br0_10'/>
      <model type='e1000e'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='52:54:00:cc:61:e1'/>
      <source bridge='br4'/>
      <model type='e1000e'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes'>
      <listen type='address'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='2'/>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='3'/>
    </redirdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
</domain>



Ich habe keine Idee was ich noch tun könnte. Alle Berichte im Internet besagen,
dass Windows Server 2019 eigentlich ohne Probleme mit qemu-kvm laufen sollte.


Ich habe folgende Software-Versionen im Einsatz:
libvirt0:amd64                        5.0.0-4+deb10u1              amd64        library for interfacing with different virtualization systems
libvirt-clients                       5.0.0-4+deb10u1              amd64        Programs for the libvirt library
libvirt-daemon                        5.0.0-4+deb10u1              amd64        Virtualization daemon
libvirt-daemon-system                 5.0.0-4+deb10u1              amd64        Libvirt daemon configuration files
libvirt-glib-1.0-0:amd64              1.0.0-1                      amd64        libvirt GLib and GObject mapping library
linux-image-4.19.0-9-amd64            4.19.118-2+deb10u1           amd64        Linux 4.19 for 64-bit PCs (signed)
linux-image-amd64                     4.19+105+deb10u4             amd64        Linux for 64-bit PCs (meta-package)
qemu                                  1:3.1+dfsg-8+deb10u5         amd64        fast processor emulator, dummy package
qemu-kvm                              1:3.1+dfsg-8+deb10u5         amd64        QEMU Full virtualization on x86 hardware
qemu-system-common                    1:3.1+dfsg-8+deb10u5         amd64        QEMU full system emulation binaries (common files)
qemu-system-data                      1:3.1+dfsg-8+deb10u5         all          QEMU full system emulation (data files)
qemu-system-gui                       1:3.1+dfsg-8+deb10u5         amd64        QEMU full system emulation binaries (user interface and audio support)
qemu-system-x86                       1:3.1+dfsg-8+deb10u5         amd64        QEMU full system emulation binaries (x86)
qemu-utils                            1:3.1+dfsg-8+deb10u5         amd64        QEMU utilities


Über jede Idee, jeden Ratschlag, würde ich mehr sehr freuen.

Viele Grüße
Meinhard


Reply to: