Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible to copy from one VM to another #44

Open
Soneji opened this issue Jul 29, 2021 · 2 comments
Open

Possible to copy from one VM to another #44

Soneji opened this issue Jul 29, 2021 · 2 comments

Comments

@Soneji
Copy link

Soneji commented Jul 29, 2021

Hi
I was wondering if it's possible to copy files from one VM directly to another. I seem to get this error when I try

vagrant scp vm1:/home/vagrant/projects/project-build/project.rpm vm2:~
Warning: Permanently added '[127.0.0.1]:2200' (RSA) to the list of known hosts.
/home/vagrant: No such file or directory

Do you know why this could be?

@MarcinOrlowski
Copy link
Collaborator

You cannot copy directly. It should be done by downloading from one VM to a temp file and then uploading to target VM but this is currently not supported

@Soneji
Copy link
Author

Soneji commented Jul 30, 2021

Is this something you'd be able to implement?

A possible way to implement it could be:

if param1.isVM() and param2.isVM()
    copy param1 temp
    copy temp param2
    del temp

(just logic not actual code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants