VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Copy files between running qemu instance and VL host.  (Read 2373 times)

roarde

  • Vectorian
  • ****
  • Posts: 625
  • move the needle
Copy files between running qemu instance and VL host.
« on: May 20, 2014, 03:40:08 pm »

I'm told this is essentially a network operation, so I post it here.

I've enabled sshd, but have done no configuration. I know creating an additional filesystem and mounting/umounting it between guest and host is another way to go here, but file transfer will be frequent enough for that not to be practical.

I'm pretty much totally ignorant of networking, and cannot find a place to get started. Host will be VL (7.0 for now), guest is usually but not always VL.

Is there a way to set this up so that the qemu session would be the only "remote" connection accepted? I'm not interested in shell hosting, especially for those "unknown" users.
« Last Edit: May 20, 2014, 03:46:15 pm by roarde »
Logged
Robert
VL 7.1 Light

bigpaws

  • Vectorian
  • ****
  • Posts: 1872
Re: Copy files between running qemu instance and VL host.
« Reply #1 on: May 20, 2014, 04:24:31 pm »

I believe I know what you are trying to do.

http://fuse.sourceforge.net/sshfs.html

This will allow you to create a remote mount point and
transfer files each way.

HTH

Bigpaws
Logged

roarde

  • Vectorian
  • ****
  • Posts: 625
  • move the needle
Re: Copy files between running qemu instance and VL host.
« Reply #2 on: May 20, 2014, 04:48:28 pm »

Thanks for your response, bigpaws. From what I can tell, you do indeed understand what I need to do.

But I don't understand where I would install sshfs, how to login to the server with ssh, and for that matter am not entirely sure what to supply for "hostname:".

I should have supplied an exponent to "ignorant".
Logged
Robert
VL 7.1 Light

bigpaws

  • Vectorian
  • ****
  • Posts: 1872
Re: Copy files between running qemu instance and VL host.
« Reply #3 on: May 20, 2014, 05:38:35 pm »

sshfs is installed on the client.

There is nothing else you need.

Then create a mount point (I usually use a new directory in my /home)
then you need to mount it. An example command from the client (It does not
matter which host it is):
sshfs hostname(or ip)@:/directory path /mount/point

HTH

Bigpaws
Logged

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3275
Re: Copy files between running qemu instance and VL host.
« Reply #4 on: May 22, 2014, 04:14:00 am »

You could just sftp using lftp from the guest to the host

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4140
Re: Copy files between running qemu instance and VL host.
« Reply #5 on: May 22, 2014, 04:21:58 am »

I use Midnight Commander (mc).

Menu > Right > Shell link

Logged