Various Document edits to fix formatting issues and add contents
[pharos.git] / docs / specification / jumpserverinstall.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. (c) 2016 OPNFV.
4
5
6 Jump Server Configuration
7 -------------------------
8
9 **Fuel**
10
11 1. Obtain CentOS 7 Minimal ISO and install
12
13   ``wget http://mirrors.kernel.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1503-01.iso``
14
15 2. Set parameters appropriate for your environment during installation
16
17 3. Disable NetworkManager
18
19   ``systemctl disable NetworkManager``
20
21 4. Configure your /etc/sysconfig/network-scripts/ifcfg-* files for your network
22
23 5. Restart networking
24
25   ``service network restart``
26
27 6. Edit /etc/resolv.conf and add a nameserver
28
29   ``vi /etc/resolv.conf``
30
31 7. Install libvirt & kvm
32
33   ``yum -y update``
34   ``yum -y install kvm qemu-kvm libvirt``
35   ``systemctl enable libvirtd``
36
37 8. Reboot:
38
39   ``shutdown -r now``
40
41 9. If you wish to avoid annoying delay when use ssh to log in, disable DNS lookups:
42
43   ``vi /etc/ssh/sshd_config``
44
45   Uncomment "UseDNS yes", change 'yes' to 'no'.
46
47   Save
48
49 10. Restart sshd
50
51   ``systemctl restart sshd``
52
53 11. Install virt-install
54
55   ``yum -y install virt-install``
56
57 12. Visit artifacts.opnfv.org and D/L the OPNFV Fuel ISO
58
59 13. Create a bridge using the interface on the PXE network, for example: br0
60
61 14. Make a directory owned by qemu:
62
63   ``mkdir /home/qemu; mkdir -p /home/qemu/VMs/fuel-6.0/disk``
64
65   ``chown -R qemu:qemu /home/qemu``
66
67 15. Copy the ISO to /home/qemu
68
69   ``cd /home/qemu``
70
71   ``virt-install -n opnfv-2015-05-22_18-34-07-fuel -r 4096 --vcpus=4
72   --cpuset=0-3 -c opnfv-2015-05-22_18-34-07.iso --os-type=linux
73   --os-variant=rhel6 --boot hd,cdrom --disk
74   path=/home/qemu/VMs/mirantis-fuel-6.0/disk/fuel-vhd0.qcow2,bus=virtio,size=50,format=qcow2
75   -w bridge=br0,model=virtio --graphics vnc,listen=0.0.0.0``
76
77 16. Temporarily flush the firewall rules to make things easier:
78
79   ``iptables -F``
80
81 17. Connect to the console of the installing VM with your favorite VNC client.
82
83 18. Change the IP settings to match the pod, use an IP in the PXE/Admin network for the Fuel Master