google-compute-engine

Google cloud Create image from instance

孤人 提交于 2020-01-12 18:54:12
问题 I have a VM which is up and running and I have few applications in the VM. So I want to have an image of this VM so that I can create new instances with all the installed packages. I have option called clone, but instead cloning a VM I wanted to have it as an Image and create VM whenever I want. 回答1: It's described here: https://cloud.google.com/compute/docs/creating-custom-image Basically what it boils down to: Set the auto-delete state of the root persistent disk to false so that it is not

Detach Boot Disk from GCE VM

…衆ロ難τιáo~ 提交于 2020-01-11 08:34:07
问题 I am trying to detach the Boot Disk from a GCE VM. As the VM is stopped so it should allow me to detach it but it's returning this error UNSUPPORTED_OPERATION: Hot-remove of the root disk is not supported. Any suggestions? 回答1: If you detach the boot disk from a stopped VM, there's no way to restart the VM back up, so that operation does not make sense. Thus, you would need to disable the option "auto-delete boot disk" and delete the VM: To set the auto delete state of a persistent disk in

Update Google Compute Engine Instance type in real time

空扰寡人 提交于 2020-01-11 02:15:13
问题 I would like to know if you can change the type of one instance to another, e.g: n1-standard-1 to n1-standard-2 I don't see nothing to that in the documentation, but may be I miss something. In case that is not posible, how i deal with this, there is another way to do this change? 回答1: You need create a new instance with the new type. Disconnect your persistent disk from n1-standard-1. Create new instance in the same zone with the type n1-standard-2 and choose boot from disk. (choose the

Disk is full, and I can't SSH to instance

风流意气都作罢 提交于 2020-01-10 02:42:06
问题 I get an error when trying to SSH into my instance. It tells me to check the console serial output. From what I understand it says my disk has no more space. What do I do? I need SSH to clear space but can't SSH because there is no space! This is what I see: Starting OpenBSD Secure Shell server: sshdopen: No space left on device Oct 14 13:18:13 instance-1 sshd[2771]: Server listening on 0.0.0.0 port 22. [?25l[?1c7[1GOct 14 13:18:13 instance-1 sshd[2771]: Server listening on :: port 22. [[32m

Could not load the default credentials? (Node.js Google Compute Engine tutorial)

被刻印的时光 ゝ 提交于 2020-01-09 09:39:28
问题 SITUATION: I follow this tutorial: https://cloud.google.com/nodejs/tutorials/bookshelf-on-compute-engine Everything works fine until I do npm start and go to: http://localhost:8080 I am met with the following text on the blank page: Could not load the default credentials. Browse to https://developers.google.com/accounts/docs/application-default-credentials for more information. Which makes no sense since I am using OAuth. I followed the link and read the page, but I have no GOOGLE-APPLICATION

self-signed SSL certificate on GCE — 'SSL certificate could not be parsed'

Deadly 提交于 2020-01-06 07:10:12
问题 I have a website, say mySite.com running on Google Cloud Engine, a Debian virtual machine. I’m looking to install SSL certificate on this site so that Firefox won’t be showing the security error on login field for one thing (not well familiar with web security – excuse the naive wording) I’m aware that SSL should be signed by a Central Authority (CA), and for this, i can either i.) pay&get it signed by a known CA, or ii.) create a CA myself and sign my own certification without paying

How do I allow access to GCE to only the dev that created the server?

笑着哭i 提交于 2020-01-06 06:54:23
问题 Right now everyone can access absolutely any server in GCE so long as they have GCE access. The gcloud comput ssh command can ssh into any server. How do I make sure that only the person that created the server has access? 回答1: It is possible to implement access control to instances based on GCE IAM roles via OS Login: After you enable OS Login on one or more instances in your project, those instances accept connections only from user accounts who have the necessary IAM roles in your project

Your Cassandra cluster failed to deploy. Replica State changed to PERMANENTLY_FAILING. Replica was unhealthy 2 consecutive times

强颜欢笑 提交于 2020-01-05 15:18:06
问题 I tried to deploy a Cassandra Cluster using Google Compute Engine, no success. I tried several times, the error was always the same: module: DEPLOYMENT_FAILED Replica module-1234 failed with status PERMANENTLY_FAILING: Replica State changed to PERMANENTLY_FAILING. Replica was unhealthy 2 consecutive times. After following this short troubleshooting guidelines: https://cloud.google.com/solutions/cassandra/click-to-deploy#troubleshooting, the log is the following: antoniogallo88_gmail_com

GCLB : Frontend configuration : Error : Invalid value for field 'namedPorts[0].port

左心房为你撑大大i 提交于 2020-01-05 04:29:28
问题 We are configuring Load Balancing (Through Google Console) " Frontend configuration " with 443 and added SSL certificate. But when we click on update configuration I'm receiving below error Error : Invalid value for field 'namedPorts[0].port': '0'. Must be greater than or equal to 1 Anyone ?? can help on same..!! 回答1: I got a work around to deal with this issue, we can configuring Load Balancing ( Through GCLOUD Command line ) " Frontend configuration " with 443 and added SSL certificate.

Locate and edit a WordPress .htaccess file in Google Compute Engine

淺唱寂寞╮ 提交于 2020-01-05 04:28:06
问题 I'm having trouble uploading my desired WP template (5mb), to my live site on vm instance within Google Compute Engine. I've tried every ssh command I've been able to find, in order to increase the php.ini file limits and restarted apache etc. When I access them now, they appear to be amended as desired. However, when I re-attempt the install, I get the same file limit error within WP. I've tried to sftp the files over to the WP folders using Fetch on OSX, to no avail. Permissions kept