{"id":14436,"date":"2010-08-21T08:51:10","date_gmt":"2010-08-21T08:51:10","guid":{"rendered":"http:\/\/inacreditavel.ioio.info\/?p=14436"},"modified":"2010-08-25T06:36:38","modified_gmt":"2010-08-25T06:36:38","slug":"problema-1","status":"publish","type":"post","link":"http:\/\/www.inacreditavel.pt\/?p=14436","title":{"rendered":"Problema (1)"},"content":{"rendered":"<p>Entre outras coisas, os ficheiros de log das m\u00e1quinas virtuais tinham o seguinte registo:<\/p>\n<p><small>00:00:00.280 Console: VM runtime error: fatal=false, errorID=Ext4PartitionDetected message=&#8221;The host I\/O cache for at least one controller is disabled and the medium &#8216;\/disco2\/VirtualBox\/HardDisks\/VM1.vdi&#8217; for this VM is located on an ext4 partition. There is a known Linux kernel bug which can lead to the corruption of the virtual disk image under these conditions.<br \/>\n00:00:00.280 Either enable the host I\/O cache permanently in the VM settings or put the disk image and the snapshot folder onto a different file system.<br \/>\n00:00:00.280 The host I\/O cache will now be enabled for this medium&#8221;<br \/>\n00:00:00.288 VBoxSharedClipboard mode: Bidirectional<br \/>\n<\/small><\/p>\n<p>Portanto, parece que h\u00e1 uma desaven\u00e7a entre o Kernel do Linux (para o sistema de ficheiros ext4) e o VirtualBox. Aparentemente com origem num bug. Ele d\u00e1 duas op\u00e7\u00f5es de solu\u00e7\u00e3o para este problema. Activar a cache de I\/O, ou mudar de sistema de ficheiros. Optei pela primeira solu\u00e7\u00e3o. Para isso, desliguei as m\u00e1quinas virtuais e emiti os comandos:<\/p>\n<p>Para ver o nome do controlador SATA:<br \/>\n<strong><small>VBoxManage showvminfo &lt;nome_m\u00e1quina&gt;<\/small><\/strong><\/p>\n<p>Para activar a cache de I\/O:<br \/>\n<strong><small><\/p>\n<pre>VBoxManage storagectl &lt;nome_m\u00e1quina&gt; --name SATA\\ Controller  --hostiocache on<\/pre>\n<p><\/small><\/strong><\/p>\n<p>Entretanto o host enviou mais um reset para as m\u00e1quinas virtuais e eu decidi reiniciar o host para ver o que acontece.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Entre outras coisas, os ficheiros de log das m\u00e1quinas virtuais tinham o seguinte registo: 00:00:00.280 Console: VM runtime error: fatal=false, errorID=Ext4PartitionDetected message=&#8221;The host I\/O cache for at least one controller is disabled and the medium &#8216;\/disco2\/VirtualBox\/HardDisks\/VM1.vdi&#8217; for this VM is located on an ext4 partition. There is a known Linux kernel bug which can lead [&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\/14436"}],"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=14436"}],"version-history":[{"count":4,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/14436\/revisions"}],"predecessor-version":[{"id":14472,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=\/wp\/v2\/posts\/14436\/revisions\/14472"}],"wp:attachment":[{"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14436"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.inacreditavel.pt\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}