GCE: Ubuntu 18.04 Imagen personalizada ¿No tiene conectividad / ssh? -- linux campo con None campo con None campo con ubuntu-18.04 campo con vmware-workstation camp Gestión del servidor Relacionados El problema

GCE: Ubuntu 18.04 custom image has no connectivity/SSH?


0
vote

problema

Español

Actualmente estoy luchando para obtener una imagen personalizada de Ubuntu 18.04Lts para trabajar en GCE. Estoy usando la versión de Ubuntu Desktop, ya que la instalación de GDM3 después en Google Stock Ubuntu simplemente no parece entregar la experiencia que necesitan mis usuarios (usaré Nomachine para que los usuarios usen la instancia).

La instancia parece construir con éxito. Sin embargo, parece que no puedo hacer ping la instancia a su IP interna / efímera, y Tampoco funcionará SSH. Esta imagen se realiza utilizando la estación de trabajo VMware 12, lo que significa que estoy cargando el único archivo .vmdk de la VM a GCP para formar una imagen. La imagen se basa con éxito, no se incluyen errores. Por supuesto, todo funciona bien cuando trabajo la VM en VMware.

  • corrí a la herramienta Google Cloud Precheck en la VM; Pasa sin duda.
  • seguí a Google's directrices para configurar ssh, DHCP , Los servicios de NTP, ettc, todos están habilitados, funcionando y accesibles desde mi PC cuando se usan en VMware.
  • El firewall de VM está deshabilitado, el firewall de GCE está abierto.
  • Los paquetes de invitados están incluidos al crear la imagen.

Investigación adicional me hace pensar que la máquina virtual necesita adicional Paquetes o configuración de KVM / Virtio / Kernel, aunque no estoy completamente seguro de dónde comenzar o si arreglará algo. Básicamente, estoy completamente despistado por qué la cosa no funcionará ya que no parece tener la menor conectividad.

