{"id":21494,"date":"2014-07-25T10:28:55","date_gmt":"2014-07-25T10:28:55","guid":{"rendered":"http:\/\/www.inacreditavel.pt\/?p=21494"},"modified":"2015-12-26T11:35:55","modified_gmt":"2015-12-26T11:35:55","slug":"maquinas-virtuais-2","status":"publish","type":"post","link":"http:\/\/www.inacreditavel.pt\/?p=21494","title":{"rendered":"M\u00e1quinas virtuais"},"content":{"rendered":"<p>Estas m\u00e1quinas virtuais t\u00eam-me consumido imenso tempo. As coisas v\u00e3o estabilizando com o tempo, j\u00e1 n\u00e3o estoiram aleatoriamente como acontecia h\u00e1 uns anos atr\u00e1s.<\/p>\n<p>Nos \u00faltimos 15 dias andei atarefado a redimensionar os discos e a redistribuir as m\u00e1quinas pelos <strong>hosts<\/strong> mais adequados.<\/p>\n<p>Para refer\u00eancia futura, ficam aqui alguns comandos do VirtualBox para clonagem de m\u00e1quinas virtuais e gest\u00e3o dos discos.<\/p>\n<div style=\"border: 2px solid black; border-radius: 5px; box-shadow: 5px 5px 5px grey; background-color: lightyellow; margin: 10px; padding: 8px; font-family: monospace; font-size: 0.9em;\"># copiar a m\u00e1quina <strong>server<\/strong> para a pasta \/disco2\/VirtualBox\/, depois:<br \/>\ncd \/disco2\/VirtualBox\/<br \/>\ncd\u00a0server<br \/>\nrm server.vbox-prev<br \/>\nrm Logs\/*<br \/>\nrm Snapshots\/*<br \/>\n# Mudar o tipo de armazenamento de fixo para din\u00e2mico (se for necess\u00e1rio)<br \/>\nVBoxManage clonehd server.vdi server2.vdi &#8211;variant Standard<br \/>\nVBoxManage showhdinfo server2.vdi<br \/>\nVBoxManage modifyhd server2.vdi &#8211;resize 163840<br \/>\nmv server2.vdi server.vdi<br \/>\nVBoxManage internalcommands sethduuid server.vdi<br \/>\n# Trocar o UUID do disco em 2 s\u00edtios<br \/>\nvi server.vbox<br \/>\n# Depois arrancar com o BOOT do GParted e redimensionar o disco<br \/>\n# Mudar tamb\u00e9m a interface de rede e os IPs da m\u00e1quina em \/etc\/hosts e \/etc\/rc.d\/rc.inet1.conf<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Estas m\u00e1quinas virtuais t\u00eam-me consumido imenso tempo. As coisas v\u00e3o estabilizando com o tempo, j\u00e1 n\u00e3o estoiram aleatoriamente como acontecia h\u00e1 uns anos atr\u00e1s. Nos \u00faltimos 15 dias andei atarefado a redimensionar os discos e a redistribuir as m\u00e1quinas pelos hosts mais adequados. Para refer\u00eancia futura, ficam aqui alguns comandos do VirtualBox para clonagem de [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/21494"}],"collection":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=21494"}],"version-history":[{"count":2,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/21494\/revisions"}],"predecessor-version":[{"id":22695,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/21494\/revisions\/22695"}],"wp:attachment":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=21494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=21494"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=21494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}