mirror of
https://github.com/rancher/os.git
synced 2025-08-01 06:59:05 +00:00
12 lines
436 B
Bash
Executable File
12 lines
436 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e
|
|
|
|
## DOC: configure VirtualBox vboxnet1 host-only virtual network for use with a RancherOS VM cluster
|
|
|
|
## NOTE: host-only NIC `vboxnet1` should already exist!
|
|
|
|
vboxmanage hostonlyif ipconfig vboxnet1 --ip 172.17.7.1
|
|
vboxmanage dhcpserver remove --ifname vboxnet1 && :
|
|
vboxmanage dhcpserver add --ifname vboxnet1 --ip 172.17.7.100 --netmask 255.255.255.0 \
|
|
--lowerip 172.17.7.101 --upperip 172.17.7.254 --enable
|