Images do not work
Hi,
Following the example from this video [1], i had tried to create three VMs:
Ubuntu 18.04
CentOS8 Stream
OpenSuse 15.3
I have downloaded the tar.zx archives from here [2]. I have created the VMs following these [3] instructions in a VirtualBox 6.1.26_Ubuntu r145957 on Ubuntu 20.04.3 LTS. The latter two do not work.
CentOS Stream:
- After selecting in the bootloader "CentOS Stream (5.15.0) 8", or "/boot/4.18.0-348.e18.x86_64" I get this [4] and eventually - this [4a]
OpenSuse:
After selecting in the bootloader "openSUSE Leap 15.3" I get simply black screen [5]
Going for "Advanced options for openSUSE Leap 15.3" > "openSUSE Leap 15.3 with Linux 5.12.0 9recovery mode)" gives me this [6]
Going for "Advanced options for openSUSE Leap 15.3" > "openSUSE Leap 15.3 with Linux 5.3.18-59.27-default gives me this [7].
I do have a working Ubuntu, so it is not urgent, but I would really prefer to have all VMs so I can compare between different distributions..
Btw, it would be nice to remove the reference to "training@linuxfoundation.org" in [3] since this is just automatic reply which is pointing to an even more useless JIRA tracker (where I cannot attach any screenshots). Which brings me to my next question:
What is the official support channel for the VM images which you are providing?
Cheers,
Ivan
[2] https://training.linuxfoundation.org/cm/VIRTUAL_MACHINE_IMAGES/
[3] https://training.linuxfoundation.org/cm/VIRTUAL_MACHINE_IMAGES/000README.txt
[4]
[4a]
[5]
[6]
[7]
Best Answer
-
Great. Keep in mind CentOS-9 came out just a few days ago and while it is branched off of Fedora 34, it is incomplete as there is no EPEL repo for 9 and other such matters. ANd I had some trouble configuring selinux to run on custom kernels, but it is running on the stock kernel. Enjoy
0
Answers
-
All three of these VMS have worked successfully on both vmware and virtualbox although I confess they are better tested on vmware as that is where they are produced. (This is the right forum to ask about the images as I am the one that creates and maintains them)
If you successfully get into a grub menu and then the system starts to boot and fails, the most likely instance is always a mismatch between the hard disk driver in the initramfs, and the driver the hypervisor wants to use. All of these images use SCSI as the disk type (I just checked). I have seen Virtual Box sometimes mysteriously choose SATA by default. And some very recent images (like FC-35) actually use nvme. Usually the rescue images can handle both as they are pre-canned (not built at time of installation or kernel compile and install) like the other ones). If you have access to the actuall initramfs file you can use the "lsinitrd" program to list the contents.
If the emergency boot choice works, that is a good clue. You can change the machine settings in the hypervisor or reinstall the kernel while running the emergency boot option.
By the way, I assume you have OpenSUSE 15.3 not 25.3 unless you are far in the future The output you post from OpenSUSE is almost definitely a hard disk dirver mismatch. Same is true for CentOS
we can change the link in the readme file. However, let me note that if you are in the class, that is not the best way to ask about this, it is to ask in the forum as you are doing. The training JIRA link will take a more circuitous route to get answer
I expect both of these would work fine with vmware without a problem. I won't get into vmware <-> virtual box holy wars but they are more often used in vmware so bug reports come in more often and get dealt with, but they are rare. It is almost always the disk driver.
If all else fails it takes about 1/2 hour to:
build a new VM from scratch by downloading the install isos and using them
then run ready-for.sh --install LFS201 (you may have to install curl first depending on distribution)Then you will have the pride of doing it yourself. And it may take less time than debugging what went wrong if it is not the hard disk driver problem, which is a couple of mouse clicks to fix.
0 -
Thanks for the pointers coop,
- I have no doubt that all images are being tested but that does not really help me, right? Anyway..
- VirtualBox is always using by default SATA (no idea why). And it actually miraculously works in some cases (CentOS8 for example).
- The VirtualBox vs. VMWare - I also don't care. It's simply that I cannot install VMWare on OSX (I am working on the courses on two different machines depending on my physical location - an Ubuntu 20.04 and an OSX). So, at least for the OSX case - I am stuck with VirtualBox
- openSUSE worked (btw, CentOS 9 Stream needed that too) after I have removed the SATA controller and attached the disk to the default SCSI controller (LsiLogic). I need to do
zypper clean --all
in order to update the VM, but otherwise it worked like a charm, thanks. - On top of the above, Fedora is starting in rescue mode and give it 4 GB RAM to get it going. Once updated and booting with kernel
5.15.6-200.fc35.x86_64
works perfect. The VMs which do not work for me also after trying all SCSI drivers are
- CentOS8 Stream (stuck in dracut, and in rescue mode - with
dracut: FATAL: iscsiroot requested but kernel/initrd does not support iscsi
) - Gentoo (stuck to a "terminal" i.e. blinking cursor where I cannot input anything or no obvious error in rescue mode)
- CentOS8 Stream (stuck in dracut, and in rescue mode - with
My point [4] from the previous post i.e:
drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message
This message btw seems to be harmless since it exist for example in CentOS8 image in dmesg, but the VM boots fine. Anyway, the solution is to change in VrtualBox the graphics controller (Settings > Display > Graphics Controller) from the standard "VMSVGA" to "VBoxVGA" (from [01])
- Ubuntu 20.04, Fedora 35 and openSUSE 15.3 image - Flickering of the screen. Solved by enabling 3D Acceleration (Settings > Display > Acceleration: Enable 3D Acceleration)
- Ubuntu 21.10 (I know it is not supported, I include it for completeness) - the pointer does not work with the default settings. Changing Pointing Device (Settings > System > Pointing Device) to "PS/2 Mouse" did the trick. It is still with different speed than the host OS, but hey, better than nothing.
- For the link in the readme file - I think you should remove it. Or at least mention that the right way to report errors is here - it is not clear from the documentation.
- Installing from .iso - I know that is an option. I wanted to have your VM, because I presume there will be baked in some goodies in them at some point
Anyway, for me, the story is over - I have at least one working VM from each distro family. The key one was openSUSE - while you have several VMs from RedHat and Debian clones, there was only one for SUSE and it was not working - now it does, thanks.
Cheers...
0 -
BTW, you can use vmware on the mac if you use VMware Fusion, which is not free but low cost and works well. For the life of me I don't know why they charge for the Mac Version and not the PC version.
When you install on vmware you get to pick all the hardware under Machine Settings before the install starts. On VirtualBox it picks these things for you once you point to only the .vmdk file (there is nothing like the .vmx file vmware uses which has these settings.) I cannot predict exactly what a given choice of hardware and software and VirtualBox on the host will decide to pick and dumb things happen.
You should also never try booting into the custom kernel (5.15.0 probably) before making sure you can get into the distribution supplied kernel. The custom kernel is only for use in kernel development courses and the other should be the default. It deliberately does not contain every possible driver and option as it gets rebuilt multiple times in other courses.
I don't own a Mac and do not test on the Mac. Things are different. For example, hardware video acceleration does not work on PCs in any scenario I personally have seen. Mouse drivers and integration is a typical bug that comes up that is hard to predict and solve for both hypervisors and usually involves installing addition software from the upstream provider (additions etc.)
There is a limit to how much hypervisor setup debugging we do and there is a conscious reason for that. This is not a course on hypervisors. We don't have the expertise or bandwidth.
If you want the best experience and you have a linux host running, use kvm, it works the best.
Let me note that if you install from the distro CD/DVD, run dnf or apt to update and run ./ready-for.sh you are duplicating exactly how these vm's were built, the only difference being we run ./ready-for.sh for a number of courses and so it installs more software and takes longer (the complete list is LFS300 LFS301 LFS416 LFS416 and a bunch of LFD courses -- LFS301 is the same as LFS201 -- but never takes more than 1/2 hour of which 25 minutes you don't need to be there. All this debugging may be educational but does not produce a better VM. For an experienced person like yourself this should not be a big challenge.
As far as GENTOO goes it is completely unsupported and is there for fun. As you can see it is hell to keep working and up to date. I have found that if I don't update at least once a week it breaks beyond repair and it is very sensitive to the drivers on the host. ArchLinux works better but is also unsupported.
the only VMS we encourage are CentOS-8-Stream and Ubuntu-20-04. The rest are there for fun or for a couple of legacy courses (I'd like to dump Ubuntu 18-04 at the end of the year and CentOS-8 is reaching EOL. ) Please note almost no one downloads and uses OpenSUSE any more so that is also there for fun. All exams use either Ubuntu or CentOS. Debian is almost always ok because it is close to Ubuntu and is very well done to begin with.
Thanks for all the diligence, it keeps us on our toes, but as I said I would never try to do full hypervisor support. the providers are crappy with Linux support even though Oracle has its own distribution. For example, when 5.16 comes out it is unlikely it will work as a Linux host on one or both distributions and I will have to figure out or find someone who has figured out how to patch the vmware source so it works with 5.16 as I work only on linux hosts.
The readme file and all VMS will be updated about the end of the year when 5.16 comes out. We do it as an atomic operation.
For fun you could try CentOS-9-Stream. I uploaded it a few days ago, no promises or support
Merci
0 -
Thanks for everything coop,
I have my setup (Ubuntu 20.04, CentOS9 Stream and openSUSE 15.3) working and I am not planning to play around with the rest. I think it would be useful/timesaving for the users to somehow note which images are considered "current" and which are "for playing"..
Anyway, feel free to make / label this thread as solved.Cheers..
0
Categories
- All Categories
- 207 LFX Mentorship
- 207 LFX Mentorship: Linux Kernel
- 734 Linux Foundation IT Professional Programs
- 339 Cloud Engineer IT Professional Program
- 166 Advanced Cloud Engineer IT Professional Program
- 66 DevOps Engineer IT Professional Program
- 132 Cloud Native Developer IT Professional Program
- 120 Express Training Courses
- 120 Express Courses - Discussion Forum
- 5.9K Training Courses
- 40 LFC110 Class Forum - Discontinued
- 66 LFC131 Class Forum
- 39 LFD102 Class Forum
- 220 LFD103 Class Forum
- 17 LFD110 Class Forum
- 32 LFD121 Class Forum
- 17 LFD133 Class Forum
- 6 LFD134 Class Forum
- 17 LFD137 Class Forum
- 70 LFD201 Class Forum
- 3 LFD210 Class Forum
- 2 LFD210-CN Class Forum
- 2 LFD213 Class Forum - Discontinued
- 128 LFD232 Class Forum - Discontinued
- 1 LFD233 Class Forum
- 3 LFD237 Class Forum
- 23 LFD254 Class Forum
- 687 LFD259 Class Forum
- 109 LFD272 Class Forum
- 3 LFD272-JP クラス フォーラム
- 10 LFD273 Class Forum
- 100 LFS101 Class Forum
- LFS111 Class Forum
- 2 LFS112 Class Forum
- 1 LFS116 Class Forum
- 3 LFS118 Class Forum
- 2 LFS142 Class Forum
- 3 LFS144 Class Forum
- 3 LFS145 Class Forum
- 1 LFS146 Class Forum
- 2 LFS147 Class Forum
- 8 LFS151 Class Forum
- 1 LFS157 Class Forum
- 10 LFS158 Class Forum
- 4 LFS162 Class Forum
- 1 LFS166 Class Forum
- 3 LFS167 Class Forum
- 1 LFS170 Class Forum
- 1 LFS171 Class Forum
- 2 LFS178 Class Forum
- 2 LFS180 Class Forum
- 1 LFS182 Class Forum
- 4 LFS183 Class Forum
- 30 LFS200 Class Forum
- 737 LFS201 Class Forum - Discontinued
- 2 LFS201-JP クラス フォーラム
- 17 LFS203 Class Forum
- 114 LFS207 Class Forum
- 1 LFS207-DE-Klassenforum
- LFS207-JP クラス フォーラム
- 301 LFS211 Class Forum
- 55 LFS216 Class Forum
- 49 LFS241 Class Forum
- 43 LFS242 Class Forum
- 37 LFS243 Class Forum
- 13 LFS244 Class Forum
- 1 LFS245 Class Forum
- 45 LFS250 Class Forum
- 1 LFS250-JP クラス フォーラム
- LFS251 Class Forum
- 143 LFS253 Class Forum
- LFS254 Class Forum
- LFS255 Class Forum
- 6 LFS256 Class Forum
- LFS257 Class Forum
- 1.2K LFS258 Class Forum
- 9 LFS258-JP クラス フォーラム
- 114 LFS260 Class Forum
- 152 LFS261 Class Forum
- 41 LFS262 Class Forum
- 82 LFS263 Class Forum - Discontinued
- 15 LFS264 Class Forum - Discontinued
- 11 LFS266 Class Forum - Discontinued
- 23 LFS267 Class Forum
- 18 LFS268 Class Forum
- 29 LFS269 Class Forum
- 199 LFS272 Class Forum
- 1 LFS272-JP クラス フォーラム
- LFS274 Class Forum
- 3 LFS281 Class Forum
- 2 LFW111 Class Forum
- 257 LFW211 Class Forum
- 176 LFW212 Class Forum
- 12 SKF100 Class Forum
- SKF200 Class Forum
- 791 Hardware
- 199 Drivers
- 68 I/O Devices
- 37 Monitors
- 98 Multimedia
- 174 Networking
- 91 Printers & Scanners
- 85 Storage
- 754 Linux Distributions
- 82 Debian
- 67 Fedora
- 16 Linux Mint
- 13 Mageia
- 23 openSUSE
- 147 Red Hat Enterprise
- 31 Slackware
- 13 SUSE Enterprise
- 351 Ubuntu
- 464 Linux System Administration
- 39 Cloud Computing
- 70 Command Line/Scripting
- Github systems admin projects
- 91 Linux Security
- 78 Network Management
- 101 System Management
- 47 Web Management
- 56 Mobile Computing
- 17 Android
- 28 Development
- 1.2K New to Linux
- 1K Getting Started with Linux
- 366 Off Topic
- 114 Introductions
- 171 Small Talk
- 20 Study Material
- 528 Programming and Development
- 293 Kernel Development
- 217 Software Development
- 1.1K Software
- 212 Applications
- 182 Command Line
- 3 Compiling/Installing
- 405 Games
- 311 Installation
- 79 All In Program
- 79 All In Forum
Upcoming Training
-
August 20, 2018
Kubernetes Administration (LFS458)
-
August 20, 2018
Linux System Administration (LFS301)
-
August 27, 2018
Open Source Virtualization (LFS462)
-
August 27, 2018
Linux Kernel Debugging and Security (LFD440)