AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / ubuntu / Perguntas / 1521832
Accepted
Blue Grass
Blue Grass
Asked: 2024-07-28 06:39:50 +0800 CST2024-07-28 06:39:50 +0800 CST 2024-07-28 06:39:50 +0800 CST

Processo de instalação do Vagrant travado no VirtualBox Guest Additions

  • 772

Minha instalação vanilla do Vagrant Ubuntu 24.04 travou no mesmo ponto no VirtualBox Guest Additions. Tentei várias vezes, mas sempre para na mesma etapa e mensagem abaixo:

XXXXXXX@XXXXXX-PC MINGW64 /d/vagrant/projects/project6

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'apavy/ubuntu-24.04-desktop-amd64'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'apavy/ubuntu-24.04-desktop-amd64' version '0.1.0' is up to date...
==> default: Setting the name of the VM: project6_default_1722119127024_28694
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default:
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default:
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 7.0.14
Going on, assuming VBoxService is correct...
[default] GuestAdditions versions on your host (7.0.20) and guest (7.0.14) do not match.
Got different reports about installed GuestAdditions version:
Virtualbox on your host claims:   6.0.0
VBoxService inside the vm claims: 7.0.14
Going on, assuming VBoxService is correct...
Reading package lists...
Building dependency tree...
Reading state information...
linux-headers-6.8.0-31-generic is already the newest version (6.8.0-31.31).
build-essential is already the newest version (12.10ubuntu1).
dkms is already the newest version (3.0.11-1ubuntu13).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Copy iso file C:\Program Files\Oracle\VirtualBox\VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Mounting Virtualbox Guest Additions ISO to: /mnt
mount: /mnt: WARNING: source write-protected, mounted read-only.
Installing Virtualbox Guest Additions 7.0.20 - guest version is 7.0.14
Verifying archive integrity...  100%   MD5 checksums are OK. All good.
Uncompressing VirtualBox 7.0.20 Guest Additions for Linux  100%
VirtualBox Guest Additions installer
Removing installed version 7.0.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
VirtualBox Guest Additions: Setting up modules
VirtualBox Guest Additions: Building the VirtualBox Guest Additions kernel
modules.  This may take a while.
VirtualBox Guest Additions: To build modules for other installed kernels, run
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup <version>
VirtualBox Guest Additions: or
VirtualBox Guest Additions:   /sbin/rcvboxadd quicksetup all
VirtualBox Guest Additions: Building the modules for kernel 6.8.0-31-generic.
update-initramfs: Generating /boot/initrd.img-6.8.0-31-generic
VirtualBox Guest Additions: Running kernel modules will not be replaced until
the system is restarted or 'rcvboxadd reload' triggered
VirtualBox Guest Additions: reloading kernel modules and services
VirtualBox Guest Additions: kernel modules and services 7.0.20 r163906 reloaded
VirtualBox Guest Additions: NOTE: you may still consider to re-login if some
user session specific services (Shared Clipboard, Drag and Drop, Seamless or
Guest Screen Resize) were not restarted automatically

O Vagrantfile:

Vagrant.configure("2") do |config|
  # Machine Image
  config.vm.box = "apavy/ubuntu-24.04-desktop-amd64"

  # Provisioning
  config.vm.provision :shell, path: "provision.sh"
end
virtualbox
  • 1 1 respostas
  • 120 Views

1 respostas

  • Voted
  1. Best Answer
    jadephantom
    2024-08-07T23:44:06+08:002024-08-07T23:44:06+08:00

    Com base na saída do vagrant, acho que você instalou o plugin vagrant-vbguest porque eu também o tenho usado e tive o mesmo problema.

    Você pode verificar se ele está instalado digitando vagrant plugin list. Se a saída mostrar algo assim vagrant-vbguest (0.32.0, global), o plugin está instalado.

    Resolvi o problema dizendo ao plugin vagrant-vbguest que ele não deveria instalar automaticamente as adições de convidados. Para fazer isso abra seu Vagrantfile e depois Vagrant.configure("2") do |config|digite o seguinte código:

      if Vagrant.has_plugin? "vagrant-vbguest"
        config.vbguest.no_install  = true
      end
    

    Com este código, as diferentes versões do GuestAdditions são relatadas, mas uma instalação automática não é acionada. Depois que a VM for iniciada, instale o GuestAdditions manualmente.

    Acho que isso é um bug no plugin vagrant-vbguest. No entanto, como você pode ver na página do plugin no github, o desenvolvimento foi descontinuado:

    Observe que a partir de 17/12/2023, este projeto será arquivado e não receberá mais atualizações ou suporte de minha parte. No entanto, a base de código existente permanecerá disponível para referência e uso sob a licença de código aberto do projeto.

    ~ https://github.com/dotless-de/vagrant-vbguest

    Então talvez seja melhor parar de usá-lo completamente.

    • 0

relate perguntas

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve