You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apply google and kernel parameters until checkconfig passes:
@@ -25,157 +14,112 @@ Apply google and kernel parameters until checkconfig passes:
25
14
lxc-checkconfig
26
15
```
27
16
28
-
Create a VM or five
17
+
Create VMs:
29
18
30
19
```
31
-
lxc-create -n n1 -t debian -- --release jessie
32
-
lxc-create -n n2 -t debian -- --release jessie
33
-
lxc-create -n n3 -t debian -- --release jessie
34
-
lxc-create -n n4 -t debian -- --release jessie
35
-
lxc-create -n n5 -t debian -- --release jessie
20
+
for i in {1..10}; do sudo lxc-create -n n$i -t debian -- --release buster; done
36
21
```
37
22
38
-
Note the root passwords.
39
-
40
-
Edit /var/lib/lxc/n1/config and friends, changing the network hwaddr to something unique. I suggest using sequential mac addresses for n1, n2, n3, ....
23
+
Add network configuration to each node. We assign each a sequential MAC
24
+
address.
41
25
42
26
```
43
-
# Template used to create this container: /usr/share/lxc/templates/lxc-debian
44
-
# Parameters passed to the template:
45
-
# For additional config options, please look at lxc.conf(5)
and add it to root's `authorized_keys` (in containers):
81
+
And start the nodes:
145
82
146
-
```sh
147
-
apt-get install -y sudo vim
148
-
mkdir ~/.ssh
149
-
chmod 700 ~/.ssh
150
-
touch ~/.ssh/authorized_keys
151
-
chmod 600 ~/.ssh/authorized_keys
152
-
vim ~/.ssh/authorized_keys
153
83
```
154
-
155
-
Enable password-based login for root (used by jsch):
156
-
```sh
157
-
sed -i 's,^PermitRootLogin .*,PermitRootLogin yes,g' /etc/ssh/sshd_config
158
-
systemctl restart sshd
159
-
apt install sudo
84
+
for i in {1..10}; do
85
+
lxc-start -d -n n$i
86
+
done
160
87
```
161
88
162
-
[Remove systemd](http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_a_Debian_jessie/sid_installation). After you install sysvinit-core and sysvinit-utils, you may have to restart the container with /lib/sysvinit/init argument to lxc-start before apt will allow you to remove systemd.
89
+
To stop them:
163
90
164
-
Detach from the container with Control+a q, and repeat for the remaining nodes.
91
+
```
92
+
for i in {1..10}; do
93
+
lxc-stop -n n$i
94
+
done
95
+
```
165
96
166
-
On the control node, drop entries in `~/.ssh/config` for nodes:
97
+
Reset the root passwords to whatever you like. Jepsen uses `root` by default,
98
+
and allow root logins with passwords on each container. If you've got an SSH
0 commit comments