TOPIC 8

Date: 3/12/2014
Linux and Windows interoperability
Linux for Engineering and IT Applications


Windows XP virtual appliance deployment in KVM.
Exercise
  • At the moment, you should already have the KVM installed on your desktop. Download the Windows XP VM and deploy it:
    wget http://engshare.rutgers.edu/KVM/Win_XP.tgz
    tar -zxvf Win_XP.tgz
    cd Win_XP
    mv xpvm.img /home/hostadm/KVM 
    cp xpvm.xml /etc/libvirt/qemu
    chown hostadm:hostadm /etc/libvirt/qemu/xpvm.xml
    chown hostadm:hostadm /home/hostadm/KVM/xpvm.img
    virsh define /etc/libvirt/qemu/xpvm.xml
    
  • Launch the virt-manager, navigate to xpvm, and start it.
  • Find out the IP address that has been assigned to XP VM: on your desktop, run command
    grep xpvm /var/lib/libvirt/dnsmasq/default.leases 
    
  • Add the IP address of xpvm, 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  xpvm
    

  • Add the IP address of virbr0 of your desktop to the windows host file: Launch Notepad, navigate to C:\WINDOWS\system32\drivers\etc, and open file hosts:
    Select "All files"
    For example, for desktop16, add the entry like the following:
    192.168.122.1  desktop16 
    





  • Take me to the Course Website