Google compute engine 自动迁移后如何处理断开的实例

Google compute engine 自动迁移后如何处理断开的实例,google-compute-engine,Google Compute Engine,这与在Google Compute Engine中调试VM有关: 在基于Google的操作“自动迁移实例”之后,一个长时间运行的实例似乎变得不可访问。是否有方法或手段对此进行调试?重新启动实例,尝试使用浏览器中的SSH连接(或直接连接)意味着两者都失败。状态将实例显示为在加载时消耗CPU,然后基本处于平坦状态 似乎实例本身永远无法访问。这是为其他人准备的吗?是否有一个简单的状态页面来查看实例是否已损坏或这是否是服务中断 自动迁移发生在2014年8月25日,这很可能是由谷歌作为计划(或非计划)维护

这与在Google Compute Engine中调试VM有关:

在基于Google的操作“自动迁移实例”之后,一个长时间运行的实例似乎变得不可访问。是否有方法或手段对此进行调试?重新启动实例,尝试使用浏览器中的SSH连接(或直接连接)意味着两者都失败。状态将实例显示为在加载时消耗CPU,然后基本处于平坦状态

似乎实例本身永远无法访问。这是为其他人准备的吗?是否有一个简单的状态页面来查看实例是否已损坏或这是否是服务中断

自动迁移发生在2014年8月25日,这很可能是由谷歌作为计划(或非计划)维护的一部分触发的

更新:在三个小时无法连接后,网络问题得到解决。我没有找到状态页面,也没有看到任何关于停机的内容。

Charles

从命令行查看控制台输出:

gcloud compute instances get-serial-port-output NAME [--project PROJECT_ID] [--zone ZONE]
(其中名称、项目ID和区域与您的虚拟机匹配) 或来自

(向下滚动至底部并单击“查看控制台”)

这可能会让你明白为什么它不允许你访问它。(我在Apache2中配置了一个加密的SSL服务器证书,它在引导时需要密码,但VM的控制台不是交互式的。它是只读的。我必须删除我的VM,但保留我的引导磁盘,将该引导磁盘装载到另一个VM上,找到证书文件并将其转换为未加密的,然后卸载第二个磁盘并创建一个n。)ew虚拟机使用现在的固定引导磁盘。工作起来很有魅力。当然,你的虚拟机可能会抱怨一些不同的事情。)

--布莱恩·哈尼
日间:技术解决方案工程师,谷歌云平台支持
(我的意见是我的,不是谷歌的。)

夜间:WebOps顾问——自1993年以来,通过互联网技术赋予人们权力

也有同样的问题,我的实例死了两天(不可能使用SSH)。必须手动关闭并重新启动

背景:容器VM映像(用于运行docker);外部硬盘连接

串行控制台日志:

