quick-docs/en-US/modules/proc_installing-virtualization-software.adoc

76 lines
2.3 KiB
Text
Raw Normal View History

2018-01-02 14:46:03 +00:00
[[installing-virtualization-software]]
= Installing virtualization software
2017-12-14 06:37:37 +00:00
When installing Fedora, you can install the virtualization packages by
selecting *Virtualization* in the *Base Group* in the installer. See https://docs.fedoraproject.org/f27/install-guide/install/Installing_Using_Anaconda.html[Installing Using Anaconda].
For existing Fedora installations, you can install the virtualization tools via the command line using the Virtualization Package Group. To view the packages, run:
2018-01-02 14:46:03 +00:00
2017-12-14 06:37:37 +00:00
----
$ dnf groupinfo virtualization
Group: Virtualization
Group-Id: virtualization
Description: These packages provide a virtualization environment.
Mandatory Packages:
=virt-install
Default Packages:
=libvirt-daemon-config-network
=libvirt-daemon-kvm
=qemu-kvm
=virt-manager
=virt-viewer
Optional Packages:
guestfs-browser
libguestfs-tools
python-libguestfs
virt-top
----
2018-01-02 14:46:03 +00:00
2017-12-14 06:37:37 +00:00
. Run the following command to install the mandatory and default packages in the virtualization group:
+
----
2018-01-02 14:46:03 +00:00
# dnf install @virtualization
2017-12-14 06:37:37 +00:00
----
+
Alternatively, to install the mandatory, default, and optional packages, run:
+
----
2018-01-02 14:46:03 +00:00
# dnf group install with-optional virtualization
2017-12-14 06:37:37 +00:00
----
+
. After the packages install, start the `libvirtd` service:
+
----
2018-01-02 14:46:03 +00:00
# systemctl start libvirtd
2017-12-14 06:37:37 +00:00
----
+
To start the service on boot, run:
+
----
2018-01-02 14:46:03 +00:00
# systemctl enable libvirtd
2017-12-14 06:37:37 +00:00
----
+
. To verify that the KVM kernel modules are properly loaded:
+
----
$ lsmod | grep kvm
kvm_amd 55563 0
kvm 419458 1 kvm_amd
----
+
2018-01-02 14:46:03 +00:00
If this command lists `kvm_intel` or `kvm_amd`, KVM is properly configured.
2017-12-14 06:37:37 +00:00
[[networking-support]]
2018-01-02 14:46:03 +00:00
== Networking Support
2017-12-14 06:37:37 +00:00
2018-01-02 14:46:03 +00:00
By default, libvirt will create a private network for your guests on the host machine. This private network will use a 192.168.x.x subnet and not be reachable directly from the network the host machine is on. However, virtual guests can use the host machine as a gateway and can connect out via it. If you need to provide services on your guests that are reachable via other machines on your host network you can use iptables DNAT rules to forward in specific ports, or you can set up a bridged environment.
2017-12-14 06:37:37 +00:00
2018-01-02 14:46:03 +00:00
See the http://wiki.libvirt.org/page/Networking[libvirt networking setup page] for more information on how to setup a bridged network.
2017-12-14 06:37:37 +00:00