Table of Contents

Linux Kernel Virtual Machines

Install Drivers During Windows Installation (Preferred)

Install Drivers After Windows Guest Installation

:!: Consider using raw disk images/partitions hosting Microsoft SQL database files for best performance.

Create a Windows 7 VM

  1. Create the VM using Virt-Manager
    • Choose Customize configuration before install
  2. Remove Disk 1
  3. Add Hardware
    1. VirtIO Drivers ISO
      • Storage → Select managed or other existing → Browse → Browse Local → virtio-win-0.1-59.iso
      • Device type → IDE CDROM
    2. Disk 1
      • Storage → Create disk image (at least 30GB)
      • Allocate entire disk now → Deselect
      • Device type → VirtIO disk
      • Cache mode → None
      • Storage format → qcow2
  4. Modify the NIC
    • Device Model → VirtIO
  5. Modify the Video
    • Model → QXL
  6. Modify the Display
    • Type → SPICE
    • Add the Spice agent channels → Yes
  7. Start the Windows installation
    • Load Driver → Select all three VirtIO drivers
      • NIC
      • SCSI
      • Balloon

Virtual to Physical

http://www.savelono.com/linux/how-to-migrate-a-qemu-kvm-image-to-a-physical-machinepc.html

Virtualbox to KVM Migration

http://arjunstechblog.blogspot.com/2011/06/how-to-migrate-from-virtualbox-to-kvm.html

VBoxManage clonehd --format RAW orig_disk_name.[vdi|vmdk] new_disk_name.img

qemu-img convert -f raw new_disk_name.img -O qcow2 new_disk_name.qcow