I cant Uploat ISO

Fullmoon

Member
Jun 19, 2020
35
1
13
35
starting file import from: /var/tmp/pveupload-14a4aa0dd80dc57ca1ad72eda713b25b
target node: PROXMOX
target file: /var/lib/vz/template/iso/Windows_Server_2016.ISO
file size is: 4695359488
command: cp -- /var/tmp/pveupload-14a4aa0dd80dc57ca1ad72eda713b25b /var/lib/vz/template/iso/Windows_Server_2016.ISO
TASK ERROR: import failed: cp: error writing '/var/lib/vz/template/iso/Windows_Server_2016.ISO': No space left on device
but
1615489642029.png
 
Hey,

when you upload the ISO it is saved in /var/tmp, already taking up the space, then it is copied to /var/lib/vz/template/iso/, as command: cp -- /var/tmp/pveupload-14a4aa0dd80dc57ca1ad72eda713b25b /var/lib/vz/template/iso/Windows_Server_2016.ISO indicates. You can however avoid that by copying the ISO directly to /var/lib/vz/template/iso/ with:
cp -- <path_to_iso> /var/lib/vz/template/iso
 
Good afternoon. I can not. how do i save a file from windows?
is there an easier way? why could i write files before? how can I clear the temp folder? although i looked. it is almost empty

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@PROXMOX:~# cp -- //192.168.0
cp: missing destination file operand after '//192.168.0'
Try 'cp --help' for more information.
root@PROXMOX:~# cp -- //192.168.0.177/d$/windowsserver2016.iso /var/lib/vz/template/iso
cp: cannot stat '//192.168.0.177/d$/windowsserver2016.iso': No such file or directory
root@PROXMOX:~# cp -- //192.168.0.177/d/windowsserver2016.iso /var/lib/vz/template/iso
cp: cannot stat '//192.168.0.177/d/windowsserver2016.iso': No such file or directory
root@PROXMOX:~# cp -- 192.168.0.177/d/windowsserver2016.iso /var/lib/vz/template/iso
cp: cannot stat '192.168.0.177/d/windowsserver2016.iso': No such file or directory
root@PROXMOX:~# cp -- 192.168.0.177d/windowsserver2016.iso /var/lib/vz/template/iso

Hey,

when you upload the ISO it is saved in /var/tmp, already taking up the space, then it is copied to /var/lib/vz/template/iso/, as command: cp -- /var/tmp/pveupload-14a4aa0dd80dc57ca1ad72eda713b25b /var/lib/vz/template/iso/Windows_Server_2016.ISO indicates. You can however avoid that by copying the ISO directly to /var/lib/vz/template/iso/ with:
cp -- <path_to_iso> /var/lib/vz/template/iso
 
The problem is that that the file would exist twice for a short time, once in the tmp folder and once in the iso folder.

What you could try is to upload the iso file through the WebUI, after it is uploaded go to /var/tmp, there should now be the file you uploaded (with a different name), with ls -lah you should be able to locate the correct file by the size. Once you found it use mv instead of cp, this should not create a copy of the data, but just modify some inodes[1].

1. upload file
2. cd /var/tmp
3. ls -lah
4. mv pveupload-<something> /var/lib/vz/template/iso/Windows_Server_2016.ISO


[1] https://man7.org/linux/man-pages/man7/inode.7.html
 
il faut faire un

chmod 777 /var/lib/vz/template/iso/

c'est une erreur d'ecriture pour une raison de droit
 
This is an english forum, please write in english.
This is also an already solved, old thread - not sure why you would answer here. Setting permissions to 777 means any user can modify the iso, bypassing the API permissions. In most cases that's going to be a bad idea.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!