Google compute Engine (GCE) - Machine Image

Google compute Engine (GCE) - Machine Image

ยท

2 min read

This lab will be short as compare to others

We will be launching our VM instance using a Machine Image

Machine Image :- These image are the once which contains all your configuration, metadata, permissions and your Boot disk images plus your web pages which you have hosted on your disk, Machine image are like your backup image for your instance.

Let's begin with your lab

Step 1 :- Go to your instance and click on ssh.

image.png

Step 2 :- your ssh browser should open. image.png

Step 3 :- Let's create some text files using touch command or you can directly write.

touch 1.txt 2.txt

image.png

image.png type ls to list the files. image.png

Step 4 :- Let's put some text on our text file using vi editor.

vi 1.txt

image.png to write a text on the file press key i on your keyboard. You should get insert as show in below image after that type whatever you want.

image.png

After writing press key esc on your keyboard to escape and then press shift + : after that write wq then press enter.

wq :- save and quit

image.png

If you want to see content inside your file use cat command.

cat 1.txt

image.png

Step 5 :- Go inside your VM instance and click on create Machine image.

image.png

Step 6 :- Name your Machine image, Choose your source VM instance plus choose your desired region rest everything default finally click create.

image.png

Step 7 :- your machine image finally created now click on Action followed by click create instance.

image.png

Step 8 :- Name your instance rest everything is default and finally click create.

image.png

image.png

Step 9 :- Your instance will be created, Now copy paste your External IP address on your browser simultaneously click on ssh. image.png

Your web page should work

image.png

you should see your files inside your boot disk.

image.png

That's it, for now, we will continue further more in next blog.

Hope you liked it. Will see you on the next topic ๐Ÿ˜ƒ

Next Topic

bvakash.hashnode.dev/google-compute-engine-..

ย