「KVM」- Virt-Manager @20210307

Virt-Manager 是个 GUI 程序,用于管理虚拟机,基于 libvirt 库。

常见问题汇总

#1

Virt-Manager to Remote host - continuous password prompt over ssh

问题描述
打开远程连接中的虚拟机是,不停的提示输入SSH密码

问题原因
远程显示设置了只支持本地连接

解决方法
View - Details - Display XXX - Address: - All interfaces

#2 Unable to complete install: xxx Could not open '/path/to/iso': Permission denied

问题描述
在创建虚拟机后,当启动时产生如下错误:

Unable to complete install: 'internal error: process exited while connecting to monitor: 2020-04-07T00:42:54.883472Z qemu-system-x86_64: -drive file=/path/to/Microsoft Windows 2000 [Professional + Server + Advanced Server + Datacenter Server] SP4.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on: Could not open '/path/to/Microsoft Windows 2000 [Professional + Server + Advanced Server + Datacenter Server] SP4.iso': Permission denied'

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 75, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/create.py", line 2119, in _do_async_install
    guest.installer_instance.start_install(guest, meter=meter)
  File "/usr/share/virt-manager/virtinst/installer.py", line 419, in start_install
    doboot, transient)
  File "/usr/share/virt-manager/virtinst/installer.py", line 362, in _create_guest
    domain = self.conn.createXML(install_xml or final_xml, 0)
  File "/usr/lib/python3/dist-packages/libvirt.py", line 3732, in createXML
    if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self)
libvirt.libvirtError: internal error: process exited while connecting to monitor: 2020-04-07T00:42:54.883472Z qemu-system-x86_64: -drive file=/path/to/Microsoft Windows 2000 [Professional + Server + Advanced Server + Datacenter Server] SP4.iso,format=raw,if=none,id=drive-ide0-0-1,readonly=on: Could not open '/path/to/Microsoft Windows 2000 [Professional + Server + Advanced Server + Datacenter Server] SP4.iso': Permission denied

问题原因
镜像文件名 Microsoft Windows 2000 [Professional + Server + Advanced Server + Datacenter Server] SP4.iso 包含特殊字符。

解决方法
重命名文件,去掉在文件名中的特殊字符。


相关文章

「KVM」- Kimchi(Web管理工具)

posted @ 2021-03-07 16:20  研究林纳斯写的  阅读(269)  评论(0编辑  收藏  举报