• 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 , import rackspace image vhd grub , rackspace server imaging , run rackspace image locally

This Article Has Been Shared 249 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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 3.6 on Rackspace Cloud Sites and W3 Total Cache 0.9.3 Plugin

    WordPress 3.6 on Rackspace Cloud Sites and W3 Total Cache 0.9.3 Plugin with perfect configuration demands quite good idea on many aspects,here are some for you.

  • Business Intelligence Software in Healthcare

    Increased desire for more and better information by different industries resulted in increased sales of BI software solutions including Healthcare.

  • Photo Gallery Hosting : Free or Nearly Free Practical Options

    Photo gallery hosting can be Free or nearly Free with various Cloud based and Free Softwares. It is possible to run a website that has your photos with no cost.

  • Cloud Computing and Actions Against Hackers

    Cloud Computing IT executives at least theoretically now know about “distributed denial of service” attacks. Sales and destruction of brand image annoys the users.

  • OpenShift Node.js Tutorial with Video

    OpenShift Node.js Tutorial with Video is an excellent guide for anyone! You can create your own instance of Node.js Application within few minutes.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • WonderFox HD Video Converter Factory Pro Review April 10, 2021
  • What is the Maximum Cable Length Between Arduino/ESP32 and a Sensor April 8, 2021
  • Is the Blockchain Hype Running Out of Breath? April 7, 2021
  • Can You Operate a Website Anonymously? April 6, 2021
  • How to Interface a Piano/Rocker Switch (SPST) With ESP32 Arduino April 5, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "How to Run Rackspace Cloud Server Image on Local Computer," in The Customize Windows, April 8, 2014, April 13, 2021, https://thecustomizewindows.com/2014/04/run-rackspace-cloud-server-image-local-computer/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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