Search This Blog

2018/11/13

'selinux' not supported in vagrant VM

chcon -R -t httpd_sys_content_t vagrant

$ mount /dev/sda2 /vagrant/ -o defcontext="system_u:object_r:httpd_sys_content_t:s0"
apache

mount server:/export /vagrant -o context="system_u:object_r:httpd_sys_content_t:s0"

https://github.com/hashicorp/vagrant/issues/6970