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?