Koozali.org formerly Contribs.org

Yum update fails on VirtualBox VM

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

  • *
  • 949
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,322
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

  • *
  • 949
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

  • *
  • 1,570
  • 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

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

  • *
  • 949
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.
.........

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

  • *
  • 949
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,322
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

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

  • *
  • 949
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.
.........

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

  • *
  • 949
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.
.........

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.