Bug 215258 - Update openstack.conf options
Summary: Update openstack.conf options
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Some People
Assignee: Glen Barber
URL:
Keywords: patch
Depends on:
Blocks: 213396
  Show dependency treegraph
 
Reported: 2016-12-13 04:31 UTC by Diego Casati
Modified: 2018-05-23 10:28 UTC (History)
1 user (show)

See Also:


Attachments
add missing parameters when creating a FreeBSD image for OpenStack (1.94 KB, text/plain)
2016-12-13 04:31 UTC, Diego Casati
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Casati 2016-12-13 04:31:13 UTC
Created attachment 177922 [details]
add missing parameters when creating a FreeBSD image for OpenStack

Hi --

This patch adds the following functionality to the FreeBSD OpenStack image:

- resize FreeBSD to the size of the OpenStack flavor (growfs).
- speeds up the boot process by disabling sendmail.
- allows an user to ssh as root with a public key.
- make ssh respond faster by disabling DNS lookups (can be reverted).
- enable DHCP on the vtnet interface.

This will generate a qcow2 image with 1.4G in size. The entire process uses the release(7) toolchain to generate the image and should work with newer versions of FreeBSD. Tested with 11.0-RELEASE-p1 and also tested on OpenStack Mitaka.

To generate your own image:

1. Follow the regular process of build(7) -  buildworld buildkernel
2. cd /usr/src/release
3. make cloudware-release WITH_CLOUDWARE=yes CLOUDWARE=OPENSTACK VMIMAGE=2G

relates to: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213396

thanks,
-dcasati
Comment 1 commit-hook freebsd_committer 2016-12-14 03:06:28 UTC
A commit references this bug:

Author: gjb
Date: Wed Dec 14 03:01:16 UTC 2016
New revision: 310047
URL: https://svnweb.freebsd.org/changeset/base/310047

Log:
  - Resize FreeBSD to the size of the OpenStack flavor (growfs).
  - Speeds up the boot process by disabling sendmail.
  - Allows an user to ssh as root with a public key.
  - Make ssh(1) respond faster by disabling DNS lookups.
  - Enable DHCP on the vtnet(4) interface.

  Note: The CLOUDWARE list has not yet been changed to include the
  OpenStack target by default yet.

  Submitted by:	Diego Casati
  PR:		215258
  MFC after:	1 week
  Sponsored by:	The FreeBSD Foundation

Changes:
  head/release/tools/openstack.conf
Comment 2 Glen Barber freebsd_committer 2016-12-14 03:15:09 UTC
Thank you for the patch.

I want to look at a better way to make the OpenStack images different size before enabling these image builds again (PR 213396).  Something in your patch gave me an idea.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2018-05-23 10:28:00 UTC
batch change of PRs untouched in 2018 marked "in progress" back to open.