fgrehm/vagrant-lxc

Error executing `lxc-info` with `-iH`

planetmarshall opened this issue · 2 comments

Getting the following error -

There was an error executing ["sudo", "/usr/local/bin/vagrant-lxc-wrapper", "lxc-info", "--name", "container", "-iH"]

From

.vagrant.d/gems/2.3.4/gems/vagrant-lxc-1.4.2/lib/vagrant-lxc/action/fetch_ip_with_lxc_info.rb:35:in `get_container_ip_from_ip_addr'

Tried the following on the command line

$ sudo /usr/local/bin/vagrant-lxc-wrapper lxc-info --name container -iH
Invalid arguments for command /usr/bin/lxc-info, provided args: ["--name", "container", "-iH"]
$ sudo /usr/local/bin/vagrant-lxc-wrapper lxc-info --name container
Name:           container
State:          RUNNING
PID:            28479
IP:             10.0.3.162
CPU use:        2.98 seconds
BlkIO use:      992.00 KiB
Memory use:     18.23 MiB
KMem use:       7.78 MiB
Link:           vethI15IDB
 TX bytes:      4.83 KiB
 RX bytes:      16.44 KiB
 Total bytes:   21.28 KiB

Using

  • lxc-info 3.0.1
  • vagrant-lxc 1.4.2
  • Vagrant 1.9.8
  • Ubuntu 18.04

This sounds like an outdated sudoers file. Did you try running vagrant lxc sudoers again?

Yep, that's done the trick. Thanks for the rapid response.