Как клонировать виртуальную машину virtualbox
Oracle® VM VirtualBox
User Manual for Release 6.0
- Preface
- First Steps
- Why is Virtualization Useful?
- Some Terminology
- Features Overview
- Supported Host Operating Systems
- Host CPU Requirements
- Starting a New VM for the First Time
- Capturing and Releasing Keyboard and Mouse
- Typing Special Characters
- Changing Removable Media
- Resizing the Machine’s Window
- Saving the State of the Machine
- Taking, Restoring, and Deleting Snapshots
- Snapshot Contents
- About the OVF Format
- Importing an Appliance in OVF Format
- Exporting an Appliance in OVF Format
- Exporting an Appliance to Oracle Cloud Infrastructure
- Importing an Instance from Oracle Cloud Infrastructure
- The Cloud Profile Manager
- Using the Soft Keyboard
- Creating a Custom Keyboard Layout
- Installing on Windows Hosts
- Prerequisites
- Performing the Installation
- Uninstallation
- Unattended Installation
- Public Properties
- Performing the Installation
- Uninstallation
- Unattended Installation
- Prerequisites
- The Oracle VM VirtualBox Kernel Modules
- Kernel Modules and UEFI Secure Boot
- Installing Oracle VM VirtualBox from a Debian or Ubuntu Package
- Using the Alternative Generic Installer (VirtualBox.run)
- Performing a Manual Installation
- Updating and Uninstalling Oracle VM VirtualBox
- Automatic Installation of Debian Packages
- Automatic Installation of RPM Packages
- Automatic Installation Options
- Performing the Installation
- The vboxuser Group
- Starting Oracle VM VirtualBox on Oracle Solaris
- Uninstallation
- Unattended Installation
- Configuring a Zone for Running Oracle VM VirtualBox
- Supported Guest Operating Systems
- Mac OS X Guests
- 64-bit Guests
- An Example of Unattended Guest Installation
- Basic Tab
- Advanced Tab
- Description Tab
- Disk Encryption Tab
- Motherboard Tab
- Processor Tab
- Acceleration Tab
- Screen Tab
- Remote Display Tab
- Recording Tab
- USB Settings
- Implementation Notes for Windows and Linux Hosts
- Video Modes in EFI
- Specifying Boot Arguments
- Introduction to Guest Additions
- Installing and Maintaining Guest Additions
- Guest Additions for Windows
- Installing the Windows Guest Additions
- Updating the Windows Guest Additions
- Unattended Installation
- Manual File Extraction
- Installing the Linux Guest Additions
- Graphics and Mouse Integration
- Updating the Linux Guest Additions
- Uninstalling the Linux Guest Additions
- Installing the Oracle Solaris Guest Additions
- Uninstalling the Oracle Solaris Guest Additions
- Updating the Oracle Solaris Guest Additions
- Manual Mounting
- Automatic Mounting
- Supported Formats
- Known Limitations
- Hardware 3D Acceleration (OpenGL and Direct3D 8/9)
- Hardware 2D Video Acceleration for Windows Guests
- Using Guest Properties to Wait on VM Events
- Using the Guest Control File Manager
- Memory Ballooning
- Page Fusion
- Hard Disk Controllers
- Disk Image Files (VDI, VMDK, VHD, HDD)
- The Virtual Media Manager
- Special Image Write Modes
- Differencing Images
- Cloning Disk Images
- Host Input/Output Caching
- Limiting Bandwidth for Disk Images
- CD/DVD Support
- iSCSI Servers
- vboximg-mount: A Utility for FUSE Mounting a Virtual Disk Image
- Viewing Detailed Information About a Virtual Disk Image
- Mounting a Virtual Disk Image
- Virtual Networking Hardware
- Introduction to Networking Modes
- Network Address Translation (NAT)
- Configuring Port Forwarding with NAT
- PXE Booting with NAT
- NAT Limitations
- Introduction
- Commands Overview
- General Options
- VBoxManage list
- VBoxManage showvminfo
- VBoxManage registervm/unregistervm
- VBoxManage createvm
- VBoxManage modifyvm
- General Settings
- Networking Settings
- NAT Networking Settings
- Import from OVF
- Import from Oracle Cloud Infrastructure
- Export to OVF
- Export to Oracle Cloud Infrastructure
- Synopsis
- Description
- unattended detect
- unattended install
- Synopsis
- Description
- General Command Operand
- Take a Snapshot of a Virtual Machine
- Delete a Snapshot
- Restore a Snapshot
- Restore the Current Snapshot
- Change the Name or Description of an Existing Snapshot
- List the Snapshots
- Show Information About a Snapshot’s Settings
- Synopsis
- Description
- Command Operand and Options
- Examples
- See Also
- Synopsis
- Description
- extpack install
- extpack uninstall
- extpack cleanup
- Synopsis
- Description
- Common options
- dhcpserver add
- dhcpserver modify
- dhcpserver remove
- dhcpserver restart
- dhcpserver findlease
- Common DHCP Options:
- Synopsis
- Description
- Common options
- debugvm dumpvmcore
- debugvm info
- debugvm injectnmi
- debugvm log
- debugvm logdest
- debugvm logflags
- debugvm osdetect
- debugvm osinfo
- debugvm osdmesg
- debugvm getregisters
- debugvm setregisters
- debugvm show
- debugvm stack
- debugvm statistics
- Synopsis
- Description
- Common options
- cloudprofile add
- cloudprofile show
- cloudprofile update
- cloudprofile delete
- Synopsis
- Description
- Common options
- cloud list instances
- cloud list images
- Synopsis
- Description
- Common options
- cloud instance create
- cloud instance info
- cloud instance termination
- cloud instance start
- cloud instance pause
- Synopsis
- Description
- Common options
- cloud image create
- cloud image info
- cloud image delete
- cloud image import
- cloud image export
1.13. Cloning Virtual Machines
You can create a full copy or a linked copy of an existing VM. This copy is called a clone . You might use a cloned VM to experiment with a VM configuration, to test different guest OS levels, or to back up a VM.
The Clone Virtual Machine wizard guides you through the cloning process.
Figure 1.11 The Clone Virtual Machine Wizard
Start the wizard by clicking Clone in the right-click menu of the VirtualBox Manager’s machine list or in the Snapshots view of the selected VM.
Specify a new Name for the clone. You can choose a Path for the cloned virtual machine, otherwise Oracle VM VirtualBox uses the default machines folder.
The Clone Type option specifies whether to create a clone linked to the source VM or to create a fully independent clone:
Full Clone: Copies all dependent disk images to the new VM folder. A full clone can operate fully without the source VM.
Linked Clone: Creates new differencing disk images based on the source VM disk images. If you select the current state of the source VM as the clone point, Oracle VM VirtualBox creates a new snapshot.
The Snapshots option specifies whether to create a clone of the current machine state only or of everything.
Everything: Clones the current machine state and all its snapshots.
Current Machine State and All Children: . Clones a VM snapshot and all its child snapshots.
The following clone options are available:
MAC Address Policy: Specifies how to retain network card MAC addresses when cloning the VM.
For example, the Generate New MAC Addresses For All Network Adapters value assigns a new MAC address to each network card during cloning. This is the default setting. This is the best option when both the source VM and the cloned VM must operate on the same network. Other values enable you to retain the existing MAC addresses in the cloned VM.
Keep Disk Names: Retains the disk image names when cloning the VM.
Keep Hardware UUIDs: Retains the hardware universally unique identifiers (UUIDs) when cloning the VM.
The duration of the clone operation depends on the size and number of attached disk images. In addition, the clone operation saves all the differencing disk images of a snapshot.
Note that the Clone menu item is disabled while a machine is running.
You can also use the VBoxManage clonevm command to clone a VM. See Section 7.40, “VBoxManage clonevm”.
Copyright © 2004, 2020 Oracle and/or its affiliates. All rights reserved. Legal Notices
Как клонировать виртуальную машину?
Есть новый настроенный образ для VirtualBox. Как создать точно такую же копию (речь не о снимках, а именно о второй машине).


