KVM support is pre-built into the Fedora Linux kernel for Fedora
release 7 and later. As a result KVM support is already available in the
standard kernel negating the need to install and boot from a special
kernel.
The tools required to setup and maintain virtualized system are
not, however, installed by default. To fully utilize the KVM support
built into the kernel the following packages are required:
Check to find out if these packages are already installed on your
system by running the following commands:
rpm -q qemu-kvm virt-manager virt-viewer python-virtinst
If any of these packages are reported as not installed
they
may be installed using the yum
package manager:
su -
yum install qemu-kvm virt-manager virt-viewer python-virtinst
The packages required to implement virtualization can change from one
Fedora release to the next. To avoid the necessity to know the exact
package names to install, the required packages can also be installed as
a group as follows:
yum groupinstall 'Virtualization'
This command will install all the required packages.
[edit
]
Building a Fedora KVM Virtual System
Virtual systems can easily be configured using either the virt-install
command-line tool, or the virt-manager
GUI tool. For the
purposes of this chapter we will use the virt-manager
tool.
Begin by launching virt-manager
either by selecting the Applications->System
Tools->Virtual Machine Manager
or from the command-line in a
terminal window by running virt-manager
. Once loaded, the virtual
manager will prompt for the root password prior to displaying the
following screen:
@import "/extensions/GoogleAdSense/GoogleAdSense.css";
<script type="text/javascript"><!--
e9 = new Object();
e9.size = "300x250";
e9.noAd = 1;
//--></script>
<noscript> <img src="http://b.scorecardresearch.com/b?c1=8&c2=2102&c3=106&c4=502380&c5=&c6=&c15=&c16=&cv=1.3&cj=1" style="display:none" width="0" height="0" alt="" /> </noscript>
The main virt-manager screen lists the current virtual machines
running on the system. At this point there should only be one, the host
system. By default the manager should be connected to the host. If it is
not, connect to the host system by right clicking on the entry in the
list and selecting Connect
from the popup menu. The Status
field for this VM should now change to Active
, and the New
button at the bottom of the dialog should be enabled.
To create a new virtual system, click on the New
button to
display the first configuration screen. Click the Forward
button
to proceed to the Naming
screen and enter a name for the virtual
system which can be any name you choose. On this screen, also select
the location of the media from which the guest operating system will be
installed. This can either be a CD or DVD drive, an ISO image file
accessible to the local host or a network install using HTTP, FTP, NFS
or PXE:
Clicking Forward
once more will display a screen seeking
additional information about the installation process. The screen
displayed and information required will depend on selection made in the
preceding screen. For example, if a CD, DVD or ISO was selected, this
screen will ask for the specific location of the ISO file or physical
device.
[edit
]
Configuring the KVM Virtual System
Clicking Forward
once more will display a screen seeking
additional information about the installation process. The screen
displayed and information required will depend on selection made in the
preceding screen. For example, if a CD, DVD or ISO was selected, this
screen will ask for the specific location of the ISO file or physical
device. This screen also asks that you specify the type and version of
the guest operating system to be installed (for example Windows Vista or
Ubuntu Linux):
Once these settings are complete, click Forward
to configure CPU
and memory settings. The optimal settings will depend on the number of
CPUs and amount of physical memory present in the host and the
requirements of other applications and virtual machines that will run in
parallel with the new virtual machine:
The last item to configure before creating the virtual machine is the
storage space for the guest operating system and corresponding user
data. This takes the form of a virtual disk drive. A virtual disk drive
is essentially an image file hosted on the file system of the host
computer which is seen by the virtual machine as a physical disk drive.
Options are available to create an image disk of a specified
size, select a pre-existing volume or to create a storage volume of a
specified format (raw, vmdk, iso etc). Unless you have a specific need
to use a particular format (for example you might need to use vmdk to
migrate to a VMware based virtualization environment at a later date) or
need to use a dedicated disk or partition, it is generally safe to
simply specify a size on this screen. The option is also available to
pre-allocate the space now. If you choose not to pre-allocate the space,
space will be allocated up to the specified maximum only as it is
needed by the guest operating system. This has the advantage that space
on the host file system is not used until it is needed. Downsides are
that performance may degrade as space is allocated in real-time and
allocation will fail if another process uses up the free space on the
host file system before it can be assigned to the virtual machine:
Once these settings are configured, click the Forward
key once
more. The final screen displays a summary of the configuration. Review
the information displayed. Advanced options are also available to
configure bridged networking (where the virtual machine has direct
access to a host network adapter) and to configure a specific MAC
address if required:
注意:做好选择网桥,这需要事先在主机上配置好网桥,具体的配置过程参见本博相关文章。
Starting the KVM Virtual System
Click on the Finish
button to begin the creation process. The
virtualization manager will create the disk and configure KVM before
starting the system. Once started, the guest OS installation will begin:
From this point on, simply follow the operating installation
instructions to install the guest OS.
分享到:
相关推荐
mcsa考试题库。exam:70-410 。Installing and Configuring Windows Server 2012 R2
Installing and configuring servers Chapter 2. Configuring server roles and features Chapter 3. Configuring Hyper-V Chapter 4. Deploying and configuring core network services Chapter 5. Installing and...
70 410认证考试辅导书,写的比较浅显易懂,是英文的。
Installing and Configuring Openfiler with DRBD and Heartbeat
实验手册,英文版,70 410考试所用。
70-410 Installing and Configuring Windows Server 2012
Oracle Solaris 11.2 Installing and Configuring OpenStack in Oracle Solaris 11.2-124
70-410 Training Guide Installing and Configuring Windows Server 2012 安装与配置Windows Server 2012 官方认证材料
Exam Ref 70-410 Installing and Configuring Windows Server 2012
Exam Ref 70-698 Installing and Configuring Windows 10 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
主要介绍SharePoint2013如何部署和配置等情况,帮助大家理解
原版MSCE 考试用书,也可做为参考用书,比较详细MS.Exam.Ref.70-410.Installing.and.Configuring.Windows.Server.2012.R2.0735684
Microsoft Windows Server 2012 70-410 Series Introduction
Installing and configuring network services/applications Analyzing metrics and reports from monitoring and tracking performance tools Using appropriate resources to support configuration management...
Syngress - How To Cheat At Installing, Configuring & Troubleshooting Windows 2000 File Systems.pdf
With the increased demand for mobile connectivity and the decrease in cost and in the time required for installation, wireless network connections will make up 20% of all corporate network connections...
Red Hat Enterprise Linux 6 Virtualization Host Configuration and Guest Installation Guide Installing and configuring your virtual environment
openedx 运行手册