[PVE-User] Mount ceph storage to replace vm image

Lindsay Mathieson lindsay.mathieson at gmail.com
Tue Feb 24 13:00:25 CET 2015


On Tue, 24 Feb 2015 01:45:06 PM Marc Peiser wrote:
> Yes my storage is rdp. My qcow2 image that I converted is sitting in root's
> home directory /root/system.qcow2
> 
> So I'd like to know how I copy this image from /root over to the ceph rbd
> volume called ceph-store-1 overwriting my empty vm?


You need to get your image on to local proxmox storage first. You should have 
the default "local" storage for each proxmox node, which is mounted at 
"/var/lib/vz".

What you need to do is create a hard disk of any size for your VM on local 
storage, then copy the imported qcow2 image over it. Then "Move" the disk to 
Ceph.

e.g if the ProxMoxVM you created has an ID of "100"

In the Proxmox WebGUI

- Select VM 100

- Open the Hardware Tab

- Create a QCOW2 hard disk (if not already created).

- SSH onto the proxmoxbox

- The VM's hard disk is located at:
  /var/lib/vz/images/100/vm-100-disk-1.qcow2

- Overwrite it with your imported VM disk.
  "cp /root/system.qcow2  vm-100-disk-1.qcow2"

- Select the disk (vm-100-disk-1.qcow2) in the hardware tab on the web gui.

- Probably a good idea to start it up at this stage and check it actually 
boots. Maybe snapshot it first.

- Shut the VM down

- Click the "Move Disk" button in the strip under the Proxmox Tabs

- Choose the Ceph storage as the destination.




More information about the pve-user mailing list