{"id":38053,"date":"2025-08-05T17:10:10","date_gmt":"2025-08-05T20:10:10","guid":{"rendered":"https:\/\/www.locaweb.com.br\/ajuda\/?post_type=ht_kb&#038;p=38053"},"modified":"2025-08-05T17:10:10","modified_gmt":"2025-08-05T20:10:10","slug":"como-criar-um-snapshot-de-vm-locaweb-cloud","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-criar-um-snapshot-de-vm-locaweb-cloud\/","title":{"rendered":"Como criar um Snapshot de VM &#8211; Locaweb Cloud"},"content":{"rendered":"<h6><span style=\"font-weight: 400;\">O que \u00e9 e para que serve um Snapshot de VM?<\/span><\/h6>\n<p><span style=\"font-weight: 400;\">Um <\/span><b>Snapshot de VM<\/b><span style=\"font-weight: 400;\"> \u00e9 uma &#8220;fotografia&#8221; completa da sua M\u00e1quina Virtual (VM) em um exato momento. Diferente do snapshot de disco, ele captura o estado de <\/span><b>todos os discos<\/b><span style=\"font-weight: 400;\"> da VM e o estado atual da sua <\/span><b>mem\u00f3ria RAM<\/b><span style=\"font-weight: 400;\">. Ele serve como um &#8220;bot\u00e3o de desfazer&#8221; completo, permitindo reverter a VM para o exato estado em que estava funcionando, ideal para uma recupera\u00e7\u00e3o ultra r\u00e1pida antes de realizar opera\u00e7\u00f5es de risco.<\/span><\/p>\n<h6><span style=\"font-weight: 400;\">Pontos importantes antes de come\u00e7ar<\/span><\/h6>\n<p><b>Captura de Mem\u00f3ria (o grande diferencial)<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">A principal vantagem do Snapshot de VM \u00e9 a capacidade de salvar o estado da mem\u00f3ria RAM. Para que isso aconte\u00e7a, a VM<\/span> <a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-reiniciar-parar-ou-destruir-uma-vm\/\" target=\"_blank\" rel=\"noopener\"><b>precisa estar em execu\u00e7\u00e3o (Running)<\/b><\/a><span style=\"font-weight: 400;\"> durante a cria\u00e7\u00e3o do snapshot, e a op\u00e7\u00e3o de capturar a mem\u00f3ria deve ser marcada.<\/span><\/p>\n<p><b>Uso para curto prazo<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Snapshots de VM s\u00e3o projetados para pontos de restaura\u00e7\u00e3o de <\/span><b>curto prazo<\/b><span style=\"font-weight: 400;\">. Eles s\u00e3o perfeitos para reverter uma mudan\u00e7a mal-sucedida feita minutos ou horas antes. Para backups de longo prazo, a melhor pr\u00e1tica ainda \u00e9 usar<\/span> <a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-criar-um-snapshot-de-disco-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">snapshots de disco para criar templates ou novos volumes<\/span><span style=\"font-weight: 400;\">.<\/span><\/a><\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<b>O processo pode causar uma breve pausa na VM<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Durante a captura do estado da mem\u00f3ria, a sua VM pode ficar &#8220;congelada&#8221; por alguns segundos. Planeje isso para evitar impacto em usu\u00e1rios.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><span style=\"font-weight: 400;\">Criando o snapshot de VM<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No painel do Locaweb Cloud, v\u00e1 at\u00e9 o item <\/span><b>Computa\u00e7\u00e3o, <\/b><span style=\"font-weight: 400;\">selecione a op\u00e7\u00e3o <\/span><b>VMs<\/b><span style=\"font-weight: 400;\"> e, ent\u00e3o, selecione a<\/span><b> VM desejada<\/b><span style=\"font-weight: 400;\">.<\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">No menu de a\u00e7\u00f5es, clique no bot\u00e3o de a\u00e7\u00e3o <\/span><b>Criar Snapshot de VM<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-38055\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-1024x544.png\" alt=\"\" width=\"643\" height=\"342\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-1024x544.png 1024w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-300x159.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-768x408.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-50x27.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-1536x816.png 1536w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-60x32.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5-100x53.png 100w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/1-5.png 1600w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Aten\u00e7\u00e3o!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<b>N\u00e3o est\u00e1 encontrando o bot\u00e3o de Snapshot da VM?<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Ele s\u00f3 aparece se a VM estiver ligada. Se n\u00e3o encontrar o bot\u00e3o, confira se a sua VM est\u00e1 ativa.<\/span>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<ol>\n<li style=\"font-weight: 400;\" value=\"3\" aria-level=\"1\"><span style=\"font-weight: 400;\">Uma janela de confirma\u00e7\u00e3o aparecer\u00e1. Preencha os detalhes:<\/span><\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-38054\" src=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2-4.png\" alt=\"\" width=\"512\" height=\"369\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2-4.png 512w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2-4-300x216.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2-4-50x36.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2-4-60x43.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2025\/08\/2-4-100x72.png 100w\" sizes=\"auto, (max-width: 512px) 100vw, 512px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Nome<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">D\u00ea um nome descritivo para o snapshot (ex.: <\/span><span style=\"font-weight: 400;\">VM-BD-Antes-Update-App<\/span><span style=\"font-weight: 400;\">).<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Descri\u00e7\u00e3o (opcional)<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Adicione mais detalhes sobre o motivo do snapshot.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Snapshot da Mem\u00f3ria<\/b><b><br \/>\n<\/b><span style=\"font-weight: 400;\">Marque esta caixa de sele\u00e7\u00e3o. <\/span><span style=\"font-weight: 400;\"><br \/>\n<\/span><b>Este \u00e9 o passo crucial<\/b><span style=\"font-weight: 400;\"> para capturar o estado da RAM e permitir uma revers\u00e3o &#8220;ao vivo&#8221;. Esta op\u00e7\u00e3o s\u00f3 estar\u00e1 dispon\u00edvel se a VM estiver em execu\u00e7\u00e3o.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Quiesce VM<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Quando ativo, instrui o sistema a tentar <\/span><b>&#8220;congelar&#8221; <\/b><span style=\"font-weight: 400;\">ou<\/span><b> &#8220;silenciar&#8221;<\/b><span style=\"font-weight: 400;\"> as opera\u00e7\u00f5es de escrita no disco dentro do sistema operacional da VM, logo antes de tirar o snapshot. O <\/span><b>recomendado \u00e9 ativar a Quiesce VM<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Importante!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<\/p>\n<p><b>Entenda o Quiest VM<\/b><\/p>\n<p><span style=\"font-weight: 400;\">O objetivo \u00e9 garantir que o snapshot seja o mais consistente poss\u00edvel.<\/span><\/p>\n<p><b>Sem Quiesce: <\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">O snapshot \u00e9 &#8220;consistente com a falha&#8221; (<\/span><i><span style=\"font-weight: 400;\">crash-consistent<\/span><\/i><span style=\"font-weight: 400;\">). \u00c9 como tirar o computador da tomada. A maioria dos sistemas se recupera bem, mas transa\u00e7\u00f5es de banco de dados ou arquivos que estavam sendo escritos naquele exato momento podem ser corrompidos ou perdidos.<\/span><\/p>\n<p><b>Com Quiesce: <\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">O snapshot \u00e9 &#8220;consistente com a aplica\u00e7\u00e3o&#8221; (<\/span><i><span style=\"font-weight: 400;\">application-consistent<\/span><\/i><span style=\"font-weight: 400;\">). O sistema tenta garantir que todos os dados que estavam na mem\u00f3ria RAM sejam salvos no disco e que as aplica\u00e7\u00f5es (especialmente bancos de dados) estejam em um estado est\u00e1vel antes de <\/span><b>&#8220;bater a foto&#8221;.<\/b><\/p>\n<p>    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<ol>\n<li style=\"font-weight: 400;\" value=\"4\" aria-level=\"1\"><span style=\"font-weight: 400;\">Clique em <\/span><b>OK<\/b><span style=\"font-weight: 400;\"> para iniciar o processo.<\/span><\/li>\n<\/ol>\n<h6><span style=\"font-weight: 400;\">O que acontece depois?<\/span><\/h6>\n<p><span style=\"font-weight: 400;\">O Locaweb Cloud come\u00e7ar\u00e1 o processo de snapshot. A VM ficar\u00e1 brevemente pausada enquanto a mem\u00f3ria \u00e9 copiada e depois continuar\u00e1 sua opera\u00e7\u00e3o normal. Voc\u00ea pode acompanhar o progresso na aba <\/span><b>Snapshots da VM<\/b><span style=\"font-weight: 400;\"> (VM Snapshots), dentro dos detalhes da sua inst\u00e2ncia.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Uma vez conclu\u00eddo, seu ponto de restaura\u00e7\u00e3o completo estar\u00e1 pronto para ser usado caso voc\u00ea precise reverter a VM para este exato momento.<\/span><\/p>\n<h6><span style=\"font-weight: 400;\">Pr\u00f3ximos passos\u00a0<\/span><\/h6>\n<p><b>Restaurar um snapshot na VM<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Agora que voc\u00ea tem um snapshot de VM, voc\u00ea possui um &#8220;bot\u00e3o de desfazer&#8221; instant\u00e2neo. Se uma altera\u00e7\u00e3o futura der errado,<\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-restaurar-um-snapshot-de-vm-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\"> restaure sua VM <\/span><\/a><span style=\"font-weight: 400;\">para este ponto salvo. Isso recupera os discos e a mem\u00f3ria, revertendo a m\u00e1quina ao seu estado &#8220;ao vivo&#8221; anterior.<\/span><\/p>\n<p><b>Agendar a cria\u00e7\u00e3o de novos Snapshots<\/b><span style=\"font-weight: 400;\"><br \/>\n<\/span><span style=\"font-weight: 400;\">Agora que voc\u00ea j\u00e1 sabe como criar um snapshot manualmente, automatize o processo. <\/span><a href=\"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-agendar-a-criacao-de-snapshots-recorrentes-locaweb-cloud\/\" target=\"_blank\" rel=\"noopener\"><b>Crie um agendamento<\/b><\/a><span style=\"font-weight: 400;\"> para que snapshots sejam tirados de forma di\u00e1ria ou semanal. Isso garante que voc\u00ea sempre tenha pontos de restaura\u00e7\u00e3o recentes sem nenhum esfor\u00e7o manual.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>O que \u00e9 e para que serve um Snapshot de VM? Um Snapshot de VM \u00e9 uma &#8220;fotografia&#8221; completa da sua M\u00e1quina Virtual (VM) em um exato momento. Diferente do snapshot de disco, ele captura o estado de todos os discos da VM e o estado atual da sua mem\u00f3ria&#8230;<\/p>\n","protected":false},"author":30,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[666],"ht-kb-tag":[],"class_list":["post-38053","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-locaweb-cloud"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/30"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=38053"}],"version-history":[{"count":2,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38053\/revisions"}],"predecessor-version":[{"id":38192,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/38053\/revisions\/38192"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=38053"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=38053"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=38053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}