Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenStack: Operators

CentOS Image

 

 

First page Previous page 1 2 Next page Last page  View All OpenStack operators RSS feed   Index | Next | Previous | View Threaded


lorin at nimbisservices

Jul 23, 2013, 7:56 PM

Post #26 of 27 (54 views)
Permalink
Re: CentOS image [In reply to]

Robert:

I don't see any advantage to using LVM inside of VM images. I bring it up
because CentOS partitions using LVM by default, so it's important to make
explicit to the user that they need to do a single partition without LVM to
use this script.

Lorin


On Mon, Jul 22, 2013 at 4:35 AM, Robert Plestenjak <
robert.plestenjak [at] xlab> wrote:

> Looked script again and no, it does not work with LVM. Is there any real
> need for this? LVM is not really needed for cloud virtual environments (my
> opinion only).
>
> - Robert
>
> ----- Original Message -----
> From: "Robert Plestenjak" <robert.plestenjak [at] xlab>
> To: openstack-operators [at] lists
> Sent: Monday, July 22, 2013 9:19:53 AM
> Subject: Re: [Openstack-operators] CentOS image
>
> 1. It should work with LVM.
>
> 2. Yes, /boot does mess things up. Script is working under assumption that
> boot is under /.
>
> - Robert
>
> ----- Original Message -----
> From: "Lorin Hochstein" <lorin [at] nimbisservices>
> To: "Robert Plestenjak" <robert.plestenjak [at] xlab>
> Cc: openstack-operators [at] lists
> Sent: Sunday, June 30, 2013 8:46:26 PM
> Subject: Re: [Openstack-operators] CentOS image
>
>
> Robert:
>
>
> This script doesn't support LVM partitions, does it?
>
>
> Also, I've discovered that it breaks if there's a /boot partition.
> Apparently, if a boot partition is present then grub prepends a "/boot" to
> the paths for the kernel and ramdisk, and this script also prepends /boot.
>
>
> Lorin
>
>
>
> On Tue, Jun 11, 2013 at 8:38 AM, Robert Plestenjak <
> robert.plestenjak [at] xlab > wrote:
>
>
> Almost forgot, don't forget to install 'wget' and 'openssh-clients'
>
>
> - Robert
>
> ----- Original Message -----
>
> From: "Robert Plestenjak" < robert.plestenjak [at] xlab >
> To: openstack-operators [at] lists
> Sent: Tuesday, June 11, 2013 11:35:01 AM
> Subject: Re: [Openstack-operators] CentOS image
>
>
>
> Yes, that would be great.
>
> You can also create image manually in KVM, until proper tools are ready.
>
> 1. create disk image with QCOW2 format
>
> qemu-img create -f qcow2 -o preallocation=metadata
> /extra/libvirt/images/centos-6-cloud.qcow2 2G
>
> 2. install centos, I recomend only one partition and no swap (in grizzly,
> you can set swap size in flavor)
>
> virt-install --name=centos-6-cloud --disk
> path=/extra/libvirt/images/centos-6-cloud.qcow2,format=qcow2 -r 1024
> --vcpus=1 --hvm -c /extra/iso/CentOS-6.3-x86_64-minimal.iso
>
> 3. login into your new image and modify
> '/etc/sysconfig/network-scripts/ifcfg-eth0' to look like this
>
> DEVICE="eth0"
> BOOTPROTO="dhcp"
> NM_CONTROLLED="no"
> ONBOOT="yes"
> TYPE="Ethernet"
>
> 4. add EPEL repository and update OS
>
> wget
> http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
> rpm -ivh epel-release-6-8.noarch.rpm
>
> 5. install cloud-utils and cloud-init
>
> yum update
> yum install cloud-utils, cloud-init
>
> 6. Download 'centos-image-mod.sh' and 'init-part' together in same
> directory, run 'centos-image-mod.sh'. This will modify initrd and grub.conf.
>
> 6.1. Edit '/boot/grub/grub.conf', check if everything is OK. Also, may not
> be a bad idea to set timeout to 0.
>
> 7. Delete '/etc/udev/rules.d/70-persistent-net.rules', this will be auto
> created during boot. Don't forget this, since you won't have functional
> network when you bring this image up on Openstack.
>
> 8. Power down your virtual Centos
>
> 9. Compress QCOW2 image with
>
> qemu-img convert -c /extra/libvirt/images/centos-6-cloud.qcow2 -O qcow2
> /tmp/centos.qcow2
>
>
> Image /tmp/centos.qcow2 is now ready for upload to Openstack
>
> - Robert
>
>
> On 16 May 2013 21:08, Robert Plestenjak < robert.plestenjak [at] xlab >
> wrote:
> > This script will modify initrd for image resize during boot, redirect
> boot log messages to ttyS0 and set NOOP sceduler. Tested on CentOS 6.3 and
> 6.4.
> >
> > https://github.com/flegmatik/centos-image-resize
>
> This would be lovely to integrate into diskimage-builder [as part of a
> CentOS supporting element].
>
> -Rob
>
> --
> Robert Collins < rbtcollins [at] hp >
> Distinguished Technologist
> HP Cloud Services
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators [at] lists
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators [at] lists
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
>
>
>
> --
>
> Lorin Hochstein
>
> Lead Architect - Cloud Services
> Nimbis Services, Inc.
> www.nimbisservices.com
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators [at] lists
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators [at] lists
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>



--
Lorin Hochstein
Lead Architect - Cloud Services
Nimbis Services, Inc.
www.nimbisservices.com


eric.grejda at emergentspace

Jul 24, 2013, 6:00 AM

Post #27 of 27 (53 views)
Permalink
Re: CentOS image [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/23/2013 10:56 PM, Lorin Hochstein wrote:

> I don't see any advantage to using LVM inside of VM images. I bring
> it up because CentOS partitions using LVM by default, so it's
> important to make explicit to the user that they need to do a
> single partition without LVM to use this script.

Templating.

The way we use virtualization is that we have a small library of VM
templates which are pre-configured, patched, and hardened that we
instantiate for specific tasks. There is no way of knowing ahead of
time how much storage space a VM is actually going to need (is it
going to be a file server? an IM server? a shell VM for a remote
user?) so we used LVM when setting up the file system in the template.
That way, if a particular VM is likely to need more disk space we can
add an additional virtual drive to the VM of a more appropriate size
and grow the file system onto it.

- --
Eric Grejda - IT Administrator, Emergent Space Technologies
PGP: 3651F89F / D04B D4D0 E5E2 5746 7CB7 05CA 1C92 4610 3651 F89F

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlHvz/EACgkQHJJGEDZR+J8elgCeOKOCl08O7a4SjAWPOGDNuV3z
nRsAn2a59L+wg5fZZSvFwQMbLOMNMrUD
=j5Nj
-----END PGP SIGNATURE-----

_______________________________________________
OpenStack-operators mailing list
OpenStack-operators [at] lists
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

First page Previous page 1 2 Next page Last page  View All OpenStack operators RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.