Duplication ov KVM Machines

JofleyUK

New Member
Nov 4, 2009
8
0
1
Hi Guys

A quick question, after configuring and building a KVM, is it possible to duplicate it many times. That would only leave the IP address internally to be changed on the KVM's. This would save me hours of work tonight if this is possible.
 
A quick question, after configuring and building a KVM, is it possible to duplicate it many times. That would only leave the IP address internally to be changed on the KVM's. This would save me hours of work tonight if this is possible.

Sure, you can simply copy the image. But it depends somehow on what that image contains, for example you should make sure that all copies have unique ssh keys, unique IP setting, unique hostname, ...
 
AHA... i never thought about SSH Keys...

How can I do that? ;) I am going blonde in my old age!!

Setting the hostname and IP's is a breeze. Simply we are going to create one, shut it down and then start each one individually and then set the hostname and IP config.

I have never reset or set the SSH keys.
 
Sure, you can simply copy the image. ....... ...

Sorry, I´m a new user and looking at the posts I've found no answer to this question:

What are the steps to 'copy the image' as stated in your post:

I've duplicated var/lib/vx/images/101 to var/lib/vx/images/102 and renamed vm-101-disk-1.raw to vm-102-disk-1.raw

Obviously any other actions are needed.
Can you list them. ?

Thanks
 
It might be easier to use the GUI to make a backup and then restore using "qmrestore". However doing it manually you need to dublicate and change the configuration file also. See "/etc/qemu-server".
 
It might be easier to use the GUI to make a backup and then restore using "qmrestore". However doing it manually you need to dublicate and change the configuration file also. See "/etc/qemu-server".
Thank you, I was missing Configuration Files...

I copied 101.conf to 102.conf and edited accordingly

Best Regards
 

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!