6

I’ve been using Google Compute Engine for 2 months now, I have a bunch of stuff installed on it.

Just installed a new kernel, so a reboot is required. I'd like to know if sudo reboot is safe. Meaning a reboot will not wipe out everything installed on the instance?

2 Answers 2

9

There’s nothing different in running sudo reboot in a instance versus on your own server. This action shouldn't cause any problems.

2
  • Good answer! Basically a reboot is a reboot is a reboot. No muss, no fuss. Oct 8, 2014 at 21:32
  • how about ephemeral IPs?
    – Dan D.
    Jul 23, 2018 at 10:20
1

I believe the author was worried if the disk is persistent or not. Yes you can shutdown/start/reboot the instance and your data will persist.

4
  • and i worry about ephemeral ips
    – Dan D.
    Jul 23, 2018 at 10:21
  • 1
    ephemeral ips wont change with reboots. You can get a static ip, which is free of charge, as long as the instance is running. (free tier accounts are limited to one or two static ips i believe)
    – nelasx
    Aug 29, 2018 at 11:12
  • doesn't seem 100% sure, what if the ephemeral ip is allocated to other users in the time span between stop and start (again). In this time span, the instance is not running
    – Dan D.
    Aug 30, 2018 at 2:32
  • 1
    if the instance is closed, it will get another public ip on the start.
    – nelasx
    Oct 2, 2018 at 11:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .