Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Tungsten Fabric using Vagrant

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

How to use Vagrant to install Tungsten Fabric, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.

01

Prepare the testing machine

The 16GB laptop didn't run, so it simply pieced together a game studio-level machine: two-way E5-2860v3 CPU,24 core 48 threads, 128g DDR4 ECC memory, NVME disk 512g. Open 5 VM on it and pretend to be a physical server.

192.16.35.110 deployer

192.16.35.111 tf Controller

192.16.35.112 openstack server, also a compute node

192.16.35.113 k8s master

192.16.35.114k8s Node K01, which is also the computing node of ops

Directly using vagrant to pull the image will be slow, so download it first:

Https://cloud.centos.org/centos/7/vagrant/x86_64/images/

Download the corresponding VirtualBox.box file.

Then use the command to name the box vagrant:

Vagrant box add centos/7 CentOS-7-x86_64-Vagrant-2004_01.VirtualBox.box

Cat vagrantfile### start #-*-mode: ruby-*-# vi: set ft=ruby: Vagrant.require_version "> = 2.0.3" # All Vagrant configuration is done below. The "2" in Vagrant.configure# configures the configuration version (we support older styles for# backwards compatibility). Please don't change it unless you know what# you're doing.ENV ["LC_ALL"] = "en_US.UTF-8" VAGRANTFILE_API_VERSION = "2" Vagrant.configure ("2") do | config | # The most common configuration options are documented and commented below. # For a complete reference, please see the online documentation at # https://docs.vagrantup.com. # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. Config.vm.box = "geerlingguy/centos7" # config.vbguest.auto_update = false # config.vbguest.no_remote = true config.vm.define "deployer" do | dp | dp.vm.provider "virtualbox" do | v | v.memory = "8000" v.cpus = 2 end dp.vm.network "private_network", ip: "192.16.35.110" Auto_config: true dp.vm.hostname = "deployer" end config.vm.define "tf" do | tf | tf.vm.provider "virtualbox" do | v | v.memory = "64000" v.cpus = 16 end tf.vm.network "private_network", ip: "192.16.35.111" Auto_config: true tf.vm.hostname = "tf" end config.vm.define "ops" do | os | os.vm.provider "virtualbox" do | v | v.memory = "16000" v.cpus = 4 end os.vm.network "private_network", ip: "192.16.35.112" Auto_config: true os.vm.hostname = "ops" end config.vm.define "K8s" do | K8 | k8.vm.provider "virtualbox" do | v | v.memory = "8000" v.cpus = 2 end k8.vm.network "private_network", ip: "192.16.35.113" Auto_config: true k8.vm.hostname = "K8s" end config.vm.define "K01" do | K1 | k1.vm.provider "virtualbox" do | v | v.memory = "4000" v.cpus = 2 end k1.vm.network "private_network", ip: "192.16.35.114", auto_config: true k1.vm.hostname = "K01" end config.vm.provision "shell", privileged: true Path: ". / setup.sh" endEEOOFFcat setup.shangxinxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx [- f "/ etc/chrony.conf"] Then mv / etc/chrony.conf / etc/chrony.conf.bakficat > / etc/security/limits.confecho "* hard nofile 65536" > > / etc/security/limits.confecho "* soft nproc 65536" > > / etc/security/limits.confecho "* hard nproc 65536" > > / etc/security/limits.confecho "* soft memlock unlimited" > / etc/security/limits.confecho "* hard memlock unlimited" > > / etc/security/limits.confif [!-d "/ var/log/journal"] Then mkdir / var/log/journalfiif [!-d "/ etc/systemd/journald.conf.d"]; then mkdir / etc/systemd/journald.conf.dficat

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report