- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试使用 CRC 在我的笔记本电脑(Ubuntu 20)上测试 Openshift 4。 CRC 1.17 版不支持 Virtualbox 虚拟化,因此请按照设置说明进行操作
https://access.redhat.com/documentation/en-us/red_hat_codeready_containers/1.17/html/getting_started_guide/installation_gsg
我正在使用 libvirt,但是当我使用 crc start
启动集群时它启动以下错误
INFO Checking if oc binary is cached
INFO Checking if podman remote binary is cached
INFO Checking if goodhosts binary is cached
INFO Checking minimum RAM requirements
INFO Checking if running as non-root
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking if libvirt 'crc' network is available
INFO Checking if libvirt 'crc' network is active
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Starting CodeReady Containers VM for OpenShift 4.5.14...
ERRO Error starting stopped VM: virError(Code=55, Domain=18, Message='Requested operation is not valid: format of backing image '/home/claudiomerli/.crc/cache/crc_libvirt_4.5.14/crc.qcow2' of image '/home/claudiomerli/.crc/machines/crc/crc.qcow2' was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.html for troubleshooting)')
Error starting stopped VM: virError(Code=55, Domain=18, Message='Requested operation is not valid: format of backing image '/home/claudiomerli/.crc/cache/crc_libvirt_4.5.14/crc.qcow2' of image '/home/claudiomerli/.crc/machines/crc/crc.qcow2' was not specified in the image metadata (See https://libvirt.org/kbase/backing_chains.html for troubleshooting)')
我没有使用 libvirt 的经验,所以我一直坚持在网上,我没有找到任何东西......
最佳答案
crc_libvirt_4.5.14 镜像存在问题。修复它的最简单方法是执行
qemu-img rebase -f qcow2 -F qcow2 -b /home/${USER}/.crc/cache/crc_libvirt_4.5.14/crc.qcow2 /home/${USER}/.crc/machines/crc/crc.qcow2
现在,如果你尝试做一个
crc start
,除非您将主目录列入白名单,否则您将面临与 Apparmor 相关的“权限被拒绝”错误。如果您不想修改 Apparmor 设置,请使用
/var/lib/libvirt/images
应该是白名单。将图像移动到那里:
sudo mv /home/${USER}/.crc/machines/crc/crc.qcow2 /var/lib/libvirt/images
然后编辑指向新镜像位置的虚拟机设置:
virsh edit crc
,然后替换
<source file='/home/yourusername/.crc/machines/crc/crc.qcow2'/>
至
<source file='/var/lib/libvirt/images/crc.qcow2'/>
.
crc start
而且……就是这样。
关于kubernetes - 使用 libvirt 启动 Codeready 容器导致 "format of backing image was not specified in the image metadata",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64413928/
使用: $ virsh version Compiled against library: libvirt 1.3.1 Using library: libvirt 1.3.1 Using AP
是否可以使用 libvirt-python API 从 KVM 管理程序创建 VM?我有一个iso,是直接从云端下载的。我在互联网上找不到任何示例。 干杯 最佳答案 当然 libvirt-python
我有这个简单的脚本来检查 libvirt 管理的虚拟机的内存使用情况。 如何将 state 的整数从 dom.info() 转换为人类可读的字符串? import libvirt import re
是否可以使用 libvirt 管理 Android 模拟器?如果可能的话,怎么做? 谢谢,亚当 最佳答案 目前没有针对 Android Emulator 的 libvirt 驱动程序。 关于andro
我的 kvm 有一个大问题: 在“Owncloud”的电源状态为“关闭”后,我想关闭我的机器“Owncloud”。 当我尝试使用“virsh destroy Owncloud”销毁这台机器时,我得到了
如何使用 libvirt 创建临时域? (使用 QEMU/KVM 作为后端) 该文档在此链接中讨论了 transient 域和持久域之间的区别:http://wiki.libvirt.org/page
主题几乎说明了一切。我在 Ubuntu 上运行 libvirt(KVM?),我有两个我无法访问或控制的 guest (都是 ubuntu 服务器)。 也就是说,如果我用 virsh 或 virt-ma
Virt-Manager 能够修改正在运行的域的网络接口(interface),例如更改连接的网络。 我想使用 libvirt-API 在 python 中编写此脚本。 import libvirt
我在 CentOS7 上配置我的第一个 lxc 容器。 当我启动容器时,一切正常 1 ) 当我在容器内发送 init 6 时,出现以下错误: Could not unmount /dev/ptmx:
我在使用虚拟机( guest Windows 7、x86_64)时遇到了一些问题,该虚拟机在 qemu-kvm 下运行并由 libvirt 管理(主要从 virt-manager 创建和运行)。问题是
我正在尝试创建一个 python 脚本来处理基本的 VM 操作,例如:创建 VM、删除 VM、启动、停止等。 目前我相当“卡在”create 从命令行你会做这样的事情: qemu-img create
我正在使用 virsh list 来显示计算机上运行的虚拟机列表。我希望以二维数组的形式打印过程中的信息。 解决此问题的一种方法是获得输出,使用分词器并将其存储在数组中。但是有没有其他方法可以直接将其
我目前正在使用 qemu 命令行参数来启动虚拟机。 我的命令行是: /home/gnayan/QEMU-devel/qemu-ubuntu/qemu/x86_64-softmmu/qemu-syste
当我定义新域时 _, err = v.conn.DomainDefineXMLFlags(domainXml, libvirt.DOMAIN_DEFINE_VALIDATE) xml 看起来像:
我想知道如何在同一台服务器上“保护”KVM guest /网络免受其他网络中其他 guest 的影响。 今天,我有一台运行 KVM/qemu/libvirt 的专用服务器,并且对于每个客户,我都有一个
我在我的 Ubuntu Server 16.04 上安装了 libvirt-bin。但奇怪的是,libvirt 并没有列出主机所有支持的 CPU 特性。 当我打开文件/proc/cpuinfo 时,我
看完wiki libvirt我开始 virt-install 从 Debian10 netinstall ISO 镜像安装 VM: % sudo virt-install --debug --conn
我正在寻找一种解决方案来获取使用 libvirt 在 qemu/kvm 上运行的 VM 的 ipv4 地址或其他元数据?我还研究了 ovirt 客户代理和 qemu 客户代理,但我想知道是否有更好/更
我试图更好地理解 libvirt 如何与 KVM 通信,以便能够从我正在开发的主机上的单个进程启动 KVM 实例。 它是否像 qemu-kvm 一样使用 ioctl?它是否使用某种远程消息传递,如 d
我可以从 libvirt 中获取以下 CPU 值: virsh domstats vm1 --cpu-total Domain: 'vm1' cpu.time=6173016809079111
我是一名优秀的程序员,十分优秀!