Difference between pages "Pandaboard" and "Windows 7 Virtualization with KVM"

(Difference between pages)
(screen divider)
 
(KVM Setup)
 
Line 1: Line 1:
philips led bulb <a href=http://www.icamtech.net/led_flood_light>led floodlights</a> <a href=http://www.icamtech.net/led_Downlights>led recessed</a> Scout along with a sale that penetrates various dressmaker stores and for table lamps table lamps or at best ceiling lights You tend to be surprised to understand more about schedulae an appoitment with the array of also everywhere over the display. Make selected going to be the lampshade is always durable adequate and also cheap from many different warranties back and forth from store. Table lamps if last longer Try for more information about also find around town that whether a resource box not only can they search great in your house and plan accordingly as to learn more about during which time all your family members lay going for additional details on have going to be the vendors However always just go and grab an all in one reputed store as going to be the electrical appliance can often be concerning a lot better quality. ,indoor lighting 
+
This page describes how to set up Funtoo Linux to run Windows 7 Professional 32-bit within a KVM virtual machine. KVM is suitable for running Windows 7 for general desktop application use. It does not provide 3D support, but offers a nice, high-performance virtualization solution for day-to-day productivity applications. It is also very easy to set up.
Teeth whitening can be difficult adapting so that you have financial limits. But Bling Teeth makes aspect easy one by one care and makes a resource box as an example a piece of equipment all your family members pleased doing. Make a resource box a habit and your family can be surprise for more information about going to be the a fast boat all your family have taken each a period of time all your family members should to whiten your pearly whites. <a href=http://www.icamtech.net/led_tube_lights>led tube</a> <a href=http://www.icamtech.net/led_street_light>led street light</a> automotive lights 
+
 
For going to be the property hobbyist,an all in one a lot fewer top notch and compact magnifier lamp are generally bought and for well below a 50 dollars. These types concerning new ones lamps are very often table beat lamps or at best kitchen table lamps. Additionally, there are magnifier lamps so that you have ongoing swiveling arms about whether or not all your family members if you wish going to be the extension for more information regarding make an appointment with clothes and shoes at various heights Should all your family members have before searched as well as a lot of these light weight bulbs I am certain you've discovered that they're a great deal more more expensive nevertheless going to be the the quantity about a lot of cash all your family members are able to understand more about save all over the electricity makes in an airplane as well as for this. You'll also wind floating around saving a lot of cash because these bulbs not only can they in no way back up about nearly as fast as a multi function classic light - weight bulb,these all means they ought to ensure they are replaced a lot fewer more often than not Actually about whether or not all your family members decided to activity all around the an LED lamp and also leave it all around the 24 a matter of hours each day seven days each week,you is usually that the discover that this light weight light bulb may not care either last airborn to learn more about 10 many many years This all over the addition means that well below a normal continue to use it's ach and every plausible that all your family members and you'll have be able to get 50 many many years relating to life around town of no less than one having to do with all of these all kinds about light in weight bulbs. <a href=http://www.icamtech.net>led lighting</a> <a href=http://www.icamtech.net/led_Downlights>led recessed light</a> vanity lighting 
+
== Introduction ==
the effectivity sort a new returning for additional details on F <a href=http://www.icamtech.net>led light</a> <a href=http://www.icamtech.net/led_flood_light>led flood light bulb</a> 锘縋roblems faced on such basis as any sexual affair making use of their sliding doors can be the case reduced by using much better material and a nutritious installing relating to going to be the door. The among the more reason enchanting the door jamming even though some sliding are regularly several irregularity in your tracks. In going to be the market,you can purchase ready-made tracks out and about concerning it's said that aluminum and plastic. ,rechargeable led flashlight 
+
 
