אפשר להוסיף, להסיר או להחליף רק רישיונות מסוימים של מערכות הפעלה. אפשר לשנות רישיונות של Red Hat Enterprise Linux (RHEL), RHEL ל-SAP, SUSE Linux Enterprise Server (SLES), SLES ל-SAP, Ubuntu, Ubuntu Pro ו-Windows Server בתרחישים הבאים:
- מעבר בין מודלים של חיוב BYOS ו-PAYG ל-RHEL, ל-RHEL ל-SAP, ל-SLES ול-SLES ל-SAP
- שינוי מכונה של Windows Server BYOL לשימוש בחיוב PAYG
- שדרוגים במקום מ-Ubuntu ל-Ubuntu Pro
- הוספה או הסרה של רישיונות לחבילת RHEL ELS
בעל הרישיון יכול לשנות את השינויים התקפים ברישיון מסוים. לפני שמשנים רישיון, צריך לוודא שהשינוי ברישיון היעד תקין. במדריך הזה מוסבר איך למצוא את השינויים הנוכחיים ברישיון שתקפים לרישיון מסוים. היא כוללת גם את ההגבלות שחלות על שינוי הרישיון.
לפני שמתחילים
-
אם עדיין לא עשיתם את זה, תצטרכו להגדיר אימות.
אימות הוא התהליך שבו מאמתים את הזהות שלכם כדי לקבל גישה לממשקי API ולשירותים של Cloud de Confiance by S3NS . כדי להריץ קוד או דוגמאות מסביבת פיתוח מקומית, אפשר לבצע אימות ל-Compute Engine באחת מהדרכים הבאות:
צריך לבחור את הכרטיסייה הרלוונטית לאופן שבו תכננתם להשתמש בדוגמאות בדף הזה:
המסוף
כשמשתמשים במסוף Cloud de Confiance כדי לגשת לשירותים Cloud de Confiance by S3NS ולממשקי ה-API, לא צריך להגדיר אימות.
gcloud
-
מתקינים את ה-CLI של Google Cloud ואז נכנסים ל-CLI של gcloud באמצעות הזהות המאוחדת שלכם. אחרי שנכנסתם לחשבון, אתחלו את ה-CLI של Google Cloud באמצעות הפקודה הבאה:
gcloud init
-
- הגדרת אזור ותחום כברירת מחדל
הכנה לעדכון הרישיון של דיסק
כדי לעדכן את הרישיון של הדיסק בזמן שהדיסק מחובר למכונה פעילה, קודם צריך לעצור את המכונה או לנתק את הדיסק.
- מפסיקים את המכונה. המכונה מושבתת באופן זמני לפני עדכון הרישיון של הדיסק.
- מנתקים את הדיסק. הפעולה הזו מנתקת את הדיסק מהמופע לפני עדכון הרישיון של הדיסק.
בדיקת פרטי הרישיון
ב-Cloud Shell, מריצים את הפקודה הבאה. מחליפים את LICENSE_URL ברישיון שרוצים לבדוק. בטבלה הפניות לרישיונות מופיעה רשימה של כתובות URL נפוצות של רישיונות.
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json" LICENSE_URL
לדוגמה, כדי לבדוק את רישיון RHEL 7 PAYG:
curl -H "Authorization: Bearer $(gcloud auth print-access-token)" -H "Content-Type: application/json" https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-7-server
הפלט אמור להיראות כך:
{
"kind": "compute#license",
"name": "rhel-7-server",
"chargesUseFee": true,
"id": "6080198135500386054",
"licenseCode": "1000006",
"creationTimestamp": "2013-08-19T17:17:57.000-07:00",
"description": "RedHat Enterprise Linux 7",
"transferable": true,
"selfLink": "https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-7-server",
"selfLinkWithId": "https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/6080198135500386054",
"appendableToDisk": true,
"removableFromDisk": false,
"allowedReplacementLicenses": [
"1492188837615955530",
"8475125252192923229",
"601259152637613565",
"489291035512960571",
"1270685562947480748"
],
"osLicense": false,
"soleTenantOnly": false,
"multiTenantOnly": false,
"minimumRetention": {
"seconds": "0",
"nanos": 0
},
"updateTimestamp": ""
}
התגובה מתארת את השדות העיקריים הבאים:
-
removableFromDisk: אםtrue, אפשר להסיר את הרישיון מהדיסק. אם הערך הואfalse, אי אפשר להסיר את הרישיון בלי להחליף אותו ברישיון תקף. -
allowedReplacementLicenses: רשימה של קודי רישיונות שיכולים לשמש כתחליפים תקפים. כדי לברר איזה קוד רישיון מתאים לאיזה רישיון, אפשר לעיין בהפניות לרישיונות. -
minimumRetention: משך הזמן המינימלי שבו הרישיון צריך להיות במכונה הווירטואלית לפני שאפשר להחיל שינוי רישיון נוסף.
דוגמה: החלפת RHEL 7 PAYG ב-RHEL 8 PAYG
כדי להחליף רישיון RHEL 7 PAYG ברישיון RHEL 8 PAYG, צריך להשתמש בפרטים הבאים כדי למצוא את קוד הרישיון ואת כתובת ה-URL של הרישיון ל-RHEL 8 PAYG:
| שם הרישיון | קוד רישיון | כתובת ה-URL של הרישיון |
|---|---|---|
| RHEL 8 PAYG | 601259152637613565 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-8-server |
קוד הרישיון של RHEL 8 PAYG (601259152637613565) מופיע בקטע
allowedReplacementLicenses של RHEL 7 PAYG, ולכן אפשר להחליף את הרישיון.
כדי להחליף את הרישיון, משתמשים בפקודה הבאה:
gcloud compute disks update DISK_NAME
--replace-license=projects/rhel-cloud/global/licenses/rhel-7-server,projects/rhel-cloud/global/licenses/rhel-8-server
--zone=DISK_ZONE
הפניות לרישיונות
הפניות לרישיונות של RHEL, SLES, Ubuntu, Ubuntu Pro ו-Windows Server מפורטות בטבלאות הבאות.
פרטי הרישיון של RHEL
| שם הרישיון | קוד רישיון | כתובת ה-URL של הרישיון |
|---|---|---|
| RHEL 6 PAYG | 1000002 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-6-server |
| RHEL 7 PAYG | 1000006 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-7-server |
| RHEL 7 ELS | 4646774207868449156 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-7-els |
| RHEL 8 PAYG | 601259152637613565 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-8-server |
| RHEL 9 PAYG | 7883559014960410759 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-9-server |
| RHEL 10 PAYG | 1368031684811063353 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-10-server |
| RHEL 6 BYOS | 4720191914037931587 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-6-byos |
| RHEL 7 BYOS | 1492188837615955530 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-7-byos |
| RHEL 8 BYOS | 8475125252192923229 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-8-byos |
| RHEL 9 BYOS | 3837518230911135854 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-9-byos |
| RHEL 10 BYOS | 4907394077439590422 | https://www.googleapis.com/compute/v1/projects/rhel-cloud/global/licenses/rhel-10-byos |
| RHEL 8 for SAP PAYG | 1270685562947480748 | https://www.googleapis.com/compute/v1/projects/rhel-sap-cloud/global/licenses/rhel-8-sap |
| RHEL 9 ל-SAP PAYG | 8291906032809750558 | https://www.googleapis.com/compute/v1/projects/rhel-sap-cloud/global/licenses/rhel-9-sap |
| RHEL 10 ל-SAP PAYG | 5231023367886504429 | https://www.googleapis.com/compute/v1/projects/rhel-sap-cloud/global/licenses/rhel-10-sap |
| RHEL 8 ל-SAP BYOS | 489291035512960571 | https://www.googleapis.com/compute/v1/projects/rhel-sap-cloud/global/licenses/rhel-8-sap-byos |
| RHEL 9 for SAP BYOS | 6753525580035552782 | https://www.googleapis.com/compute/v1/projects/rhel-sap-cloud/global/licenses/rhel-9-sap-byos |
| RHEL 10 ל-SAP BYOS | 4412948736425361424 | https://www.googleapis.com/compute/v1/projects/rhel-sap-cloud/global/licenses/rhel-10-sap-byos |
פרטי הרישיון של SLES
| שם הרישיון | קוד רישיון | כתובת ה-URL של הרישיון |
|---|---|---|
| SLES 11 PAYG | 1000004 | https://www.googleapis.com/compute/v1/projects/suse-cloud/global/licenses/sles-11 |
| SLES 12 PAYG | 1000008 | https://www.googleapis.com/compute/v1/projects/suse-cloud/global/licenses/sles-12 |
| SLES 15 PAYG | 5422776498422280384 | https://www.googleapis.com/compute/v1/projects/suse-cloud/global/licenses/sles-15 |
| SLES 11 BYOS | 3562683225507985416 | https://www.googleapis.com/compute/v1/projects/suse-byos-cloud/global/licenses/sles-11-byos |
| SLES 12 BYOS | 5995918435054614609 | https://www.googleapis.com/compute/v1/projects/suse-byos-cloud/global/licenses/sles-12-byos |
| SLES 15 BYOS | 7429287564402499183 | https://www.googleapis.com/compute/v1/projects/suse-byos-cloud/global/licenses/sles-15-byos |
| SLES 12 for SAP PAYG | 4079932016749305610 | https://www.googleapis.com/compute/v1/projects/suse-sap-cloud/global/licenses/sles-sap-12 |
| SLES 15 ל-SAP PAYG | 4764125400812555962 | https://www.googleapis.com/compute/v1/projects/suse-sap-cloud/global/licenses/sles-sap-15 |
| SLES 12 for SAP BYOS | 7194268483061119118 | https://www.googleapis.com/compute/v1/projects/suse-byos-cloud/global/licenses/sles-sap-12-byos |
| SLES 15 for SAP BYOS | 6035015651111738499 | https://www.googleapis.com/compute/v1/projects/suse-byos-cloud/global/licenses/sles-sap-15-byos |
פרטי הרישיון של Ubuntu ו-Ubuntu Pro
| שם הרישיון | קוד רישיון | כתובת ה-URL של הרישיון |
|---|---|---|
| Ubuntu 16.04 (Xenial Xerus) | 1000201 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/licenses/ubuntu-1604-xenial |
| Ubuntu Pro 16.04 (Xenial Xerus) | 8045211386737108299 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-pro-cloud/global/licenses/ubuntu-pro-1604-lts |
| Ubuntu 18.04 LTS (Bionic Beaver) | 5926592092274602096 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/licenses/ubuntu-1804-lts |
| Ubuntu Pro 18.04 LTS (Bionic Beaver) | 6022427724719891830 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-pro-cloud/global/licenses/ubuntu-pro-1804-lts |
| Ubuntu 20.04 LTS (Focal Fossa) | 2211838267635035815 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/licenses/ubuntu-2004-lts |
| Ubuntu Pro 20.04 LTS (Focal Fossa) | 599959289349842382 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-pro-cloud/global/licenses/ubuntu-pro-2004-lts |
| Ubuntu 22.04 LTS (Jammy Jellyfish) | 5511465778777431107 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/licenses/ubuntu-2204-lts |
| Ubuntu Pro 22.04 LTS (Jammy Jellyfish) | 2592866803419978320 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-pro-cloud/global/licenses/ubuntu-pro-2204-lts |
| Ubuntu 24.04 LTS (Noble Numbat) | 3242930272766215801 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/licenses/ubuntu-2404-lts |
| Ubuntu Pro 24.04 LTS (Noble Numbat) | 2176054482269786025 | https://www.googleapis.com/compute/v1/projects/ubuntu-os-pro-cloud/global/licenses/ubuntu-pro-2404-lts |
פרטי הרישיון של Windows Server
| שם הרישיון | קוד רישיון | כתובת ה-URL של הרישיון |
|---|---|---|
| Windows Server 2008 R2 BYOL | 4551215591257167608 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2008-r2-byol |
| Windows Server 2008 R2 PAYG | 1000000 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2008-r2-dc |
| Windows Server 2012 BYOL | 5559842820536817947 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2012-byol |
| Windows Server 2012 PAYG | 1000015 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2012-dc |
| Windows Server 2012 R2 BYOL | 6738952703547430631 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2012-r2-byol |
| Windows Server 2012 R2 PAYG | 1000017 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2012-r2-dc |
| Windows Server 2016 BYOL | 4322823184804632846 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2016-byol |
| Windows Server 2016 PAYG | 1000213 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2016-dc |
| Windows Server 2019 BYOL | 6532438499690676691 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2019-byol |
| Windows Server 2019 PAYG | 3389558045860892917 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2019-dc |
| Windows Server 2022 BYOL | 2808834792899686364 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2022-byol |
| Windows Server 2022 PAYG | 4079807029871201927 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2022-dc |
| Windows Server 2025 BYOL | 6621875542391421291 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2025-byol |
| Windows Server 2025 PAYG | 7142647615590922601 | https://www.googleapis.com/compute/v1/projects/windows-cloud/global/licenses/windows-server-2025-dc |