Created
February 25, 2019 07:29
-
-
Save Yash089610/0c05c5b58c4b75b63c7879c789326114 to your computer and use it in GitHub Desktop.
A gcould sdk command to create ARCH image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gcloud compute instances create yash089610 \ | |
| --image-project=arch-linux-gce --image-family=arch --preemptible \ | |
| --min-cpu-platform="Intel Skylake" --custom-cpu=8 --custom-memory=16GB \ | |
| --boot-disk-device-name=yash089610 --boot-disk-size=512GB --boot-disk-type=pd-standard \ | |
| --tags=https-server,http-server --address=34.xx.xxx.xxx --zone=us-east1-c | |
| --preemptible= For preemptible instance | |
| --min-cpu-platform= Minimum CPU instance to be used by the Instance | |
| --custom-cpu= No of vCPU's needed | |
| --custom-memory= Total RAM needed | |
| --boot-disk-device-name= Name of Boot disk to be read by the instance | |
| --boot-disk-size= Size of disk[Min-10GB and in GB only] | |
| --boot-disk-type= Type of Disc | |
| --tags= For network tags, let it be like this | |
| --address= Static IP of the VM, first reserve it in VPC | |
| --zone= Zone of the instance | |
| https://cloud.google.com/sdk/gcloud/reference/compute/instances/create | |
| Look here for other options... | |
| WARNING: Some requests generated warnings: | |
| - Disk size: '512 GB' is larger than image size: '10 GB'. You might need to resize the root repartition manually if the operating system does not support automatic resizing. See https://cloud.google.com/compute/docs/disks/persistent-disks#repartitionrootpd for details. | |
| Sometimes this warning is generated... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment