当前位置:网站首页>Vagrantbox reinstalling the vboxsf driver
Vagrantbox reinstalling the vboxsf driver
2022-06-12 21:38:00 【dingdingfish】
The Dragon Boat Festival holiday has been reinstalled Oracle Vagrant Project Medium 21c database , The database can be used , But there is a small warning at the end of the startup process :
C:\WORKSPACE\vagrant-projects\OracleDatabase\21.3.0>vagrant up
Bringing machine 'oracle-21c-vagrant' up with 'virtualbox' provider...
==> oracle-21c-vagrant: Checking if box 'oraclelinux/8' version '8.5.285' is up to date...
==> oracle-21c-vagrant: A newer version of the box 'oraclelinux/8' for provider 'virtualbox' is
==> oracle-21c-vagrant: available! You currently have version '8.5.285'. The latest is version
==> oracle-21c-vagrant: '8.6.331'. Run `vagrant box update` to update.
==> oracle-21c-vagrant: Clearing any previously set forwarded ports...
==> oracle-21c-vagrant: Clearing any previously set network interfaces...
==> oracle-21c-vagrant: Preparing network interfaces based on configuration...
oracle-21c-vagrant: Adapter 1: nat
==> oracle-21c-vagrant: Forwarding ports...
oracle-21c-vagrant: 1521 (guest) => 1521 (host) (adapter 1)
oracle-21c-vagrant: 5500 (guest) => 5500 (host) (adapter 1)
oracle-21c-vagrant: 22 (guest) => 2222 (host) (adapter 1)
==> oracle-21c-vagrant: Running 'pre-boot' VM customizations...
==> oracle-21c-vagrant: Booting VM...
==> oracle-21c-vagrant: Waiting for machine to boot. This may take a few minutes...
oracle-21c-vagrant: SSH address: 127.0.0.1:2222
oracle-21c-vagrant: SSH username: vagrant
oracle-21c-vagrant: SSH auth method: private key
==> oracle-21c-vagrant: Machine booted and ready!
==> oracle-21c-vagrant: Checking for guest additions in VM...
oracle-21c-vagrant: No guest additions were detected on the base box for this VM! Guest
oracle-21c-vagrant: additions are required for forwarded ports, shared folders, host only
oracle-21c-vagrant: networking, and more. If SSH fails on this machine, please install
oracle-21c-vagrant: the guest additions and repackage the box to continue.
oracle-21c-vagrant:
oracle-21c-vagrant: This is not an error message; everything may continue to work properly,
oracle-21c-vagrant: in which case you may ignore this message.
==> oracle-21c-vagrant: Setting hostname...
==> oracle-21c-vagrant: Mounting shared folders...
oracle-21c-vagrant: /vagrant => C:/WORKSPACE/vagrant-projects/OracleDatabase/21.3.0
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 vagrant /vagrant
The error output from the command was:
: No such device
Log in to the operating system , Sure enough, I didn't see it /vagrant
file system , An error is also reported when executing the command in the prompt :
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1846368 0 1846368 0% /dev
tmpfs 1865028 0 1865028 0% /dev/shm
tmpfs 1865028 16752 1848276 1% /run
tmpfs 1865028 0 1865028 0% /sys/fs/cgroup
/dev/mapper/vg_main-lv_root 34070268 15150992 18919276 45% /
/dev/sda1 506528 154708 351820 31% /boot
tmpfs 373004 0 373004 0% /run/user/1000
$ ls -lh /sbin/mount.vboxsf
lrwxrwxrwx. 1 root root 49 Jun 4 06:58 /sbin/mount.vboxsf -> /opt/VBoxGuestAdditions-6.1.26/other/mount.vboxsf
$ sudo mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
/sbin/mount.vboxsf: mounting failed with the error: No such device
Refer to this article :Vagrant was unable to mount VirtualBox shared folders, Reinstall the driver :
sudo wget -c http://download.virtualbox.org/virtualbox/6.1.34/VBoxGuestAdditions_6.1.34.iso -O VBoxGuestAdditions_6.1.34.iso
sudo mount VBoxGuestAdditions_6.1.34.iso -o loop /mnt
sudo sh /mnt/VBoxLinuxAdditions.run
The last step takes a long time :
$ sudo sh /mnt/VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 6.1.34 Guest Additions for Linux........
VirtualBox Guest Additions installer
Removing installed version 6.1.26 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
VirtualBox Guest Additions: Starting.
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
5.4.17-2136.307.3.5.el8uek.x86_64.
Then the following commands are normal :
$ sudo mount -t vboxsf -o uid=1000,gid=1000 vagrant /vagrant
$ df
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 1846368 0 1846368 0% /dev
tmpfs 1865028 0 1865028 0% /dev/shm
tmpfs 1865028 16776 1848252 1% /run
tmpfs 1865028 0 1865028 0% /sys/fs/cgroup
/dev/mapper/vg_main-lv_root 34070268 15211740 18858528 45% /
/dev/sda1 506528 154384 352144 31% /boot
tmpfs 373004 0 373004 0% /run/user/1000
/dev/loop0 60096 60096 0 100% /mnt
vagrant 242218284 205162368 37055916 85% /vagrant
here vagrant box There is no warning at startup .
边栏推荐
- #113 Path Sum II
- Ubuntu16.04 completely delete MySQL database
- Scatter in pytorch_ () function
- Kdd2022 | graphmae: self supervised mask map self encoder
- zgc的垃圾收集的主要阶段
- Npoi create word
- Pointer and array & pointer and const & struct and Const
- Insert sort
- 如何自己动手写一个vscode插件,实现插件自由!
- DRF receives nested data and creates objects. Solution: DRF not NULL constraint failed
猜你喜欢
NPOI 创建Word
Pixel level reconstruction and restoration technology to solve severe image blur
Graphics2D类基本使用
GNS安装与配置
Digital intelligence data depth | Bi goes down the altar? It's not that the market has declined, it's that the story has changed
SQL调优指南笔记13:Gathering Optimizer Statistics
User guide for JUC concurrency Toolkit
Kdd2022 | graphmae: self supervised mask map self encoder
Oracle SQL Developer的代码输入框中推荐使用的中文字体
【目标检测】|Dive Deeper Into Box for Object Detection 基于FCOS新训练方法
随机推荐
风控建模十:传统建模方法存在的问题探讨及改进方法探索
Bubble sort
Common error in script execution: build sh: caller: not found
Graphics2d class basic use
ASCII code comparison table
SQL调优指南笔记8:Optimizer Access Paths
#981 Time Based Key-Value Store
ICML2022 | GALAXY:極化圖主動學習
重排数列练习题
Semester summary of freshman year
RestTemplate的@LoadBalance注解
jsonUtils
Smart management of green agriculture: a visual platform for agricultural product scheduling
[qnx hypervisor 2.2 manuel de l'utilisateur] 4.2 environnement de construction pris en charge
Can flush open an account? Can you directly open the security of securities companies on the app
Fill in the checklist & lt; int&gt; Have default values? [repeat] - fill list & lt; int&gt; with default values? [duplicate]
Digital intelligence data depth | Bi goes down the altar? It's not that the market has declined, it's that the story has changed
MySQL master-slave replication
Npoi create word
利用ADG Standby克隆PDB