1. VirtualBox Clone virtual Machine
A. Replicating the source virtual machine's VDI files (required in case of shutdown)
Example: CP/LOCAL/VM/SOURCE.VDI/LOCAL/VM/DEST.VDI
B. Generate a new UUID for the new virtual machine file: Execute command: Vboxmanage internalcommands SETHDUUID/LOCAL/VM/DEST.VDI
C. Create a new virtual machine on VirtualBox, choose to use the existing VDI file.
If you encounter the following problem: Failed to open a session for the virtual machine. It is possible that the VDI file does not have enough permissions to execute, and you can try to increase the permissions with chmod.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6F/C1/wKiom1WnQiPxDKNyAADwe1B76vc865.jpg "title=" Cut.png "alt=" Wkiom1wnqipxdknyaadwe1b76vc865.jpg "/>
D. After the creation, the basic parameters of the virtual machine settings, such as memory size, network mode (NAT, bridging, such as Nat mode, can be series port forwarding settings), shared file directory settings.
E. Start the virtual machine, network card, firewall, selinux settings and so on to check, and set up the boot from the boot, because the virtual machine is cloned, the MAC address of the network card will be repeated, so to do a bit of processing:
Go to directory: cd/etc/udev/rules.d/, delete 70-persistent-net.rules file: Rm-rf 70-persistent-net.rules, restart machine: reboot
F. You can set up a virtual machine to boot from:
The command to launch the VM needs to be added to the/etc/rc.d/rc.local file:
/usr/bin/vboxmanage STARTVM ' episode '--type Headless & (' episode ' is the name of the virtual machine)
G. Some vboxmanage common commands:
Vboxmanage list RUNNINGVM--> list the currently running virtual machines (to be aware of user identity, a user-enabled virtual machine B user cannot see)
Vboxmanage CONTROLVM Episode Poweroff--Force shutdown of virtual machines
For more commands please refer to: http://blog.csdn.net/zm_21/article/details/9250489
This article is from the "Coding like researching" blog, so be sure to keep this source http://sikana.blog.51cto.com/10252094/1675259
Cloning and common operation of VirtualBox virtual machine