virtualbox guest not installed on Fedora 22
rothgar opened this issue · comments
I used vagrant init box-cutter/fedora22; vagrant up --provider virtualbox
to install the vm and I have VirtualBox-5.0-5.0.2_102096_fedora22-1.x86_64 installed on my host. But if I vagrant ssh
into the box and do lsmod
I don't see any vbox* modules loaded.
I can try building the image myself from the repo but I wanted to open an issue to let you know and track progress.
If this was an issue, it would have been caught by the automated tests that are run on the builds. vagrant up
on every box is run before it is uploaded to atlas.
I don't see the issue at all:
$ vboxmanage --version
5.0.2r102096
Winry:~ moujan$ vagrant --version
Vagrant 1.7.4
$ vagrant init boxcutter/fedora22
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
Winry:qq moujan$ vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'boxcutter/fedora22' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'boxcutter/fedora22'
default: URL: https://atlas.hashicorp.com/boxcutter/fedora22
==> default: Adding box 'boxcutter/fedora22' (v2.0.2) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/boxcutter/boxes/fedora22/versions/2.0.2/providers/virtualbox.box
==> default: Successfully added box 'boxcutter/fedora22' (v2.0.2) for 'virtualbox'!
==> default: Importing base box 'boxcutter/fedora22'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'boxcutter/fedora22' is up to date...
==> default: Setting the name of the VM: qq_default_1440221670026_96043
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2200 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
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!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => /Volumes/Thunder/github/boxcutter/ubuntu/qq
Winry:qq moujan$ vagrant ssh
Welcome to your Packer-built virtual machine.
[vagrant@localhost ~]$ lsmod | grep vbox
vboxsf 40960 1
vboxvideo 16384 0
drm 331776 2 vboxvideo
vboxguest 274432 2 vboxsf
[vagrant@localhost ~]$ exit
logout
Connection to 127.0.0.1 closed.
Winry:qq moujan$ vagrant destroy -f
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
$ vagrant init box-cutter/fedora22
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.
Winry:qq moujan$ vagrant up --provider=virtualbox
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'box-cutter/fedora22' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'box-cutter/fedora22'
default: URL: https://atlas.hashicorp.com/box-cutter/fedora22
==> default: Adding box 'box-cutter/fedora22' (v2.0.2) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/box-cutter/boxes/fedora22/versions/2.0.2/providers/virtualbox.box
==> default: Successfully added box 'box-cutter/fedora22' (v2.0.2) for 'virtualbox'!
==> default: Importing base box 'box-cutter/fedora22'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'box-cutter/fedora22' is up to date...
==> default: Setting the name of the VM: qq_default_1440221374225_88744
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 => 2200 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Connection timeout. Retrying...
default: Warning: Remote connection disconnect. Retrying...
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!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /vagrant => /Volumes/Thunder/github/boxcutter/ubuntu/qq
Winry:qq moujan$ vagrant ssh
Welcome to your Packer-built virtual machine.
[vagrant@localhost ~]$ lsmod | grep vbox
vboxsf 40960 1
vboxvideo 16384 0
drm 331776 2 vboxvideo
vboxguest 274432 2 vboxsf
[vagrant@localhost ~]$ exit
logout
Connection to 127.0.0.1 closed.
Winry:qq moujan$ vagrant destroy -f
==> default: Forcing shutdown of VM...
==> default: Destroying VM and associated drives...
Thank you for looking at this. I realized my problem was I ran dnf update
which updated the kernel but dkms was not installed so the kernel modules did not get rebuilt for the new kernel.