I am using Ubuntu Server 16.04 LTS in VMware Fusion. I need to upgrade Ubuntu 16.04 to 18.04 LTS for my VMware labs.
Introduction
Ubuntu recommend upgrading a Server Edition installation by using the do-release-upgrade command. Part of the update-manager-core package, it does not have any graphical dependencies and is installed by default. This page shows how I use the recommended upgrade method for Ubuntu Server 16.04 LTS.
Steps to upgrade Ubuntu 16.04 to 18.04
To upgrade on a server system:
- Login to Ubuntu box
- Patch current system by running sudo apt upgrade and sudo apt update
- After reboot makes sure either UFW firewall is temporarily disabled or TCP port 1022 is open
- To upgrade Ubuntu 18.04 LTS from 16.04 LTS run sudo do-release-upgrade
- Follow on-screen instructions to upgrade to Ubuntu 18.04
Let us see all commands in details.
How to upgrade from Ubuntu Linux 16.04 to 18.04
Type the apt command or apt-get command to upgrade existing system:
$ sudo apt update $ sudo apt upgrade
Reboot the Linux box if kernel was updated:
$ sudo reboot
I don’t have but maybe if you have a ufw firewall running on ufw, open ssh port 1022 using the following ufw syntax:
$ sudo ufw allow 1022/tcp comment 'Temp open port ssh tcp port 1022 for upgrade'
How to upgrade to Ubuntu 18.04 LTS using do-release-upgrade
Upgrade the operating system to the latest release from the command-line by typing the following command:
$ sudo do-release-upgrade
Now follow on-screen instructions. During upgrade procedure, you may be promoted to replace existing grub or ssh config file. Make sure you choose to keep existing version to avoid problems.
Verification
Login using the ssh command:
$ ssh user@your-ubuntu-server
Make sure all needed ports are open and running with the ss command or netstat command:
$ sudo ss -tulpn
$ sudo netstat -tulpn
Use grep command/egrep command or tail command/cat command to verify log files for errors:
$ dmesg
$ tail -f /path/to/log/files
$ egrep -i 'err|cri' /var/log/nginx/error.log
Remove tcp port 1022 added Ubuntu VM via ufw
Run following ufw command:
$ sudo ufw delete allow 1022/tcp
Information from How to upgrade Ubuntu 16.04 to 18.04 LTS using terminal.
Attention to these note: After upgrade Ubuntu Server 16.04 to 18.04 LTS, I had problem working with what is inside Building a VMware vSphere Virtual Lab with VMware Fusion – Part 5: Create a Ubuntu iSCSI Target and Configure Multipathing laboratory..
Searching the base problem
I install and get the same problem inside esxi02 and esxi03. Then I delete and install again Dynamic Discovery and I’m getting an frailer.
silvia@silvia:~$ sudo scstadmin -config /etc/scst.conf Failed to obtain SCST version information. Are the SCST modules loaded?
I try restarting scst and running the config command again:
silvia@silvia:~$ sudo /etc/init.d/scst stop [ ok ] Stopping scst (via systemctl): scst.service. silvia@silvia:~$ sudo /etc/init.d/scst start [ ok ] Starting scst (via systemctl): scst.service. silvia@silvia:~$ sudo scstadmin -config /etc/scst.conf Failed to obtain SCST version information. Are the SCST modules loaded?
What does dkms status show?
silvia@silvia:~$ dkms status scst, 3.4.0, 4.15.0-96-generic, x86_64: installed
Maybe I have to try to reinstall Ubuntu from scratch:
silvia@silvia:~$ dmesg 0.481923] pci 0000:00:15.3: BAR 13: no space for [io size 0x1000] [ 0.481977] pci 0000:00:15.3: BAR 13: failed to assign [io size 0x1000] [ 0.482033] pci 0000:00:15.4: BAR 13: no space for [io size 0x1000] [ 0.482085] pci 0000:00:15.4: BAR 13: failed to assign [io size 0x1000] [ 0.482141] pci 0000:00:15.5: BAR 13: no space for [io size 0x1000] [ 0.482193] pci 0000:00:15.5: BAR 13: failed to assign [io size 0x1000] [ 0.482249] pci 0000:00:15.6: BAR 13: no space for [io size 0x1000] [ 0.482342] pci 0000:00:15.6: BAR 13: failed to assign [io size 0x1000] [ 0.482420] pci 0000:00:15.7: BAR 13: no space for [io size 0x1000] [ 0.482473] pci 0000:00:15.7: BAR 13: failed to assign [io size 0x1000] [ 0.482531] pci 0000:00:16.3: BAR 13: no space for [io size 0x1000] [ 0.482587] pci 0000:00:16.3: BAR 13: failed to assign [io size 0x1000] [ 0.482644] pci 0000:00:16.4: BAR 13: no space for [io size 0x1000] [ 0.482697] pci 0000:00:16.4: BAR 13: failed to assign [io size 0x1000] [ 0.482755] pci 0000:00:16.5: BAR 13: no space for [io size 0x1000] [ 0.482812] pci 0000:00:16.5: BAR 13: failed to assign [io size 0x1000] [ 0.482871] pci 0000:00:16.6: BAR 13: no space for [io size 0x1000] [ 0.482926] pci 0000:00:16.6: BAR 13: failed to assign [io size 0x1000] [ 0.482985] pci 0000:00:16.7: BAR 13: no space for [io size 0x1000] [ 0.483038] pci 0000:00:16.7: BAR 13: failed to assign [io size 0x1000] [ 0.483094] pci 0000:00:17.3: BAR 13: no space for [io size 0x1000] [ 0.483148] pci 0000:00:17.3: BAR 13: failed to assign [io size 0x1000] [ 0.483208] pci 0000:00:17.4: BAR 13: no space for [io size 0x1000] [ 0.483266] pci 0000:00:17.4: BAR 13: failed to assign [io size 0x1000] [ 0.483327] pci 0000:00:17.5: BAR 13: no space for [io size 0x1000] [ 0.483381] pci 0000:00:17.5: BAR 13: failed to assign [io size 0x1000] [ 0.483439] pci 0000:00:17.6: BAR 13: no space for [io size 0x1000] [ 0.483527] pci 0000:00:17.6: BAR 13: failed to assign [io size 0x1000] [ 0.483585] pci 0000:00:17.7: BAR 13: no space for [io size 0x1000] [ 0.483638] pci 0000:00:17.7: BAR 13: failed to assign [io size 0x1000] [ 0.483695] pci 0000:00:18.2: BAR 13: no space for [io size 0x1000] [ 0.483748] pci 0000:00:18.2: BAR 13: failed to assign [io size 0x1000] [ 0.483811] pci 0000:00:18.3: BAR 13: no space for [io size 0x1000] [ 0.483870] pci 0000:00:18.3: BAR 13: failed to assign [io size 0x1000] [ 0.483934] pci 0000:00:18.4: BAR 13: no space for [io size 0x1000] [ 0.483994] pci 0000:00:18.4: BAR 13: failed to assign [io size 0x1000] [ 0.484109] pci 0000:00:18.5: BAR 13: no space for [io size 0x1000] [ 0.484174] pci 0000:00:18.5: BAR 13: failed to assign [io size 0x1000] [ 0.484236] pci 0000:00:18.6: BAR 13: no space for [io size 0x1000] [ 0.484297] pci 0000:00:18.6: BAR 13: failed to assign [io size 0x1000] [ 0.484361] pci 0000:00:18.7: BAR 13: no space for [io size 0x1000] [ 0.484416] pci 0000:00:18.7: BAR 13: failed to assign [io size 0x1000] [ 0.484481] pci 0000:00:18.7: BAR 13: no space for [io size 0x1000] [ 0.484535] pci 0000:00:18.7: BAR 13: failed to assign [io size 0x1000] [ 0.484591] pci 0000:00:18.6: BAR 13: no space for [io size 0x1000] [ 0.484644] pci 0000:00:18.6: BAR 13: failed to assign [io size 0x1000] [ 0.484718] pci 0000:00:18.5: BAR 13: no space for [io size 0x1000] [ 0.484789] pci 0000:00:18.5: BAR 13: failed to assign [io size 0x1000] [ 0.484851] pci 0000:00:18.4: BAR 13: no space for [io size 0x1000] [ 0.484904] pci 0000:00:18.4: BAR 13: failed to assign [io size 0x1000] [ 0.484959] pci 0000:00:18.3: BAR 13: no space for [io size 0x1000] [ 0.485012] pci 0000:00:18.3: BAR 13: failed to assign [io size 0x1000] [ 0.485068] pci 0000:00:18.2: BAR 13: no space for [io size 0x1000] [ 0.485120] pci 0000:00:18.2: BAR 13: failed to assign [io size 0x1000] [ 0.485177] pci 0000:00:17.7: BAR 13: no space for [io size 0x1000] [ 0.485230] pci 0000:00:17.7: BAR 13: failed to assign [io size 0x1000] [ 0.485289] pci 0000:00:17.6: BAR 13: no space for [io size 0x1000] [ 0.485342] pci 0000:00:17.6: BAR 13: failed to assign [io size 0x1000] [ 0.485400] pci 0000:00:17.5: BAR 13: no space for [io size 0x1000] [ 0.485454] pci 0000:00:17.5: BAR 13: failed to assign [io size 0x1000] [ 0.485514] pci 0000:00:17.4: BAR 13: no space for [io size 0x1000] [ 0.485616] pci 0000:00:17.4: BAR 13: failed to assign [io size 0x1000] [ 0.485695] pci 0000:00:17.3: BAR 13: no space for [io size 0x1000] [ 0.485754] pci 0000:00:17.3: BAR 13: failed to assign [io size 0x1000] [ 0.485811] pci 0000:00:16.7: BAR 13: no space for [io size 0x1000] [ 0.485865] pci 0000:00:16.7: BAR 13: failed to assign [io size 0x1000] [ 0.485943] pci 0000:00:16.6: BAR 13: no space for [io size 0x1000] [ 0.485997] pci 0000:00:16.6: BAR 13: failed to assign [io size 0x1000] [ 0.486054] pci 0000:00:16.5: BAR 13: no space for [io size 0x1000] [ 0.486107] pci 0000:00:16.5: BAR 13: failed to assign [io size 0x1000] [ 0.486164] pci 0000:00:16.4: BAR 13: no space for [io size 0x1000] [ 0.486217] pci 0000:00:16.4: BAR 13: failed to assign [io size 0x1000] [ 0.486278] pci 0000:00:16.3: BAR 13: no space for [io size 0x1000] [ 0.486334] pci 0000:00:16.3: BAR 13: failed to assign [io size 0x1000] [ 0.486394] pci 0000:00:15.7: BAR 13: no space for [io size 0x1000] [ 0.486446] pci 0000:00:15.7: BAR 13: failed to assign [io size 0x1000] [ 0.486503] pci 0000:00:15.6: BAR 13: no space for [io size 0x1000] [ 0.486561] pci 0000:00:15.6: BAR 13: failed to assign [io size 0x1000] [ 0.486624] pci 0000:00:15.5: BAR 13: no space for [io size 0x1000] [ 0.486686] pci 0000:00:15.5: BAR 13: failed to assign [io size 0x1000] [ 0.486742] pci 0000:00:15.4: BAR 13: no space for [io size 0x1000] [ 0.486795] pci 0000:00:15.4: BAR 13: failed to assign [io size 0x1000] [ 0.486854] pci 0000:00:15.3: BAR 13: no space for [io size 0x1000] [ 0.486911] pci 0000:00:15.3: BAR 13: failed to assign [io size 0x1000
Problem, problem, problem and not capable to go farther!!!