• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How to Run Rackspace Cloud Server Image on Local Computer

By Abhishek Ghosh April 8, 2014 6:28 am Updated on April 8, 2014

How to Run Rackspace Cloud Server Image on Local Computer

Advertisement

How to Run Rackspace Cloud Server Image on Local Computer? Will it not be great if we can run just a mirror copy of our whole server locally? Theoretically it is closer to the concept of Virtual Appliance. If you are used with the terminology, you can watch the video on Creating WordPress Virtual Appliance Guide.

Actually, the thing recently has been made official by Rackspace by feature. We are not describing the new method. For First Generation Cloud Servers, it is quite easy to run such image. But for the New Generation Performance Servers, in order to run Rackspace Cloud Server image on Local computer, you need to work and learn a bit more.

 

How to Run Rackspace Cloud Server Image on Local Computer : First Know the Basics

 

Actually, the mechanism is not so easy in the way we create a Virtual Appliance. The reason is security – it will be a dangerous situation if the system was not API based. There are huge number of basic questions and answers on Rackspace Cloud Server Image on official Website :

Advertisement

---

Vim
1
http://www.rackspace.com/knowledge_center/article/cloud-images-frequently-asked-questions

For security reasons, some parts are not exposed. Image storing is part of OpenStack Glance and OpenStack Swift. At emergency you will get the backup on request.

 

How to Run Rackspace Cloud Server Image on Local Computer

 

The hack to get the image was discovered by some users; if you go to Cloud Server Webpage, select the Images tab and create an on-demand image; in Cloud Files there should be the file there named like

Vim
1
servername_date_number_somestring.tar.gz.0

You have to download the image to your server. The easiest way to do this on Ubuntu is to use Swift API based authentication.

Vim
1
2
#Install Swift
sudo apt-get install swift

Then run it :

Vim
1
swift -A https://auth.api.rackspacecloud.com/v1.0 -U username -K API_key download cloud servers myservername_YYYYMMDD_XXXXX_cloudserverZZZZZ.tar.gz.0

When the download is done, uncompress the downloaded file (tar zxf myservername_YYYYMMDD_XXXXX_cloudserverZZZZZ.tar.gz.0). There will be the following files:

Vim
1
2
3
4
--image
    +-image.vhd
    +-manifest.ovf
    +-snap.vhd

image.vhd is the thing we are interested, it has the root partition from the cloud server. We need to convert it to a raw disk image.

Vim
1
2
3
4
5
6
#install the utility
sudo apt-get install qemu-utils
#convert the image.vhd to workable thing
qemu-img convert -p image.vhd disk.img
#perform a check
fdisk -l disk.img

Follow these steps :

How to Run Rackspace Cloud Server Image on Local Computer

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#swap volumes
# LXYG should be like L30G, XY is yours
lvcreate -LXYG -n myservername-disk vg0 and lvcreate -LXYG -Cy -n servername-swap vg0
# initialize the swap disk
mkswap /dev/vg0/myservername-swap
#copy disk image
dd if=disk.img of=/dev/vg0/servername-disk bs=4096 skip=256
# check
e2fsck -f /dev/vg0/myservername-disk
resize2fs -p /dev/vg0/myservername-disk
e2fsck -f /dev/vg0/myservername-disk    
# virtual disk settings on your virtual machine
# creating grub menu.lst file.
 
more tmp/etc/fstab
more tmp/boot/grub/menu.lst
 
# network settings of DomU
nano tmp/etc/network/interfaces

Editing the above is most critical.

Create a xen config file for your imported DomU :

Vim
1
nano /etc/xen/servername.cfg

Example config :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name = "servername"
bootloader = '/usr/lib/xen-default/bin/pygrub'
#uncomment the following if you want to boot into single user mode
#extra = " single"
vcpus       = '2'
memory      = '512'
#
#  Disk device(s). (Use the correct mappings from step 12.)
#
disk        = [
                  'phy:/dev/vg0/myservername-disk,xvda1,w',
                  'phy:/dev/vg0/myservername-swap,xvda2,w',
              ]
#
#  Networking
#
vif         = [ 'bridge=xenbr0' ]
#
#  Behaviour
#
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'

Done, attach a console :

Vim
1
xm create -c /etc/xen/myservername.cfg

Those who are using Performance Server or higher, they have more flexibility. However, that is a different story.

Tagged With download Rackspace server image , https://thecustomizewindows com/2014/04/run-rackspace-cloud-server-image-local-computer/ , import rackspace image vhd grub , rackspace server imaging , run rackspace image locally
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Run Rackspace Cloud Server Image on Local Computer

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Add Swap or Virtual Memory on Rackspace Cloud Server (Ubuntu)

    Here is how to add Swap or Virtual Memory on Rackspace Cloud Server Instance running Ubuntu 14.04 LTS. Swap can save instance from complete failure.

  • Install WordPress on Rackspace Cloud Server : Step by Step Guide

    Install Wordpress on Rackspace Cloud Server on Rackspace Cloud Server within few minutes, UNIX commands are included in this step by step guide.

  • Installing WordPress on Rackspace Cloud Server with Cloud Database

    Installing WordPress on Rackspace Cloud Server with Cloud Database can give you a good performance with scalable and economically best solution. Simple Guide.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy