本文主要是介绍AMD EPYC 7551P 32-Core Processor服务器部署openstack 创建的windows虚拟机蓝屏,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
服务器CPU信息:
lscpu:
蓝屏错误截图:
默认nova.conf配置
nova.conf配置中没有配置cpu_mode情况系统默认
cpu_mode=custom
cpu_model=EPYC-IBPB虚拟机xml中配置如下:<cpu mode='custom' match='exact' check='full'><model fallback='forbid'>EPYC-IBPB</model><vendor>AMD</vendor><topology sockets='2' cores='2' threads='1'/><feature policy='require' name='x2apic'/><feature policy='require' name='tsc-deadline'/><feature policy='require' name='hypervisor'/><feature policy='require' name='tsc_adjust'/><feature policy='require' name='cmp_legacy'/><feature policy='require' name='virt-ssbd'/><feature policy='disable' name='monitor'/></cpu>
问题分析:
通过查看服务器支持的特性和模式
命令:virsh domcapabilities
~# virsh domcapabilities
<domainCapabilities><path>/usr/bin/kvm-spice</path><domain>kvm</domain><machine>pc-i440fx-bionic</machine><arch>x86_64</arch><vcpu max='255'/><os supported='yes'><loader supported='yes'><value>/usr/share/OVMF/OVMF_CODE.fd</value><enum name='type'><value>rom</value><value>pflash</value></enum><enum name='readonly'><value>yes</value><value>no</value></enum></loader></os><cpu><mode name='host-passthrough' supported='yes'/><mode name='host-model' supported='yes'><model fallback='forbid'>EPYC-IBPB</model><vendor>AMD</vendor><feature policy='require' name='x2apic'/><feature policy='require' name='tsc-deadline'/><feature policy='require' name='hypervisor'/><feature policy='require' name='tsc_adjust'/><feature policy='require' name='cmp_legacy'/><feature policy='require' name='invtsc'/><feature policy='require' name='virt-ssbd'/><feature policy='disable' name='monitor'/></mode><mode name='custom' supported='yes'><model usable='no'>qemu64</model><model usable='yes'>qemu32</model><model usable='no'>phenom</model><model usable='yes'>pentium3</model><model usable='yes'>pentium2</model><model usable='yes'>pentium</model><model usable='no'>n270</model><model usable='yes'>kvm64</model><model usable='yes'>kvm32</model><model usable='no'>coreduo</model><model usable='no'>core2duo</model><model usable='no'>athlon</model><model usable='yes'>Westmere</model><model usable='no'>Westmere-IBRS</model><model usable='no'>Skylake-Server</model><model usable='no'>Skylake-Server-IBRS</model><model usable='no'>Skylake-Client</model><model usable='no'>Skylake-Client-IBRS</model><model usable='yes'>SandyBridge</model><model usable='no'>SandyBridge-IBRS</model><model usable='yes'>Penryn</model><model usable='no'>Opteron_G5</model><model usable='no'>Opteron_G4</model><model usable='yes'>Opteron_G3</model><model usable='yes'>Opteron_G2</model><model usable='yes'>Opteron_G1</model><model usable='yes'>Nehalem</model><model usable='no'>Nehalem-IBRS</model><model usable='no'>IvyBridge</model><model usable='no'>IvyBridge-IBRS</model><model usable='no'>Haswell</model><model usable='no'>Haswell-noTSX</model><model usable='no'>Haswell-noTSX-IBRS</model><model usable='no'>Haswell-IBRS</model><model usable='yes'>EPYC</model><model usable='yes'>EPYC-IBPB</model><model usable='yes'>Conroe</model><model usable='no'>Broadwell</model><model usable='no'>Broadwell-noTSX</model><model usable='no'>Broadwell-noTSX-IBRS</model><model usable='no'>Broadwell-IBRS</model><model usable='yes'>486</model></mode></cpu><devices><disk supported='yes'><enum name='diskDevice'><value>disk</value><value>cdrom</value><value>floppy</value><value>lun</value></enum><enum name='bus'><value>ide</value><value>fdc</value><value>scsi</value><value>virtio</value><value>usb</value><value>sata</value></enum></disk><graphics supported='yes'><enum name='type'><value>sdl</value><value>vnc</value><value>spice</value></enum></graphics><video supported='yes'><enum name='modelType'><value>vga</value><value>cirrus</value><value>vmvga</value><value>qxl</value><value>virtio</value></enum></video><hostdev supported='yes'><enum name='mode'><value>subsystem</value></enum><enum name='startupPolicy'><value>default</value><value>mandatory</value><value>requisite</value><value>optional</value></enum><enum name='subsysType'><value>usb</value><value>pci</value><value>scsi</value></enum><enum name='capsType'/><enum name='pciBackend'><value>default</value><value>vfio</value></enum></hostdev></devices><features><gic supported='no'/></features>
</domainCapabilities>
发现默认配置中cpu_model=EPYC-IBPB是符合服务器配置要求的,但是为什么会蓝屏呢?通过调整cpu_model为支持列表中usable='yes'的值,验证是否能够修复蓝屏问题
尝试在nova.conf配置中添加cpu_mode和cpu_model参数
cpu_mode=custom
cpu_model值验证kvm64、Conroe、Opteron_G3三个值,只有Opteron_G3能够修复蓝屏问题,其他可用的参数未验证
nova.conf配置:
[libvirt]
snapshot_image_format = raw
connection_uri = qemu+tcp://10.152.0.3/system
storage_mode = local
cluster_type = PCP
virt_type = kvm
inject_key = false
cpu_mode = custom
cpu_model = Opteron_G3
配置完成后重启nova相关服务
这篇关于AMD EPYC 7551P 32-Core Processor服务器部署openstack 创建的windows虚拟机蓝屏的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!