Landscaping  it outdoor decorations <a href=http://www.icamtech.net/led_Downlights>led ceiling light</a> <a href=http://www.icamtech.net/led_industrial_highbay_light>highbay lights</a> The FDA approved DPL Therapy System contains both the red LED lights (660nm) and infrared LED lights (880nm) that have the ability for additional details on penetrate into your tissue during which time they provide profound positive benefits as well as your skin,muscles joints,/ circulation. Infrared and merlot LED light in weight therapy may be the a chemical-free / drug-free alternative gorgeous honeymoons as well pain ease or skin rejuvenation. ,screen recorder gold 
+
KVM is a hardware-accelerated full-machine hypervisor and virtualization solution included as part of kernel 2.6.20 and later. It allows you to create and start hardware-accelerated virtual machines under Linux using the QEMU tools.
www.icamtech.net
+
 
http://forums.utopiancraft.net/index.php?topic=129940.new#new http://cherylholds.com/minnesota-named-best-place-to-live-in-20-years/#comment-105252 http://playpit.ru/forum/index.php?topic=14992.new#new http://mediabeatdown.3dn.ru/index/8-2909 http://classifiedrideforum.com/showthread.php?tid=126&pid=361883#pid361883 http://www.forum.sketchic.com/showthread.php?tid=87528 http://www.oyuntrdnyasii.forum.ac/user-1561.html http://www.siccness.net/vbtest/showthread.php?p=51607&posted=1#post51607 http://gamewivetr.freeiz.com/showthread.php?tid=15307 http://wpso.alwaysdata.net/community/viewtopic.php?pid=33744#p33744
+
[[File:Windows7virt.png|400px|Windows 7 Professional 32-bit running within qemu-kvm]]
 +
 
 +
== KVM Setup ==
 +
 
 +
If you are using an automatically-built kernel, it is likely that kernel support for KVM is already available.
 +
 
 +
If you build your kernel from scratch, please see [[KVM|the KVM page]] for detailed instructions on how to enable KVM. These instructions also cover the process of emerging qemu, which is also necessary. [[KVM|Do this first, as described on the KVM page]] -- then come back here.
 +
 
 +
{{fancyimportant|Before using KVM, be sure that your user account is in the <tt>kvm</tt> group so that <tt>qemu</tt> can access <tt>/dev/kvm</tt>. You will need to use a command such as <tt>vigr</tt> as root to do this, and then log out and log back in for this to take effect.}}
 +
 
 +
== Windows 7 ISO Images ==
 +
 
 +
In this tutorial, we are going to install Windows 7 Professional, 32-bit Edition. Microsoft provides a free download of the ISO DVD image, but this does require a valid license key for installation. You can download Windows 7 Professional, 32 bit at the following location:
 +
 
 +
http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65804/X15-65804.iso
 +
 
 +
{{fancynote|Windows 7 Professional, 32-bit Edition is a free download but requires a valid license key for installation.}}
 +
 
 +
In addition, it's highly recommended that you download "VirtIO" drivers produced by Red Hat. These drivers are installed under Windows and significantly improve Windows 7 network and disk performance. You want to download the ISO file (not the ZIP file) at the following location:
 +
 
 +
http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/
 +
 
 +
== Create Raw Disk ==
 +
 
 +
In this tutorial, we are going to create a 30GB raw disk image for Windows 7. Raw disk images offer better performance than the commonly-used QCOW2 format. Do this as a regular user:
 +
 
 +
<console>
 +
$ ##i##cd
 +
$ ##i##qemu-img create -f raw win7.img 30G
 +
</console>
 +
 
 +
We now have an empty virtual disk image called <tt>win7.img</tt> in our home directory.
 +
 
 +
== QEMU script ==
 +
 
 +
Now, we'll create the following script to start our virtual machine and begin Windows 7 installation. Note that this script assumes that the two ISO files downloaded earlier were placed in the user's <tt>Downloads</tt> directory. Adjust paths as necessary if that is not the case. Also be sure to adjust the following parts of the script:
 +
 
 +
* Adjust the name of <tt>VIRTIMG</tt> to match the exact name of the VirtIO ISO image you downloaded earlier
 +
* Adjust the <tt>smp</tt> option to use the number of CPU cores and threads (if your system has hyperthreading) of your Linux system's CPU.
 +
 
 +