Скопируйте том, создайте новую ОС и при выборе хранилища не создавайте новое хранилище, а выберите копию тома.
Поставьте свежую версию. Там прямо в ней появился значок с овцой. Этим можно клонировать машину (без снимков естественно).
А если документацию почитать? vboxmanage clonevm
Лично мне надо было сделать две виртуальные машины(одинаковые) на двух компьютерах.Я просто установил и настроил все на первом компьютере,а потом на другом установил программу и скопировал с первой виртуальный диск системы(*.vdi) на второю и просто указал при создании новой машины «использовать существующий диск»
Дизайн сайта / логотип © 2023 Stack Exchange Inc; пользовательские материалы лицензированы в соответствии с CC BY-SA . rev 2023.8.2.43556
Нажимая «Принять все файлы cookie» вы соглашаетесь, что Stack Exchange может хранить файлы cookie на вашем устройстве и раскрывать информацию в соответствии с нашей Политикой в отношении файлов cookie.
How to Clone Virtual Machine in VirtualBox
Installing a fresh operating system on VirtualBox is easy and can be done in a short time. After that, there are so many steps like installing packages, hardening the OS, updating drivers, configuring development environments, etc.. have to be done.
This is ok if you have just one virtual machine to work with. What if you need to repeat the same procedure for 5, 10, or 15 more virtual machines? Do you think it is easy to set up everything manually for all the virtual machines? It is a time-consuming task, right? This is where the cloning process comes into play.
Cloning is a process where your disk images from one machine will be copied to spin up a new Guest VM.
Types of Cloning in VirtualBox
There are two types of cloning in VirtualBox.
- Full Clone – In this mode, your existing disk image will be copied to a new location and a clone will be created. Your new disk will not be dependent on the source disk from where it is cloned from.
- Linked Clone – In this mode, a differential image is created and the parent disk will be your source image disk. If you remove the parent disk then cloned machine will not work.
Note: The time of cloning a virtual machine relies on the size and the number of connected disk images.
Cloning a VirtualBox Virtual Machine
Creating a clone is a very simple process. Open VirtualBox Manager, choose the virtual machine to be cloned and right-click on the VM, and choose option clone. The cloning option will be disabled if VM is in a running state so make sure VM is turned off.

