Accessing files available within a virtual machine from the host machine
Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Accessing files available within a virtual machine from the host machine
Hi,
How can a host machine access files residing in a (running) virtual machine without having to operate the guest OS?
I understand that a guest OS can access shared resources of host's file-system. (as answered in thread "file sharing between a virtual machine and the host machine"), but I couldn't find a way to do the vice versa.
you're asking a specific question about a generic technology. it totally depends on what services you're using etc. It's possible to often mount disk images in a generic manner with libvirt disks (e.g. raw format) but as an actual service to do this formally, you shouldn't be able to, it's horrible. use a network connection and access it like any other system.
you're asking a specific question about a generic technology. it totally depends on what services you're using etc. It's possible to often mount disk images in a generic manner with libvirt disks (e.g. raw format) but as an actual service to do this formally, you shouldn't be able to, it's horrible. use a network connection and access it like any other system.
Thanks for quick reply. (Sorry I didn't mention that I use Oracle's VirtualBox. SuSE as Host OS and Lubuntu & Windows as guest.) Please could you suggest which "network connections" can be used, can I use SSH/Fish, SFTP or VNC? can I use the guest's IP address to establish a network connection.
"I installed Opera with Unite on both virtual machines. Just for a lark I decided to use Unite's file transfer app. I started both VMs. I was easily able to transfer files between either VM, VM and the host, Vms, the host and my desktop. I wouldn't use Unite for production or where stong security was needed but for just easy file sharing it is hard to beat."
Unite is a fairly simple low security method to do this. It does require a significant amount of setup if you don't already use Opera as a browser.
The only way to access a file within a virtual file system would be to either power up the guest or find a way to mount that file. I don't know if a way exists other than a windows mount of one of their formats.
To access a file on a powered up client then any normal way two computers could access a file will work along with one more. The extra way is to use some vm that has tools that allow direct cut and paste between the host and client or two clients.
Also it is possible to have a shared folder on the host that the client could access when powered up but that would still be available to the host at all times.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.