Can not bootstrap juju on a brand new Ubuntu 12.04 VM

Haitao Jiang jianghaitao at gmail.com
Thu May 10 04:05:29 UTC 2012


Right on!

I found out that as well. But I choose to reboot the machine after
adding myself to the group. I do not remember I need to do that for
11.10 though. I think following your steps is better.

I think the key is that I should be able to view the default using
net-list without sudo, otherwise, I would encounter the problem during
the bootstrap - this could be a pre-step before doing bootstrap and
become frustrated.

Thanks all for your help!

Haitao

On Wed, May 9, 2012 at 8:39 PM, Marco Ceppi <marco at ondina.co> wrote:
> Hi Haitao,
>
> This happens because you're likely not a member of the libvirtd group.
> You can confirm this by running "groups" in the command-line. If
> libvirtd isn't in that list you'll need to do the following:
>
> sudo usermod -a -G libvirtd <YOUR_USER>
>
> Once you've added yourself to the group you can either log out/back in
> or just run:
>
> newgrp libvirtd
>
> This will set up that terminal session (and you user for that terminal
> session) to be a part of the libvirtd group. From here you should be
> able to run juju bootstrap.
>
> Thanks,
> Marco Ceppi
>
> On Wed, 2012-05-09 at 19:21 -0700, Haitao Jiang wrote:
>> Hi, there
>>
>> Since I have been having various problems with upgraded 12.04 (11.10),
>> I created a brand new VM from 12.04 ISO, did update and upgrade and
>> installed the juju, however,
>>
>> $ juju bootstrap
>> 2012-05-09 18:08:47,157 INFO Bootstrapping environment 'local'
>> (origin: distro type: local)...
>> 2012-05-09 18:08:47,158 INFO Checking for required packages...
>> 2012-05-09 18:08:50,061 INFO Starting networking...
>> Network default defined from /tmp/tmpVS3o07
>>
>> error: Failed to start network default
>> error: internal error Network is already in use by interface virbr0
>>
>> Command '['virsh', 'net-start', 'default']' returned non-zero exit status 1
>> 2012-05-09 18:08:50,551 ERROR Command '['virsh', 'net-start',
>> 'default']' returned non-zero exit status 1
>>
>> ------------
>>
>> I rebooted after installing and change /etc/sysctl.conf, still have
>> these problems, really frustrated.
>>
>> Thanks for any help
>>
>> Haitao
>>
>
>
>
> --
> Juju mailing list
> Juju at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju



More information about the Juju mailing list