在 Xen VM 之间共享文件的最佳方式是什么?

发布于 2024-07-04 22:35:18 字数 59 浏览 5 评论 0原文

是否有一些内置方法可以在 Xen 来宾之间共享文件? 我目前不需要共享实际图像,只需共享一些数据文件。

Is there some built-in way to share files between Xen guests? I don't currently need to share the actual images, just some data files.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

勿忘心安 2024-07-11 22:35:20

我遇到了同样的问题,我的解决方案是为每个来宾添加一个额外的虚拟驱动器,该驱动器指向共享的 lvm 或设备。

因此,xvda3 被指向来宾配置文件中的 /dev/md0。 您可以轻松地使用 /dev/vg0/lg0 作为逻辑卷。

I ran into this same issue and my solution was to add an extra virtual drive to each guest which pointed to a shared lvm or device.

So xvda3 was pointed at /dev/md0 in the guest configuration file. You could just as easily use /dev/vg0/lg0 for an logical volume.

丑疤怪 2024-07-11 22:35:20

您还可以尝试 glusterfslustre 在 Xen 来宾之间共享文件。

You can also try glusterfs or lustre to share files between Xen guests.

黄昏下泛黄的笔记 2024-07-11 22:35:20

你的意思是Xen和主机之间还是不同的客人之间?

如果是客人,我认为没有提供任何东西,但您可能应该使用 NFS,因为它是受支持最好的文件系统,支持相当数量的权限和属性,但假定网络受信任。

Do you mean between Xen and the host or between different guests?

If guests, I don't think there is something provided but you should probably use NFS as it is the best supported file system that supports a decent number of permissions and attributes but assumes a trusted network.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文