clone vm or clone disk?

spriebe

Member
Oct 7, 2011
12
0
21
How can i clone a vm or at least a disk of a vm to start another vm with the cloned disk? Reinstalling is bad. I don't care about IP, SSH-keys, ...
 
How can i clone a vm or at least a disk of a vm to start another vm with the cloned disk? Reinstalling is bad. I don't care about IP, SSH-keys, ...

That is not implemented currently. For now, you can just copy the associated file manually.
 
I'm using LVM via iscsi. I then tried to snapshot one of the disks but it doesn't work:

~# lvdisplay
--- Logical volume ---
LV Name /dev/iscsivg/vm-100-disk-1
VG Name iscsivg
LV UUID W9nkFL-nQEq-9fIl-J2M5-rsTY-8xLq-COEB7F
LV Write Access read/write
LV Status available
# open 0
LV Size 120,00 GiB
Current LE 30720
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

--- Logical volume ---
LV Name /dev/iscsivg/vm-101-disk-1
VG Name iscsivg
LV UUID 1q1hjs-3RZd-bHzJ-hiav-mbTV-LeQd-ub4A7y
LV Write Access read/write
LV Status available
# open 1
LV Size 32,00 GiB
Current LE 8192
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1


~# lvcreate --size 32G --snapshot --name vm-102-disk-1 /dev/iscsivg/vm-101-disk-1
vm-101-disk-1 must be active exclusively to create snapshot

Is a feature like that planned?
 

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!