Risoluzione dei problemi di virtualizzazione nidificata
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Questo documento descrive gli errori comuni che potresti riscontrare durante l'utilizzo della
virtualizzazione nidificata e i metodi per risolverli. Per ulteriori informazioni
sulla virtualizzazione nidificata, consulta
Creazione di VM nidificate.
Impossibile avviare la VM nidificata
Se il tuo progetto fa parte di un'organizzazione, quest'ultima potrebbe aver
disattivato l'opzione di creazione di VM con virtualizzazione nidificata. Prima di provare a creare una VM con virtualizzazione nidificata,
assicurati che
sia possibile eseguire questa funzione.
Il processore non mostra la virtualizzazione nidificata
Se il comando grep -c vmx /proc/cpuinfo restituisce 0 e indica che la VM
non è abilitata per la nidificazione, assicurati di aver avviato la VM con una piattaforma
CPU Haswell o successiva. Per ulteriori informazioni, vedi una panoramica
di virtualizzazione nidificata.
Impossibile uscire dalla VM nidificata
Se non hai eseguito screen prima di ogni sessione di VM nidificata, puoi arrestare quest'ultima o
interrompere il processo da un altro terminale. Per arrestare
la VM nidificata, esegui il comando poweroff.
In alternativa, accedi alla VM host in un altro terminale e termina il processo,
quindi esegui screen sulla VM host prima di avviare una nuova VM nidificata.
iptables non è in grado di inoltrare il traffico
iptables risolvono i conflitti tra le regole dall'alto verso il basso. Assicurati che le tue regole abbiano
una priorità superiore rispetto alle altre.
Verifica che non ci siano regole in conflitto che intercettano i pacchetti.
Valuta la possibilità di fare il flush di iptables:
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eNested virtualization might be disabled at the organizational level, so verify that it's permitted before creating VMs with nested virtualization enabled.\u003c/p\u003e\n"],["\u003cp\u003eIf the processor isn't displaying nested virtualization, ensure the VM is started with a CPU platform of Haswell or later.\u003c/p\u003e\n"],["\u003cp\u003eIf you are unable to exit a nested VM, use \u003ccode\u003epoweroff\u003c/code\u003e to shut it down, or log into the host VM from another terminal to end the process and run \u003ccode\u003escreen\u003c/code\u003e for new sessions.\u003c/p\u003e\n"],["\u003cp\u003eWhen \u003ccode\u003eiptables\u003c/code\u003e fails to forward traffic, ensure that your forwarding rules have higher priority than other rules and that no conflicting rules are present.\u003c/p\u003e\n"]]],[],null,["# Troubleshooting nested virtualization\n\n*** ** * ** ***\n\nThis document describes common errors that you may run into when using nested\nvirtualization and methods for resolving those errors. For more information\nabout nested virtualization, see\n[Creating nested VMs](/compute/docs/instances/nested-virtualization/creating-nested-vms).\n\nCan't start nested VM\n---------------------\n\nIf your project is part of an organization, your organization might have\ndisabled the ability to create VMs with nested virtualization. Make sure that\n[nested virtualization is allowed](/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed) before you try to create a VM that has\nnested virtualization enabled.\n\nProcessor not displaying nested virtualization\n----------------------------------------------\n\nIf the `grep -c vmx /proc/cpuinfo` command returns `0` and reports that the VM\nis not enabled for nesting, make sure that you have started your VM with a CPU\nplatform of Haswell or later. For more information, see [Nested virtualization\noverview](/compute/docs/instances/nested-virtualization/overview).\n\nCan't exit nested VM\n--------------------\n\nIf you did not run `screen` before each nested VM session, you can either\nshut down the nested VM or stop the process from another terminal. To shut down\nthe nested VM, run the `poweroff` command from within your nested VM.\nAlternatively, log into the host VM in another terminal and end the process,\nthen run `screen` on the host VM before you start a new nested VM.\n\n`iptables` not forwarding traffic\n---------------------------------\n\n- `iptables` resolve rules from top to bottom. Make sure your rules are higher priority than other rules.\n- Check that there are no conflicting rules intercepting your packets.\n- Consider flushing your `iptables`:\n\n | **Note:** Flushing `iptables` disables your firewall. You should only do this if you want to start over configuring your firewall.\n 1. First, set the default policies:\n\n sudo iptables -P INPUT ACCEPT\n sudo iptables -P FORWARD ACCEPT\n sudo iptables -P OUTPUT ACCEPT\n\n 2. Next, flush all tables and chains, and delete non-default chains:\n\n sudo iptables -t nat -F\n sudo iptables -t mangle -F\n sudo iptables -F\n sudo iptables -X"]]