• Bare Metal Server

  1. Help Center
  2. Bare Metal Server
  3. Private Image Creation Guide (BMS)
  4. Creating a Windows Image
  5. Creating a VM

Creating a VM

This section describes how to create a Windows Server 2012 VM using virt-manager. The methods of creating VMs running other types of OSs are similar to this method. The following figures and steps are for reference only.

  1. Log in to the server used to create an image and start virt-manager.
    [root@localhost Desktop]# virt-manager
    [root@localhost Desktop]# 
  2. Create a VM and select Local install media (ISO image or CDROM). Click Forward.
  3. Select the ISO image file in the resource pool and select the OS type and version.

  4. Configure the memory and CPUs of the VM Windows OS.
    • Memory (RAM): 4096 MiB
    • CPUs: 4
  5. Configure the size of the disk image. Do not set a too large value. Otherwise, the generated image will be too large.

  6. Click Manage and select a storage path, for example, /var/lib/libvirt/images.

    Click , set Name (suffix .img is recommended so that the image can be compressed if it is large) and select raw (recommended) for Format.

    Click Finish. In the displayed storage volume list, select the created storage volume and click Choose Volume.

  7. Select Customize Configuration before install.

  8. Configure the NIC, select e1000 for Device model, and click Apply.

  9. Click Begin Installation.
  10. Install Windows.

    Select the installation language, time and currency format, and activate Windows Server 2012 using the product key you have purchased. Set other parameters based on requirements.