Skip to content

Commit e81b8c6

Browse files
authored
Merge pull request cncamp#3 from duydls/patch-1
Update 1.vm-install.md
2 parents 37cfe90 + 2bfdad0 commit e81b8c6

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

k8s-by-kubeadm/1.vm-install.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ If you are using Macbook, start from here:
22
# download images and tools
33
##install virtualbox
44
https://www.virtualbox.org/wiki/Downloads
5+
From System Preference -> Security & Privacy, allow Oracle access
6+
From Virtualbox -> File -> Host Network Manager, click Create button to create one
57

68
## install ubuntu iso from below link
79
https://releases.ubuntu.com/20.04/
@@ -16,17 +18,17 @@ https://releases.ubuntu.com/20.04/
1618

1719
### boot new vm
1820
- click new button
19-
- choose OS as ubuntu 64bit and 30G disk
21+
- choose OS as ubuntu 64bit and 30G disk, make sure your #CPU>=2
2022
- start vm, choose the downloaded ubuntu ISO and follow the installation wizard
2123
- specify username/password like cadmin/cadmin
22-
- install ssh server
24+
- install ssh server, enable and start the service
2325
- do not install built-in kubenernetes
2426
- wait enough long for the os installation complete
2527

26-
### shutdown the OS, and set 2nd network adaptor
27-
- go vm->settings->network->adaptor 2
28-
- enable the adaptor and select host only adaptor, and choose vboxnet0, `vboxnet0` the host network name configured above
29-
### login to the system and set ip for second adaptor
28+
### shutdown the OS, and set 2nd network adapter
29+
- go vm->settings->network->adapter 2
30+
- enable the adaptor and select host only adapter, and choose vboxnet0, `vboxnet0` the host network name configured above
31+
### login to the system and set ip for second adapter
3032
```
3133
vi /etc/netplan/00-installer-config.yaml
3234
@@ -44,7 +46,7 @@ network:
4446
netplan apply
4547
```
4648
### network configuration
47-
now your vm has two adaptor:
49+
now your vm has two adapters:
4850
- one is nat which will get an IP automatically, generally it's 10.0.2.15, this interface is for external access from your vm
4951
- one is host adapter which need create extra ip, which is configured as 192.168.34.2
5052
the reason we need the host adaptor and static IP is then we can set this static IP as k8s advertise IP and you can move your VM in different everywhere.(otherwise your VM IP would be changed in different environment)
@@ -56,4 +58,4 @@ the reason we need the host adaptor and static IP is then we can set this static
5658
swapoff -a
5759
vi /etc/fstab
5860
remove the line with swap keyword
59-
```
61+
```

0 commit comments

Comments
 (0)