Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got a KVM Virtual Machine in my local PC, and I'd like to copy it to a Proxmox server. According to the docs, I just have to create a new VM on Proxmox and add the existing disk image to it, but how do I upload the image to the server? In the admin panel, if I click in MyStorage -> Content -> Upload, it just give me options to upload ISOs, VZDump backup files or OpenVZ templates. Would it be enough with a copy using scp? In that case, in which folder?

share|improve this question

1 Answer 1

Is your storage not set to allow image files? Go to Datacenter -> Storage tab, select your storage and edit. Under "Content", make sure that "Images" is selected.

I just checked mine and am seeing the same thing as the OP. I would scp the file up and then manually edit the VM's .conf file.

Local storage on proxmox is in /var/lib/vz. There should be an "images" subdirectory with a directory there for each VM (named by the VM number). You can scp the files directly there.

For adding the existing file to the VM, I've had good luck editing the VM's .conf file directly. Look in /etc/pve/qemu-server/ for a file with the VM number followed by .conf.

It's a good idea to create a second test VM so you can refer to it's .conf file to make sure you get the syntax right.

-- adding text from a comment below

I think you can scp the file up. You probably want to look at /var/lib/vz/images/{VMID}/ for the destination. Then maybe look at /etc/pve/qemu-server/{VMID}.conf and add a line for the storage.

share|improve this answer
    
I checked it, and Images, ISO, Templates and Containers are selected. However, when I go to MyStorage -> Content -> Upload, I just can choose between ISOs, VZDump backup files or OpenVZ templates –  davids Oct 24 '12 at 8:42
1  
Hmmm, mine says the same. I think you can scp the file up. You probably want to look at /var/lib/vz/images/{VMID}/ for the destination. Then maybe look at /etc/pve/qemu-server/{VMID}.conf and add a line for the storage. –  jlp Oct 24 '12 at 22:52
    
please, in order to accept your answer, edit it adding your last comment, as it is exactly what I ended up doing. –  davids Jan 4 '13 at 9:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.