Compare commits

..

2 Commits

Author SHA1 Message Date
Ganesh Maharaj Mahalingam 24f248b02f Set reverse path forwarding to strict.
Calico requires the default reverse path forwarding to be either 0 (no
validation) or 1 (strict validation). The default value of 2 (loose
validation) prevents calico from completing the setup and the pod is
always stuck getting ready.

Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2019-05-18 14:13:13 -07:00
Ganesh Maharaj Mahalingam d688cbb693 Download OVMF if it doesn't exist
Signed-off-by: Ganesh Maharaj Mahalingam <ganesh.mahalingam@intel.com>
2019-05-01 09:57:04 -07:00
2 changed files with 7 additions and 1 deletions
+6 -1
View File
@@ -13,7 +13,7 @@ $disks = 2
$disk_prefix = File.basename(File.dirname(__FILE__), "/")
$disk_size = "10G"
$box = "AntonioMeireles/ClearLinux"
$loader = File.join(File.dirname(__FILE__), "OVMF.fd")
File.exists?("/usr/share/qemu/OVMF.fd") ? $loader = "/usr/share/qemu/OVMF.fd" : $loader = File.join(File.dirname(__FILE__), "OVMF.fd")
$vm_name_prefix = "clr"
$base_ip = IPAddr.new("192.52.100.10")
$hosts = {}
@@ -21,6 +21,10 @@ $proxy_ip_list = ""
$driveletters = ('a'..'z').to_a
$setup_fc = true ? (['true', '1'].include? ENV['SETUP_FC'].to_s) : false
if not File.exists?($loader)
system('curl -O https://download.clearlinux.org/image/OVMF.fd')
end
# We need v 1.0.14 or above for this vagrantfile to work.
unless Vagrant.has_plugin?("vagrant-guests-clearlinux")
system "vagrant plugin install vagrant-guests-clearlinux"
@@ -61,6 +65,7 @@ Vagrant.configure("2") do |config|
c.vm.provider :libvirt do |lv|
lv.cpu_mode = "host-passthrough"
lv.nested = true
lv.loader = $loader
lv.cpus = $cpus
lv.memory = $memory
(1..$disks).each do |d|
+1
View File
@@ -22,6 +22,7 @@ fi
sudo mkdir -p /etc/sysctl.d/
cat <<EOT | sudo bash -c "cat > /etc/sysctl.d/60-k8s.conf"
net.ipv4.ip_forward=1
net.ipv4.conf.default.rp_filter=1
EOT
sudo systemctl restart systemd-sysctl