Skip to contentSkip to conversation

support/misc/Vagrantfile: bump to ubuntu 16.04

PATCH Superseded Angelo Compagnucci 4 participants 10 messages Oct 17, 2016 – Oct 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

* Updating to ubuntu 16.04
* Fixing dependencies
* Fixing locale complaints
* Removing unused packages

---
Changelog

* Changed to C locale as suggested by Arnout Vandecappelle

 support/misc/Vagrantfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
support/misc/Vagrantfile +6 -3
index cf269fe..5e56d5d 100644
@@ -12,7 +12,7 @@ VM_MEMORY=2048
 VM_CORES=1
 
 Vagrant.configure('2') do |config|
-	config.vm.box = 'ubuntu/trusty64'
+	config.vm.box = 'bento/ubuntu-16.04'
 
 	config.vm.provider :vmware_fusion do |v, override|
 		v.vmx['memsize'] = VM_MEMORY
@@ -44,10 +44,13 @@ Vagrant.configure('2') do |config|
 	config.vm.provision 'shell', inline:
 		"sudo dpkg --add-architecture i386
 		sudo apt-get -q update
+		sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
+		sudo apt-get -q -y upgrade
 		sudo apt-get -q -y install build-essential libncurses5-dev \
-			git bzr cvs mercurial subversion libc6:i386 unzip
+			git bzr cvs mercurial subversion libc6:i386 unzip bc
 		sudo apt-get -q -y autoremove
-		sudo apt-get -q -y clean"
+		sudo apt-get -q -y clean
+		sudo update-locale LC_ALL=C"
 
 	config.vm.provision 'shell', privileged: false, inline:
 		"echo 'Downloading and extracting buildroot #{RELEASE}'
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

Hello,

support/misc/Vagrantfile Vagrant.configure('2') do |config| · line 47

Quoted 1 line · Angelo Compagnucci
support/misc/Vagrantfile +1 -0
+		sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine

Why are you doing this step?

Thanks,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
#2 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

Dear Thomas,

2016-10-18 11:46 GMT+02:00 Thomas Petazzoni <
[email protected]>:

Quoted 9 lines

Hello,

Quoted 1 line · Angelo Compagnucci

+ sudo apt-get purge -q -y snapd lxcfs lxd

ubuntu-core-launcher snap-confine

Why are you doing this step?

Ubuntu 16.04 introduced a number of services releated to the ops world and they are not strictly releated to our use case. So I'm removing them to free some space on disk and gain a bit of cpu cycles.

Quoted 8 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161018/d556a9f8/attachment.html>
#5 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

In reply to Angelo Compagnucci
Quoted 6 lines · Angelo Compagnucci

* Updating to ubuntu 16.04
* Fixing dependencies
* Fixing locale complaints
* Removing unused packages

Regards,
Arnout

Quoted 38 lines

---
Changelog

* Changed to C locale as suggested by Arnout Vandecappelle

 support/misc/Vagrantfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
support/misc/Vagrantfile +6 -3
index cf269fe..5e56d5d 100644
@@ -12,7 +12,7 @@ VM_MEMORY=2048
 VM_CORES=1
 
 Vagrant.configure('2') do |config|
-	config.vm.box = 'ubuntu/trusty64'
+	config.vm.box = 'bento/ubuntu-16.04'
 
 	config.vm.provider :vmware_fusion do |v, override|
 		v.vmx['memsize'] = VM_MEMORY
@@ -44,10 +44,13 @@ Vagrant.configure('2') do |config|
 	config.vm.provision 'shell', inline:
 		"sudo dpkg --add-architecture i386
 		sudo apt-get -q update
+		sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine
+		sudo apt-get -q -y upgrade
 		sudo apt-get -q -y install build-essential libncurses5-dev \
-			git bzr cvs mercurial subversion libc6:i386 unzip
+			git bzr cvs mercurial subversion libc6:i386 unzip bc
 		sudo apt-get -q -y autoremove
-		sudo apt-get -q -y clean"
+		sudo apt-get -q -y clean
+		sudo update-locale LC_ALL=C"
 
 	config.vm.provision 'shell', privileged: false, inline:
 		"echo 'Downloading and extracting buildroot #{RELEASE}'
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#3 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

In reply to Angelo Compagnucci
Quoted 9 lines · Angelo Compagnucci

Dear Thomas,

2016-10-18 11:46 GMT+02:00 Thomas Petazzoni <[email protected] <mailto:[email protected]>>:

Hello,

On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:

Quoted 8 lines

> + sudo apt-get purge -q -y snapd lxcfs lxd ubuntu-core-launcher snap-confine

Why are you doing this step?

Ubuntu 16.04 introduced a number of services releated to the ops world and they are not strictly releated to our use case. So I'm removing them to free some space on disk and gain a bit of cpu cycles.

I'm completely on board with doing that. Although it's really only snapd that
takes space (25MB). There may even be more cruft that can be removed, but people can contribute if they want to :-).

BTW, how are you going to gain CPU cycles this way?

Quoted 22 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Signature · 7 lines
Profile: http://it.linkedin.com/in/compagnucciangelo


_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#4 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

Dear Arnout,

2016-10-18 14:03 GMT+02:00 Arnout Vandecappelle <[email protected]>:

