diff --git a/docs/en-US/hypervisor-host-install-libvirt.xml b/docs/en-US/hypervisor-host-install-libvirt.xml
index 239c4d71667..b3b691c3754 100644
--- a/docs/en-US/hypervisor-host-install-libvirt.xml
+++ b/docs/en-US/hypervisor-host-install-libvirt.xml
@@ -29,9 +29,9 @@
Install libvirt
On RHEL or CentOS:
- # yum install libvirt
+ yum install libvirt
On Ubuntu:
- # apt-get install libvirt-bin
+ apt-get install libvirt-bin
In order to have live migration working libvirt has to listen for unsecured TCP connections.
@@ -45,15 +45,22 @@
In order to have libvirt listening on TCP we have to change the execution arguments.
On RHEL or CentOS:
- # vi /etc/sysconfig/libvirtd
+ vi /etc/sysconfig/libvirtd
Uncomment the following line:
#LIBVIRTD_ARGS="--listen"
On Ubuntu:
- # vi /etc/init/libvirt-bin.conf
- Change the following line:
+ vi /etc/init/libvirt-bin.conf
+ Change the following line (at the end of the file):
exec /usr/sbin/libvirtd -d
to (just add -l)
exec /usr/sbin/libvirtd -d -l
+
+ Restart libvirt
+ In RHEL or CentOS:
+ service libvirtd restart
+ In Ubuntu:
+ service libvirt-bin restart
+
\ No newline at end of file
diff --git a/docs/en-US/hypervisor-host-install-prepare-os.xml b/docs/en-US/hypervisor-host-install-prepare-os.xml
index 2884cd13d5e..8eaedeae3b2 100644
--- a/docs/en-US/hypervisor-host-install-prepare-os.xml
+++ b/docs/en-US/hypervisor-host-install-prepare-os.xml
@@ -42,9 +42,9 @@
Install NTP
On RHEL or CentOS:
- # yum install ntp
+ yum install ntp
On Ubuntu:
- # apt-get install openntpd
+ apt-get install openntpd
diff --git a/docs/en-US/hypervisor-host-install-security-policies.xml b/docs/en-US/hypervisor-host-install-security-policies.xml
index 4ba748ed49d..699fb9744c9 100644
--- a/docs/en-US/hypervisor-host-install-security-policies.xml
+++ b/docs/en-US/hypervisor-host-install-security-policies.xml
@@ -31,12 +31,12 @@
Check to see whether SELinux is installed on your machine. If not, you can skip this section.
In RHEL or CentOS, SELinux is installed and enabled by default. You can verify this with:
- # rpm -qa | grep selinux
+ rpm -qa | grep selinux
Set the SELINUX variable in /etc/selinux/config to "permissive". This ensures that the permissive setting will be maintained after a system reboot.
In RHEL or CentOS:
- # vi /etc/selinux/config
+ vi /etc/selinux/config
Change the following line
SELINUX=enforcing
to this
@@ -44,7 +44,7 @@
Then set SELinux to permissive starting immediately, without requiring a system reboot.
- # setenforce permissive
+ setenforce permissive
@@ -54,14 +54,14 @@
Check to see whether AppArmor is installed on your machine. If not, you can skip this section.
In Ubuntu AppArmor is installed and enabled by default. You can verify this with:
- # dpkg --list 'apparmor'
+ dpkg --list 'apparmor'
Disable the AppArmor profiles for libvirt
- ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/
- ln -s /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper /etc/apparmor.d/disable/
- apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd
- apparmor_parser -R /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper
+ ln -s /etc/apparmor.d/usr.sbin.libvirtd /etc/apparmor.d/disable/
+ ln -s /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper /etc/apparmor.d/disable/
+ apparmor_parser -R /etc/apparmor.d/usr.sbin.libvirtd
+ apparmor_parser -R /etc/apparmor.d/usr.lib.libvirt.virt-aa-helper