mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-16 00:00:06 +01:00
Updated Boot HermitCore from a raw image (markdown)
parent
194e61e01b
commit
48c3b6af6f
1 changed files with 6 additions and 1 deletions
|
@ -103,4 +103,9 @@ Create from this tar file an image, which we want to use as boot disk for the vi
|
|||
gcloud compute --project "[PROJECT_ID]" images create "[IMAGE_NAME]" --description "Image Description" --source-uri "https://storage.googleapis.com/[BUCKET_NAME]/disk.tar.gz"
|
||||
```
|
||||
|
||||
Please, replace `[BUCKET_NAME]`, `[PROJECT_ID]` and `[IMAGE_NAME]` with an appropriate names.
|
||||
Please, replace `[BUCKET_NAME]`, `[PROJECT_ID]` and `[IMAGE_NAME]` with an appropriate names.
|
||||
Finally, we have to create a VM and to boot from this disk.
|
||||
|
||||
```bash
|
||||
gcloud compute --project "[PROJECT_ID]" instances create "[VM_NAME]" --zone "us-central1-c" --machine-type "f1-micro" --subnet "default" --maintenance-policy "MIGRATE" --service-account "966551718477-compute@developer.gserviceaccount.com" --scopes "https://www.googleapis.com/auth/devstorage.read_only","https://www.googleapis.com/auth/logging.write","https://www.googleapis.com/auth/monitoring.write","https://www.googleapis.com/auth/servicecontrol","https://www.googleapis.com/auth/service.management.readonly","https://www.googleapis.com/auth/trace.append" --tags "http-server" --image "hermit" --image-project "[PROJECT_ID]" --boot-disk-size "10" --boot-disk-type "pd-standard" --boot-disk-device-name "[VM_NAME]"
|
||||
```
|
Loading…
Add table
Reference in a new issue