I am new to Google Compute Engine. I want to create a Web Server having following properties:
- 1 Core
- Red Hat Enterprise Linux 7.1 64 bit
- RAM 8 GB
- HDD: 100 GB
- SSH, JDK 1.7
- Apache Web server as the proxy to Jboss App Server
- Enable HTTP / 80 and HTTPS /443 on public IP
- Access Mode – SSH/SCP
I created a new instance having Linux Red Hat 7.1 and machine type n1-standard-2
that provide 2 CPU cores and 7.5 GB of RAM. Can I define exactly one core with 100 GB HD and 8 GB RAM? And how can I define access mode SSH/SCP ?
Advertisement
Answer
* I’d like add this update to my answer: Now it’s possible to customize the machine type based on your hardware requirements.*
When creating a Compute Engine VM instance you will need to specify a machine type. There is no way to specify amount of CPU and memory. However, you can select a machine type which will be close to your hardware requirements.
For the persistent disk, using the gcloud
command tool you can create a disk with the desired size:
$ gcloud compute disks create DISK_NAME --image IMAGE --size 100GB --zone ZONE
Then create your VM instance using your root persistent disk:
$ gcloud compute instances create INSTANCE_NAME --disk name=DISK_NAME boot=yes --zone ZONE
Since Automatic Resizing of root persistent disks is not supported by Compute Engine for Red Hat Enterprise operating system, you will need to manually repartition your disk. You can visit this article for information about repartitioning a root persistent disk.