Esto es parte de la salida en serie al implementar la instancia de la imagen personalizada, después de intentar ssh en ella. Esta salida parece volverse infinitamente. ¿Alguien que pueda ayudarme? ¿Qué pasos extraño aquí?

   [[0;32m  OK  [0m] Created slice user-121.slice.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Starting User Manager for UID 121...           Starting User Manager for UID 121...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Started Session c502 of user gdm.  [[0;32m  OK  [0m] Started Session c502 of user gdm.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Starting D-Bus User Message Bus Socket.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent (ssh-agent emulation).  May 20 13:31:13 inrun-user-121.mount st-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Timers.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG network certificate management daemon.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent and passphrase cache.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Started Pending report trigger for Ubuntu Report.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Paths.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on Sound System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on REST API socket for snapd user session agent.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on D-Bus User Message Bus Socket.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Sockets.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Basic System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Started User Manager for UID 121.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Default.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Startup finished in 34ms.  [[0;32m  OK  [0m] Started User Manager for UID 121.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Started D-Bus User Message Bus.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d dbus-daemon[15452]: [session uid=121 pid=15452] AppArmor D-Bus mediation is enabled  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d gnome-session-binary[15454]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1           Stopping User Manager for UID 121...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Stopping User Manager for UID 121...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Default.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopping D-Bus User Message Bus...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped D-Bus User Message Bus.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Basic System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Paths.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped Pending report trigger for Ubuntu Report.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Sockets.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG network certificate management daemon.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed REST API socket for snapd user session agent.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent and passphrase cache (access foruser@121.service  web browsers).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed Sound System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent and passphrase cache (restricted).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent (ssh-agent emulation).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent and passphrase cache.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Timers.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed D-Bus User Message Bus Socket.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Shutdown.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Starting Exit the Session...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Received SIGRTMIN+24 from PID 15471 (kill).  [[0;32m  OK  [0m] Stopped User Manager for UID 121.  [[0;32m  OK  [0m] Removed slice user-121.slice.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Stopped User Manager for UID 121.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Removed slice user-121.slice.```      
Original en ingles

I'm currently struggling to get a custom image of Ubuntu 18.04LTS to work in GCE. I'm using the Ubuntu Desktop version, since installing gdm3 afterwards on Google stock Ubuntu just doesn't seem to deliver the experience my users need (I'll be using NoMachine to make the users use the instance).

The instance seems to build successfully. However, I can't seem to ping the instance to it's internal/ephemeral IP, and SSH won't work either. This image is made using VMWare Workstation 12, which means I'm uploading the single .VMDK file from the VM to GCP to form an image. The image builds with success, no errors included. Ofcourse, everything works fine when I work the VM in VMware.

  • I ran the Google Cloud Precheck tool in the VM; passes without a doubt.
  • I followed Google's guidelines to configure SSH, DHCP, NTP etc. Services are all enabled, running and accessable from my PC when used in VMware.
  • VM's firewall is disabled, GCE's firewall is open.
  • Guest packages are included while creating the image.

Further research makes me think the VM needs additional KVM/VirtIO/Kernel packages or configuration, although I'm not completely sure where to start or if it will fix anything. I'm basically completely clueless why the thing won't work since it doesn't seems to have the least of connectivity.

This is part of the serial-output when deploying the instance from the custom image, after trying to SSH into it. This output seems to loop endlessly. Anyone who can help me? What steps did I miss here?

 [[0;32m  OK  [0m] Created slice user-121.slice.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Starting User Manager for UID 121...           Starting User Manager for UID 121...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Started Session c502 of user gdm.  [[0;32m  OK  [0m] Started Session c502 of user gdm.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Starting D-Bus User Message Bus Socket.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent (ssh-agent emulation).  May 20 13:31:13 inrun-user-121.mount st-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Timers.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG network certificate management daemon.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent and passphrase cache.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Started Pending report trigger for Ubuntu Report.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Paths.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on Sound System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on REST API socket for snapd user session agent.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Listening on D-Bus User Message Bus Socket.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Sockets.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Basic System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Started User Manager for UID 121.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Default.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Startup finished in 34ms.  [[0;32m  OK  [0m] Started User Manager for UID 121.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Started D-Bus User Message Bus.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d dbus-daemon[15452]: [session uid=121 pid=15452] AppArmor D-Bus mediation is enabled  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d gnome-session-binary[15454]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1           Stopping User Manager for UID 121...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Stopping User Manager for UID 121...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Default.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopping D-Bus User Message Bus...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped D-Bus User Message Bus.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Basic System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Paths.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped Pending report trigger for Ubuntu Report.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Sockets.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG network certificate management daemon.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed REST API socket for snapd user session agent.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent and passphrase cache (access foruser@121.service  web browsers).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed Sound System.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent and passphrase cache (restricted).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent (ssh-agent emulation).  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed GnuPG cryptographic agent and passphrase cache.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Stopped target Timers.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Closed D-Bus User Message Bus Socket.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Reached target Shutdown.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Starting Exit the Session...  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[15438]: Received SIGRTMIN+24 from PID 15471 (kill).  [[0;32m  OK  [0m] Stopped User Manager for UID 121.  [[0;32m  OK  [0m] Removed slice user-121.slice.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Stopped User Manager for UID 121.  May 20 13:31:13 inst-translator-import-and-translate-translate-translate-qw66d systemd[1]: Removed slice user-121.slice.```    
              

Lista de respuestas

0
 
vote

Intenta consultar este doc8 https://cloud.google.com/compute / documentos / solución de problemas / solución de problemas-ssh , si eso no funciona, sugeriría abrir una caja de soporte o un rastreador de problemas https://cloud.google.com/support/docs/issise-trackers con el soporte de GCP para que puedan sumergirse en su proyecto para ver más lejos.

 

Try consulting this doc https://cloud.google.com/compute/docs/troubleshooting/troubleshooting-ssh, if that doesn't work, I'd suggest opening either a support case or an issue tracker https://cloud.google.com/support/docs/issue-trackers with GCP support so they can dive into your project to look further.

 
 

Relacionados problema

1  Historial de acceso para el servidor NFS  ( Access history for nfs server ) 
Tengo un servidor (OS: Debian), en el que se instala y ejecuta NFS-Kernel-Server. Cuando un cliente de NFS accede o lea, escriba a un archivo o directorio en ...

4  ¿Equivalentes de comandos de Linux en OpenSolaris (y viceversa)? [cerrado]  ( Linux command equivalents in opensolaris and vice versa ) 
cerrado. Esta pregunta es off-topic . Actualmente no está aceptando respuestas. ¿Quieres ...

16  ¿Cómo matar automáticamente las consultas de MySQL lentamente después de n segundos?  ( How to automatically kill slow mysql queries after n seconds ) 
Estoy buscando un script de bash bien probado (o solución alternativa) para hacerlo, para evitar que se agoten Max_Connection. Sé que está luchando contra los...

1  Mantener el contenido a través de las instancias de Mutliple Linux actualizado  ( Keeping content across mutliple linux instances up to date ) 
Estoy ejecutando un VM de Linux en Azure (Nginx). Quiero agregar múltiples instancias para que pueda ser equilibrado. Lo que no puedo obtener la cabeza es cóm...

0  ¿Debo configurar un servidor de registro que está en una red separada sin una IP?  ( Should i set up a log server that is on a separate network without an ip ) 
Tuve un colega Sugerir configurar un servidor en una red separada que no tiene una dirección IP para actuar como un servidor de registro. La idea es que podrí...

1  CAMBIOS PERSISTENTES A / PROC / SYS / SUNRPC / TCP_SLOT_TABLE_Entries  ( Persistent changes to proc sys sunrpc tcp slot table entries ) 
Estoy tratando de hacer un cambio persistente en ABCDEFGHIJKLMNABCDEFGHIJKLMN0 en A Linux CentOS 5.5. Este valor se ha encontrado importante para el rendimi...

1  MONGODB CLONECOLECCIÓN ENTRE AZURE ACOSIBAS TEMPRESIONES DE SERVIDORES DE CENTOS A LAS 2 HORAS  ( Mongodb clonecollection between azure hosted centos servers times out at 2 hours ) 
Estoy tratando de clonar una colección Mongodb de Centos Server A a Centos Server B. Ambos se ejecutan 2.4.6. La copia funciona excelente hasta la exáquectaci...

2  Cómo navegar por una carpeta llamada '-' en la máquina Linux  ( How to browse a folder named in linux machine ) 
He creado un directorio llamado - [root @ server50 public_html] # mkdir - [root @ server50 public_html] # ls -al DRWXR-XR-X 2 Root Root 4096/03/2016 02...

2  ¿Cuál es la mejor manera de asignar espacio de swap para VMware ESXI VM?  ( What is the best way to allocate swap space for vmware esxi vm ) 
Estoy ejecutando varias máquinas virtuales en VMware ESXI (en su mayoría centros, pero pocos son Ubuntu) y parece que hay dos formas diferentes de lidiar con ...

3  ¿Cómo encontrar servidores DNS para cada sesión de PPP en Linux?  ( How to find dns servers for each ppp session in linux ) 
Cómo obtener la dirección del servidor DNS que son específicos de cada sesión de PPP. Por ejemplo, tengo dos sesiones de PPP cada una conectó a un proveedor d...

3  Autenticación basada en el certificado RADIUS (EAP)  ( Radius certificate based eap authentication ) 
Actualmente estamos colocando un servidor Freeradius que usa certificados para autenticarse a través de una conexión inalámbrica. Tenemos esto trabajando para...

2  No es capaz de actualizar el valor de ShadowlastChange para LDAP  ( Not able to update shadowlastchange value for ldap ) 
En el cambio de contraseña de un usuario que el valor de ShadowlastCambiar no se cambia. ¿Alguna forma de cambiarlo manualmente? objectClass: account obje...

4  Linux: ¿Cómo ejecuto un script cuando se conecta una unidad externa?  ( Linux how do i run a script when an external drive is connected ) 
Tengo un par de servidores remotos en una escuela, y me gustaría configurarlos para que, tan pronto como alguien (probablemente un maestro) se conecte en un d...

1  Cómo respaldar la copia de seguridad de Bugzilla  ( How to backup bugzilla ) 
El servidor es un poco antiguo que se ejecuta en Debian Sarge 3.1. ¿Cuáles son las cosas importantes para hacer una copia de seguridad al hacer una copia de s...

1  LVM en el software RAID  ( Lvm on software raid ) 
¿Hay alguna sobrecarga para LVM a través de RAID, y en caso afirmativo, ¿cuánto afecta al rendimiento? Además, ¿qué tan confiable es tal configuración? Sa...




© 2021 respuesta.top Reservados todos los derechos. Centro de preguntas y respuestas reservados todos los derechos