vmware中虚拟机之间共享挂载点

发布于 2025-01-06 04:19:01 字数 316 浏览 5 评论 0原文

我们目前在办公室网络中运行 vmware esx 服务器。我们的 vmware 来宾计算机正在运行 Ubuntu Server 11.04。

我们正在寻找一种通过使用虚拟磁盘来共享来宾计算机可访问的存储空间的方法。如果其中一台来宾计算机写入共享存储空间,则所有其他来宾计算机都会看到更改。

我读过一篇关于创建安装在来宾上的 vmdk 的文章。但该帖子还提到,如果其中一个来宾写入,除非重新安装磁盘,否则所有来宾都不会看到更改。这是正确的吗?

有谁知道如何通过 vmware 严格设置它? (意味着不使用配置了 cifs、smb、nfs 等的 nas 来宾计算机进行共享)

We are currently running vmware esx server in our office network. Our vmware guest machines are running Ubuntu Server 11.04.

What we're looking for is a way to share a storage space accessible by guest machines by using a virtual disk. If one of the guest machines writes to the shared storage space, then all other guests would see the change.

I have read a post about creating a vmdk that get's mounted on the guest. But the post also mentions that none of the guests would see changes if one of the guests writes unless the disk is remounted. Is this correct?

Does anyone know how set this up strictly via vmware ? (meaning not using a nas guest machine configured with cifs, smb, nfs, etc.. for sharing)

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

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

发布评论

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

评论(2

九厘米的零° 2025-01-13 04:19:01

您需要一个“多写入器”共享磁盘。 VMware 支持这一点(它用于支持 MSCS 集群和 VMware 容错虚拟机),但是没有很多文件系统或操作系统可以利用这一点——我非常有信心没有一个标准的 Ubuntu 文件系统能够做到这一点。这。此设置实际上相当于将单个 SCSI 驱动器插入两个单独的主机......对于主机使用共享存储而不互相破坏的情况来说,缓存和一致性问题并不是微不足道的。

以下是有关启用多写入器模式的 VMware 知识库文章:
http://kb.vmware.com /selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1034165

这也有以下影响:由于需要注意共享磁盘,虚拟机管理(迁移、备份等)变得更加复杂。

You are asking for a "multi-writer" shared disk. VMware supports this (its used to support MSCS clusters, and VMware fault tolerant VMs), but there are not a lot of filesystems or OSes that can take advantage of this -- I'm pretty confident none of the standard Ubuntu filesystems are capable of this. This setup is the virtual equivalent of plugging a single SCSI drive into two separate hosts ... the caching and consistency issues are not trivial for the hosts to use the shared storage without clobbering each other.

Here is a VMware KB article about enabling multi-writer mode:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1034165

There are also implications for VM management (migration, backups, etc) that get much more complicated with shared disks to be aware of.

眼中杀气 2025-01-13 04:19:01

要使物理驱动器可由多台 Ubuntu 计算机写入,最简单的方法是将 VMWare 磁盘添加到其中一台虚拟机,然后使用 NFS 与其他计算机共享该驱动器。相对于尝试直接共享 VMware 磁盘,唯一真正的限制是,如果实际托管该磁盘的虚拟机出现故障,则其他虚拟机将无法使用该磁盘。然而,使用 NFS 的另一个优点(除了不会损坏磁盘,如其他响应中所述)是 NFS VMware 磁盘也可以与其他非虚拟计算机共享。

有关如何在 Ubuntu 下设置 NFS 的(多)组说明之一位于:https://help .ubuntu.com/community/SettingUpNFSHowTo

For making a physical drive writable by several Ubuntu machines the easiest way is to add the VMWare disk to ONE of the virtual machines, then use NFS to share that drive with other machines. The only real limitation, relative to trying to share a VMware disk directly, is that, if the virtual machine actually hosting the disk is down, the disk will be unavailable to the other virtual machines. However, an additional advantage of using NFS (apart from not corrupting the disk, as discussed in the other responses) is that the NFS VMware disk can also be shared with other, non-virtual, machines as well.

One of the (many) sets of instructions on how to set up NFS under Ubuntu is at: https://help.ubuntu.com/community/SettingUpNFSHowTo

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