optimal settings for win7 64 guest on kvm 64 host managed with libvirt

185

Solution 1

  1. Use virtio for disks and network.
  2. for the mountpoint where you keep the images and the isos, use the noatime and nodiratime options
  3. use the deadline scheduler on the host
  4. use spice/qxl for video for proper video performance

Solution 2

I just installed Windows 7 and then after the installation changed the disk to use virtio.

To load the drivers, I added a temporary virtio device (1G) and then rebooted the guest. Then, loaded in the Windows drivers for the virtio through device manager.

Then, shutdown the guest, changed the main disk from IDE to virtio. Becuase Windows 7 had already loaded in the virtio drivers from my temporary device, it coped fine with the IDE disk changing to virtio.

Share:
185

Related videos on Youtube

ShellRox
Author by

ShellRox

Updated on September 18, 2022

Comments

  • ShellRox
    ShellRox almost 2 years

    I have figured out how to receive payments using django-paypal library from python, but i couldn't find the feature that would send the funds to other users.

    Although there wasn't such feature in django-paypal, i have found out PayPal's mass payments from API, but i couldn't understand how would i use it in Python.


    So for example, i know the email of user, how could i send 5$ by just email information.

    Code Example:

    import random
    User = "[email protected]"
    import MassivePay
    
    
    def Sender():
        MassivePay.sendto = random.choice(User)
        MassivePay.send(5)
    
    
    if __name__ == "__main__":
        p = Process(target=Sender)
        p.start()
    

    I know it's too easy example demonstrated in code, but how could it be seriously done in Django? Is there any library specially designed for framework? Or Python itself? If so how can i use it? Does masspay work with Django at all?

  • Kenny Rasschaert
    Kenny Rasschaert about 12 years
    Very interesting answer. Could you expand a bit on the reasoning behind these practices?
  • David Corsalini
    David Corsalini about 12 years
    these are the most common ones, and if you take a minute to google, you'll see them all over the place. virtio devices provide much better performance than the emulated devices (ide, rtl, e1000) because they are paravirtualised. noatime and nodiratime prevent the host from generating redundant io to the disk, deadline is just known to be the best for most VM loads, and spice/qxl is a much better graphical system than VNC can ever be - providing high resolutions and good video performance
  • dasdasd
    dasdasd about 12 years
    Windows refuses to install on virtio, do I need that special driver on the kvm site?
  • David Corsalini
    David Corsalini about 12 years