1

I'm trying to install juju on local environment. For that I installed Ubuntu Server 12.10 and I followed this juju Getting Started tutorial. At the step where I run the following command:

sudo usermod -a -G libvirtd <YOUR_USER>

The error is reported:

usermod : group 'libvirtd' does not exist

Does someone have ever had this problem and can help me?

3
  • Welcome to Ask Ubuntu! Do you have Libvirt installed? This system group is being created by the package libvirt-bin if I recall correctly. The steps just above that command will have you install this...
    – gertvdijk
    Jan 31, 2013 at 14:54
  • No I haven't install libvirt-bin maybe it's the problem. Edit : It works ! Thanks for you quick answer
    – lomsansnom
    Jan 31, 2013 at 15:17
  • I was reading the guide too quickly for my previous comment. See my answer.
    – gertvdijk
    Jan 31, 2013 at 16:46

2 Answers 2

3

You don't need to run this command. The guide states:

pre v0.6 users only Then you need to add yourself to the libvirtd group:

sudo usermod -a -G libvirtd <YOUR_USER>

As Ubuntu 12.10 provides juju version 0.6, this does not apply.


To explain a bit more on the error you got, the libvirt-bin package (the base of Libvirt basically) will create this system user group for you. Because you don't need to install this for 0.6 version of Juju, it's not installed and you'll get the error about the group specified not being a valid existent group. The command is listed for pre-0.6 versions and the guide also lists this package to the lists of packages to install for these older versions.

-1

log in as root using this command su - than use the command adduser libvirtd after that for checking it try the same cmd with same user name if it already added you than it will show you "The user your user name' is already a member oflibvirtd'."

1
  • adduser libvirtd won't help with a missing group libvirtd because adduser doesn't create user groups. -1 Jan 21, 2017 at 21:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .