Windows 7 image creation within VIRL Host

    See original discussion here: Windows 7 image creation within VIRL Host - VIRL - Dev-Innovate discussion and support community


    Step 1

    This example creates a Windows 7 qcow2 image, using
    virt-install and the KVM hypervisor.Follow these steps to prepare the installation:Download a Windows 7 installation ISO. Evaluation
      images are available on the
      Microsoft website (registration required).Download the signed VirtIO drivers ISO from the Fedora
      website.Create a 20 GB qcow2 image:

    sudo qemu-img create -f qcow2 ws7-SP1.qcow2 20G

    Step 2
    Start the Windows 7 installation with the virt-install command:

    sudo virt-install --connect qemu:///system \
      --name ws7-SP1 --ram 2048 --vcpus 1 \
      --network network=default,model=virtio \
      --disk path=ws7-SP1.qcow2,format=qcow2,device=disk,bus=virtio \
      --cdrom /home/virl/X17-59186.iso \
      --disk path=/home/virl/Downloads/virtio-win-0.1-100.iso,device=cdrom \
      --vnc --os-type windows --os-variant win7

    Use virt-manager or virt-viewer to connect to the VM and start the Windows installation.

    Step 3
    Enable the VirtIO drivers.The disk is not detected by default by the Windows installer. When requested to choose an installation target,
    click Load driver and browse the file system to select the
       E:\WIN7\AMD64 folder.
    The Windows installer displays a list of drivers to install. Select the VirtIO SCSI and network drivers, and continue the installation.

    Once the installation is completed, the VM restarts.
    Define a password for the administrator when prompted.

    Log in as administrator and start a command window.

    Complete the VirtIO drivers installation by running the following command:

    C:\pnputil -i -a E:\WIN7\AMD64*.INF

    Then log in to user work space management and create a subtype

    Please Note: Name Of Default Image = "Win7-SP1" (as per our example.I have specified the wrong image name in the screen shot), Then Name Of Default Flavor="you can either leave the default or create a flavor called win7 as I have done"

    Now create a shared VM based on our Sub Type