Koozali.org: home of the SME Server

Yum update fails on VirtualBox VM

Offline dallas

  • ***
  • 44
  • +0/-0
Yum update fails on VirtualBox VM
« on: February 26, 2021, 02:24:54 AM »
I decided to try installing beta 1 as server only on Virtual Box 6.1 on my Dell Inspiron 5000, intel Core i7 10th generation.
I'm following the notes in the Testing Environments page on the Wiki and I have fallen at the first hurdle.  :sad:

After installing SME and enabling SSH, running yum update in the ssh terminal produces the following error.

[root@sme10 ~]# yum update
Loaded plugins: fastestmirror, post-transaction-actions, priorities, smeserver
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os error was
14: curl#7 - "Failed to connect to 2604:1580:fe02:2::10: Network is unreachable"


I used the text install and disable ipv6 on the way through but this appears to be looking for an ipv6 address.
I can ping mirrorlist.centos.org.
This is my 3rd attempt to build this VM. Have I done something stupid?

Dallas

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #1 on: February 26, 2021, 11:27:17 AM »
I think you should check the use of qemu-agent.  I am not sure whether this applies to VB (it does to proxmox).

I found that enabling the qemu-agent caused this sort of yum update failure. 

It is possible that installing the agent on the SME10 might solve, it, but I just disabled it.

Actually, having it enabled on my gateway (also SME10 now!) was the main problem.
 
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #2 on: February 26, 2021, 01:19:49 PM »
Why text installer? Graphic installer has been solid to date..just accept defaults and let it do its thing.
--
qui scribit bis legit

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #3 on: February 26, 2021, 03:09:49 PM »
Why text installer? Graphic installer has been solid to date..just accept defaults and let it do its thing.

I don't think the text installer is the problem here, but I do agree that the graphic installer is very much more usable.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Yum update fails on VirtualBox VM
« Reply #4 on: February 26, 2021, 03:34:55 PM »
as noted by Brianr,

have you enabled qemu agent without installing it first in the vm?

see https://bugs.contribs.org/show_bug.cgi?id=11395

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #5 on: February 27, 2021, 02:11:42 AM »
as noted by Brianr,

have you enabled qemu agent without installing it first in the vm?

see https://bugs.contribs.org/show_bug.cgi?id=11395

I have added the virtio driver as per this section of the Virtual Box User Manual.

  Enable paravirtualized device support. You do this by adding the virtio drivers to the initrd for the VM.

   This procedure works only on machines with a Linux kernel of version 3.4 or later. Check that the VM is running a supported kernel:

    # uname -a

    Use the dracut tool to rebuild initrd. Add the qemu module, as follows:

    # dracut –-logfile /var/log/Dracut.log –-force –-add qemu

    Verify that the virtio drivers are now present in initrd.

     # lsinitrd |grep virtio


systemctl start qemu-guest-agent returns Failed to start qemu-guest-agent.service: Unit not found.

I'm beginning to think I should abandon Virtual Box and use VMWare Player.

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #6 on: February 27, 2021, 10:33:47 AM »
I've just done a "standard" graphicall SME10 install on Virtual Box and got the same problem.

Now looking for VB options that might be relevant.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline jameswilson

  • *
  • 793
  • +0/-0
    • Security Warehouse, trade security equipment
Re: Yum update fails on VirtualBox VM
« Reply #7 on: February 27, 2021, 10:38:55 AM »
I use proxmox and use the virtio drivers for drives and lan no issue. Is this just a virtual box issue?

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #8 on: February 27, 2021, 10:45:47 AM »
I've just done a "standard" graphicall SME10 install on Virtual Box and got the same problem.

Now looking for VB options that might be relevant.

Looks like a false alarm (although the original poster should check this as well)

VB default for the network interface is "NAT" I changed it to "Bridged" and yum springs into action.

Note the qemu-agent is different I think to the Virtio drivers. The agent is used to communicate between the VM and the host (in our case proxmox), I was unable to find an equivalent for VB.
« Last Edit: February 27, 2021, 11:31:02 AM by brianr »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #9 on: February 27, 2021, 11:16:11 AM »
I think I recall way way back :-) something similar with Esxi, was using version 5.# back then
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #10 on: February 28, 2021, 12:52:49 AM »
Looks like a false alarm (although the original poster should check this as well)

