Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only boot to EUFI shell #1

Open
nikee73 opened this issue Nov 30, 2024 · 11 comments
Open

Only boot to EUFI shell #1

nikee73 opened this issue Nov 30, 2024 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@nikee73
Copy link

nikee73 commented Nov 30, 2024

The script runs true all stages but in the end I only get a server thats boot to UEFI shell

@HPPinata
Copy link
Owner

Thanks for the report.
What version of XCP-ng are you running?

The VM boots to UEFI shell and then doesn't do anything, right?
Or does this somehow break the host XCP-ng system?

If it's an issue with the VM I might have to take a look at the qemu image conversion, because even if the actual setup doesn't work it should at least produce an OpenSUSE Micro-OS VM that can boot to CLI or a first setup screen...

Do any of the xe commands fail/complain about something?

I haven't tested this in a while, but I'll see if I can get around to it this week.

@nikee73
Copy link
Author

nikee73 commented Nov 30, 2024

I'm runing XCP-ng 8.3

Yes It just boots to UEFI and does nothing

This is the output from the installer. Hope you can find anything usefull

[18:38 xcp-ng ~]# bash createXO.bash
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-base: mirrors.xcp-ng.org
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-updates: mirrors.xcp-ng.org
No packages marked for update
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
No Packages marked for removal
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1093  100  1093    0     0   5458      0 --:--:-- --:--:-- --:--:--  5437
Password previously unset or input inconsistent.
Password: 
Password: 
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-base: mirrors.xcp-ng.org
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-updates: mirrors.xcp-ng.org
Resolving Dependencies
--> Running transaction check
---> Package genisoimage.x86_64 0:1.1.11-23.el7 will be installed
--> Processing Dependency: libusal = 1.1.11-23.el7 for package: genisoimage-1.1.11-23.el7.x86_64
--> Processing Dependency: librols.so.0()(64bit) for package: genisoimage-1.1.11-23.el7.x86_64
--> Processing Dependency: libusal.so.0()(64bit) for package: genisoimage-1.1.11-23.el7.x86_64
--> Running transaction check
---> Package libusal.x86_64 0:1.1.11-23.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                              Arch                            Version                                 Repository                            Size
=========================================================================================================================================================
Installing:
 genisoimage                          x86_64                          1.1.11-23.el7                           xcp-ng-base                          298 k
Installing for dependencies:
 libusal                              x86_64                          1.1.11-23.el7                           xcp-ng-base                          135 k

Transaction Summary
=========================================================================================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 432 k
Installed size: 1.5 M
Downloading packages:
(1/2): genisoimage-1.1.11-23.el7.x86_64.rpm                                                                                       | 298 kB  00:00:00     
(2/2): libusal-1.1.11-23.el7.x86_64.rpm                                                                                           | 135 kB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                    749 kB/s | 432 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libusal-1.1.11-23.el7.x86_64                                                                                                          1/2 
  Installing : genisoimage-1.1.11-23.el7.x86_64                                                                                                      2/2 
  Verifying  : libusal-1.1.11-23.el7.x86_64                                                                                                          1/2 
  Verifying  : genisoimage-1.1.11-23.el7.x86_64                                                                                                      2/2 

Installed:
  genisoimage.x86_64 0:1.1.11-23.el7                                                                                                                     

Dependency Installed:
  libusal.x86_64 0:1.1.11-23.el7                                                                                                                         

Complete!
Total translation table size: 0
Total rockridge attributes bytes: 0
Total directory bytes: 2048
Path table size(bytes): 28
Max brk space used 0
176 extents written (0 MB)
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package genisoimage.x86_64 0:1.1.11-23.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                              Arch                            Version                                Repository                             Size
=========================================================================================================================================================
Removing:
 genisoimage                          x86_64                          1.1.11-23.el7                          @xcp-ng-base                          1.0 M

Transaction Summary
=========================================================================================================================================================
Remove  1 Package

Installed size: 1.0 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : genisoimage-1.1.11-23.el7.x86_64                                                                                                      1/1 
  Verifying  : genisoimage-1.1.11-23.el7.x86_64                                                                                                      1/1 

Removed:
  genisoimage.x86_64 0:1.1.11-23.el7                                                                                                                     

Complete!
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package libusal.x86_64 0:1.1.11-23.el7 will be erased
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
Found and removing 0 unneeded dependencies

Dependencies Resolved

=========================================================================================================================================================
 Package                           Arch                             Version                                 Repository                              Size
=========================================================================================================================================================
Removing:
 libusal                           x86_64                           1.1.11-23.el7                           @xcp-ng-base                           453 k

Transaction Summary
=========================================================================================================================================================
Remove  1 Package

Installed size: 453 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : libusal-1.1.11-23.el7.x86_64                                                                                                          1/1 
  Verifying  : libusal-1.1.11-23.el7.x86_64                                                                                                          1/1 

Removed:
  libusal.x86_64 0:1.1.11-23.el7                                                                                                                         

Complete!
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-base: mirrors.xcp-ng.org
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-updates: mirrors.xcp-ng.org
Resolving Dependencies
--> Running transaction check
---> Package qemu-img.x86_64 10:1.5.3-175.el7 will be installed
--> Processing Dependency: libgfapi.so.0(GFAPI_3.4.0)(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: libgfapi.so.0(GFAPI_3.5.0)(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: libgfapi.so.0()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: libgfrpc.so.0()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: libgfxdr.so.0()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: libiscsi.so.2()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: librados.so.2()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: librbd.so.1()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Processing Dependency: libtcmalloc.so.4()(64bit) for package: 10:qemu-img-1.5.3-175.el7.x86_64
--> Running transaction check
---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be installed
---> Package libgfapi0.x86_64 0:9.6-1.xcpng8.3 will be installed
--> Processing Dependency: glusterfs-client-xlators(x86-64) = 9.6-1.xcpng8.3 for package: libgfapi0-9.6-1.xcpng8.3.x86_64
--> Processing Dependency: libglusterfs0(x86-64) = 9.6-1.xcpng8.3 for package: libgfapi0-9.6-1.xcpng8.3.x86_64
--> Processing Dependency: libglusterfs.so.0()(64bit) for package: libgfapi0-9.6-1.xcpng8.3.x86_64
--> Processing Dependency: liburcu-bp.so.1()(64bit) for package: libgfapi0-9.6-1.xcpng8.3.x86_64
--> Processing Dependency: liburcu-cds.so.1()(64bit) for package: libgfapi0-9.6-1.xcpng8.3.x86_64
---> Package libgfrpc0.x86_64 0:9.6-1.xcpng8.3 will be installed
---> Package libgfxdr0.x86_64 0:9.6-1.xcpng8.3 will be installed
---> Package libiscsi.x86_64 0:1.9.0-7.el7 will be installed
---> Package librados2.x86_64 1:10.2.5-4.el7 will be installed
--> Processing Dependency: libboost_iostreams-mt.so.1.53.0()(64bit) for package: 1:librados2-10.2.5-4.el7.x86_64
--> Processing Dependency: libboost_random-mt.so.1.53.0()(64bit) for package: 1:librados2-10.2.5-4.el7.x86_64
---> Package librbd1.x86_64 1:10.2.5-4.el7 will be installed
--> Running transaction check
---> Package boost-iostreams.x86_64 0:1.53.0-28.el7 will be installed
---> Package boost-random.x86_64 0:1.53.0-28.el7 will be installed
---> Package glusterfs-client-xlators.x86_64 0:9.6-1.xcpng8.3 will be installed
---> Package libglusterfs0.x86_64 0:9.6-1.xcpng8.3 will be installed
---> Package userspace-rcu.x86_64 0:0.7.16-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                                       Arch                        Version                                Repository                        Size
=========================================================================================================================================================
Installing:
 qemu-img                                      x86_64                      10:1.5.3-175.el7                       base                             703 k
Installing for dependencies:
 boost-iostreams                               x86_64                      1.53.0-28.el7                          base                              61 k
 boost-random                                  x86_64                      1.53.0-28.el7                          base                              39 k
 glusterfs-client-xlators                      x86_64                      9.6-1.xcpng8.3                         xcp-ng-base                      820 k
 gperftools-libs                               x86_64                      2.6.1-1.el7                            base                             272 k
 libgfapi0                                     x86_64                      9.6-1.xcpng8.3                         xcp-ng-base                       84 k
 libgfrpc0                                     x86_64                      9.6-1.xcpng8.3                         xcp-ng-base                       50 k
 libgfxdr0                                     x86_64                      9.6-1.xcpng8.3                         xcp-ng-base                       23 k
 libglusterfs0                                 x86_64                      9.6-1.xcpng8.3                         xcp-ng-base                      305 k
 libiscsi                                      x86_64                      1.9.0-7.el7                            base                              60 k
 librados2                                     x86_64                      1:10.2.5-4.el7                         base                             1.8 M
 librbd1                                       x86_64                      1:10.2.5-4.el7                         base                             2.4 M
 userspace-rcu                                 x86_64                      0.7.16-1.el7                           xcp-ng-base                       72 k

Transaction Summary
=========================================================================================================================================================
Install  1 Package (+12 Dependent packages)

Total download size: 6.6 M
Installed size: 23 M
Downloading packages:
(1/13): boost-random-1.53.0-28.el7.x86_64.rpm                                                                                     |  39 kB  00:00:00     
(2/13): boost-iostreams-1.53.0-28.el7.x86_64.rpm                                                                                  |  61 kB  00:00:00     
(3/13): gperftools-libs-2.6.1-1.el7.x86_64.rpm                                                                                    | 272 kB  00:00:00     
(4/13): glusterfs-client-xlators-9.6-1.xcpng8.3.x86_64.rpm                                                                        | 820 kB  00:00:00     
(5/13): libgfrpc0-9.6-1.xcpng8.3.x86_64.rpm                                                                                       |  50 kB  00:00:00     
(6/13): libgfxdr0-9.6-1.xcpng8.3.x86_64.rpm                                                                                       |  23 kB  00:00:00     
(7/13): libiscsi-1.9.0-7.el7.x86_64.rpm                                                                                           |  60 kB  00:00:00     
(8/13): libglusterfs0-9.6-1.xcpng8.3.x86_64.rpm                                                                                   | 305 kB  00:00:00     
(9/13): librbd1-10.2.5-4.el7.x86_64.rpm                                                                                           | 2.4 MB  00:00:00     
(10/13): userspace-rcu-0.7.16-1.el7.x86_64.rpm                                                                                    |  72 kB  00:00:00     
(11/13): qemu-img-1.5.3-175.el7.x86_64.rpm                                                                                        | 703 kB  00:00:00     
(12/13): librados2-10.2.5-4.el7.x86_64.rpm                                                                                        | 1.8 MB  00:00:06     
(13/13): libgfapi0-9.6-1.xcpng8.3.x86_64.rpm                                                                                      |  84 kB  00:00:13     
---------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                    506 kB/s | 6.6 MB  00:00:13     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : userspace-rcu-0.7.16-1.el7.x86_64                                                                                                    1/13 
  Installing : libgfrpc0-9.6-1.xcpng8.3.x86_64                                                                                                      2/13 
  Installing : libgfxdr0-9.6-1.xcpng8.3.x86_64                                                                                                      3/13 
  Installing : libglusterfs0-9.6-1.xcpng8.3.x86_64                                                                                                  4/13 
  Installing : boost-random-1.53.0-28.el7.x86_64                                                                                                    5/13 
  Installing : boost-iostreams-1.53.0-28.el7.x86_64                                                                                                 6/13 
  Installing : 1:librados2-10.2.5-4.el7.x86_64                                                                                                      7/13 
  Installing : 1:librbd1-10.2.5-4.el7.x86_64                                                                                                        8/13 
  Installing : glusterfs-client-xlators-9.6-1.xcpng8.3.x86_64                                                                                       9/13 
  Installing : libgfapi0-9.6-1.xcpng8.3.x86_64                                                                                                     10/13 
  Installing : gperftools-libs-2.6.1-1.el7.x86_64                                                                                                  11/13 
  Installing : libiscsi-1.9.0-7.el7.x86_64                                                                                                         12/13 
  Installing : 10:qemu-img-1.5.3-175.el7.x86_64                                                                                                    13/13 
  Verifying  : 1:librbd1-10.2.5-4.el7.x86_64                                                                                                        1/13 
  Verifying  : glusterfs-client-xlators-9.6-1.xcpng8.3.x86_64                                                                                       2/13 
  Verifying  : boost-iostreams-1.53.0-28.el7.x86_64                                                                                                 3/13 
  Verifying  : libiscsi-1.9.0-7.el7.x86_64                                                                                                          4/13 
  Verifying  : libglusterfs0-9.6-1.xcpng8.3.x86_64                                                                                                  5/13 
  Verifying  : boost-random-1.53.0-28.el7.x86_64                                                                                                    6/13 
  Verifying  : gperftools-libs-2.6.1-1.el7.x86_64                                                                                                   7/13 
  Verifying  : 10:qemu-img-1.5.3-175.el7.x86_64                                                                                                     8/13 
  Verifying  : 1:librados2-10.2.5-4.el7.x86_64                                                                                                      9/13 
  Verifying  : libgfrpc0-9.6-1.xcpng8.3.x86_64                                                                                                     10/13 
  Verifying  : libgfapi0-9.6-1.xcpng8.3.x86_64                                                                                                     11/13 
  Verifying  : userspace-rcu-0.7.16-1.el7.x86_64                                                                                                   12/13 
  Verifying  : libgfxdr0-9.6-1.xcpng8.3.x86_64                                                                                                     13/13 

Installed:
  qemu-img.x86_64 10:1.5.3-175.el7                                                                                                                       

Dependency Installed:
  boost-iostreams.x86_64 0:1.53.0-28.el7         boost-random.x86_64 0:1.53.0-28.el7           glusterfs-client-xlators.x86_64 0:9.6-1.xcpng8.3        
  gperftools-libs.x86_64 0:2.6.1-1.el7           libgfapi0.x86_64 0:9.6-1.xcpng8.3             libgfrpc0.x86_64 0:9.6-1.xcpng8.3                       
  libgfxdr0.x86_64 0:9.6-1.xcpng8.3              libglusterfs0.x86_64 0:9.6-1.xcpng8.3         libiscsi.x86_64 0:1.9.0-7.el7                           
  librados2.x86_64 1:10.2.5-4.el7                librbd1.x86_64 1:10.2.5-4.el7                 userspace-rcu.x86_64 0:0.7.16-1.el7                     

Complete!
SUSE-MicroOS.vhd is valid
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package qemu-img.x86_64 10:1.5.3-175.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                            Arch                             Version                                       Repository                       Size
=========================================================================================================================================================
Removing:
 qemu-img                           x86_64                           10:1.5.3-175.el7                              @base                           2.3 M

Transaction Summary
=========================================================================================================================================================
Remove  1 Package

Installed size: 2.3 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : 10:qemu-img-1.5.3-175.el7.x86_64                                                                                                      1/1 
  Verifying  : 10:qemu-img-1.5.3-175.el7.x86_64                                                                                                      1/1 

Removed:
  qemu-img.x86_64 10:1.5.3-175.el7                                                                                                                       

Complete!
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package gperftools-libs.x86_64 0:2.6.1-1.el7 will be erased
---> Package libgfapi0.x86_64 0:9.6-1.xcpng8.3 will be erased
---> Package libiscsi.x86_64 0:1.9.0-7.el7 will be erased
---> Package librbd1.x86_64 1:10.2.5-4.el7 will be erased
--> Finished Dependency Resolution
--> Finding unneeded leftover dependencies
---> Marking boost-iostreams to be removed - no longer needed by librbd1
---> Marking boost-random to be removed - no longer needed by librbd1
---> Marking librados2 to be removed - no longer needed by librbd1
---> Marking libgfxdr0 to be removed - no longer needed by libgfapi0
---> Marking glusterfs-client-xlators to be removed - no longer needed by libgfapi0
---> Marking libglusterfs0 to be removed - no longer needed by libgfapi0
---> Marking libgfrpc0 to be removed - no longer needed by libgfapi0
---> Marking userspace-rcu to be removed - no longer needed by libgfapi0
Found and removing 8 unneeded dependencies
--> Running transaction check
---> Package boost-iostreams.x86_64 0:1.53.0-28.el7 will be erased
---> Package boost-random.x86_64 0:1.53.0-28.el7 will be erased
---> Package glusterfs-client-xlators.x86_64 0:9.6-1.xcpng8.3 will be erased
---> Package libgfrpc0.x86_64 0:9.6-1.xcpng8.3 will be erased
---> Package libgfxdr0.x86_64 0:9.6-1.xcpng8.3 will be erased
---> Package libglusterfs0.x86_64 0:9.6-1.xcpng8.3 will be erased
---> Package librados2.x86_64 1:10.2.5-4.el7 will be erased
---> Package userspace-rcu.x86_64 0:0.7.16-1.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                                       Arch                        Version                               Repository                         Size
=========================================================================================================================================================
Removing:
 gperftools-libs                               x86_64                      2.6.1-1.el7                           @base                             1.3 M
 libgfapi0                                     x86_64                      9.6-1.xcpng8.3                        @xcp-ng-base                      218 k
 libiscsi                                      x86_64                      1.9.0-7.el7                           @base                             156 k
 librbd1                                       x86_64                      1:10.2.5-4.el7                        @base                             7.4 M
Removing for dependencies:
 boost-iostreams                               x86_64                      1.53.0-28.el7                         @base                             209 k
 boost-random                                  x86_64                      1.53.0-28.el7                         @base                              24 k
 glusterfs-client-xlators                      x86_64                      9.6-1.xcpng8.3                        @xcp-ng-base                      3.9 M
 libgfrpc0                                     x86_64                      9.6-1.xcpng8.3                        @xcp-ng-base                      247 k
 libgfxdr0                                     x86_64                      9.6-1.xcpng8.3                        @xcp-ng-base                       76 k
 libglusterfs0                                 x86_64                      9.6-1.xcpng8.3                        @xcp-ng-base                      1.1 M
 librados2                                     x86_64                      1:10.2.5-4.el7                        @base                             5.5 M
 userspace-rcu                                 x86_64                      0.7.16-1.el7                          @xcp-ng-base                      256 k

Transaction Summary
=========================================================================================================================================================
Remove  4 Packages (+8 Dependent packages)

Installed size: 20 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : libgfapi0-9.6-1.xcpng8.3.x86_64                                                                                                      1/12 
  Erasing    : glusterfs-client-xlators-9.6-1.xcpng8.3.x86_64                                                                                       2/12 
  Erasing    : libgfrpc0-9.6-1.xcpng8.3.x86_64                                                                                                      3/12 
  Erasing    : libgfxdr0-9.6-1.xcpng8.3.x86_64                                                                                                      4/12 
  Erasing    : libglusterfs0-9.6-1.xcpng8.3.x86_64                                                                                                  5/12 
  Erasing    : 1:librbd1-10.2.5-4.el7.x86_64                                                                                                        6/12 
  Erasing    : 1:librados2-10.2.5-4.el7.x86_64                                                                                                      7/12 
  Erasing    : boost-iostreams-1.53.0-28.el7.x86_64                                                                                                 8/12 
  Erasing    : boost-random-1.53.0-28.el7.x86_64                                                                                                    9/12 
  Erasing    : userspace-rcu-0.7.16-1.el7.x86_64                                                                                                   10/12 
  Erasing    : gperftools-libs-2.6.1-1.el7.x86_64                                                                                                  11/12 
  Erasing    : libiscsi-1.9.0-7.el7.x86_64                                                                                                         12/12 
  Verifying  : 1:librbd1-10.2.5-4.el7.x86_64                                                                                                        1/12 
  Verifying  : glusterfs-client-xlators-9.6-1.xcpng8.3.x86_64                                                                                       2/12 
  Verifying  : libiscsi-1.9.0-7.el7.x86_64                                                                                                          3/12 
  Verifying  : boost-iostreams-1.53.0-28.el7.x86_64                                                                                                 4/12 
  Verifying  : libglusterfs0-9.6-1.xcpng8.3.x86_64                                                                                                  5/12 
  Verifying  : boost-random-1.53.0-28.el7.x86_64                                                                                                    6/12 
  Verifying  : gperftools-libs-2.6.1-1.el7.x86_64                                                                                                   7/12 
  Verifying  : 1:librados2-10.2.5-4.el7.x86_64                                                                                                      8/12 
  Verifying  : libgfrpc0-9.6-1.xcpng8.3.x86_64                                                                                                      9/12 
  Verifying  : libgfapi0-9.6-1.xcpng8.3.x86_64                                                                                                     10/12 
  Verifying  : userspace-rcu-0.7.16-1.el7.x86_64                                                                                                   11/12 
  Verifying  : libgfxdr0-9.6-1.xcpng8.3.x86_64                                                                                                     12/12 

Removed:
  gperftools-libs.x86_64 0:2.6.1-1.el7      libgfapi0.x86_64 0:9.6-1.xcpng8.3      libiscsi.x86_64 0:1.9.0-7.el7      librbd1.x86_64 1:10.2.5-4.el7     

Dependency Removed:
  boost-iostreams.x86_64 0:1.53.0-28.el7          boost-random.x86_64 0:1.53.0-28.el7          glusterfs-client-xlators.x86_64 0:9.6-1.xcpng8.3         
  libgfrpc0.x86_64 0:9.6-1.xcpng8.3               libgfxdr0.x86_64 0:9.6-1.xcpng8.3            libglusterfs0.x86_64 0:9.6-1.xcpng8.3                    
  librados2.x86_64 1:10.2.5-4.el7                 userspace-rcu.x86_64 0:0.7.16-1.el7         

Complete!
7870ef9f-d331-0f1e-6e38-bc6d533030a5
[-] ######################################################> (100% ETA 00:00:00) 
Total time: 00:00:01
99f6431f-2e13-3cda-2447-9289fe68d917
The following items are about to be destroyed
VM : 3717799d-f4c2-75a7-c45d-996467161cfa (orchestra_clone)
VDI: 395d0f60-39ba-455a-b1c6-e390d2fcec54 (microos) 
VM : 47d3be31-f91e-5eb0-fbe5-4a98061ad97d (orchestra_preinstall)
VDI: 210a6352-6734-478f-9fba-473f1a2e8887 (microos) 
All objects destroyed
b73ded0e-250c-95de-f257-9d19c07a23c4
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * epel: d2lzkl7pfhq30w.cloudfront.net
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-base: mirrors.xcp-ng.org
Excluding mirror: updates.xcp-ng.org
 * xcp-ng-updates: mirrors.xcp-ng.org
Resolving Dependencies
--> Running transaction check
---> Package pv.x86_64 0:1.4.6-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                         Arch                                Version                                     Repository                         Size
=========================================================================================================================================================
Installing:
 pv                              x86_64                              1.4.6-1.el7                                 epel                               47 k

Transaction Summary
=========================================================================================================================================================
Install  1 Package

Total download size: 47 k
Installed size: 93 k
Downloading packages:
pv-1.4.6-1.el7.x86_64.rpm                                                                                                         |  47 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : pv-1.4.6-1.el7.x86_64                                                                                                                 1/1 
  Verifying  : pv-1.4.6-1.el7.x86_64                                                                                                                 1/1 

Installed:
  pv.x86_64 0:1.4.6-1.el7                                                                                                                                

Complete!
[=====================================================================================================================================>] 100%            
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package pv.x86_64 0:1.4.6-1.el7 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

=========================================================================================================================================================
 Package                         Arch                                Version                                    Repository                          Size
=========================================================================================================================================================
Removing:
 pv                              x86_64                              1.4.6-1.el7                                @epel                               93 k

Transaction Summary
=========================================================================================================================================================
Remove  1 Package

Installed size: 93 k
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Erasing    : pv-1.4.6-1.el7.x86_64                                                                                                                 1/1 
  Verifying  : pv-1.4.6-1.el7.x86_64                                                                                                                 1/1 

Removed:
  pv.x86_64 0:1.4.6-1.el7                                                                                                                                

Complete!
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
No Packages marked for removal
You attempted an operation on a VM which lacks the feature.
vm: 81b2270b-f6d3-6523-5aec-82e6a752972a (orchestra)
You attempted an operation that was not allowed.
reason: VBD 'af0baf0e-60cb-68f2-fe03-c228bf7bda7b' still attached to '81b2270b-f6d3-6523-5aec-82e6a752972a'
You attempted an operation that was not allowed.
reason: VBD 'ea4c1b29-eeba-ceca-14a9-a3aae3d12d17' still attached to '81b2270b-f6d3-6523-5aec-82e6a752972a'
66cc7b81-9459-8cd5-11b7-4b759eeea9d9
Connection to 192.168.1.52 closed by remote host.
Connection to 192.168.1.52 closed.

@HPPinata
Copy link
Owner

You attempted an operation on a VM which lacks the feature.
vm: 81b2270b-f6d3-6523-5aec-82e6a752972a (orchestra)
You attempted an operation that was not allowed.
reason: VBD 'af0baf0e-60cb-68f2-fe03-c228bf7bda7b' still attached to '81b2270b-f6d3-6523-5aec-82e6a752972a'
You attempted an operation that was not allowed.
reason: VBD 'ea4c1b29-eeba-ceca-14a9-a3aae3d12d17' still attached to '81b2270b-f6d3-6523-5aec-82e6a752972a'
66cc7b81-9459-8cd5-11b7-4b759eeea9d9

It's definitely not happy about something, but the VHD looks like it imported fine...
I'll have to see when I can get a test system up to step through the install and examine the VM myself...
They might have changed some internals, I think the last time I ran this was 8.2/8.3 Beta.

@HPPinata
Copy link
Owner

You could try deleting line 58

xe vm-param-set uuid=$vmUID HVM-boot-params:firmware=uefi

That stops the VM from being set to UEFI.

Also note that this script is intended to run on an freshly installed system exactly once.
There isn't any logic to retry or detect if the system (for example) already has an existing ISO-SR.

@nikee73
Copy link
Author

nikee73 commented Nov 30, 2024

Deleted line 58 and now it boots to the bios boot screen but says:
"No bootable devices
Powering off in 30 seconds"

@HPPinata
Copy link
Owner

Deleted line 58 and now it boots to the bios boot screen but says: "No bootable devices Powering off in 30 seconds"

Then it might be an issue with the image (or my method of attaching it to the VM) after all.

I think there was a way to get info about a VMs configuration but I'd have to look up the commands myself.
Something like xe vm-list params=all...

It should give you a lot of output with all the parameters set for the VM. Getting that would tell me if a virtual hard drive is installed at all.

@HPPinata HPPinata self-assigned this Nov 30, 2024
@nikee73 nikee73 changed the title Ony boot to EUFI shell Only boot to EUFI shell Nov 30, 2024
@HPPinata HPPinata added the bug Something isn't working label Nov 30, 2024
@nikee73
Copy link
Author

nikee73 commented Nov 30, 2024

xe vm-list params=all
Gives this for the "orchestra" vm

uuid ( RO) : d08fc965-2176-52c1-ae47-8bb004ed437f
name-label ( RW): orchestra
name-description ( RW): Installed via xe CLI
user-version ( RW): 1
is-a-template ( RW): false
is-default-template ( RW): false
is-a-snapshot ( RO): false
snapshot-of ( RO):
snapshots ( RO): 008ab691-363a-54da-eb91-76836f85a3fd
snapshot-time ( RO): 19700101T00:00:00Z
snapshot-info ( RO):
parent ( RO): 008ab691-363a-54da-eb91-76836f85a3fd
children ( RO):
is-control-domain ( RO): false
power-state ( RO): halted
memory-actual ( RO): 2147475456
memory-target ( RO):
memory-overhead ( RO): 19922944
memory-static-max ( RW): 2147483648
memory-dynamic-max ( RW): 2147483648
memory-dynamic-min ( RW): 1073741824
memory-static-min ( RW): 1073741824
suspend-VDI-uuid ( RW):
suspend-SR-uuid ( RW):
VCPUs-params (MRW):
VCPUs-max ( RW): 1
VCPUs-at-startup ( RW): 1
actions-after-shutdown ( RW): Destroy
actions-after-softreboot ( RW): Soft reboot
actions-after-reboot ( RW): Restart
actions-after-crash ( RW): Restart
console-uuids (SRO):
hvm ( RO): false
platform (MRW): timeoffset: 0; device-model: qemu-upstream-compat; viridian: true; secureboot: false; nx: true; acpi: 1; apic: true; pae: true; hpet: true
allowed-operations (SRO): create_vtpm; destroy; metadata_export; export; make_into_template; changing_NVRAM; changing_shadow_memory; changing_static_range; changing_dynamic_range; migrate_send; start_on; start; copy; clone; snapshot
current-operations (SRO):
blocked-operations (MRW):
allowed-VBD-devices (SRO):
allowed-VIF-devices (SRO):
possible-hosts ( RO):
domain-type ( RW): hvm
current-domain-type ( RO): unspecified
HVM-boot-policy ( RW): BIOS order
HVM-boot-params (MRW): firmware: bios; order: cd
HVM-shadow-multiplier ( RW): 1.000
PV-kernel ( RW):
PV-ramdisk ( RW):
PV-args ( RW):
PV-legacy-args ( RW):
PV-bootloader ( RW):
PV-bootloader-args ( RW):
last-boot-CPU-flags ( RO): vendor: AuthenticAMD; features:
last-boot-record ( RO):
resident-on ( RO):
affinity ( RW):
other-config (MRW): auto_poweron: true; base_template_name: Other install media; import_task: OpaqueRef:bccb7271-4316-edc2-7507-f75c2fb0d2d8; mac_seed: 1fe0704e-ff04-dd04-4cd5-db06e3aa923b; install-methods: cdrom
dom-id ( RO): -1
recommendations ( RO):
xenstore-data (MRW): vm-data/mmio-hole-size: 268435456; vm-data:
ha-always-run ( RW) [DEPRECATED]: false
ha-restart-priority ( RW):
blobs ( RO):
start-time ( RO): 19700101T00:00:00Z
install-time ( RO): 20241130T18:48:00Z
VCPUs-number ( RO): 0
VCPUs-utilisation (MRO):
os-version (MRO):
PV-drivers-version (MRO):
PV-drivers-up-to-date ( RO) [DEPRECATED]: false
memory (MRO):
disks (MRO):
VBDs (SRO): 8f3a8b2b-2315-c43a-8791-aac210072081
networks (MRO):
PV-drivers-detected ( RO): false
other (MRO): platform-feature-xs_reset_watches: 1; platform-feature-multiprocessor-suspend: 1; has-vendor-device: 0
live ( RO): true
guest-metrics-last-updated ( RO): 20241130T18:54:23Z
can-use-hotplug-vbd ( RO): unspecified
can-use-hotplug-vif ( RO): unspecified
cooperative ( RO) [DEPRECATED]:
tags (SRW):
appliance ( RW):
groups ( RW):
snapshot-schedule ( RW):
is-vmss-snapshot ( RO): false
start-delay ( RW): 0
shutdown-delay ( RW): 0
order ( RW): 0
version ( RO): 0
generation-id ( RO):
hardware-platform-version ( RO): 0
has-vendor-device ( RW): false
requires-reboot ( RO): false
reference-label ( RO): other-install-media
bios-strings (MRO): bios-vendor: Xen; bios-version: ; system-manufacturer: Xen; system-product-name: HVM domU; system-version: ; system-serial-number: ; baseboard-manufacturer: ; baseboard-product-name: ; baseboard-version: ; baseboard-serial-number: ; baseboard-asset-tag: ; baseboard-location-in-chassis: ; enclosure-asset-tag: ; hp-rombios: ; oem-1: Xen; oem-2: MS_VM_CERT/SHA1/bdbeb6e0a816d43fa6d3fe8aaef04c2bad9d3e3d
pending-guidances ( RO):
vtpms ( RO):
pending-guidances-recommended ( RO):
pending-guidances-full ( RO):

@HPPinata
Copy link
Owner

VBDs (SRO): 8f3a8b2b-2315-c43a-8791-aac210072081

A disk is connected

HVM-boot-params (MRW): firmware: bios; order: cd

Also looks like it should work (c=root disk d=CD/DVD)

I'll have to look into this more... There are a few other Micro-OS versions, maybe they split compatibility and we need the version explicitly using grub, or maybe the parameters for an imported disk changed, so now it's no longer bootable by default.

Using https://docs.xcp-ng.org/appendix/cli_reference/
You could maybe also add the VBD and VDI info for the disk

And if you're feeling like it:
https://download.opensuse.org/tumbleweed/appliances/
Has some different versions (Page 8&9) the openSUSE-MicroOS.x86_64-kvm-and-xen.qcow2 one is currently in use, maybe the -grub-bls or even the -sdboot ones help?

@HPPinata
Copy link
Owner

And just to be sure:
Virtualization is enabled in your physical PCs BIOS/UEFI?
I think it's called SVM on AMD systems.

hvm ( RO): false

This seems wrong, but maybe it's only updated when a VM is running, or it's a legacy field, etc, etc. and therefore normal?

@nikee73
Copy link
Author

nikee73 commented Nov 30, 2024

SVM is enabled in BIOS

Regarding VBD nad VDI
I have no idea how to to any of that you just asked me to do

@HPPinata
Copy link
Owner

It is documented under the Link I sent (for example the VBD stuff here: https://docs.xcp-ng.org/appendix/cli_reference/#vbd-commands) starting with something like xe vbd-list

I'm also not really familiar with all the different commands and options, so I'd have to read the documentation and google things the same way you'd have to do and since I currently don't even have a system running to test out the commands I'd come up with there isn't really a point in trying to come up with something that might work, or might have half the required CLI options missing...

xe vdb-list params=all might get you what you want, or it could require a uuid that you might need to get from xe vm-disk-list and so on.

Some basic definitions:
VHD: The image file that can be imported
VDI: disk image (now) managed by xen
VBD: the emulated block device attached to the VM

Since the VM doesn't even find a boot medium it's most likely something wrong with the storage component (or a boot option).

You obviously don't have to do these things it'd just be helpful in trying to come up with fixes for this and maybe speed up the whole thing since I'll have to figure out if I can test this in a VM or have to build a test system out of spare parts before I can diagnose this myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants