I don't know if this is possible, but if it is than I would like to know how to do that.
On Wed, Aug 05, 2015 at 05:29:57PM +0200, Jon Ingason wrote:
I don't know if this is possible, but if it is than I would like to know how to do that.
Take a look at http://libguestfs.org/ and the "guestfish" tool for poking inside VM images. If you need to actually mount it, "guestmount".
mkdir ~/guestmount guestmount -a guest.img -i --ro ~/guestmount
should do it. (Remove --ro for read-write access, of course.)
On Wed, 5 Aug 2015 11:42:45 -0400 Matthew Miller wrote:
Take a look at http://libguestfs.org/ and the "guestfish" tool for poking inside VM images. If you need to actually mount it, "guestmount".
That works best when the guest isn't running.
If you want running access, you need to run NFS in the guest and mount the guest filesystem on the host via networking (or if it is a windows guest, you need to share the filesystems and mount them via smb on the host).
On Wed, Aug 05, 2015 at 11:55:27AM -0400, Tom Horsley wrote:
Take a look at http://libguestfs.org/ and the "guestfish" tool for poking inside VM images. If you need to actually mount it, "guestmount".
That works best when the guest isn't running.
Yes, absolutely — I just assumed that with "VM image". But maybe that was a wrong assumption. :) If the machine is running, it's best to think of it as not an image but just another machine on the network.
If you want running access, you need to run NFS in the guest and mount the guest filesystem on the host via networking (or if it is a windows guest, you need to share the filesystems and mount them via smb on the host).
+1. Or, possibly, go the other way around, and mount a host filesystem into the guest, depending on what you want/need. You can also use 9p_virtio http://www.linux-kvm.org/page/9p_virtio.
Den 2015-08-05 kl. 18:12, skrev Matthew Miller:
On Wed, Aug 05, 2015 at 11:55:27AM -0400, Tom Horsley wrote:
Take a look at http://libguestfs.org/ and the "guestfish" tool for poking inside VM images. If you need to actually mount it, "guestmount".
That works best when the guest isn't running.
Yes, absolutely — I just assumed that with "VM image". But maybe that was a wrong assumption. :) If the machine is running, it's best to think of it as not an image but just another machine on the network.
If you want running access, you need to run NFS in the guest and mount the guest filesystem on the host via networking (or if it is a windows guest, you need to share the filesystems and mount them via smb on the host).
+1. Or, possibly, go the other way around, and mount a host filesystem into the guest, depending on what you want/need. You can also use 9p_virtio http://www.linux-kvm.org/page/9p_virtio.
Yes, this seems to be the tool I am looking for. I will test it.
Thank you!