VB default for the network interface is "NAT" I changed it to "Bridged" and yum springs into action.

Note the qemu-agent is different I think to the Virtio drivers. The agent is used to communicate between the VM and the host (in our case proxmox), I was unable to find an equivalent for VB.

Hmm... A new install today fails again.
I have 2 configured NICs, both set as bridged.
Note there is only physical NIC on the laptop.
Laptop OS is Windows10

Config in screen shots.
Can you please share you VB settings.

Dallas

« Last Edit: February 28, 2021, 01:04:46 AM by dallas »

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #11 on: February 28, 2021, 07:51:56 AM »
Why do you have 2 network ports and why are they connected to a controller? I would expect them to be connected to two unique ports. Unless you are planning for a Server/Gateway with two ports, I would delete one of the them.
What are the options on the "Name" dropdown?

Here are my details attached

I am on Fedora 33, VB version 6.1.18
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #12 on: February 28, 2021, 08:02:58 AM »
Why do you have 2 network ports and why are they connected to a controller? I would expect them to be connected to two unique ports. Unless you are planning for a Server/Gateway with two ports, I would delete one of the them.
What are the options on the "Name" dropdown?

Here are my details attached

I am on Fedora 33, VB version 6.1.18
I have 2 ports for Server/Gateway. There is only one physical Ethernet port (via USB-C adapter).
Names options are Realtek USB GbE Family Controller and Intel(R) Wi-Fi 6 AX201 160Mhz

If it test this in Server Only mode, can I change it to Server/Gateway when I install it on a physical server?

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #13 on: February 28, 2021, 08:29:46 AM »
If it test this in Server Only mode, can I change it to Server/Gateway when I install it on a physical server?

yes just run the console setup again. "su admin" from the command line or login directly as admin.

Ps I suspect you should choose " Intel(R) Wi-Fi 6 AX201 160Mhz" as the port.

PPS oh - that is the Wifi - no sorry, don't choose that one!!

What is the make of the laptop?
« Last Edit: February 28, 2021, 08:39:32 AM by brianr »
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #14 on: March 01, 2021, 12:55:27 AM »
What is the make of the laptop?

It's a Dell Inspiron 15 5000.

I changed the install to Server Only and still no go.
I can ping mirrorlist.centos.org but I still get the same error.
I'm going to delete the VM from virtual box and start a completely fresh VM.

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #15 on: March 01, 2021, 06:43:58 AM »
It's a Dell Inspiron 15 5000.

I've installed VMware Workstation 16 Player and have the same problem.
It may be the Laptop... or Windows 10?

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #16 on: March 01, 2021, 07:49:13 AM »
I can ping mirrorlist.centos.org but I still get the same error.

That does sound like my problem with the qemu-agent or the VB equivalent...

Let us know how you get on.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #17 on: March 01, 2021, 08:18:49 AM »
Windows 10 Home 20H2
Dell p6-2300a Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz   3.41 GHz

VirtualBox Version 6.1.18 r142142 (Qt5.6.2)

Set machine Bios to Virtualization On
Set windows 10 Fetaures on/off Virtual Machine Platform - On
VM - used RedHat 64bit
Set network to Bridged Adapter

Began install of SME10beta1 - all defaults except as above

at graphical install summary screen made sure Network was turned on (ensures network is working during setup later) I do same in all my installs regardless of platform

Install completed - yum update all OK

Added: sorry, server only mode, DHCP off, ip local 192.168.2.123 my gateway is 192.168.2.19
« Last Edit: March 01, 2021, 09:22:06 AM by TerryF »
--
qui scribit bis legit

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #18 on: March 01, 2021, 08:39:11 AM »
Can you try pinging centos.mirrorlist.org from the SME10 VM?

and also try pinging the SME10 VM from the Windows 10 host?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #19 on: March 01, 2021, 08:58:45 AM »
Be handy to see what you have if you do this and post results here

PS C:\WINDOWS\system32> ipconfig
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #20 on: March 02, 2021, 12:08:33 AM »
Be handy to see what you have if you do this and post results here

PS C:\WINDOWS\system32> ipconfig

