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.
是否有一些内置的方式来共享Xen客户端之间的文件?我目前不需要共享实际图像,只需要一些数据文件。
3 个解决方案
#1
3
Do you mean between Xen and the host or between different guests?
你的意思是Xen和主人之间或不同的客人之间?
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.
如果客人,我认为没有提供的东西,但您应该使用NFS,因为它是支持大量权限和属性但是假定可信网络的最佳支持文件系统。
#2
#3
1
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.
我遇到了同样的问题,我的解决方案是为每个指向共享lvm或设备的guest虚拟机添加一个额外的虚拟驱动器。
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.
因此,xvda3指向guest虚拟机配置文件中的/ dev / md0。您可以像使用/ dev / vg0 / lg0一样轻松地使用逻辑卷。
#1
3
Do you mean between Xen and the host or between different guests?
你的意思是Xen和主人之间或不同的客人之间?
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.
如果客人,我认为没有提供的东西,但您应该使用NFS,因为它是支持大量权限和属性但是假定可信网络的最佳支持文件系统。
#2
1
You can also try glusterfs or lustre to share files between Xen guests.
您还可以尝试使用glusterfs或lustre在Xen来宾之间共享文件。
#3
1
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.
我遇到了同样的问题,我的解决方案是为每个指向共享lvm或设备的guest虚拟机添加一个额外的虚拟驱动器。
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.
因此,xvda3指向guest虚拟机配置文件中的/ dev / md0。您可以像使用/ dev / vg0 / lg0一样轻松地使用逻辑卷。