Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to update jessie box #10

Closed
erickeller opened this issue May 16, 2014 · 10 comments
Closed

failed to update jessie box #10

erickeller opened this issue May 16, 2014 · 10 comments

Comments

@erickeller
Copy link

Hi, I was trying out your script and the following error occured:

make jessie [master]
==> [jessie] Building box to 'output/2014-05-16/vagrant-lxc-jessie-amd64.box'...
==> [jessie] The 'vagrant-base-jessie-amd64' container already exists, do you want to continue building the box? [Y/n] Y
==> [jessie] Do you want to rebuild the 'vagrant-base-jessie-amd64' container? [y/N]
[jessie] Reusing existing container...
[jessie] Running [/usr/sbin/update-rc.d -f checkroot-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [/usr/sbin/update-rc.d -f mountall-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [/usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [/usr/sbin/locale-gen en_US.UTF-8] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [update-locale LANG=en_US.UTF-8] inside 'vagrant-base-jessie-amd64' container...
==> [jessie] Installing extra packages and upgrading
[jessie] Sleeping for 5 seconds...
[jessie] Running [apt-get update] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [apt-get install vim nfs-common curl wget man-db bash-completion python-software-properties ca-certificates sudo -y --force-yes] inside 'vagrant-base-jessie-amd64' container...
make: *** [jessie] Error 100

Cheers

@fgrehm
Copy link
Owner

fgrehm commented May 29, 2014

It works for me using latest master :-(

$ make jessie
[sudo] password for fabio: 
==> [jessie] Building box to 'output/2014-05-29/vagrant-lxc-jessie-amd64.box'...
    [jessie] Creating container...
    [jessie] Container created!
    [jessie] Adding ipv6 allhosts entry to container's /etc/hosts
    [jessie] Running [/usr/sbin/update-rc.d -f checkroot-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Running [/usr/sbin/update-rc.d -f mountall-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Running [/usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Running [/usr/sbin/locale-gen en_US.UTF-8] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Running [update-locale LANG=en_US.UTF-8] inside 'vagrant-base-jessie-amd64' container...
==> [jessie] Installing extra packages and upgrading
    [jessie] Sleeping for 5 seconds...
    [jessie] Running [apt-get update] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Running [apt-get install vim nfs-common curl wget man-db bash-completion python-software-properties ca-certificates sudo -y --force-yes] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Running [apt-get upgrade -y --force-yes] inside 'vagrant-base-jessie-amd64' container...
    [jessie] Skipping Chef installation
    [jessie] Skipping Puppet installation
    [jessie] Skipping Salt installation
    [jessie] Skipping Babushka installation
==> [jessie] Preparing vagrant user...
    [jessie] SSH credentials configured for the vagrant user.
    [jessie] Sudoers file created.
==> [jessie] Cleaning up 'vagrant-base-jessie-amd64'...
    [jessie] Removing temporary files...
    [jessie] Removing downloaded packages...
    [jessie] Running [apt-get clean] inside 'vagrant-base-jessie-amd64' container...
==> [jessie] Packaging 'vagrant-base-jessie-amd64' to 'output/2014-05-29/vagrant-lxc-jessie-amd64.box'...
    [jessie] Compressing container's rootfs
    [jessie] Preparing box package contents
    [jessie] Packaging box
==> [jessie] Finished building 'output/2014-05-29/vagrant-lxc-jessie-amd64.box'!
    [jessie] Run `sudo lxc-destroy -n vagrant-base-jessie-amd64` or `make clean` to remove the container that was created along the way

Do you mind giving it another shot?

@erickeller
Copy link
Author

giving it a try right now creating a container... let you know if it worked out
thank

@erickeller
Copy link
Author

==> [jessie] Building box to 'output/2014-05-29/vagrant-lxc-jessie-amd64.box'...
[jessie] Creating container...

[jessie] Container created!
[jessie] Adding ipv6 allhosts entry to container's /etc/hosts
[jessie] Running [/usr/sbin/update-rc.d -f checkroot-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [/usr/sbin/update-rc.d -f mountall-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [/usr/sbin/update-rc.d -f mountnfs-bootclean.sh remove] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [/usr/sbin/locale-gen en_US.UTF-8] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [update-locale LANG=en_US.UTF-8] inside 'vagrant-base-jessie-amd64' container...

==> [jessie] Installing extra packages and upgrading
[jessie] Sleeping for 5 seconds...
[jessie] Running [apt-get update] inside 'vagrant-base-jessie-amd64' container...
[jessie] Running [apt-get install vim nfs-common curl wget man-db bash-completion python-software-properties ca-certificates sudo -y --force-yes] inside 'vagrant-base-jessie-amd64' container...
Makefile:26: recipe for target 'jessie' failed
make: *** [jessie] Error 100

@erickeller
Copy link
Author

it's apparently not the line 26 since the directory was created output/2014-05-29
I was able to attach the container and there is no interfaces configured meaning it won't be able to perform the installation of the extra packages => apt-get install vim nfs-common curl wget man-db bash-completion python-software-properties ca-certificates sudo -y --force-yes] inside 'vagrant-base-jessie-amd64' container... fails

here is the container configuration:

/var/lib/lxc/vagrant-base-jessie-amd64# cat config 
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --dist debian --release jessie --arch amd64
# For additional config options, please look at lxc.conf(5)

# Distribution configuration
lxc.include = /usr/share/lxc/config/debian.common.conf
lxc.arch = x86_64

# Container specific configuration
lxc.rootfs = /var/lib/lxc/vagrant-base-jessie-amd64/rootfs
lxc.utsname = vagrant-base-jessie-amd64

# Network configuration
lxc.network.type = empty

Regards

@erickeller
Copy link
Author

I forgot to mention, I am under Linux Debian Jessie when I invoke: make jessie

@fgrehm
Copy link
Owner

fgrehm commented May 29, 2014

Oh, what are the contents of your /etc/lxc/default.conf? I'm under Ubuntu 14.04 and by default it comes with networking enabled:

$ cat /etc/lxc/default.conf 
lxc.network.type = veth
lxc.network.link = lxcbr0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:xx:xx:xx

@fgrehm
Copy link
Owner

fgrehm commented May 29, 2014

BTW, you might also want to check the log file created under the project's ./log/vagrant-base-jessie-amd64.log for more info as well ;-)

@erickeller
Copy link
Author

cat /etc/lxc/default.conf
lxc.network.type = empty

that's probably the issue...

@erickeller
Copy link
Author

I did follow your instructions https://github.com/fgrehm/vagrant-lxc/wiki/Usage-on-debian-hosts
but there is probably some instructions missing when you are working from a laptop where the interface bridging is not eth0 but wlan0...

I will give it a try, and probably this will work out

@fgrehm
Copy link
Owner

fgrehm commented Dec 6, 2015

I've stepped down as a maintainer of the plugin and I'm no longer maintaining this repo. Feel free to use it as a starting point for your own boxes and if you need any help with that just LMK! 🍻

@fgrehm fgrehm closed this as completed Dec 6, 2015
DavBfr pushed a commit to DavBfr/vagrant-lxc-base-boxes that referenced this issue Dec 4, 2016
update outdated instructions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants