Skip to content

Commit f09b8f8

Browse files
committed
troubleshooting/upgrade: previous installation not detected
Signed-off-by: Yann Dirson <[email protected]>
1 parent d12a9b8 commit f09b8f8

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

docs/troubleshooting/installation-upgrade.md

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,16 @@ The ssh server will be available once the network is up. If you are unsure which
6060
## The ISO installer does not offer to upgrade the existing install (XCP-ng or XenServer)
6161

6262
:::note
63-
This section details how to deal with the most frequent causes for the installer not detecting your current installation. There can be other, rarer cases which are not detailed here.
63+
This section details how to deal with the most frequent causes for the installer not detecting your current installation. There can be other, rarer cases which are not detailed here. In all cases the detailed reason for an inability to upgrade will always be possible to find in the installer log file.See [During installation or upgrade](#during-installation-or-upgrade) to access the log file.
6464
:::
6565

66-
### UEFI/BIOS mismatch
66+
### Previous installation detected but not upgradable
6767

68-
For the installer to detect your current install (XCP-ng or XenServer), the ISO must be booted in the same firmware context.
68+
In some cases the installer will detect a current install (XCP-ng or XenServer), but report "Only product installations that cannot be upgraded have been detected". The most common causes are listed below.
69+
70+
#### UEFI/BIOS mismatch
71+
72+
For the installer to detect your current install, the ISO must be booted in the same firmware context.
6973
The difference is how you pick the drive at boot. This applies to physical and virtual CD/DVD/USB drives.
7074

7175
If your existing installation is in legacy BIOS mode, boot the ISO in BIOS mode.
@@ -85,14 +89,14 @@ Virtual CDROM Device <<<<<< This one is the same device, in legacy BIOS
8589
---------------------------------
8690
```
8791

88-
#### How to check if a running install is using UEFI or legacy BIOS?
92+
##### How to check if a running install is using UEFI or legacy BIOS?
8993

9094
On the host, run `efibootmgr`.
9195

9296
- If you see `EFI variables are not supported on this system.` you're running on legacy BIOS.
9397
- If you see some EFI boot entries, you’re running on UEFI.
9498

95-
### First-boot service won't complete
99+
#### First-boot service won't complete
96100

97101
During the first boot, several tasks finalize the installation. Each task logs a "done" stamp upon completion, and if any critical task fails, the system will block future upgrades.
98102

@@ -119,6 +123,24 @@ Upgradeability test failed:
119123

120124
The "Missing state" line indicates which required first-boot service failed to complete.
121125

126+
### Previous installation not detected
127+
128+
In other cases the installer will fail to detect a current install and only propose fresh installations. Some causes are listed below.
129+
130+
#### Disk partitionning not recognized
131+
132+
XCP-ng is quite strict about the partition table layout, partition labels, partition types. If anything has modified it, it can prevent proper identification of the previous install.
133+
134+
Log lines like the one below (taken from an upgrade of a sane 8.3 install) will give an idea whether something is wrng in this area.
135+
136+
```
137+
Probe of /dev/nvme0n1 found boot=(True, '/dev/nvme0n1p4') root=(1, '/dev/nvme0n1p1') disk.state=(True, '/dev/nvme0n1p1') storage=(2, '/dev/nvme0n1p3') logs=(True, '/dev/nvme0n1p5')
138+
```
139+
140+
#### Inconsistent inventory file
141+
142+
The `/etc/xensource-inventory` file is critical to the upgrade process. This is one case where a log entry reading "A problem occurred whilst scanning for existing installations:" followed by more details.
143+
122144
## Installation logs
123145

124146
On the installed system, installer logs are kept in `/var/log/installer/`.

0 commit comments

Comments
 (0)