Date: 6/12/2019
Linux and Windows interoperability
Linux System Administration

Windows 7 virtual appliance deployment in KVM.
  • At the moment, you should already have the KVM installed on your desktop. Download the Windows 7 VM and deploy it:
    cd /tmp
    mkdir WinVM
    cd WinVM
    tar -zxvf Win7.tgz
    mv Win7.img /var/lib/libvirt/images
    cp Win7.xml /etc/libvirt/qemu
    chown hostadm:hostadm /etc/libvirt/qemu/Win7.xml
    chown hostadm:hostadm /var/lib/libvirt/images/Win7.img
    virsh define /etc/libvirt/qemu/Win7.xml
  • Launch the virt-manager.
    Start the VM.

  • Find out the IP address that has been assigned to Win7 VM: on your desktop, run command
    virsh domifaddr Win7
  • Add the IP address of win7, into /etc/hosts on your desktop for the host name resolution, as below for example. If the correct IP address entry is already present in file /etc/hosts, skip this step.  win7

  • We'll be accessing the desktop from Win7 over the private virtual network.
    The links below demonstrates how to add the IP address of virbr0 of your desktop,, to the windows host file:
    Launch Notepad as Administrator,
    navigate to C:\WINDOWS\system32\drivers\etc, and open file hosts,
    add the following line in end of the file.  desktop

  • Try pinging the desktop by the host name from the command line, cmd:
    ping  desktop

  • Take me to the Course Website