msimonin / vagrant-g5k

Hacking around vagrant and g5k
MIT License
3 stars 1 forks source link

create_tap problem #17

Closed Brandonage closed 6 years ago

Brandonage commented 6 years ago

With the Debian upgrade in G5k I get some errors when deploying VM's with vagrant-g5k. I think the problem is with the create_tap script as some users have already pointed out in the user's list. Is it possible to update the plugin to handle this situation?


==> test-5: +++ cat .vagrant/test-vagrant-g5k/subnet
==> test-5: +++ head -n 903
==> test-5: +++ tail -n 1
==> test-5: ++ IP_MAC='10.158.75.135    00:16:3E:9E:4B:87'
==> test-5: +++ echo 10.158.75.135 00:16:3E:9E:4B:87
==> test-5: +++ awk '{print $1}'
==> test-5: ++ IP_ADDR=10.158.75.135
==> test-5: +++ echo 10.158.75.135 00:16:3E:9E:4B:87
==> test-5: +++ awk '{print $2}'
==> test-5: ++ MAC_ADDR=00:16:3E:9E:4B:87
==> test-5: +++ sudo create_tap
==> test-5: /usr/local/bin/create_tap: 1: /usr/local/bin/create_tap: /usr/sbin/tunctl: not found
==> test-5: ++ TAP=
==> test-5: ++ echo '-net nic,model=virtio,macaddr=00:16:3E:9E:4B:87 -net tap,ifname=,script=no'
==> test-5: + net='-net nic,model=virtio,macaddr=00:16:3E:9E:4B:87 -net tap,ifname=,script=no'
==> test-5: ++ hostname
==> test-5: + echo parasilo-6.rennes.grid5000.fr
==> test-5: + echo -net nic,model=virtio,macaddr=00:16:3E:9E:4B:87 -net tap,ifname=,script=no
==> test-5: + shift
==> test-5: + export TMPDIR=/tmp
==> test-5: + TMPDIR=/tmp
==> test-5: + trap clean_shutdown 12
==> test-5: + wait
==> test-5: + kvm -m 16384 -smp cores=4,threads=1,sockets=1 -fsdev local,security_model=none,id=fsdev0,path=/home/abrandon -device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare -nographic -monitor unix:/tmp/vagrant-g5k.979978.mon,server,nowait -localtime -enable-kvm -net nic,model=virtio,macaddr=00:16:3E:9E:4B:87 -net tap,ifname=,script=no -drive file=/home/abrandon/public/centos7.3_dcos.qcow2,if=virtio -snapshot
==> test-5: qemu-system-x86_64: -net tap,ifname=,script=no: could not configure /dev/net/tun: Operation not permitted````  
msimonin commented 6 years ago

I prefer to wait for a patch to be applied on the grid'5000 side. In the mean time you can still use the development version of the plugin and apply a fix locally.

Brandonage commented 6 years ago

The patch has been applied and everything is working normally so I close the issue