[SOLVED] [PVE 4.3] How clone a container with pct

Antoine Ouvrard

New Member
Oct 20, 2016
3
0
1
37
Hi everyone,

I discovered Proxmox (4.3) and I have one question for you.

I would like update my LXC containers to Proxmox and mostly I used bash command lxc-copy and i would like find equivalent with Proxmox.

When I try command pct clone in CT Proxmox; I always this answer :
Linked clone feature for 'pool1:101/vm-101-disk-1.raw' is not available

Same with LVM or Directory storage type.

I don't understand why.

Thx,

Antoine
 
you can do a backup and restore, the clone feature is not yet completely implemented (but it's in the works).
 
In fact I succeeded with two command :
  • pct template 100 -experimental
  • pct clone 100 400 -experimental
    create linked clone of mountpoint rootfs (local-lvm:base-100-disk-1)
    Logical volume "vm-400-disk-1" created.
 
When you do this though the mac address for the network is still the same. how do you set it up so it will generate new ssh keys and mac
 

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!