Windows 7 guest best practices: Difference between revisions
(Add in Category: Qemu/KVM) |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
==Introduction== | ==Introduction== | ||
This is a set of best practices to follow when installing a Windows 7 guest on a Proxmox VE server | This is a set of best practices to follow when installing a Windows 7 guest on a Proxmox VE server 4.x. Right now it's a work in progress. | ||
==Install== | ==Install== | ||
===Prepare=== | ===Prepare=== | ||
* | To obtain a good level of performance, we will install the [[Windows VirtIO Drivers]] during the Windows installation. | ||
* Create a new VM, select "Microsoft Windows 7/2008" continue and mount your Windows 7 ISO in the CDROM drive | |||
* | * For your virtual hard disk select "VirtIO" as bus and "Write back" as cache option for best performance (the No cache default is safer, but slower) | ||
* Configure your memory settings as needed, continue and set "VirtIO (paravirtualized)" as network device, finish your VM creation. | |||
* | * For the VirtIO drivers, upload the driver ISO (use the stable VirtIO iso, [https://fedoraproject.org/wiki/Windows_Virtio_Drivers#Direct_download get it from here]) to your storage, create a new CDROM drive (use "Add -> CD/DVD drive" in the hardware tab), and load the Virtio Drivers ISO in the new virtual CDROM drive | ||
* | * Now your ready to start the VM, just follow the Windows installer. | ||
* | |||
===Launch Windows install=== | ===Launch Windows install=== | ||
* | * After starting your VM launch the console | ||
* | * Follow the installer steps until you reach the installation type selection where you need to select "Custom (advanced)" | ||
* Now click "Load driver" to install the VirtIO drivers for hard disk and the network. (successfully tested with "virtio-win-0.1.105.iso") | |||
** hard disk: Browse to the CD drive where you mounted the VirtIO driver and select folder "viostor\w7\amd64" and confirm. Select the "Red Hat VirtIO SCSI controller" and click next to install it. Now you should see your drive. | |||
** Network: Repeat the steps from above (click again "Load driver", etc.) and select the folder "NetKVM\w7\amd64", confirm it and select "Redhat VirtIO Ethernet Adapter" and click next. | |||
** Memory Ballooning: Again, repeat the steps but this time select the "Balloon\w7\amd64" folder, then the "VirtIO Balloon Driver" and install it by clicking next. With these three drivers you should be good covered to run a fast virtualized Windows 10 system. | |||
* Choose the drive and continue the Windows installer steps. | |||
==Install additional VirtIO drivers on running System== | |||
:''See also: [[Paravirtualized Block Drivers for Windows]]'' | |||
[[File:Install virtio driver.png|200px|thumb|right|VirtIO Ethernet Installation]] | |||
If you miss some VirtIO drivers, you may install them as follows on a running system. | |||
To do so, start the file explorer, select the CDROM drive with the VirtIO iso image mounted and browse to the folder folder of the desired component. Some often needed, using the virtio-win-0.1.105 version, are: | |||
* Ethernet Adapter: NetKVM\w7\amd64 here right-click the setup information file "netkvm" and select install. | |||
* | * Virtual Memory Balloon Driver: Balloon\w7\amd64 here right-click the setup information file "balloon" and select install. | ||
* Hard disk: viostor\w7\amd64 here right-click the setup information file "viostor" and select install. | |||
* | After the installation process the device should work as expected. | ||
* | |||
For more information and configuration about ballooning, see [[Dynamic Memory Management]] | For more information and configuration about ballooning, see [[Dynamic Memory Management]] | ||
== | ==Further information== | ||
===raw vs qcow2=== | ===Disk-Image Format: raw vs qcow2=== | ||
Raw file format provides slightly better performance while qcow2 offers advanced features such as copy on write and [[Live_Snapshots]]. | Raw file format provides slightly better performance while qcow2 offers advanced features such as copy on write and [[Live_Snapshots]]. | ||
Since V2.3, qcow2 is the default format. | Since V2.3, qcow2 is the default format. | ||
=== | ===VirtIO drivers=== | ||
Make it really easy: Build your ISO with drivers already included: | Make it really easy: Build your ISO with drivers already included: | ||
[[Windows guests - build ISOs including VirtIO drivers]] | [[Windows guests - build ISOs including VirtIO drivers]] | ||
==See also== | |||
[[Windows 2012 guest best practices]] | |||
[[Windows | [[Windows 10 guest best practices]] | ||
[[Category: HOWTO]] | [[Category: HOWTO]] | ||
[[Category: Qemu/KVM]] |
Latest revision as of 14:15, 6 October 2016
Introduction
This is a set of best practices to follow when installing a Windows 7 guest on a Proxmox VE server 4.x. Right now it's a work in progress.
Install
Prepare
To obtain a good level of performance, we will install the Windows VirtIO Drivers during the Windows installation.
- Create a new VM, select "Microsoft Windows 7/2008" continue and mount your Windows 7 ISO in the CDROM drive
- For your virtual hard disk select "VirtIO" as bus and "Write back" as cache option for best performance (the No cache default is safer, but slower)
- Configure your memory settings as needed, continue and set "VirtIO (paravirtualized)" as network device, finish your VM creation.
- For the VirtIO drivers, upload the driver ISO (use the stable VirtIO iso, get it from here) to your storage, create a new CDROM drive (use "Add -> CD/DVD drive" in the hardware tab), and load the Virtio Drivers ISO in the new virtual CDROM drive
- Now your ready to start the VM, just follow the Windows installer.
Launch Windows install
- After starting your VM launch the console
- Follow the installer steps until you reach the installation type selection where you need to select "Custom (advanced)"
- Now click "Load driver" to install the VirtIO drivers for hard disk and the network. (successfully tested with "virtio-win-0.1.105.iso")
- hard disk: Browse to the CD drive where you mounted the VirtIO driver and select folder "viostor\w7\amd64" and confirm. Select the "Red Hat VirtIO SCSI controller" and click next to install it. Now you should see your drive.
- Network: Repeat the steps from above (click again "Load driver", etc.) and select the folder "NetKVM\w7\amd64", confirm it and select "Redhat VirtIO Ethernet Adapter" and click next.
- Memory Ballooning: Again, repeat the steps but this time select the "Balloon\w7\amd64" folder, then the "VirtIO Balloon Driver" and install it by clicking next. With these three drivers you should be good covered to run a fast virtualized Windows 10 system.
- Choose the drive and continue the Windows installer steps.
Install additional VirtIO drivers on running System
If you miss some VirtIO drivers, you may install them as follows on a running system.
To do so, start the file explorer, select the CDROM drive with the VirtIO iso image mounted and browse to the folder folder of the desired component. Some often needed, using the virtio-win-0.1.105 version, are:
- Ethernet Adapter: NetKVM\w7\amd64 here right-click the setup information file "netkvm" and select install.
- Virtual Memory Balloon Driver: Balloon\w7\amd64 here right-click the setup information file "balloon" and select install.
- Hard disk: viostor\w7\amd64 here right-click the setup information file "viostor" and select install.
After the installation process the device should work as expected.
For more information and configuration about ballooning, see Dynamic Memory Management
Further information
Disk-Image Format: raw vs qcow2
Raw file format provides slightly better performance while qcow2 offers advanced features such as copy on write and Live_Snapshots. Since V2.3, qcow2 is the default format.
VirtIO drivers
Make it really easy: Build your ISO with drivers already included: Windows guests - build ISOs including VirtIO drivers