Troubleshooting nested virtualization Stay organized with collections Save and categorize content based on your preferences.
This document describes common errors that you may run into when using nestedvirtualization and methods for resolving those errors. For more informationabout nested virtualization, seeCreating nested VMs.
Can't start nested VM
If your project is part of an organization, your organization might havedisabled the ability to create VMs with nested virtualization. Make sure thatnested virtualization is allowed before you try to create a VM that hasnested virtualization enabled.
Processor not displaying nested virtualization
If thegrep -c vmx /proc/cpuinfo command returns0 and reports that the VMis not enabled for nesting, make sure that you have started your VM with a CPUplatform of Haswell or later. For more information, seeNested virtualizationoverview.
Can't exit nested VM
If you did not runscreen before each nested VM session, you can eithershut down the nested VM or stop the process from another terminal. To shut downthe nested VM, run thepoweroff command from within your nested VM.Alternatively, log into the host VM in another terminal and end the process,then runscreen on the host VM before you start a new nested VM.
iptables not forwarding traffic
iptablesresolve rules from top to bottom. Make sure your rules are higherpriority than other rules.- Check that there are no conflicting rules intercepting your packets.
Consider flushing your
Note: Flushingiptables:iptablesdisables your firewall. You should only do this ifyou want to start over configuring your firewall.First, set the default policies:
sudo iptables -P INPUT ACCEPTsudo iptables -P FORWARD ACCEPTsudo iptables -P OUTPUT ACCEPTNext, flush all tables and chains, and delete non-default chains:
sudo iptables -t nat -Fsudo iptables -t mangle -Fsudo iptables -Fsudo iptables -X
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-15 UTC.