Can't make `transfer` work using $HOME on Windows

Hi, can’t make it work transfer on multipass for Windows 10.

 Get-Content .\multipass-init-masterk8s.sh | multipass transfer -v - master-k8s:$HOME/init-masterk8s.sh
An instance name is needed for either source or destination

Or

Hi @tuxerrante, the problem is that $HOME is being expanded by PS to something like C:\Users\... (not a valid path inside the instance). The complete argument therefore includes 2 colons and Multipass doesn’t know how to parse it.

$HOME is the default location inside the instance anyway, so this should work for you:

multipass transfer -vvvv multipass-init-masterk8s.sh master-k8s:init-masterk8s.sh

FWIW, I opened an issue to track this.

1 Like