Welcome to [1mContainer-Optimized OS from Google[0m!
[    8.457917] systemd[389]: [/usr/lib/systemd/system/bindmount@.service:6] Failed to add required mount for, ignoring: %I
[    8.461882] systemd[389]: [/usr/lib/systemd/system/bindmount@.service:6] Failed to add required mount for, ignoring: %I
[    8.465906] systemd[389]: [/usr/lib/systemd/system/bindmount@.service:6] Failed to add required mount for, ignoring: %I
[    8.471102] systemd[389]: usr-share-oem.mount: Unit is bound to inactive unit dev-sda8.device. Stopping, too.
[    8.472843] systemd[389]: home-chronos.mount: Unit is bound to inactive unit dev-sda1.device. Stopping, too.
[    8.474570] systemd[389]: home.mount: Unit is bound to inactive unit dev-sda1.device. Stopping, too.
[    8.476206] systemd[389]: mnt-stateful_partition.mount: Unit is bound to inactive unit dev-sda1.device. Stopping, too.
[    8.478911] systemd[389]: display-manager.service: Cannot add dependency job, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    8.481490] systemd[389]: Started Dispatch Password Requests to Console Directory Watch.
[[32m  OK  [0m] Started Dispatch Password Requests to Console Directory Watch.
[    8.486205] systemd[389]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[[32m  OK  [0m] Set up automount Arbitrary Executab...ats File System Automount Point.
[    8.491072] systemd[389]: Started Forward Password Requests to Wall Directory Watch.
[[32m  OK  [0m] Started Forward Password Requests to Wall Directory Watch.
[    8.496038] systemd[389]: Reached target Paths.
[[32m  OK  [0m] Reached target Paths.
[    8.500025] systemd[389]: Reached target Swap.
[[32m  OK  [0m] Reached target Swap.
[    8.502994] systemd[389]: Reached target Remote File Systems.
[[32m  OK  [0m] Reached target Remote File Systems.
[    8.507099] systemd[389]: Created slice Root Slice.
[[32m  OK  [0m] Created slice Root Slice.
[    8.511319] systemd[389]: Created slice System Slice.
[[32m  OK  [0m] Created slice System Slice.
[    8.515294] systemd[389]: Created slice Slice for System Daemons.
[[32m  OK  [0m] Created slice Slice for System Daemons.
[    8.519358] systemd[389]: Created slice system-serial\x2dgetty.slice.
[[32m  OK  [0m] Created slice system-serial\x2dgetty.slice.
[    8.523943] systemd[389]: Created slice system-bindmount.slice.
[[32m  OK  [0m] Created slice system-bindmount.slice.
[    8.528063] systemd[389]: Listening on Journal Socket.
[[32m  OK  [0m] Listening on Journal Socket.
[    8.534049] systemd[389]: Starting Init GCI filesystems...
         Starting Init GCI filesystems...
[    8.538880] systemd[389]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[    8.559447] systemd[389]: Mounting /mnt/disks...
         Mounting /mnt/disks...
[    8.604573] systemd[389]: Mounting /var/lib/cloud...
         Mounting /var/lib/cloud...
[    8.608462] systemd[389]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[    8.613688] systemd[389]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    8.616680] systemd[389]: Listening on /dev/initctl Compatibility Named Pipe.
[[32m  OK  [0m] Listening on /dev/initctl Compatibility Named Pipe.
[    8.620556] systemd[389]: Listening on Journal Socket (/dev/log).
[    8.622630] Unsafe core_pattern used with suid_dumpable=2. Pipe handler or fully qualified core dump path required.
[[32m  OK  [0m] Listening on Journal Socket (/dev/log).
[    8.627801] systemd[389]: Listening on Journal Audit Socket.
[[32m  OK  [0m] Listening on Journal Audit Socket.
[    8.633048] systemd[389]: Listening on udev Control Socket.
[[32m  OK  [0m] Listening on udev Control Socket.
[    8.637607] systemd[389]: Starting Resize stateful partition...
         Starting Resize stateful partition...
[    8.642185] systemd[389]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[    8.645313] systemd[389]: Starting Journal Service...
         Starting Journal Service...
[    8.648043] systemd[389]: Created slice User and Session Slice.
[[32m  OK  [0m] Created slice User and Session Slice.
[    8.652056] systemd[389]: Reached target Slices.
[[32m  OK  [0m] Reached target Slices.
[    8.659068] systemd[389]: Listening on networkd rtnetlink socket.
[[32m  OK  [0m] Listening on networkd rtnetlink socket.
[    8.663053] systemd[389]: Listening on udev Kernel Socket.
[[32m  OK  [0m] Listening on udev Kernel Socket.
[    8.668255] systemd[389]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[    8.681967] systemd[389]: Mounted /var/lib/cloud.
[[32m  OK  [0m] Mounted /var/lib/cloud.
[    8.685042] systemd[389]: Mounted POSIX Message Queue File System.
[[32m  OK  [0m] Mounted POSIX Message Queue File System.
[    8.690680] systemd[389]: Mounted /mnt/disks.
[[32m  OK  [0m] Mounted /mnt/disks.
[    8.701337] systemd[389]: Started Init GCI filesystems.
[[32m  OK  [0m] Started Init GCI filesystems.
[    8.706368] systemd[389]: Started Create list of required static device nodes for the current kernel.
[[32m  OK  [0m] Started Create list of required sta...ce nodes for the current kernel.
[    8.712553] systemd-journald[430]: File /var/log/journal/d4fa6498b846d6212ac87e865788a99d/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    8.715515] systemd[389]: Started Apply Kernel Variables.
[[32m  OK  [0m] Started Apply Kernel Variables.
[    8.719634] systemd[389]: Started Remount Root and Kernel File Systems.
[[32m  OK  [0m] Started Remount Root and Kernel File Systems.
[    8.764898] systemd[389]: Started udev Coldplug all Devices.
[[32m  OK  [0m] Started udev Coldplug all Devices.
[    8.788181] systemd[389]: Starting Rebuild Dynamic Linker Cache...
         Starting Rebuild Dynamic Linker Cache...
[    8.791452] systemd[389]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[    8.834830] systemd[389]: Started Journal Service.
[[32m  OK  [0m] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[    8.901885] systemd-journald[430]: Received request to flush runtime journal from PID 389
[[32m  OK  [0m] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[[32m  OK  [0m] Reached target Local File Systems (Pre).
         Starting bindmount@-var-lib-toolbox.service...
         Starting bindmount@-var-lib-google.service...
         Starting bindmount@-var-lib-docker.service...
[[32m  OK  [0m] Started bindmount@-var-lib-toolbox.service.
[[32m  OK  [0m] Started bindmount@-var-lib-google.service.
[[32m  OK  [0m] Started bindmount@-var-lib-docker.service.
         Starting Mount /var/lib/docker with 'exec'...
[    9.032344] EXT4-fs (sda1): re-mounted. Opts: commit=30,data=ordered
         Starting Mount /var/lib/google with 'exec'...
[    9.036810] EXT4-fs (sda1): re-mounted. Opts: commit=30,data=ordered
[    9.040218] EXT4-fs (sda1): re-mounted. Opts: commit=30,data=ordered
         Starting Mount /var/lib/toolbox with 'exec' and 'suid' bits...
[[32m  OK  [0m] Started Mount /var/lib/docker with 'exec'.
[[32m  OK  [0m] Started Mount /var/lib/google with 'exec'.
[[32m  OK  [0m][    9.089836] systemd-udevd[456]: IMPORT{builtin}: 'blkid --offset=$env{ID_CDROM_MEDIA_SESSION_LAST_OFFSET}' unknown /lib/udev/rules.d/60-persistent-storage.rules:60
 Started Mount /var/lib/toolbox with 'exec' and 'suid' bits.
[    9.101830] systemd-udevd[456]: IMPORT{builtin}: 'blkid --noraid' unknown /lib/udev/rules.d/60-persistent-storage.rules:63
[    9.113855] systemd-udevd[456]: IMPORT{builtin}: 'blkid' unknown /lib/udev/rules.d/60-persistent-storage.rules:66
[[32m  OK  [0m] Started Flush Journal to Persistent Storage.
[[32m  OK  [0m] Started udev Kernel Device Manager.
[    9.252609] piix4_smbus 0000:00:01.3: SMBus base address uninitialized - upgrade BIOS or use force_addr=0xaddr
[[32m  OK  [0m] Found device /dev/ttyS0.
[[32m  OK  [0m] Reached target Local File Systems.
         Starting Rebuild Journal Catalog...
         Starting Create Volatile Files and Directories...
[    9.340589] AVX version of gcm_enc/dec engaged.
[    9.341526] AES CTR mode by8 optimization enabled
[[32m  OK  [0m] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Load Security Auditing Rules...
[[32m  OK  [0m] Started Resize stateful partition.
[[32m  OK  [0m] Started Rebuild Journal Catalog.
[[32m  OK  [0m] Started Network Time Synchronization.
[[32m  OK  [0m] Reached target System Time Synchronized.
[[32m  OK  [0m] Started Load Security Auditing Rules.
[[32m  OK  [0m] Started Rebuild Dynamic Linker Cache.
         Starting Update is Completed...
[[32m  OK  [0m] Started Update is Completed.
[[32m  OK  [0m] Reached target System Initialization.
[[32m  OK  [0m] Started Run Crash Sender hourly.
[[32m  OK  [0m] Listening on D-Bus System Message Bus Socket.
         Starting Docker Socket for the API.
[[32m  OK  [0m] Started Daily Cleanup of Temporary Directories.
[[32m  OK  [0m] Reached target Timers.
[[32m  OK  [0m] Listening on Docker Socket for the API.
[[32m  OK  [0m] Reached target Sockets.
[[32m  OK  [0m] Reached target Basic System.
         Starting Configure ip6tables...
         Starting Permit User Sessions...
         Starting Initialize Crash Reporter...
         Starting Configure iptables...
         Starting Initial cloud-init job (pre-networking)...
         Starting Login Service...
[[32m  OK  [0m] Started D-Bus System Message Bus.
[   10.185174] ip6_tables: (C) 2000-2006 Netfilter Core Team
         Starting Network Service...
         Starting Notify Upstart about D-Bus service...
[[32m  OK  [0m] Started Configure ip6tables.
[[32m  OK  [0m] Started Permit User Sessions.
[[32m  OK  [0m] Started Notify Upstart about D-Bus service.
[   10.297969] init: failsafe-delay main process (669) killed by TERM signal
[[32m  OK  [0m] Started Network Service.
[[32m  OK  [0m] Started Login Service.
         Starting Wait for Network to be Configured...
[[32m  OK  [0m] Started Serial Getty on ttyS0.
[[32m  OK  [0m] Reached target Login Prompts.
[[32m  OK  [0m] Started Wait for Network to be Configured.
         Starting Hostname Service...
[[32m  OK  [0m] Started Hostname Service.
[[32m  OK  [0m] Started Initialize Crash Reporter.
         Starting Run per-boot crash collection tasks...
[[32m  OK  [0m] Started Run per-boot crash collection tasks.
[[32m  OK  [0m] Started Configure iptables.
[[32m  OK  [0m] Reached target Network.
[[32m  OK  [0m] Reached target Network is Online.
         Starting Initialize device policy...
         Starting Docker Setup for GKE...
[[32m  OK  [0m] Started Google Compute Engine User Accounts Manager Daemon.
         Starting Network Name Resolution...
         Starting Google Compute Engine VM initialization...
[[32m  OK  [0m] Started Google Compute Engine Address Manager Daemon.
         Starting OpenSSH server daemon...
[[32m  OK  [0m] Started Network Name Resolution.
[[32m  OK  [0m] Started OpenSSH server daemon.
[[32m  OK  [0m] Started Docker Setup for GKE.
         Starting Docker Application Container Engine...