Created attachment 797 [details] server安装图形化中文字符是方块 Description of problem: 使用iso镜像anolis-23-x86_64-dvd1-20230619.0.iso进行安装测试,安装选项为:中文-->上海时区-->自动分区-->server,并同时进行其余3项软件选择的勾选(右侧全部勾选),没有发现软件包报错的情况-->设置root密码并允许root用户使用密码进行ssh登录-->创建普通用户 安装完成后重启进入图形化登录界面,图形化界面中文字符显示为方块,无法识别中文字符,但使用ssh root@IP 登录机器字符界面,中文字符正常显示,具体信息见附件截图 Version-Release number of selected component (if applicable): 5.10.134-14.1.an23.x86_64 How reproducible: Steps to Reproduce: 1.下载iso镜像anolis-23-x86_64-dvd1-20230619.0.iso 2.创建qcow2文件及修改xml文件 3.执行virsh create xxx.xml拉起镜像安装 Actual results: server安装后图形化界面中文字符是方块 Expected results: server安装后图形化界面中文字符正常显示 Additional info: 创建qcow2文件:qemu-img create -f qcow2 /DiskPath/DiskName.qcow2 40G xml文件如下: #cat an23-dvd-server1.xml <domain type='kvm'> <name>lyq_an23_dvd_server1</name> <memory>16777216</memory> <vcpu placement='static' current='4'>4</vcpu> <cpu mode='host-passthrough'> <topology sockets='1' cores='2' threads='2'/> </cpu> <os> <!-- BIOS安装 --> <!-- machine值由 qemu-kvm -M help 获取 --> <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type> <boot dev='hd'/> <boot dev='cdrom'/> <!-- ISO镜像有安装界面,需要先从cdrom启动,待安装完成后再改为先从硬盘启动 10,11行调换一下顺序即可 --> </os> <features> <acpi/> <pae/> </features> <clock offset="localtime" timezone="Asia/Shanghai"> <timer name='rtc' tickpolicy='catchup' track='guest'/> <timer name='pit' tickpolicy='delay'/> <timer name='hpet' present='no'/> </clock> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <source file='/disk1/liuyaqing/RC2/anolis-23-x86_64-dvd1-20230619.0.iso'/> <!-- iso镜像文件路径 --> <target bus="ide" dev="hdc"/> </disk> <disk type='file' device='disk'> <driver name='qemu' type='qcow2' cache='none' dataplane='on' io='native'/> <source file='/disk1/liuyaqing/RC2/an23_dvd1_server1.qcow2'/> <!-- 这里是刚刚创建的qcow2文件路径 --> <target dev='vda' bus='virtio'/> </disk> <interface type='network'> <source network='default'/> <model type='virtio'/> </interface> <console type='pty'> <target type='serial'/> </console> <console type='pty'> <target type='virtio'/> </console> <video> <!-- 有时vga类型会导致vnc鼠标不能用,可以使用cirrus试试 --> <!-- <model type='cirrus' vram='9216' heads='1'/> --> <model type='vga' vram='16384' heads='1'/> <alias name='video0'/> </video> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0'> <listen type='address' address='0.0.0.0'/> </graphics> <memballoon model='none'/> </devices> </domain>
Created attachment 814 [details] 中文下安装界面 使用 virt-install 的方式进行安装出来的镜像界面中没有复现该问题。请检查 xml 的内容是否正确。
使用 0619 的 iso 进行 virt-install 安装的时候,显示正常。需要看下是否是 xml 的问题。
该问题已经在 0701 的 daily iso 中解决。 问题原因:选择 server 组件 - gnome 群组之后,少添加了一个软件包:google-droid-sans-fonts。 已经添加到 gnome 群组中。 对应 pr:https://gitee.com/anolis/rel-eng/commit/d4c4b7964def8859f279293617982a289c710cd0