Search

Language:  
Search for:

Available article translations:

How to upload files to a Parallels file share

APPLIES TO:
  • Parallels Desktop for Mac Standard Edition
  • Parallels Desktop for Mac Pro Edition
  • Parallels Remote Application Server 12.0

Symptoms

Parallels Support Team may ask you to upload files for further issue investigation, from screenshots and video recordings to core or memory dumps, or even a virtual machine.

Depending on the file size, use one of the following instructions below.

NOTE: Always compress file(s) to an archive. You may do that using native OS X functionality, or using Archive tool from Parallels Toolbox.

Uploading small and medium files (up to 2GB)

  1. Place the archive/file for upload to Desktop.
  2. Make sure you have received a URL destination for upload, for example: http://fe.parallels.com/9a6ae0c6e92e766dd8be76af69e54ab9/
  3. Open Terminal.app and execute these commands:

    cd ~/Desktop
    ftp ftp://fe.parallels.com
    

    now you should be connected to Parallels FTP file share.

  4. Navigate to the remote directory by executing this command. Please note that the directory name in your case will be different:

    cd 9a6ae0c6e92e766dd8be76af69e54ab9/ 
    
  5. Finally, set the upload using this command. Please note that Archive.zip should be replaced with the name of your archive/file:

    put Archive.zip 
    
  6. Wait for the upload process to complete. Here is the screenshot of the succesful upload.

Uploading large files (more than 2GB)



Note: If you want to upload data that is not large in size, you may use an easier way described in KB 9082 Upload files with FileZilla


In the example below we will be uploading a virtual machine image.

  1. Shutdown or suspend your virtual machine. Please, do not archive running VM, since it's disk will be corrupted and unusable.

  2. Download the upload.sh script to the same folder where .pvm bundle of the virtual machine resides. To easily locate your virtual machine bundle in the Finder please use KB 117333.

  3. Open Terminal application (Applications -> Utilities -> Terminal) and switch to the folder where your virtual machine is located. Type in:

    cd 
    

    then drag the icon of the folder your virtual machine and the upload.sh script are located in to the Terminal window next to the cd command.

    So the result will look similar to this:

    cd /Users/yourusername/Documents/Parallels
    

    Press Return

  4. Make the script executable with this command:

    sudo chmod u+x upload.sh
    

    Type in your Mac user password.

    Note: you will not see it on typing.

    Then press Return.

  5. Upload the .pvm bundle to Parallels using the script and the upload link provided by the Parallels Support representative.

    The format of the Terminal command will look like this:

    ./upload.sh <vm_name.pvm> <rsync_link>
    

    For example your virtual machine's name is Windows 7.pvm and the upload link is rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/

    Then here is what you need to do:

    1. In Terminal, type in:

      ./upload.sh 
      
    2. Drag the Windows.pvm bundle icon from the Finder to the Terminal window like this:

      The result will look similar to this:

       ./upload.sh /Users/yourusername/Documents/Parallels/Windows\ 7.pvm 
      
    3. Type (or copy-paste) the upload link you received from the Parallels representative next to the above mentioned string, like this:

      ./upload.sh /Users/yourusername/Documents/Parallels/Windows\ 7.pvm rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/
      

      Press Return to run the script.

Example of usage and successful output:

$ ./upload.sh /Users/jappleseed/Documents/Parallels/Windows7.pvm rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/
Processing file /Users/jappleseed/Documents/Parallels/Windows7.pvm
tar: Removing leading '/' from member names
gzip returned .
uploading MD5 sum and vm.tgz to rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/
Uploading complete.
$ 

Note: If you see some errors in the output or something does not seem to have worked correctly, you may follow the alternative way below.

Alternative way

  1. Open Terminal application (Applications -> Utilities -> Terminal) and switch to the folder where your virtual machine is located. Type in:

    cd 
    

    then drag the icon of the folder your virtual machine and the upload.sh script are located in to the Terminal window next to the cd command.

    So the result will look similar to this:

    cd /Users/jappleseed/Documents/Parallels
    

    Press Return

  2. Then type in:

    tar -czf vm.tgz
    
  3. Open Finder and drag the icon of your virtual machine next to tar -czf vm.tgz, like this:

    The result will look similar to this:

    tar -czf vm.tgz /Users/jappleseed/Documents/Parallels/Windows7.pvm
    

    Press Return and wait till the file is compressed. It will take some time and then the default Terminal string will appear.

  4. Once compession is done, issue the following command:

    md5 
    

    Then drag the vm.tgz file from the Finder (the same folder with your virtual machine) next to md5, like this:

    md5 /Users/jappleseed/Documents/Parallels/vm.tgz 
    

    then type

    > vm.md5
    

    right next to the previous string, so the result will look like this:

    md5 /Users/jappleseed/Documents/Parallels/vm.tgz > vm.md5
    

NOTE: If you have a lack of disk space, you can pre-generate md5 for all VM files by "find . -type f -exec md5 '{}' \;" and upload VM in file-by-file mode. (before running this command cd to the directory where the VM is stored, e.g. run cd ~/Documents/Parallels/).

  1. Once the vm.md5 and vm.tgz files are created (they should now appear in the folder your virtual machine is located), issue the following commands to upload the files to Parallels:

    rsync vm.md5 
    

    add the upload link provided by the Parallels Support representative, for example rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/, so the result will look similar to this:

    rsync vm.md5 rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/
    

    press Return, once vm.md5 file is uploaded, type in:

    rsync vm.tgz 
    

    then add the upload link provided by the Parallels Support representative, for example rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/, so the result will look similar to this:

    rsync vm.tgz rsync://dump.sw.ru/3f0397ebe4c8a6911e085bdfcabb59ed/
    

    press Return.

    Wait till the files are uploaded. It will take some time (up to several hours, depending on your connection speed) and then return a default starting line in Terminal.

Search words:

RAS

PD



Attachments:


df4909b7dd0609a3c148f007041db6d9 1e5db16426987d561060acdf56d947b4 1d70d1f9c41d01c5f7202a4290e434e1 f9b6a8d63f3437e0dca35c9704a9033c 7a8c362b3e95ad9649cd9d3ca49f2ead

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No