CSS Corp Open Source Services

Archive for the ‘euca-bundle-images’ Category

[Eucalyptus Beginner’s Guide – UEC edition] Chapter 1 – Introduction to UEC and its components

with 3 comments

Chapter 2
Installation & Configuration

Cloud

Cloud Computing is a computing model, where resources such as computing power, storage, network and software are abstracted and provided as services on the Internet in a remotely accessible fashion. Billing models for these services are generally similar to the ones adopted for public utilities. On-demand availability, ease of provisioning, dynamic and virtually infinite scalability are some of the key attributes of Cloud Computing.

An infrastructure setup using the cloud computing model is generally referred to as ‘Cloud’. The following are the broad categories of services available on the ‘Cloud’:

  1. Infrastructure As A Services (IAAS)
  2. Platform As A Service (PAAS)
  3. Software As A Service (SAAS)

This ‘Cloud’ is generally available as service to anyone on the Internet. However, a variant called ‘Private Cloud’ is increasingly becoming popular for private infrastructure that has some of the attributes of the ‘Cloud’ as mentioned above.

Amazon Web Services is one of the major players providing IAAS. They have 2 popular services – Elastic Compute Cloud(EC2) and Simple Storage Service(S3). These services are available through web services interfaces. The client tools can use EC2 and S3 APIs to communicate with these services. The popularity of these APIs have encouraged other Cloud products to provide support for them as well.

Read the rest of this entry »

Advertisements

[Eucalyptus Beginner’s Guide – UEC edition] Chapter 11 – Hacks

with 8 comments

Chapter 10
Euca Commands

Bringing up a windows instance without using kernel and ramdisk images

Edit /usr/share/eucalyptus/gen_kvm_libvirt_xml to  remove the lines that add “-kernel” and “-initrd” options in the libvirt.xml.

Here is the patch for /usr/share/eucalyptus/gen_kvm_libvirt_xml that ships with Ubuntu 10.04 (Lucid Lynx)

DISCLAIMER: This patch works  with the windows instances  on Lucid Lynx. This would work as long as all your disk images are bootable and you don’t need the kernel and ramdisk images. If you need the flexibility of launching instances using different kernel/ramdisk combinations, this hack is not for you! Read the rest of this entry »

[Eucalyptus Beginner’s Guide – UEC edition] Chapter 5 – Instance Management

with 2 comments

Chapter 4
Image Management
Chapter 6
Storage Management

There are broadly three types of tools that you can use to manage Eucalyptus instances.

  1. Firefox Plugins – Elasticfox and Hybridfox
  2. Command Line tools like euca2ools
  3. Custom applications developed using EC2 APIs. ( Will not be covered in this beginner’s guide )

Elasticfox

Elasticfox is an open source Mozilla Firefox extension that works on Firefox Version 2.0 or later to help you with managing your Amazon EC2 account – Launch new instances, mount Elastic Block Storage volumes, map Elastic IP addresses, and more. This was originally written for EC2, but, since version xxx.xxx, it can also be used for managing your Eucalyptus account as well, because API of Eucalyptus is compatible with that of EC2.

Read the rest of this entry »

UEC: Bundling Windows Image

leave a comment »

Creating new disk image

This will be the main HDD in the virtual image, so make sure to give it as much space as you’ll need. Since we’re building a kvm image, we can use a qcow2 format for disk images. Qcow2 is an expandable image format, so it’ll only take as much storage space as it’s actually used within the image.

$ kvm-img create -f qcow2 win-2k3.img 20G

OS Installation

Get the iso file of the Windows distribution to be installed in the image. And start the installation process.

$sudo kvm -m 1024 -cdrom Win2003_cd1.iso -drive file=win-2k3.img,if=scsi,boot=on -nographic -vnc :0

After finishing the installation and in case the installation needs 2nd CD as well, reboot the VM and launch the VM by the following command.

$ sudo kvm -m 1024 -boot c -cdrom Win2003_cd2.iso -drive file=win-2k3.img,if=scsi,boot=on -nographic -vnc :0

Once installation is complete, create the boot disk needed for Windows 2003 server. Read the rest of this entry »

Written by kiranmurari

March 29, 2010 at 9:46 am

UEC: Bundling Linux Image

leave a comment »

Creating a new disk Image

This will be the main HDD in the virtual image, so make sure to give it as much space as youll need. Since were building a kvm image, we can use a qcow2 format for disk images. Qcow2 is an expandable image format, so itll only take as much storage space as its actually used within the image.

$ kvm-img create -f qcow2 image.img 5G

OS Installation

Download the iso file of the Linux distribution you want installed in the image.

$ wget http://releases.ubuntu.com/karmic/ubuntu-9.04-server-amd64.iso

And start the installation process:

$ sudo kvm -m 256 -cdrom ubuntu-9.04-server-amd64.iso -drive file=image.img,if=scsi,index=0 \
-boot d -net nic,vlan=0,model=e1000,macaddr= 00:16:3e:de:ad:01 -net tap -nographic -vnc :0

If your installation process requires more than 256MB of RAM change the -m option, and if you need more processors available, you can use the -c option.

Read the rest of this entry »

Written by kiranmurari

March 23, 2010 at 8:12 pm