Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Linux
Windows
In diesem Dokument wird beschrieben, wie Sie Probleme beim Importieren und Migrieren von VM-Instanzen in Compute Engine beheben, die eine falsch angewendete Lizenz haben.
Beispielsweise können Sie Probleme mit einer VM beheben, die eine On-Demand-Lizenz anstelle einer BYOL-Lizenz hat. Informationen zu den verschiedenen Lizenztypen finden Sie unter Informationen zu Lizenzen.
Falsche Lizenzimporte oder -migrationen verhindern
Wenn Sie versucht haben, eine VM mit einer BYOL- oder BYOS-Lizenz zu Compute Engine zu importieren oder zu migrieren, aber dem Lizenzstring der VM nicht byol oder byos angehängt wurde, wurde Ihre Lizenz nicht erfolgreich mit der VM importiert/migriert.
Führen Sie zum Beheben dieses Problems einen der folgenden Schritte aus, je nachdem, wie Sie die VM importiert oder migriert haben:
Wenn Sie die VM mit dem Befehl gcloud compute instances import oder der Cloud Build API importiert haben, importieren Sie die VM noch einmal und geben Sie das Flag --os mit der byol-Version des Betriebssystems an.
Wenn Sie die VM mithilfe von Migrate to Virtual Machines migriert haben, wenden Sie sich an Cloud Customer Care, um das Problem zu beheben. Weitere Informationen finden Sie unter Support bei Cloud Customer Care.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-03 (UTC)."],[[["\u003cp\u003eThis document outlines how to fix issues when virtual machine (VM) licenses are incorrectly imported or migrated to Compute Engine.\u003c/p\u003e\n"],["\u003cp\u003eIf a VM was imported or migrated with an on-demand license instead of a bring your own license (BYOL), the license was not applied properly.\u003c/p\u003e\n"],["\u003cp\u003eTo resolve this, re-import the VM using the correct \u003ccode\u003egcloud\u003c/code\u003e command and include the appropriate \u003ccode\u003e--os\u003c/code\u003e or \u003ccode\u003e--byol\u003c/code\u003e flag to signify the BYOL OS.\u003c/p\u003e\n"],["\u003cp\u003eFor VMs migrated using Migrate to Virtual Machines, you should contact Cloud Customer Care to resolve the licensing issue.\u003c/p\u003e\n"]]],[],null,["# Troubleshooting licenses\n\nLinux Windows\n\n*** ** * ** ***\n\nThis document shows you how to resolve issues related to importing and migrating\nvirtual machine (VM) instances to Compute Engine that have a misapplied\nlicense.\n\nFor example, learn how to resolve issues with a VM that has an on-demand license\ninstead of a bring your own license (BYOL). For information about the different\ntypes of licenses, see [About licenses](/compute/docs/licenses/about).\n\nMitigate incorrect license imports or migrations\n------------------------------------------------\n\nIf you tried to import or migrate a VM into Compute Engine with a BYOL or BYOS\nlicense, but the VM's [license string](/compute/docs/images/os-details#license-strings)\nis not appended with `byol` or `byos`, then your license was not successfully\nimported or migrated with the VM.\n\nTo resolve this issue, do one of the following depending on how you imported or\nmigrated the VM:\n\n- If you imported the VM using the\n [`gcloud compute instances import` command](/sdk/gcloud/reference/compute/instances/import)\n or the Cloud Build API, import the VM again, and specify the\n [`--os` flag](/sdk/gcloud/reference/compute/instances/import#--os) with the\n `byol` version of the OS.\n\n- If you imported the VM using the\n [`gcloud beta compute machine-images import` command](/sdk/gcloud/reference/beta/compute/machine-images/import),\n import the VM again, and specify the\n [`--byol` flag](/sdk/gcloud/reference/beta/compute/machine-images/import#--byol).\n\n- If you imported the VM using the\n [`gcloud beta compute images import` command](/sdk/gcloud/reference/beta/compute/images/import),\n import the VM again, and specify the\n [`--byol` flag](/sdk/gcloud/reference/beta/compute/images/import#--byol).\n\n- If you migrated the VM using Migrate to Virtual Machines, contact\n Cloud Customer Care to help you resolve the issue. For more information, see\n [Getting support with Cloud Customer Care](/support/docs).\n\nWhat's next\n-----------\n\n- [Learn how to view and append license strings](/compute/docs/licenses/view-append)"]]