TOPIC 8

Date: 3/29/2017
Linux and Windows interoperability
Linux System Administration


Windows 7 virtual appliance deployment in KVM.
Exercise
  • 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
    wget http://192.168.5.240/coursefiles/Win7.tgz
    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.
    Navigate to Win7, click onto View, slide down to Details and click. In Video configuration, replace VGA with Cirrus. Click Apply. Start the VM.

  • Find out the IP address that has been assigned to Win7 VM: on your desktop, run command
    less /var/lib/libvirt/dnsmasq/virbr0.status 
    
  • 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.
    192.168.122.245  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, 192.168.122.1, 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.
    192.168.122.1  desktop 
    

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




  • Take me to the Course Website