Home | History | Annotate | Download | only in kvm
      1 # Copy this file to virtio-win.cfg and edit it.
      2 # This file intends to be a central point of configuration for folks wanting
      3 # to install windows virtio drivers on windows guests
      4 
      5 # A bit of context on windows virtio drivers install
      6 # --------------------------------------------------
      7 # This method of install so far covers the storage (viostor) and network
      8 # (NetKVM) drivers. KVM autotest uses a boot floppy with a Windows answer
      9 # file in order to perform unattended install of windows guests. For winXP
     10 # and win2003, the unattended files are simple .ini files, while for win2008
     11 # and later, the unattended files are XML files.
     12 #
     13 # In order to install the virtio drivers during guest install, KVM autotest
     14 # has to inform the windows install programs *where* to find the drivers. So,
     15 # we work from the following assumptions:
     16 #
     17 # * You already have an iso file that contains windows virtio drivers
     18 # (inf files) for both netkvm and viostor. If you are unsure how to generate
     19 # that iso, there's an example script under contrib, inside the kvm test
     20 # directory. If you take a look at the files inside this iso image, a small
     21 # part of them should look like:
     22 #
     23 # ./wxp/x86/viostor.cat
     24 # ./wxp/x86/viostor.inf
     25 # ./wxp/x86/viostor.pdb
     26 # ./wxp/x86/viostor.sys
     27 #
     28 # * If you are planning on installing WinXP or Win2003, you should also have
     29 # a pre-made floppy disk image with the virtio drivers *and* a configuration
     30 # file that the installer program will read to fetch the right drivers from it.
     31 # Unfortunately, I don't have much info on how to build that file, you probably
     32 # would have the image already assembled if you are willing to test those guest
     33 # OS.
     34 #
     35 # So you have to map the paths of your cd containing the drivers on the config
     36 # variables. More details below.
     37 
     38 Windows:
     39     unattended_install.cdrom, whql.support_vm_install:
     40         # In order to enable drivers install, turn the below to 'yes'
     41         install_virtio = no
     42 
     43         # In order to enable drivers install, uncomment the assignment lines
     44         # below.
     45 
     46         # This makes the vm to be started with the virtio iso file as an extra
     47         # cdrom drive
     48         #cdroms += " virtio"
     49 
     50         # This assumes the virtio iso will be at (/tmp/kvm_autotest_root/isos)
     51         #cdrom_virtio = isos/virtio-win.iso
     52 
     53         # This ensures the iso will appear to the guest as F:
     54         #drive_index_virtio = 3
     55 
     56         # This assumes the virtio floppy will be at (/tmp/kvm_autotest_root/)
     57         # This floppy is needed only if you desire to test virtio drivers
     58         # install for WinXP and Win2003. If you don't, you can leave the line
     59         # below uncommented
     60         #virtio_floppy = virtio-drivers.vfd
     61 
     62     WinXP:
     63         32:
     64             unattended_install.cdrom, whql.support_vm_install:
     65                 # This is a label used on the oemsetup.ini file, inside your
     66                 # virtio floppy. You might actually want to check what are
     67                 # the labels on yours
     68                 virtio_oemsetup_id = WXP32
     69 
     70                 # Look at your cd structure and see where the drivers are
     71                 # actually located
     72                 virtio_network_path = 'F:\xp\x86'
     73 
     74                 # Uncomment if you have a nw driver installer on the iso
     75                 #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
     76 
     77         64:
     78             unattended_install.cdrom, whql.support_vm_install:
     79                 # This is a label used on the oemsetup.ini file, inside your
     80                 # virtio floppy. You might actually want to check what are
     81                 # the labels on yours
     82                 virtio_oemsetup_id = WNET64
     83 
     84                 # Look at your cd structure and see where the drivers are
     85                 # actually located
     86                 virtio_network_path = 'F:\xp\amd64'
     87 
     88                 # Uncomment if you have a nw driver installer on the iso
     89                 #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
     90 
     91     Win2003:
     92         32:
     93             unattended_install.cdrom, whql.support_vm_install:
     94                 # This is a label used on the oemsetup.ini file, inside your
     95                 # virtio floppy. You might actually want to check what are
     96                 # the labels on yours
     97                 virtio_oemsetup_id = WNET32
     98 
     99                 # Look at your cd structure and see where the drivers are
    100                 # actually located
    101                 virtio_network_path = 'F:\xp\x86'
    102 
    103                 # Uncomment if you have a nw driver installer on the iso
    104                 #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
    105 
    106         64:
    107             unattended_install.cdrom, whql.support_vm_install:
    108                 # This is a label used on the oemsetup.ini file, inside your
    109                 # virtio floppy. You might actually want to check what are
    110                 # the labels on yours
    111                 virtio_oemsetup_id = WNET64
    112 
    113                 # Look at your cd structure and see where the drivers are
    114                 # actually located
    115                 virtio_network_path = 'F:\xp\amd64'
    116 
    117                 # Uncomment if you have a nw driver installer on the iso
    118                 #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    119 
    120     WinVista:
    121         32:
    122             sp1:
    123                 unattended_install.cdrom, whql.support_vm_install:
    124                     # Look at your cd structure and see where the drivers are
    125                     # actually located (viostor and netkvm)
    126                     virtio_storage_path = 'F:\win7\x86'
    127                     virtio_network_path = 'F:\vista\x86'
    128 
    129                     # Uncomment if you have a nw driver installer on the iso
    130                     #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
    131 
    132             sp2:
    133                 unattended_install.cdrom, whql.support_vm_install:
    134                     # Look at your cd structure and see where the drivers are
    135                     # actually located (viostor and netkvm)
    136                     virtio_storage_path = 'F:\win7\x86'
    137                     virtio_network_path = 'F:\vista\x86'
    138 
    139                     # Uncomment if you have a nw driver installer on the iso
    140                     #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
    141 
    142         64:
    143             sp1:
    144                 unattended_install.cdrom, whql.support_vm_install:
    145                     # Look at your cd structure and see where the drivers are
    146                     # actually located (viostor and netkvm)
    147                     virtio_storage_path = 'F:\win7\amd64'
    148                     virtio_network_path = 'F:\vista\amd64'
    149 
    150                     # Uncomment if you have a nw driver installer on the iso
    151                     #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    152 
    153             sp2:
    154                 unattended_install.cdrom, whql.support_vm_install:
    155                     # Look at your cd structure and see where the drivers are
    156                     # actually located (viostor and netkvm)
    157                     virtio_storage_path = 'F:\win7\amd64'
    158                     virtio_network_path = 'F:\vista\amd64'
    159 
    160                     # Uncomment if you have a nw driver installer on the iso
    161                     #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    162 
    163     Win2008:
    164         32:
    165             sp1:
    166                 unattended_install.cdrom, whql.support_vm_install:
    167                     # Look at your cd structure and see where the drivers are
    168                     # actually located (viostor and netkvm)
    169                     virtio_storage_path = 'F:\win7\x86'
    170                     virtio_network_path = 'F:\vista\x86'
    171 
    172                     # Uncomment if you have a nw driver installer on the iso
    173                     #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
    174 
    175             sp2:
    176                 unattended_install.cdrom, whql.support_vm_install:
    177                     # Look at your cd structure and see where the drivers are
    178                     # actually located (viostor and netkvm)
    179                     virtio_storage_path = 'F:\win7\x86'
    180                     virtio_network_path = 'F:\vista\x86'
    181 
    182                     # Uncomment if you have a nw driver installer on the iso
    183                     #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
    184 
    185         64:
    186             sp1:
    187                 unattended_install.cdrom, whql.support_vm_install:
    188                     # Look at your cd structure and see where the drivers are
    189                     # actually located (viostor and netkvm)
    190                     virtio_storage_path = 'F:\win7\amd64'
    191                     virtio_network_path = 'F:\vista\amd64'
    192 
    193                     # Uncomment if you have a nw driver installer on the iso
    194                     #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    195 
    196             sp2:
    197                 unattended_install.cdrom, whql.support_vm_install:
    198                     # Look at your cd structure and see where the drivers are
    199                     # actually located (viostor and netkvm)
    200                     virtio_storage_path = 'F:\win7\amd64'
    201                     virtio_network_path = 'F:\vista\amd64'
    202 
    203                     # Uncomment if you have a nw driver installer on the iso
    204                     #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    205 
    206             r2:
    207                 unattended_install.cdrom, whql.support_vm_install:
    208                     # Look at your cd structure and see where the drivers are
    209                     # actually located (viostor and netkvm)
    210                     virtio_storage_path = 'F:\win7\amd64'
    211                     virtio_network_path = 'F:\vista\amd64'
    212 
    213                     # Uncomment if you have a nw driver installer on the iso
    214                     #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    215 
    216     Win7:
    217         32:
    218             unattended_install.cdrom, whql.support_vm_install:
    219                 # Look at your cd structure and see where the drivers are
    220                 # actually located (viostor and netkvm)
    221                 virtio_storage_path = 'F:\win7\x86'
    222                 virtio_network_path = 'F:\vista\x86'
    223 
    224                 # Uncomment if you have a nw driver installer on the iso
    225                 #virtio_network_installer_path = 'F:\RHEV-Network32.msi'
    226 
    227         64:
    228             unattended_install.cdrom, whql.support_vm_install:
    229                 # Look at your cd structure and see where the drivers are
    230                 # actually located (viostor and netkvm)
    231                 virtio_storage_path = 'F:\win7\amd64'
    232                 virtio_network_path = 'F:\vista\amd64'
    233 
    234                 # Uncomment if you have a nw driver installer on the iso
    235                 #virtio_network_installer_path = 'F:\RHEV-Network64.msi'
    236