VMware Horizon Community
B1naryc0de
Contributor
Contributor

Ubuntu 20.04 won't get IP assigned since we ran apt update/upgrade

Hi,

I have a pool running Ubuntu 20.04.2 with kernel 5.8.0-63. I'm also running Horizon 7.12 with the latest Horizon agent for linux 7.13.1.

Everything is fine.

 

2 weeks ago i updated/upgraded all the packages on Ubuntu 20.04.2 to kernel 5.11.0-38. When I re-did my pool, the vms aren't picking up IPs anymore and they get stuck at the customization stage since it can't talk to anything.

 

After a lot of troubleshooting, we updated all packages, one by one, until we found it was when the updated kernel was installed that it caused issues.

 

Can we not run kernel 5.11.0-38 with the 7.13.1 Agent for linux? Anyone else has this issue?

Reply
0 Kudos
3 Replies
B1naryc0de
Contributor
Contributor

Anyone else having this issue?

Reply
0 Kudos
Hangl
VMware Employee
VMware Employee

Does dist-upgrade help?

sudo apt dist-upgrade && reboot
Reply
0 Kudos
Perttu
Enthusiast
Enthusiast

Hi, 

Can confirm this issue. I degraded the kernel manually from 5.11 series to 5.8 series and cloning started to work right away.

AFAIK Both series are supported on Ubuntu 20.0 LTS versions.

I'm using Ansible for my golden master maintenance, so here are my snippets if they are for any good. Replace the "Advanced options menuentry" uid with a one taken from your golden image.

  - name: install {{ kernel }} kernel
    apt:
      name:
      - linux-image-{{ kernel }}-generic
      - linux-headers-{{ kernel }}-generic 
      - linux-modules-extra-{{ kernel }}-generic
    tags:
      - GRUB 
            
  - name: make GRUB to remember saved kernel selection
    lineinfile:
      dest: /etc/default/grub
      regexp: '^(GRUB_DEFAULT=)'
      line: '\1saved'
      state: present
      backrefs: yes
    tags:
      - GRUB

  - name: run update-grub
    command: update-grub
    tags:
      - GRUB

# doesn't seem to work grub-set-default "Advanced options for Ubuntu>Ubuntu, with Linux 5.8.0-63-generic"
  - name: run grub-set-default
    command: grub-set-default 'gnulinux-advanced-1497d8ee-8d90-401f-b855-03271acc942f>gnulinux-{{ kernel }}-generic-advanced-1497d8ee-8d90-401f-b855-03271acc942f'
    tags:
      - GRUB

  

Reply
0 Kudos