4.1.2. Creating a Virtual Machine from an ISO Image

To create a new VM myvm from scratch, do the following:

  1. Create a blank VM and set its RAM to 1GB:

    # prlctl create myvm --distribution centos
    # prlctl set myvm --memsize 1024
  2. Enable VNC console access:

    # prlctl set myvm --vnc-mode manual --vnc-port <port> --vnc-passwd <password>
  3. Download the CentOS image from http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1511.iso.
  4. Connect the image to the VM:

    # prlctl set myvm --device-set cdrom0 --image <path_to_image>
  5. Start the VM:

    # prlctl start myvm
  6. Access the VNC console with a VNC viewer.
  7. Install the OS.

The virtual machine is ready. Proceed to install the guest tools as described in the next section.