Vagrant no Ubuntu 20.04 (host) com Ubuntu mais antigo (convidado)

Vagrant no Ubuntu 20.04 (host) com Ubuntu mais antigo (convidado)

Estou no Ubuntu Budgie 20.04 (host) com kernel 5.4.0-74-generic.

VirtualBox versão 6.1.22 r144080

Vagabundo: 2.2.16

Há alguma semana não consigo rodar o vagrant com a versão mais antiga do Ubuntu como meu sistema convidado, por exemplo

$ vagrant init ubuntu/xenial64
$ vagrant up

Então recebo as informações e os erros:

Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   5.0.18
VBoxService inside the vm claims: 5.1.38
Going on, assuming VBoxService is correct...
Vagrant was unable to mount VirtualBox shared folders. This is usually
because the filesystem "vboxsf" is not available. This filesystem is
made available via the VirtualBox Guest Additions and kernel module.
Please verify that these guest additions are properly installed in the
guest. This is not a bug in Vagrant and is usually caused by a faulty
Vagrant box. For context, the command attempted was:

mount -t vboxsf -o uid=1000,gid=1000,_netdev vagrant /vagrant

The error output from the command was:

: No such device

Se eu iniciar uma caixa vagante com focal.

$ vagrant init ubuntu/focal64
$ vagrant up

Ele funciona como um encanto.

Alguma sugestão do que posso fazer aqui para que isso funcione novamente?

Não sei, mas acho que tem a ver com uma atualização do kernel em algum momento, mas não tive sorte em fazer o downgrade do kernel do Linux.

Esta é uma postagem cruzada dehttps://stackoverflow.com/questions/67833305/vagrant-on-ubuntu-20-04-host-with-older-ubuntu-on-guestcomo me foi sugerido que eu poderia obter ajuda mais fácil aqui.

Responder1

Esta não é realmente a resposta, mas acabou sendo minha solução.

Eu me esforcei para atualizar meu antigo Ubuntu 16.04 para 20.04.

Foi bastante trabalhoso para mim, então minha sugestão é simplesmente:

Mantenha suas caixas em dia, para não cair em situações como essa. :)

informação relacionada