I'd like to share a folder between a KVM guest and host. I want the data to be stored only on the host. What's the best solution for that?
thanks mat
|
I'd like to share a folder between a KVM guest and host. I want the data to be stored only on the host. What's the best solution for that? thanks mat | |||||
feedback
|
|
You could do this by treating host and guest as completely separate computers. Make the shared folder available on the host, e.g. by exporting it through NFS or by creating a samba share. Then connect to it from the guest just in the normal manner. Since the guest has its own IP address, this should not present any problems. With NFS you can also easily limit the exported share to only accept connections from the guest (if that is what you want). All the other rules about NFS shares and samba shares still apply. If either guest or host are Windows machines, then you are probably better of with a samba share. | |||||
feedback
|
|
With NAT you may be able to get back to the host via the NAT gateway IP. | |||
|
feedback
|
|
I usually use
Were 10.42.43.1 is the gateway and VM host. -- This works also with NAT (need not be a bridged networking setup). (And I suppose Samba or NFS are better to use once you have them set up, since you need run no more commands, no | |||
|
feedback
|