sudo: required

services:
  - docker

before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -y qemu-kvm bridge-utils libvirt-bin
  - lsmod | grep kvm
  - cd docker/qemu-nvme/

install:
  - docker build -t ljishen/qemu-nvme .

before_script:
  - wget -O img/vm.img http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
  - dd if=/dev/zero of=device/blknvme bs=1M count=1024
  - docker ps -a | grep qemu-nvme

script:
  - docker run -ti --privileged -v `pwd`/device:/root/device -v `pwd`/img:/root/img ljishen/qemu-nvme -smp 4 -m 4G

sudo: required

services:
  - docker

before_install:
  - sudo apt-get -qq update
  - sudo apt-get install -y qemu-kvm bridge-utils libvirt-bin
  - sudo lsmod | grep kvm
  - cd docker/qemu-nvme/

install:
  - docker build -t ljishen/qemu-nvme .

before_script:
  - wget -O img/vm.img http://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img
  - dd if=/dev/zero of=device/blknvme bs=1M count=1024
  - docker ps -a | grep qemu-nvme

script:
  - docker run -ti --privileged -v `pwd`/device:/root/device -v `pwd`/img:/root/img ljishen/qemu-nvme -smp 4 -m 4G

Add sudo to the lsmod command
Add sudo to the lsmod command
