[CentOS-es] Clonar VM en kvm

Ernesto Pérez Estévez ernesto.perez en cedia.org.ec
Mar Dic 2 11:01:37 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 12/01/2014 07:53 PM, jorge saul sanchez molina wrote:
> Esta en formato qcow2
ok, con lvm hubiera sido más cómodo.

opcion 1: si pudieras pausar la vm (pausar no es apagar) podrías
entonces usar virt-clone y luego despausarla.

opcion 2: podrías crear un disco, particionarlo y luego montarlo en
/mnt entonces haces rsync desde la vm hacia este disco montado en
/mnt. Le uso bastante cuando migro entre ambientes diferentes (ej:
xen->kvm)

opcion 3: No he probado esto, pero con  dd podrías hacer una copia
directa del qcow2:  dd if=nombredelorigen.qcow2 of=nombredeldestino.qcow2

En todos los casos las BD que puedan estar corriendo quedarán abiertas
y posiblemente tengas que revisarles en la máquina clonada.
saludos
epe



> El dic 1, 2014 6:51 PM, "Ernesto Pérez Estévez"
> <ernesto.perez en cedia.org.ec> escribió:
> 
> On 12/01/2014 04:30 PM, jorge saul sanchez molina wrote:
>>>> Hola lista
>>>> 
>>>> Necesito clonar una máquina virtual en caliente, ya que no la
>>>> puedo apagar es un ambiente productivo. Existe alguna forma
>>>> que hacer esto, la VM esta montada en un centos 6 y la
>>>> maquina virtual también es centros
>>>> 
> 
> y el disco de la VM en qué formato está?
> 
>> 
>> Email secured by Check Point 
>> _______________________________________________ CentOS-es mailing
>> list CentOS-es en centos.org 
>> http://lists.centos.org/mailman/listinfo/centos-es
>> 
> _______________________________________________ CentOS-es mailing
> list CentOS-es en centos.org 
> http://lists.centos.org/mailman/listinfo/centos-es
> 
> Email secured by Check Point
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUfZwQAAoJEI8SQ0eoZD/XI30P/icTu3msUL0G19El3+NA5quk
w1Lg4qtW60Ds8WA6/5qu0VXo5qBc31MevX9Uj11q2UyeXpJQ7HshjqUkpuIZvuaK
1qgBPGQ68CU/13XiAu4vLbI8P2WEEbOAe9ugFxwxm7XF+w9+KPPo6ZeEjP30SiZT
bspn4iB9rj5QZ9BVw5cR+/5DjNfAMZWgVkfcM2xB67fEfyqSepx33rxKtO1RoCQg
7DYb0MxBVRYFwhU10FoLmJr/cKH23iitdVqw2wYD9YYWNMKWxG4xstilZ+XYGnFH
0pCz4Sfwv5j4QV0QmvCb2VcO2pvO2S5yLPNl2HE1Ua+0VW+minEL561UuHB3QpYy
cO18nvE4BiCzh+QM7OQMzfssZk98cC5RmQfecbu9BjjAgwEQkQ7BB2sr5MC1Nlca
vDDy8lTrQxp+2U6aiWhYjTOx1p82ilb/w7wqF6cphtz8DYVIz8S3N5tFbeINGG0s
A0QAEfWR7J/XdMFYaulQxZIs+MzNXIuFu9AQs0/frTOrr7bZTmj217TAl3Ik2Kdw
Q7P8iMmn+iY0+HASY5Z2RjkrYecvdz4g3YarM5vAiaEQa9UnAL/pXDZyEYZaPueU
MgUK0Piea2UofElsGu4jj4mMtO3QJG43NzgHsjNvS1oGxBRD/+DiuEjidPIqjfNH
EfQ65p065r118Spq+Cqt
=WO61
-----END PGP SIGNATURE-----

Email secured by Check Point


Más información sobre la lista de distribución CentOS-es