• Home
  • Archive
  • Tools
  • Contact Us
  • Forum

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
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 :

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

Advertisement

---

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 import rackspace image vhd grub , rackspace server imaging
Facebook Twitter Google+ Pinterest

About Abhishek Ghosh

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

Follow the Author of this article :

13.7K+ Followers 18.7K+ Followers 2.5K+ Followers 1.5K Followers

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 Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, 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

All articles of this Website are fully Free to read. Here are some, which possibly you'll like to read! Do not hesitate to contact us for any concern.

Contact Us

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

Recent Posts

  • Example of Using IBM Watson For Text Analysis with Google Docs April 20, 2018
  • Arduino WiFi Control of LED From Web Browser April 19, 2018
  • Fix Problems & Issues of Yoast SEO WordPress Plugin April 19, 2018
  • Extra Battery, Inverter For Car For DIY Electronics Car Automation April 18, 2018
  • Blink AC Bulb With Arduino Relay Module April 17, 2018

About This Article

Title: How to Run Rackspace Cloud Server Image on Local Computer
April 8, 2014
Author: Abhishek Ghosh
Subjects: Cloud Computing, Computer and Internet
Is Part Of:

TheCustomizeWindows, April 8, 2014, Vol.1(01),
p.1–39075 [IoT Ready Journal]

Source:The Customize Windows
ISSN: 0019-5847 ;
E-ISSN: 0019-5847 ;
Publisher: jima.in

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

Read Cookie Policy

Contents are copyright protected and reproduction demands our permission.


PC users can consult Corrine Chorney for Security.

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

web analysis

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

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