.bdrv_invalidate_cache=qemu_rbd_invalidate_cache,#endif}; 其中,在一个 Ceph 卷第一次被连接到虚机,以及虚机启动时,QEMU 都会为它调用 qemu_rbd_open 函数。注意,qemu 是通过动态链接库的方式来使用 librbd 库的。 1.4 QEMU 的 qemu_rbd_open 函数 在虚机中使用一个从 Ceph volume 中虚拟而来的 disk dr...
staticintqemu_rbd_open(BlockDriverState *bs, QDict *options,intflags, Error**errp)# options 参数见下文描述{ BDRVRBDState*s = bs->opaque;...opts= qemu_opts_create(&runtime_opts, NULL,0, &error_abort); qemu_opts_absorb_qdict(opts, options,&local_err);...filename= qemu_opt_get(opts...
支持选择是否升级Qemu(support Ceph rbd block storage) 支持选择是否升级libvirt 支持选择是否配置虚拟化嵌套nested 支持选择是否配置OVMF UEFI 支持选择是否配置PCI直通PCI_Passthrough error: Operation not supported: internal snapshots of a VM with pflash based firmware are not supported 在启用uefi和使用snapshot...
staticintqemu_rbd_open(BlockDriverState *bs, QDict *options,intflags, Error**errp)# options 参数见下文描述{ BDRVRBDState*s = bs->opaque;...opts= qemu_opts_create(&runtime_opts, NULL,0, &error_abort); qemu_opts_absorb_qdict(opts, options,&local_err);...filename= qemu_opt_get(opts...