| 275 | === Setting Openvz Parameters === |
| 276 | |
| 277 | An advantage of openvz nodes is that the OS flavor and CPU bit-width can be set across experiments and per-node. Similarly the size of the disk allocated to each node can be set. |
| 278 | |
| 279 | Openvz uses templates to look like various linux installations. The choices of Linux distribution that openvz supports are: |
| 280 | |
| 281 | || __Template__ || __Distribution__ || __Bit-width__ || |
| 282 | || centos-6-x86 || CentOS 6 || 32 bit || |
| 283 | || centos-6-x86_64 || CentOS 6 || 64 bit || |
| 284 | || debian-6.0-x86 || Debian || 32 bit || |
| 285 | || debian-6.0-x86_64 || Debian || 64 bit || |
| 286 | || fedora-16-x86 || Fedora 16 || 32 bit || |
| 287 | || fedora-16-x86_64 || Fedora 16 || 64 bit || |
| 288 | || fedora-17-x86 || Fedora 17 || 32 bit || |
| 289 | || fedora-17-x86_64 || Fedora 17 || 64 bit || |
| 290 | || scientific-6-x86 || [https://www.scientificlinux.org/ Scientific Linux] || 32 bit || |
| 291 | || scientific-6-x86_64 || [https://www.scientificlinux.org/ Scientific Linux] || 64 bit || |
| 292 | || ubuntu-10.04-x86 || Ubuntu 10.04 LTS || 32 bit || |
| 293 | || ubuntu-10.04-x86_64 || Ubuntu 10.04 LTS || 64 bit || |
| 294 | || ubuntu-12.04-x86 || Ubuntu 12.04 LTS || 32 bit || |
| 295 | || ubuntu-12.04-x86_64 || Ubuntu 12.04 LTS || 64 bit || |
| 296 | |
| 297 | By default the {{{ubuntu-10.04-x86}}} template is used. |
| 298 | |
| 299 | To set a template across an entire topology, give {{{--openvz-template}}} and the template name from the list above. Invoking {{{containerize.py}}} on [attachment:example1.tcl our original example] as below will instantiate the experiment under 64-bit Ubuntu 12.04: |
| 300 | |
| 301 | {{{ |
| 302 | users:~$ /share/containers/containerize.py --openvz-template ubuntu-12.04-x86_64 DeterTest example1 ~/example1.tcl |
| 303 | Containerized experiment DeterTest/example1 successfully created! |
| 304 | Access it via http://www.isi.deterlab.net//showexp.php3?pid=DeterTest&eid=example1 |
| 305 | }}} |
| 306 | |
| 307 | We can set the size of the file system of containers in the experiment using {{{--openvz-diskspace}}}. The value of the parameter is determined by the suffix: |
| 308 | |
| 309 | || __Suffix__ || Value || |
| 310 | || G || Gigabytes || |
| 311 | || M || Megabytes || |
| 312 | |
| 313 | The most practical suffix for DETER nodes is "G": |
| 314 | |
| 315 | {{{ |
| 316 | users:~$ /share/containers/containerize.py --openvz-diskspace 15G DeterTest example1 ~/example1.tcl |
| 317 | Containerized experiment DeterTest/example1 successfully created! |
| 318 | Access it via http://www.isi.deterlab.net//showexp.php3?pid=DeterTest&eid=example1 |
| 319 | }}} |
| 320 | |
| 321 | Each of these parameters can be set on individual nodes using attributes. The attribute to set a template on a node is {{{containers:openvz_template}} and the attribute to set the disk space is {{{containers:openvz_diskspace}}}. |
| 322 | |