Windows ipconfig output.

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #21 on: March 02, 2021, 12:09:37 AM »
Can you try pinging centos.mirrorlist.org from the SME10 VM?

and also try pinging the SME10 VM from the Windows 10 host?

Both successful.

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #22 on: March 02, 2021, 12:10:42 AM »
Windows 10 Home 20H2
Dell p6-2300a Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz   3.41 GHz

VirtualBox Version 6.1.18 r142142 (Qt5.6.2)

Set machine Bios to Virtualization On
Set windows 10 Fetaures on/off Virtual Machine Platform - On
VM - used RedHat 64bit
Set network to Bridged Adapter

Began install of SME10beta1 - all defaults except as above

at graphical install summary screen made sure Network was turned on (ensures network is working during setup later) I do same in all my installs regardless of platform

Install completed - yum update all OK

Added: sorry, server only mode, DHCP off, ip local 192.168.2.123 my gateway is 192.168.2.19

I'll try your config and report back.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #23 on: March 02, 2021, 02:19:00 AM »
I am not familiar with VMware so am just guessing what the "Eth Adapter Vmware Network VMnet1" is the sme10 VM under VMware ??.

However .. here are the IPs you listed and mine for comparison,

I believe your issue is you have not setup your SME10 VM  to be on the same lan as your gateway.

Ensure VB network is set to bridged, VMware may have something similar

Yours

Gateway - 192.168.40.1

Win10 IP - 192.168.40.73

VB virtual adapter - 192.168.56.1

Eth Adapter Vmware Network VMnet1 - 192.168.10.1

VMware virt adapter - 192.168.31.1

SME10VM - ?? should be in range  - 192.168.40.#


Mine - server only setup

Gateway - 192.168.2.19

Win10 IP - 192.168.2.153

VB virtual adapter - 192.168.56.1

SME10 VM - 192.168.2.123

In my setup the gateway is providing the DHCP functionality, all others are turned off..

Good Luck
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #24 on: March 02, 2021, 02:22:01 AM »
So above is basics, just to add a little red herring for the future :-) once you get it all working you can manipulate how your SME10 plays with networks and can do lots of interesting things :-) wiki is a trove of gems...
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #25 on: March 02, 2021, 02:32:45 AM »
I believe your issue is you have not setup your SME10 VM  to be on the same lan as your gateway.

SME10 VM IP is on the local lan, 192.168.40.150. I can run an ssh from the host (192.168.40.73) to the SME10. VB network is set to bridged.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #26 on: March 02, 2021, 02:34:29 AM »
No worries, sweet :-)

If still no yum update, then its something between your gateway and the mirrors :-)

Can you say do a
# wget http://mirror.canada.pialasse.com/releases/testing/10/smeupdates-testing/x86_64/RPMS/smeserver-yum-2.6.0-46.el7.sme.noarch.rpm

Thats the latest smeserver-yum update in smeupdates-testing..
« Last Edit: March 02, 2021, 02:37:14 AM by TerryF »
--
qui scribit bis legit

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #27 on: March 02, 2021, 02:39:32 AM »
maybe even try this, it is a valid update from smeupdates

# yum update http://mirror.canada.pialasse.com/releases/testing/10/smeupdates/x86_64/RPMS/smeserver-release-10.0-2.beta1.el7.sme.noarch.rpm

Added: if using the same VM to switch things about, worthwhile doing a # yum clean all just to clear its head :-)
« Last Edit: March 02, 2021, 02:47:06 AM by TerryF »
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #28 on: March 03, 2021, 02:49:25 AM »
I think this is a hardware issue related to my new laptop. It may be specific the the laptops CPU.

I've installed VB on an old 2008 MacBook Pro and while the VM is extremely slow, I'm able to run yum update.
Further testing reveals that I can ssh into the MBP SME VM from any machine on my network. This is NOT true of the VM on the Dell laptop. While I can ssh from the Dell laptop that is hosting the VM I can't ssh from any other machine on the network.

Mystery solved. Happy to provide more details if anyone is interested.

Thank you everyone for your help and suggestions.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #29 on: March 03, 2021, 03:32:49 AM »
Bloody PITA :-) good to get to bottom of it... have to go and have a look at hardware specs to see what eth hardware details are .. even if just for hardware compat details etc, pity s that is a good bit of hardware you have
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #30 on: March 03, 2021, 06:38:59 AM »
Here is the info about the hardware in both the old MBP & the Dell laptop.
I'm giving up on trying to get the Dell VM working. I'm suspicious of the USB-C Ethernet Adapter.

