Please support VectorLinux!

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

roarde

  • Vectorian
  • ****
  • Posts: 584
  • move the needle
Copy files between running qemu instance and VL host.
« on: May 20, 2014, 02: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, 02:46:15 pm by roarde »
Robert
VL Light RC 1.2

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: Copy files between running qemu instance and VL host.
« Reply #1 on: May 20, 2014, 03: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

roarde

  • Vectorian
  • ****
  • Posts: 584
  • move the needle
Re: Copy files between running qemu instance and VL host.
« Reply #2 on: May 20, 2014, 03: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".
Robert
VL Light RC 1.2

bigpaws

  • Vectorian
  • ****
  • Posts: 1868
Re: Copy files between running qemu instance and VL host.
« Reply #3 on: May 20, 2014, 04: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

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3208
Re: Copy files between running qemu instance and VL host.
« Reply #4 on: May 22, 2014, 03:14:00 am »
You could just sftp using lftp from the guest to the host

nightflier

  • Administrator
  • Vectorian
  • *****
  • Posts: 4072
Re: Copy files between running qemu instance and VL host.
« Reply #5 on: May 22, 2014, 03:21:58 am »
I use Midnight Commander (mc).

Menu > Right > Shell link