Cloning and common operation of VirtualBox virtual machine

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.