Ask Your Question
0

Vagrant with libvirt on local user

asked 2017-10-30 19:48:18 -0500

updated 2017-10-30 21:14:00 -0500

With Vagrant, is it possible to use libvirt on local user account, like with Gnome-Box?

If yes, how?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-10-30 20:34:14 -0500

aeperezt gravatar image

You could do that by adding your user to libvirt group, command like this on the terminal usermod -aG libvirt "username" change username with the name of your user. After that please use another terminal or close your session and open a new one, so you get the group on that session. After that Vagrant will work as normal as long as the images you use are prepare to work with libvirt.

Good Luck

edit flag offensive delete link more

Comments

Thanks for your reply.

But I don't want to use libvirt on root user from local user, I want to use libvirt running on local user. This is why I specify "like Gnome-Box".

postroutine gravatar imagepostroutine ( 2017-10-30 21:13:41 -0500 )edit

I think the proper question will be how to connect Vagrant to the qemu+unix:///session that is what gnome-boxes do connect to qemu by user session, seem like there is no way to that with vagrant yeat look at this threat link text Hope this help.

aeperezt gravatar imageaeperezt ( 2017-10-30 22:10:15 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2017-10-30 19:48:18 -0500

Seen: 105 times

Last updated: Oct 30 '17