Quoted 25 lines · Angelo Compagnucci
Quoted 3 lines

Dear Thomas,

2016-10-18 11:46 GMT+02:00 Thomas Petazzoni <thomas.petazzoni@free-

electrons.com

Quoted 7 lines

<mailto:[email protected]>>:

Hello,

On Mon, 17 Oct 2016 23:53:02 +0200, Angelo Compagnucci wrote:

> + sudo apt-get purge -q -y snapd lxcfs lxd

ubuntu-core-launcher snap-confine

Quoted 5 lines

Why are you doing this step?

Ubuntu 16.04 introduced a number of services releated to the ops world

and they

Quoted 1 line

are not strictly releated to our use case. So I'm removing them to free

some

Quoted 1 line

space on disk and gain a bit of cpu cycles.

Quoted 8 lines

I'm completely on board with doing that. Although it's really only snapd
that
takes space (25MB). There may even be more cruft that can be removed, but people
can contribute if they want to :-).

BTW, how are you going to gain CPU cycles this way?

They runs several background services (like snapd, lxcfs) that potentially could use cpu to do thier unnecessary (for us) duties.

Sincerely, Angelo

Quoted 32 lines
Quoted 14 lines

Thanks,

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Quoted 9 lines

--
Profile: http://it.linkedin.com/in/compagnucciangelo

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

--

Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161018/9743b1d1/attachment.html>
#6 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

In reply to Angelo Compagnucci

Hello,

Quoted 8 lines · Angelo Compagnucci

* Updating to ubuntu 16.04
* Fixing dependencies
* Fixing locale complaints
* Removing unused packages

---
Changelog

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#7 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

In reply to Angelo Compagnucci
Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]> writes:

* Updating to ubuntu 16.04
* Fixing dependencies
* Fixing locale complaints
* Removing unused packages

---
Changelog

* Changed to C locale as suggested by Arnout Vandecappelle

 support/misc/Vagrantfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
support/misc/Vagrantfile +0 -0
index cf269fe..5e56d5d 100644

support/misc/Vagrantfile VM_MEMORY=2048 · line 15

Quoted 5 lines
support/misc/Vagrantfile +1 -1
@@ -12,7 +12,7 @@ VM_MEMORY=2048
 VM_CORES=1
 
 Vagrant.configure('2') do |config|
-	config.vm.box = 'ubuntu/trusty64'
+	config.vm.box = 'bento/ubuntu-16.04'

What is the reason to use a base image from the bento project instead of the official ubuntu image?

https://atlas.hashicorp.com/ubuntu/boxes/xenial64

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

Hi Peter,

2016-10-22 14:00 GMT+02:00 Peter Korsgaard <[email protected]>:

Quoted 24 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]>

Quoted 20 lines · writes:

* Updating to ubuntu 16.04
* Fixing dependencies
* Fixing locale complaints
* Removing unused packages

---
Changelog

* Changed to C locale as suggested by Arnout Vandecappelle

 support/misc/Vagrantfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
support/misc/Vagrantfile +0 -0
index cf269fe..5e56d5d 100644
@@ -12,7 +12,7 @@ VM_MEMORY=2048
 VM_CORES=1
Quoted 8 lines

support/misc/Vagrantfile VM_MEMORY=2048 · line 15

Quoted 3 lines
support/misc/Vagrantfile +1 -1
 Vagrant.configure('2') do |config|
-    config.vm.box = 'ubuntu/trusty64'
+    config.vm.box = 'bento/ubuntu-16.04'

What is the reason to use a base image from the bento project instead of the official ubuntu image?

https://atlas.hashicorp.com/ubuntu/boxes/xenial64

The official images from Canonical are broken in many ways, for example this bug [1] prevents the image working properly cause it lacks the vagrant user.

Bento images are instead very well tested and triaged from the Chef team, you can find more info here [2]

[1] https://bugs.launchpad.net/cloud-images/+bug/1569237
[2] http://chef.github.io/bento/

Sincerely, Angelo

Quoted 5 lines

--
Bye, Peter Korsgaard

Signature · 4 lines
Profile: http://it.linkedin.com/in/compagnucciangelo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20161025/2f2c0cf7/attachment.html>
#9 lore raw

PATCH v2 1/1 support/misc/Vagrantfile: bump to ubuntu 16.04

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Angelo" == Angelo Compagnucci <[email protected]> writes:

Hi,

Quoted 13 lines
Quoted 8 lines

support/misc/Vagrantfile VM_MEMORY=2048 · line 15

Quoted 3 lines

Vagrant.configure('2') do |config|

support/misc/Vagrantfile +1 -1
-    config.vm.box = 'ubuntu/trusty64'
+    config.vm.box = 'bento/ubuntu-16.04'

What is the reason to use a base image from the bento project instead of the official ubuntu image?

https://atlas.hashicorp.com/ubuntu/boxes/xenial64

The official images from Canonical are broken in many ways, for example this bug [1] prevents the image working properly cause it lacks the vagrant user.

Quoted 5 lines

Bento images are instead very well tested and triaged from the Chef team, you can find more info here [2]

[1] https://bugs.launchpad.net/cloud-images/+bug/1569237
[2] http://chef.github.io/bento/

Ok, thanks - That would have been useful information in the commit message.

Signature · 2 lines
Venlig hilsen,
Peter Korsgaard