VirtualBox Clone
Once you initiate the clone, click on ‘Expert Mode‘ and there are few parameters we have to configure. Initially, we will do a full clone.
- Name: Name of your VM.
- Path: Storage location for your VM.
- Clone type: Full Clone.
- Snapshots: There are two snapshot options that specify whether to take a snapshot of the current machine state or everything. I don’t have any snapshot configured so I am choosing “Current Machine State“.
- MAC Address Policy: when cloning you have the option to stick with the same MAC address or create a new one for your network interface. It is advisable to create a new one.
- Keep Disk Names, Hardware UUIDs: This will retain the same Disk name and hardware UUID during cloning.
Once you have filled all the necessary parameters and press clone you will see cloning will be started.

Cloning Virtual Machine
Once the cloning is completed your cloned image will be automatically displayed in the Virtualbox Manager.

View VirtualBox Cloned VM
In the next article, we will take a look at Importing and Exporting virtual machines in VirtualBox.
Virtualbox: клонирование виртуальных машин
Клонирование созданных виртуальных машин — задача, частая при создании и тестировании собственных индивидуализированных сборок. Благо, в Virtualbox’е она выполняется не просто, а очень просто. Соответствующая функция вызывается либо из главного меню: Машина –> Клонировать, либо из контекстного меню по ПКМ:

Очевидно, что в любом случае клонируемая машина должна быть выключена — в работающей машине указанный пункт активизирован не будет.
В появившемся окне будет предложено задать имя новой машины — по умолчанию это будет Клон [orig-name], однако ясно, что оно может быть любым, кроме совпадающего с исходным:

Нужно ли генерировать новые MAC-адреса для сетевых устройств — зависит от задачи. Для тех целей, в которых я использую Virtualbox (тестирование и модификация собственных образов) — не нужно.
Далее предлагается определить с типом клонирования — полным или связным. Чем они разлимчаются — очевидно из поясняющего текста. Для моих целей подходит только полное клонирование:

Далее начинается процесс клонирования:

Длительность его зависит от величины VDI-образа и быстродействия. По завершении клонирования никакого сообщения не выводится — просто в списке виртуальных машин появляется ещё одно имя:

В примере можно видеть cintu-ts — собранную «вручную» систему-матку из mini.iso Ubuntu 16.04.1 и Cinnamon из репозитория Tsvetko, без всяких дополнительных компонентов, и два её (пока) точных клона, которым со временем предстоит стать mini- и midi-редакциями Cintu 16.04.2, соответственно.
Автор: alv
Сочинитель в жанре беллетристики технологической и более иной. Не рекомендуемой к прочтению информационно-неполовозрелым и литературно невинным гражданам. Посмотреть все записи автора alv
- Guest Additions for Windows