Vagrant Development Environment Introduction centos7成功版本

8 篇文章 1 订阅

cd spdk/scripts/vagrant

vagrant plugin install vagrant-proxyconf

sudo mkdir -p /var/lib/libvirt/images

sudo chmod -R 777 /var/lib/libvirt

以上步骤直接复制Ubuntu失败的版本步骤

lspci | grep "Non-Volatile" 这里就显示了。Ubuntu那个不显示

[vagrant@localhost ~]$ lspci | grep "Non-Volatile"
00:0e.0 Non-Volatile memory controller: InnoTek Systemberatung GmbH Device 4e56

cd spdk_repo/spdk

yum clean all

yum makecache

sudo yum -y update

sudo scripts/pkgdep.sh

./configure

make

sudo ./scripts/setup.sh

[vagrant@localhost spdk]$ sudo ./scripts/setup.sh
0000:00:0e.0 (80ee 4e56): nvme -> uio_pci_generic

## ERROR: requested 1024 hugepages but 846 could be allocated on node0.
## Memory might be heavily fragmented. Please try flushing the system cache, or reboot the machine.

reboot

vagrant ssh

cd spdk_repo/spdk

sudo ./scripts/setup.sh #绑定设备

关闭虚机后,重启步骤:打开virtual box 然后 进入到虚机目录 执行 vagrant up

 

[vagrant@localhost spdk]$ sudo ./scripts/setup.sh
0000:00:0e.0 (80ee 4e56): nvme -> uio_pci_generic

sudo build/examples/hello_world

[vagrant@localhost spdk]$ sudo build/examples/hello_world
TELEMETRY: No legacy callbacks, legacy socket not created
Initializing NVMe Controllers
Attaching to 0000:00:0e.0
Attached to 0000:00:0e.0
  Namespace ID: 1 size: 1GB
Initialization complete.
INFO: using host memory buffer for IO
Hello world!

Message from syslogd@localhost at Jan 12 09:30:06 ...
 kernel:Disabling IRQ #22

sudo build/examples/hello_world

[vagrant@localhost spdk]$ sudo build/examples/hello_world
TELEMETRY: No legacy callbacks, legacy socket not created
Initializing NVMe Controllers
Attaching to 0000:00:0e.0
Attached to 0000:00:0e.0
  Namespace ID: 1 size: 1GB
Initialization complete.
INFO: using host memory buffer for IO
Hello world!

切换为 root

sudo su

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值