Page 1 of 1

How to get files into Guest without Copy/Paste.

Posted: 22. Sep 2020, 17:53
by Shafty
Hi Members,
I must need to run a 4 Page ansible playbook (starfish.yml) in my CentOS 7 (Minimal OS - Only Command Line). Now I know Despite of installing Guest Additions, if you don't have a GUI in your Guest you cannot do a Copy and Paste nor the Shared Folders. Is there a way to Put that ansible playbook in an internet storage and make it run on my Linux Guest. Please Help me...

With Hope,
Prabhakaran

Re: Is there a way to do it?

Posted: 22. Sep 2020, 18:15
by scottgus1
There are some ways one can get a file into a guest if one cannot use Guest Additions Shared Clipboard:

1. a second disk.
You can place the files you want in the guest in an ISO file (a CD image) on the host, then nmount that ISO in the guest's CD drive. Inside the guest OS, open the CD drive and get the file.

2. a real shared folder over a network.
Set up a Bridged or Host-Only network to the guest. Share a folder on the host OS. Find the shared folder on the network using the guest OS's methods to see and access the host OS's shared folder. (This shared folder is not made through Virtualbox, it is not a Guest Additions Shared Folder.)

3. the internet.
Set up a NAT or Bridged network to the guest. If you can access the internet in the guest OS you can access internet web services in the guest. If your guest OS is command-line-only, you will need a command-line-only method to access the files off your chosen file-sharing web service.

4. possibly Guest Additions Shared Folders.
Shafty wrote:if you don't have a GUI in your Guest you cannot do a Copy and Paste nor the Shared Folders
I believe that Guest Additions Shared Folders are available in a command-line-only guest OS with Guest Additions installed. See the manual, section 4, Guest Additions. GASFs are only for copying files, so don't run the playbook from the GASF, copy it into the guest OS first.

Re: How to get files into Guest without Copy/Paste.

Posted: 23. Sep 2020, 16:45
by JustinH
You could also setup a local web server (or any other type of server) to access your files. It might be easier than an Internet server.