Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Cloning a Virtual Machine in Virtualbox

Leer en espanol
Cloning a Virtual Machine in Virtualbox

Table of contents

An important aspect when managing virtual machines is cloning. With this useful mechanism we can easily export complete functional systems and thereby make backup copies or distribute a machine for various purposes.

We access the directory where the virtual machines are located.

Bash
root@red-orbita: # cd /home/rokitoh/.VirtualBox/HardDisks

If we do a ls we check all the machines

root@red-orbita:/home/rokitoh/.VirtualBox/HardDisks# ls
cacti.vdi centos.vdi clustersrv01.vdi FREBBSD1.vdi nagios.vdi RED5.vdi Solaris.vdi CDP.vdi centOS .vdi DATANAS.vdi netapp.vdi OpenMediaValut.vdi slackware.vdi suse.vdi Win2003Srv.vdi ZOS .vdi

To clone we use the following command:

Bash
root@red-orbita:/home/rokitoh/.VirtualBox/HardDisks# vboxmanage clonevdi clustersrv01.vdi clustersrv02.vdi
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10_OSE

(C) 2005-2010 Oracle Corporation

All rights reserved.

0%…10%…20%…30%…40%…50%…60%…70%…80%…90%…100%Clone hard disk created in ‘VDI’ format. UUID: cb4fd7de-e240-457d-88a9-91307f88fba9

Regards, Rokitoh

:wq!

Comments