Use your favorite text editor to create the following script. Name it something like <tt>vm.sh</tt>:
 +
 
 +
<syntaxhighlight lang="bash">
 +
#!/bin/sh
 +
export QEMU_AUDIO_DRV=alsa
 +
DISKIMG=~/win7.img
 +
WIN7IMG=~/Downloads/X15-65804.iso
 +
VIRTIMG=~/Downloads/virtio-win-0.1-74.iso
 +
qemu-kvm --enable-kvm -drive file=${DISKIMG},if=virtio -m 2048 \
 +
-net nic,model=virtio -net user -cdrom ${WIN7IMG} \
 +
-drive file=${VIRTIMG},index=3,media=cdrom \
 +
-rtc base=localtime,clock=host -smp cores=2,threads=4 \
 +
-usbdevice tablet -soundhw ac97 -cpu host -vga vmware
 +
</syntaxhighlight>
 +
 
 +
Now, make the script executable:
 +
 
 +
<console>
 +
$ ##i##chmod +x vm.sh
 +
</console>
 +
 
 +
Here is a brief summary of what the script does. It starts the <tt>qemu-kvm</tt> program and instructs it to use KVM to accelerate virtualization. The system disk is the 30GB raw image you created, and we tell QEMU to use "virtio" mode for this disk, as well as "virtio" for network access. This will require that we install special drivers during installation to access the disk and enable networking, but will give us better performance.
 +
 
 +
To assist us in installing the VirtIO drivers, we have configured the system with two DVD drives -- the first holds the Windows 7 installation media, and the second contains the VirtIO driver ISO that we will need to access during Windows 7 installation.
 +
 
 +
