LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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

Reply
 
Search this Thread
Old 08-03-2011, 04:59 AM   #1
ed.kumar
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
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.

I will appreciate any help.

TIA
 
Old 08-03-2011, 05:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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.
 
Old 08-03-2011, 05:53 AM   #3
ed.kumar
LQ Newbie
 
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
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.
 
Old 08-03-2011, 06:17 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
you can use whatever the box is configured with. It is in no way "interesting" that it's a VM if network connectivity exists.
 
Old 08-03-2011, 06:30 AM   #5
mjolnir
Member
 
Registered: Apr 2003
Posts: 661

Rep: Reputation: 68
http://www.linuxquestions.org/questi...0/#post4016604

"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.
 
Old 08-03-2011, 03:25 PM   #6
jefro
Guru
 
Registered: Mar 2008
Posts: 11,121

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file sharing between a virtual machine and the host machine okok Linux - Networking 3 06-21-2013 12:42 AM
host machine virtual machine question kaplan71 Linux - General 2 03-31-2011 05:14 PM
[SOLVED] Accessing Website Being Hosted on Virtual Machine Hi_This_is_Dev Linux - Server 10 09-02-2010 05:44 PM
How to configure the serial port of my virtual machine with host machine. akram Linux - Newbie 4 07-31-2009 10:39 PM
How to share files between my linux virtual machine and window vista host? huy_china Linux - Newbie 8 10-07-2008 04:42 PM


All times are GMT -5. The time now is 06:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration