이 문서에서는 중첩된 가상화를 사용할 때 발생할 수 있는 일반적인 오류와 이러한 오류를 해결하는 방법을 설명합니다. 중첩된 가상화에 대한 자세한 내용은 중첩된 VM 만들기를 참조하세요.
중첩된 VM을 시작할 수 없음
프로젝트가 조직에 속한 경우 조직에서 중첩된 가상화로 VM을 만들 수 있는 기능을 사용 중지했을 수 있습니다. 중첩된 가상화가 사용 설정된 VM을 만들기 전에 중첩된 가상화가 허용되는지 확인하세요.
중첩된 가상화가 프로세서에 표시되지 않음
grep -c vmx /proc/cpuinfo 명령어가 0을 반환하고 VM에 중첩이 사용 설정되지 않았다고 보고되면 Haswell 이상의 CPU를 사용하여 VM을 시작했는지 확인합니다. 자세한 내용은 중첩된 가상화 개요를 참조하세요.
중첩된 VM을 종료할 수 없음
중첩된 각 VM 세션 이전에 screen을 실행하지 않은 경우 중첩된 VM을 종료할 수도 있고, 다른 터미널에서 프로세스를 중지할 수도 있습니다. 중첩된 VM을 종료하려면 중첩된 VM 내에서 poweroff 명령어를 실행합니다.
또는 다른 터미널에서 호스트 VM에 로그인하고, 프로세스를 종료하고, 호스트 VM에서 screen을 실행한 후에 중첩된 VM을 새로 시작합니다.
iptables에서 트래픽을 전달하지 않음
iptables는 하향식으로 규칙을 확인합니다. 규칙의 우선순위를 다른 규칙보다 높여 보세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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"]]