root / ci / schemas / one_node_squeeze / vcluster.conf @ 2eda9c61
History | View | Annotate | Download (1.6 kB)
1 | c29ac11d | Ilias Tsitsimpis | [image] |
---|---|---|---|
2 | c29ac11d | Ilias Tsitsimpis | # url to get the base image. This is a debian base image with preconfigured |
3 | c29ac11d | Ilias Tsitsimpis | # root password and installed rsa/dsa keys. Plus a NetworkManager hook that |
4 | c29ac11d | Ilias Tsitsimpis | # changes the VM's name based on info provided by dhcp response. |
5 | c29ac11d | Ilias Tsitsimpis | # To create it run: snf-deploy image |
6 | c29ac11d | Ilias Tsitsimpis | squeeze_image_url = https://pithos.okeanos.grnet.gr/public/832xv |
7 | c29ac11d | Ilias Tsitsimpis | ubuntu_image_url = |
8 | c29ac11d | Ilias Tsitsimpis | |
9 | c29ac11d | Ilias Tsitsimpis | # in order ganeti nodes to support lvm storage (plain disk template) it will |
10 | c29ac11d | Ilias Tsitsimpis | # be needed an extra disk to eventually be able to create a VG. Ganeti requires |
11 | c29ac11d | Ilias Tsitsimpis | # this VG to be at least of 30GB. To this end in order the virtual nodes to have |
12 | c29ac11d | Ilias Tsitsimpis | # this extra disk an image should be created locally. There are three options: |
13 | c29ac11d | Ilias Tsitsimpis | # 1. not create an extra disk (only file storage template will be supported) |
14 | c29ac11d | Ilias Tsitsimpis | # 2. create an image of 30G in image dir (default /var/lib/snf-deploy/images) |
15 | c29ac11d | Ilias Tsitsimpis | # using dd if=/dev/zero of=squeeze.disk1 |
16 | c29ac11d | Ilias Tsitsimpis | # 3. create this image in a local VG using lvgreate -L30G squeeze.disk1 lvg |
17 | c29ac11d | Ilias Tsitsimpis | # and create a symbolic link in /var/lib/snf-deploy/images |
18 | c29ac11d | Ilias Tsitsimpis | |
19 | c29ac11d | Ilias Tsitsimpis | # Whether to create an extra disk or not |
20 | c29ac11d | Ilias Tsitsimpis | create_extra_disk = False |
21 | c29ac11d | Ilias Tsitsimpis | # lvg is the name of the local VG if any |
22 | c29ac11d | Ilias Tsitsimpis | lvg = |
23 | c29ac11d | Ilias Tsitsimpis | |
24 | c29ac11d | Ilias Tsitsimpis | # OS istalled in the virtual cluster |
25 | c29ac11d | Ilias Tsitsimpis | os = squeeze |
26 | c29ac11d | Ilias Tsitsimpis | |
27 | c29ac11d | Ilias Tsitsimpis | |
28 | c29ac11d | Ilias Tsitsimpis | [cluster] |
29 | c29ac11d | Ilias Tsitsimpis | # the bridge to use for the virtual cluster |
30 | c29ac11d | Ilias Tsitsimpis | # on this bridge we will launch a dnsnmasq and provide |
31 | c29ac11d | Ilias Tsitsimpis | # fqdns needed to the cluster. |
32 | c29ac11d | Ilias Tsitsimpis | # In ordrer cluster nodes to have internet access, host must do NAT. |
33 | c29ac11d | Ilias Tsitsimpis | # iptables -t nat -A POSTROUTING -s 192.0.0.0/28 -j MASQUERADE |
34 | c29ac11d | Ilias Tsitsimpis | # ip addr add 192.0.0.14/28 dev auto_nodes_br |
35 | c29ac11d | Ilias Tsitsimpis | # To create run: snf-deploy cluster |
36 | c29ac11d | Ilias Tsitsimpis | bridge = auto_nodes_br |
37 | eebf9563 | Ilias Tsitsimpis | |
38 | eebf9563 | Ilias Tsitsimpis | [network] |
39 | eebf9563 | Ilias Tsitsimpis | subnet = 192.168.0.0/28 |
40 | eebf9563 | Ilias Tsitsimpis | gateway = 192.168.0.14 |