{"id":1292,"date":"2013-11-04T22:47:41","date_gmt":"2013-11-04T20:47:41","guid":{"rendered":"https:\/\/zz-indigo.mavipet.sk\/?p=1292"},"modified":"2019-10-29T18:04:53","modified_gmt":"2019-10-29T18:04:53","slug":"portable-cloud-update-statusu","status":"publish","type":"post","link":"https:\/\/zz-indigo.mavipet.sk\/?p=1292","title":{"rendered":"Portable cloud. Update statusu."},"content":{"rendered":"<p>Tak zas som sa hral z Portable Cloudom a posunul sa \u010falej. Narazil so na dva probl\u00e9my. Jeden zo sudo pr\u00e1vami a druh\u00fd z nastaven\u00edm \u0161abl\u00f3ny pre vm. To prv\u00e9 je nedostatok na strane spr\u00e1vcu bal\u00ed\u010dkov. To druh\u00e9 vyzer\u00e1 ako probl\u00e9m na strane pou\u017eit\u00e9ho storage.<\/p>\n<p><!--more-->Sudo probl\u00e9m: \/etc\/sudoers.d\/opennebula-node treba upravi\u0165. Pridan\u00fd riadok je ozna\u010den\u00fd hrubo.<\/p>\n<pre> # OpenNebula sudoers file\n #\n # Allow member of cloud group (ie. oneadmin)\n # to call \/usr\/sbin\/xm and \/usr\/sbin\/xentop\n # without password.\n #\n <strong>Defaults:%cloud !requiretty<\/strong>\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/usr\/sbin\/xm *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/usr\/sbin\/xentop *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/sbin\/ebtables *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/sbin\/iptables *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/sbin\/brctl *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/sbin\/ip *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/sbin\/vconfig *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/usr\/bin\/ovs-vsctl *\n %cloud\u00a0\u00a0\u00a0 ALL=(ALL) NOPASSWD: \/usr\/bin\/ovs-ofctl *<\/pre>\n<p>Probl\u00e9m z datastorom. Vyzer\u00e1 to tak \u017ee GlusterFS nepodporuje vypnutie cache. Tak treba upravi\u0165 riadok v template:\u00a0 \/etc\/one\/vmm_exec\/vmm_exec_kvm.conf<\/p>\n<pre># -------------------------------------------------------------------------- #\n# Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n# Licensed under the Apache License, Version 2.0 (the \"License\"); you may\u00a0\u00a0\u00a0 #\n# not use this file except in compliance with the License. You may obtain\u00a0\u00a0\u00a0 #\n# a copy of the License at\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n# http:\/\/www.apache.org\/licenses\/LICENSE-2.0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n#\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n# Unless required by applicable law or agreed to in writing, software\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n# distributed under the License is distributed on an \"AS IS\" BASIS,\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\u00a0\u00a0 #\n# See the License for the specific language governing permissions and\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n# limitations under the License.\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 #\n#--------------------------------------------------------------------------- #\n\n# Default configuration attributes for the KVM driver\n# (all domains will use these values as defaults).\u00a0 These values can\n# be overridden in each VM template. Valid atributes are:\n#\u00a0 - emulator\n#\u00a0 - os [kernel,initrd,boot,root,kernel_cmd,arch]\n#\u00a0 - vcpu\n#\u00a0 - features [acpi, pae]\n#\u00a0 - disk [driver, cache, io]\n#\u00a0 - nic\u00a0 [filter, model]\n#\u00a0 - raw\n\n#EMULATOR = \/usr\/libexec\/qemu-kvm\n\n#VCPU = 1\n\nOS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 = [ boot = \"hd\", arch = \"i686\" ]\nFEATURES = [ PAE = \"no\", ACPI = \"yes\" ]\n\n<strong>DISK\u00a0\u00a0\u00a0\u00a0 = [ driver = \"raw\" ]<\/strong>\n\n#NIC\u00a0\u00a0\u00a0\u00a0 = [ filter = \"clean-traffic\", model=\"virtio\" ]\n#RAW\u00a0\u00a0\u00a0\u00a0 = \"&lt;devices&gt;&lt;serial type=\"pty\"&gt;&lt;source path=\"\/dev\/pts\/5\"\/&gt;&lt;target port=\"0\"\/&gt;&lt;\/serial&gt;&lt;console type=\"pty\" tty=\"\/dev\/pts\/5\"&gt;&lt;source path=\"\/dev\/pts\/5\"\/&gt;&lt;target port=\"0\"\/&gt;&lt;\/console&gt;&lt;\/devices&gt;\"<\/pre>\n<p>Nakoniec e\u0161te jeden pr\u00eddavok. Aby v logoch ubudlo varovan\u00ed odpor\u00fa\u010dam nain\u0161talova\u0165 pm-utils<\/p>\n<pre>apt-get install pm-utils<\/pre>\n<p>V\u0161etky tieto zmeny bud\u00fa v priebehu zajtraj\u0161ka premietnut\u00e9 aj do str\u00e1nok projektu.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Tak zas som sa hral z Portable Cloudom a posunul sa \u010falej. Narazil so na dva probl\u00e9my. Jeden zo sudo pr\u00e1vami a druh\u00fd z nastaven\u00edm \u0161abl\u00f3ny pre vm. To prv\u00e9 je nedostatok na strane spr\u00e1vcu bal\u00ed\u010dkov. To druh\u00e9 vyzer\u00e1 ako &hellip; <a href=\"https:\/\/zz-indigo.mavipet.sk\/?p=1292\">Pokra\u010dova\u0165 v \u010d\u00edtan\u00ed <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,6,12],"tags":[],"class_list":["post-1292","post","type-post","status-publish","format-standard","hentry","category-portable_cloud_iaas","category-projekty","category-virtualizacia"],"_links":{"self":[{"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=\/wp\/v2\/posts\/1292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1292"}],"version-history":[{"count":1,"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=\/wp\/v2\/posts\/1292\/revisions"}],"predecessor-version":[{"id":2675,"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=\/wp\/v2\/posts\/1292\/revisions\/2675"}],"wp:attachment":[{"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zz-indigo.mavipet.sk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}