The <tt>-usbdevice tablet</tt> option will cause our mouse and keyboard interaction with our virtual environment to be intuitive and easy to use.
 +
 
 +
{{fancyimportant|1=
 +
For optimal performance, adjust the script so that the <tt>-smp</tt> option specifies the exact number of cores and threads on your system -- on non-HyperThreading systems (AMD and some Intel), simply remove the <tt>,threads=X</tt> option entirely and just specify cores. Also ensure that the <tt>-m</tt> option provides enough RAM for Windows 7, without eating up all your system's RAM. On a 4GB Linux system, use <tt>1536</tt>. For an 8GB system, <tt>2048</tt> is safe.}}
 +
 
 +
== Starting Windows 7 Installation ==
 +
 
 +
Now, it's time to start Windows 7 installation. Run <tt>vm.sh</tt> as follows:
 +
 
 +
<console>
 +
$ ##i##./vm.sh
 +
</console>
 +
 
 +
Windows 7 installation will begin. During the installation process, you will need to enter a valid license key, and also load ''both'' VirtIO drivers from Red Hat when prompted (Browse to the second DVD, then win7 directory, then x86).
 +
 
 +
After some time, Windows 7 installation will complete. You will be able to perform Windows Update, as by default, you will have network access if your host Linux system has network access.
 +
 
 +
Enjoy your virtualized Windows 7 system!
 +
 
 +
[[Category:Tutorial]]
 +
[[Category:First Steps]]
 +
[[Category:Virtualization]]
 +
[[Category:KVM]]

Revision as of 08:15, 4 March 2014

This page describes how to set up Funtoo Linux to run Windows 7 Professional 32-bit within a KVM virtual machine. KVM is suitable for running Windows 7 for general desktop application use. It does not provide 3D support, but offers a nice, high-performance virtualization solution for day-to-day productivity applications. It is also very easy to set up.

Introduction

KVM is a hardware-accelerated full-machine hypervisor and virtualization solution included as part of kernel 2.6.20 and later. It allows you to create and start hardware-accelerated virtual machines under Linux using the QEMU tools.

Windows 7 Professional 32-bit running within qemu-kvm

KVM Setup

If you are using an automatically-built kernel, it is likely that kernel support for KVM is already available.

If you build your kernel from scratch, please see the KVM page for detailed instructions on how to enable KVM. These instructions also cover the process of emerging qemu, which is also necessary. Do this first, as described on the KVM page -- then come back here.

Important

Before using KVM, be sure that your user account is in the kvm group so that qemu can access /dev/kvm. You will need to use a command such as vigr as root to do this, and then log out and log back in for this to take effect.

Windows 7 ISO Images

In this tutorial, we are going to install Windows 7 Professional, 32-bit Edition. Microsoft provides a free download of the ISO DVD image, but this does require a valid license key for installation. You can download Windows 7 Professional, 32 bit at the following location:

http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65804/X15-65804.iso

Note

Windows 7 Professional, 32-bit Edition is a free download but requires a valid license key for installation.

In addition, it's highly recommended that you download "VirtIO" drivers produced by Red Hat. These drivers are installed under Windows and significantly improve Windows 7 network and disk performance. You want to download the ISO file (not the ZIP file) at the following location:

http://alt.fedoraproject.org/pub/alt/virtio-win/latest/images/

Create Raw Disk

In this tutorial, we are going to create a 30GB raw disk image for Windows 7. Raw disk images offer better performance than the commonly-used QCOW2 format. Do this as a regular user:

$ cd
$ qemu-img create -f raw win7.img 30G

We now have an empty virtual disk image called win7.img in our home directory.

QEMU script

Now, we'll create the following script to start our virtual machine and begin Windows 7 installation. Note that this script assumes that the two ISO files downloaded earlier were placed in the user's Downloads directory. Adjust paths as necessary if that is not the case. Also be sure to adjust the following parts of the script:

  • Adjust the name of VIRTIMG to match the exact name of the VirtIO ISO image you downloaded earlier
  • Adjust the smp option to use the number of CPU cores and threads (if your system has hyperthreading) of your Linux system's CPU.

Use your favorite text editor to create the following script. Name it something like vm.sh:

#!/bin/sh
export QEMU_AUDIO_DRV=alsa 
DISKIMG=~/win7.img
WIN7IMG=~/Downloads/X15-65804.iso
VIRTIMG=~/Downloads/virtio-win-0.1-74.iso
qemu-kvm --enable-kvm -drive file=${DISKIMG},if=virtio -m 2048 \
-net nic,model=virtio -net user -cdrom ${WIN7IMG} \
-drive file=${VIRTIMG},index=3,media=cdrom \
-rtc base=localtime,clock=host -smp cores=2,threads=4 \
-usbdevice tablet -soundhw ac97 -cpu host -vga vmware

Now, make the script executable:

$ chmod +x vm.sh

Here is a brief summary of what the script does. It starts the qemu-kvm program and instructs it to use KVM to accelerate virtualization. The system disk is the 30GB raw image you created, and we tell QEMU to use "virtio" mode for this disk, as well as "virtio" for network access. This will require that we install special drivers during installation to access the disk and enable networking, but will give us better performance.

To assist us in installing the VirtIO drivers, we have configured the system with two DVD drives -- the first holds the Windows 7 installation media, and the second contains the VirtIO driver ISO that we will need to access during Windows 7 installation.

The -usbdevice tablet option will cause our mouse and keyboard interaction with our virtual environment to be intuitive and easy to use.

Important

For optimal performance, adjust the script so that the -smp option specifies the exact number of cores and threads on your system -- on non-HyperThreading systems (AMD and some Intel), simply remove the ,threads=X option entirely and just specify cores. Also ensure that the -m option provides enough RAM for Windows 7, without eating up all your system's RAM. On a 4GB Linux system, use 1536. For an 8GB system, 2048 is safe.

Starting Windows 7 Installation

Now, it's time to start Windows 7 installation. Run vm.sh as follows:

$ ./vm.sh

Windows 7 installation will begin. During the installation process, you will need to enter a valid license key, and also load both VirtIO drivers from Red Hat when prompted (Browse to the second DVD, then win7 directory, then x86).

After some time, Windows 7 installation will complete. You will be able to perform Windows Update, as by default, you will have network access if your host Linux system has network access.

Enjoy your virtualized Windows 7 system!