15in MacBook Pro Late 2008
Model 5,1
8GB 1067MHz DDR3 Memory
2.4 GHz Core 2 Duo P8600
Intel PRO/1000 EB 80003ES2LAN 10/100/1000BASE-T Gigabit Ethernet
OS Mojave - rEFInd boot manager


Dell Inspiron 15 ICL 5000 Series 5501
16GB 3200Mhz DDR4 Memory
10th Generation Intel Core i7-1065G7
Dell USB-C(M) to Gigabit Ethernet Adapter
OS Windows 10 Professional

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #31 on: March 03, 2021, 08:15:30 AM »
I've just looked at the spec for this machine. There is no integral ethernet adaptor, just an addon USB-C to HDMI and Ethernet external adaptor. I suspect that VB is not connecting to the ehternet part of it sucessfully.

https://forums.virtualbox.org/viewtopic.php?t=74826

Post not quite aligned, but maybe indicative of a problem?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #32 on: March 03, 2021, 09:45:50 AM »
I installed Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack and enabled USB 3. When I booted the VM it took over the USB-C port and I lost all network connection on the host. yum update in the VM still failed.
So my suspicion of the USB Ethernet adapter was correct.

BTW the Laptop has 1xHDMI, 2xUSB3, 1xUSB-C and a micro SD card reader.

Offline brianr

  • *
  • 990
  • +2/-0
Re: Yum update fails on VirtualBox VM
« Reply #33 on: March 03, 2021, 11:12:17 AM »
I installed Oracle_VM_VirtualBox_Extension_Pack-6.1.18.vbox-extpack and enabled USB 3. When I booted the VM it took over the USB-C port and I lost all network connection on the host. yum update in the VM still failed.
So my suspicion of the USB Ethernet adapter was correct.

BTW the Laptop has 1xHDMI, 2xUSB3, 1xUSB-C and a micro SD card reader.

So that confirms our suspicions that the Dell Laptop arrangement for an ethernet connection are not compatible  with Virtual Box, or probably any of the other VM management tools!
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #34 on: March 03, 2021, 07:09:20 PM »
So that confirms our suspicions that the Dell Laptop arrangement for an ethernet connection are not compatible  with Virtual Box, or probably any of the other VM management tools!

Yes that's my conclusion also. In fact any modern laptop is probably not suitable for running VMs as most are WiFi only.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #35 on: March 03, 2021, 10:39:13 PM »
If I had the hardware would make an interesting investigation

As far as Wifi goes see this interesting bit of info - https://askubuntu.com/questions/363003/no-internet-connection-on-virtualbox-windows-7-as-guest-ubuntu-13-04-as-host
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #36 on: March 03, 2021, 11:42:43 PM »
and also this https://forums.virtualbox.org/viewtopic.php?f=6&t=98133

I tried the WiFi and it didn't work either.

Offline TerryF

  • grumpy old man
  • *
  • 1,847
  • +6/-0
Re: Yum update fails on VirtualBox VM
« Reply #37 on: March 04, 2021, 06:25:42 AM »
You keep spoiling the party :-)
--
qui scribit bis legit

Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #38 on: March 04, 2021, 06:36:05 AM »
You keep spoiling the party :-)

Just happy to help out others.  :D

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Yum update fails on VirtualBox VM
« Reply #39 on: March 04, 2021, 03:16:50 PM »
my two cents here. 
Not using vb but but virtmanager with libvirt on fedora. The default offered connexions did not work for me.  I had to manually create a bridge on my host and select this one to be able to have my vm to access the internet. 


Offline dallas

  • ***
  • 44
  • +0/-0
Re: Yum update fails on VirtualBox VM
« Reply #40 on: March 05, 2021, 12:35:53 AM »
my two cents here. 
Not using vb but but virtmanager with libvirt on fedora. The default offered connexions did not work for me.  I had to manually create a bridge on my host and select this one to be able to have my vm to access the internet.

We have determined that this is a hardware issue. Both VB and VMware Player have the same issue.