在Centos 7.6 中,进行kvm 安装,virt-install 之后,在图形图面中,鼠标可以使用,键盘不可以使用,按键之后图形界面无反应,但是每按一次键盘CLI终端有一行warning 输出。
(virt-viewer:32227): GSpice-CRITICAL **: 02:22:38.179: send_key: assertion 'scancode != 0' failed
virt-install --name vm1 -r 8192 --disk path=/var/lib/libvirt/images/vm1.img,size=20 --vcpu=2 --network bridge=br0,model=e1000 --cdrom=/public/ubuntu-18.04.2-server-amd64.iso Starting install... Allocating 'vm1.img' | 20 GB 00:00:01 (virt-viewer:32227): GSpice-WARNING **: 02:22:36.541: PulseAudio context failed Connection refused (virt-viewer:32227): GSpice-WARNING **: 02:22:36.541: pa_context_connect() failed: Connection refused (virt-viewer:32227): GSpice-WARNING **: 02:22:36.605: Warning no automount-inhibiting implementation available (virt-viewer:32227): vnc-keymap-WARNING **: 02:22:36.642: Unknown keycode mapping '(null)'. Please report to gtk-vnc-list@gnome.org including the following information: - Operating system - GDK build - X11 Server - xprop -root - xdpyinfo (virt-viewer:32227): GSpice-CRITICAL **: 02:22:38.179: send_key: assertion 'scancode != 0' failed (virt-viewer:32227): GSpice-CRITICAL **: 02:22:38.337: send_key: assertion 'scancode != 0' failed (virt-viewer:32227): GSpice-CRITICAL **: 02:23:13.858: send_key: assertion 'scancode != 0' failed (virt-viewer:32227): GSpice-CRITICAL **: 02:23:14.097: send_key: assertion 'scancode != 0' failed Domain installation still in progress. You can reconnect to the console to complete the installation process.
经查找,发现是reahat /centos 版本中的bug :
https://bugzilla.redhat.com/show_bug.cgi?id=1540056
但是验证之后系统已经安装有相关的软件,仍会报此错。
最后是通过在GUI, 安装之前配置安装过程的DISPLAY VNC 解决。参考此链接https://www.cnblogs.com/lvxiaobo616/p/5704646.html
在virt-mamge 的界面新建虚拟机,把所有安装时带的选项参数通过GUI 选择,最后在finished 之前,勾选配置其他选项,在出来的配置界面中,在DISPLAY VNC 里,把VNC SERVER 的TYPE 改成vnc server .
改完后再选左上角的begin installation 。
新出现的系统安装界面就可以使用键盘了。
No Leanote account? Sign up now.