User Tools

Site Tools


network_stuff:juniper:host-preparation

This is an old revision of the document!


HOST PREPARATION:
Combine the requirements below with the ones listed in the “Preparing the CentOS Host to Install vMX” in https://www.juniper.net/documentation/en_US/vmx/topics/topic-map/vmx-installing-on-kvm.html#id-preparing-the-ubuntu-host-to-install-vmx
Disable KSM by setting KSM_ENABLED=0 in /etc/default/qemu-kvm:

systemctl disable ksm
systemctl disable ksmtuned


HUGEPAGES (x2 1G size)
https://oracle-base.com/articles/linux/configuring-huge-pages-for-oracle-on-linux-64

  • For hugepages:
    • determine whether our system is UEFI. If this exists, is uefi: “cat /sys/firmware/efi/”
vim /etc/default/grub
# add this (one line):
default_hugepagesz=1G hugepagesz=1G hugepages=number-of-numa-sockets intel_iommu=on"
default_hugepagesz=1G hugepagesz=1G hugepages=50 intel_iommu=on"
grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg
[root@networklab01.ash.oci.grapeshot.co.uk ~]# grep Hugepagesize /proc/meminfo
Hugepagesize:    1048576 kB

APIC and KSM: Apic info

cat /etc/qemu-kvm/target-x86_64.conf
options kvm_intel nested=1 enable_apicv=0
KSM_ENABLED=0

Or

vim /etc/default/grub
# add this:
... noapic"
grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg

KVM INSTALL:

usermod -a -G libvirt jaime.santos.amandi


INSTALL VAGRANT (NOT with vbox5.1_)
https://www.tecmint.com/how-to-install-vagrant-on-centos-7/

yum -y install https://releases.hashicorp.com/vagrant/2.2.6/vagrant_2.2.6_x86_64.rpm
vagrant version && vagrant plugin list  # to check vagrant version
yum install ./vagrant_2.2.5_x86_64.rpm    # download the last version 


Using The Libvirt Provider With Vagrant
https://github.com/vagrant-libvirt/vagrant-libvirt https://codingpackets.com/blog/using-the-libvirt-provider-with-vagrant

yum install ruby-devel
yum -y install qemu libvirt libvirt-devel ruby-devel gcc
vagrant plugin install vagrant-libvirt  # works

Create virtual network for vagrant (for the management addresses):

cat << EOF > /var/tmp/vagrant-libvirt-net.xml
<network connections='1'>
  <name>vagrant-libvirt</name>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr1' stp='on' delay='0'/>
  <ip address='192.168.121.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.121.2' end='192.168.121.254'/>
    </dhcp>
  </ip>
</network>
      
EOF
virsh net-define vagrant-libvirt-net.xml
virsh net-start vagrant-libvirt
virsh net-autostart vagrant-libvirt


https://github.com/vagrant-libvirt/vagrant-libvirt/blob/master/README.md


Before virt-install , add vagrant-libvirt network from

restart libvirtd 


For qemu permissions: https://github.com/jedi4ever/veewee/issues/996

network_stuff/juniper/host-preparation.1579712873.txt.gz · Last modified: (external edit)