This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| network_stuff:juniper:host-preparation [2020/01/22 17:04] – jotasandoku | network_stuff:juniper:host-preparation [2023/11/02 14:38] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Combine the requirements below with the ones listed in the " | Combine the requirements below with the ones listed in the " | ||
| \\ | \\ | ||
| + | Verify that INTEL VT-d is enabled (note amd-v is not working for this!) | ||
| + | cat / | ||
| + | cat / | ||
| Disable KSM by setting KSM_ENABLED=0 in / | Disable KSM by setting KSM_ENABLED=0 in / | ||
| systemctl disable ksm | systemctl disable ksm | ||
| Line 7: | Line 10: | ||
| \\ | \\ | ||
| HUGEPAGES (x2 1G size)\\ | HUGEPAGES (x2 1G size)\\ | ||
| - | [[https://oracle-base.com/ | + | [[https://mycompany2-base.com/ |
| \\ | \\ | ||
| * For hugepages: | * For hugepages: | ||
| Line 17: | Line 20: | ||
| default_hugepagesz=1G hugepagesz=1G hugepages=50 intel_iommu=on" | default_hugepagesz=1G hugepagesz=1G hugepages=50 intel_iommu=on" | ||
| grub2-mkconfig -o / | grub2-mkconfig -o / | ||
| - | [root@networklab01.ash.oci.grapeshot.co.uk ~]# grep Hugepagesize / | + | [root@networklab01.ash.oci.mycompany1.co.uk ~]# grep Hugepagesize / |
| Hugepagesize: | Hugepagesize: | ||
| | | ||
| APIC and KSM: | APIC and KSM: | ||
| - | | + | Apic [[https:// |
| + | |||
| cat / | cat / | ||
| options kvm_intel nested=1 enable_apicv=0 | options kvm_intel nested=1 enable_apicv=0 | ||
| KSM_ENABLED=0 | KSM_ENABLED=0 | ||
| + | |||
| + | Or | ||
| + | vim / | ||
| + | # add this: | ||
| + | ... noapic" | ||
| + | grub2-mkconfig -o / | ||
| + | | ||
| | | ||
| KVM INSTALL:\\ | KVM INSTALL:\\ | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | yum update | ||
| + | yum install -y qemu-kvm libvirt libvirt-python libguestfs-tools virt-install | ||
| + | systemctl enable libvirtd | ||
| + | systemctl start libvirtd | ||
| + | lsmod | grep -i kvm | ||
| + | | ||
| + | |||
| * If we don't have root ssh access to the host, we need to add our user to the libvirt group so we can use virt-manager remotely: | * If we don't have root ssh access to the host, we need to add our user to the libvirt group so we can use virt-manager remotely: | ||
| Line 70: | Line 90: | ||
| EOF | EOF | ||
| - | virsh net-define vagrant-libvirt-net.xml | + | virsh net-define |
| virsh net-start vagrant-libvirt | virsh net-start vagrant-libvirt | ||
| virsh net-autostart vagrant-libvirt | virsh net-autostart vagrant-libvirt | ||
| Line 80: | Line 100: | ||
| \\ | \\ | ||
| Before virt-install , add vagrant-libvirt network from | Before virt-install , add vagrant-libvirt network from | ||
| - | | + | |
| \\ | \\ | ||
| For qemu permissions: | For qemu permissions: | ||
| + | |||
| + | |||
| + | |||
| + | ssh-keygen # upload key to gitlab | ||
| + | eval $(ssh-agent -s) | ||
| + | ssh-add ~/.ssh/* | ||
| + | git clone git@gitlab.mycompany2datacloud.com: | ||
| + | git clone git@gitlab.mycompany2datacloud.com: | ||
| + | |||