SHARE
TWEET

Untitled

a guest Nov 21st, 2012 38 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. service eucalyptus-cloud stop CLEAN=1
  2. service eucalyptus-cc stop CLEAN=1
  3. service eucalyptus-nc stop CLEAN=1
  4. service eucalyptus-cloud start CLEAN=1
  5. service eucalyptus-cc start CLEAN=1
  6. service eucalyptus-nc start CLEAN=1
  7.  
  8. mkdir -p ~/.euca
  9. chmod 700 ~/.euca
  10. cd ~/.euca
  11. euca_conf --get-credentials mycreds.zip
  12. unzip mycreds.zip
  13. cd -
  14.  
  15. . ~/.euca/eucarc
  16. echo "[ -r ~/.euca/eucarc ] && . ~/.euca/eucarc" >> ~/.bashrc
  17. euca_conf --no-rsync --discover-nodes
  18.  
  19. apt-get install python-dev swig help2man libssl-dev
  20. cd M2Crypto-0.21.1
  21. python setup.py build
  22. python setup.py install
  23. python setup.py test
  24. apt-get update
  25. cd -
  26. cd euca2ools-2.1.1
  27. python setup.py build
  28. python setup.py install
  29.  
  30. root@kaustav-laptop:~# euca-describe-availability-zones verbose
  31. AVAILABILITYZONE        cluster1        172.16.17.121
  32. AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
  33. AVAILABILITYZONE        |- m1.small     0000 / 0000   1    192     2
  34. AVAILABILITYZONE        |- c1.medium    0000 / 0000   1    256     5
  35. AVAILABILITYZONE        |- m1.large     0000 / 0000   2    512    10
  36. AVAILABILITYZONE        |- m1.xlarge    0000 / 0000   2   1024    20
  37. AVAILABILITYZONE        |- c1.xlarge    0000 / 0000   4   2048    20
  38.  
  39. root@kaustav-laptop:~#tar -S -xzf ubuntu-9.10-rc-uec-i386.tar.gz
  40. root@kaustav-laptop:~# cd ubuntu-9.10-rc-uec-i386
  41. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# ls
  42. karmic-uec-i386.img  karmic-uec-i386-initrd-virtual  karmic-uec-i386-vmlinuz-virtual
  43. --------------------------------------------------------------
  44. BUNDLE,UPLOAD AND REGISTER THE KERNEL WITH EUCALYPTUS:-
  45. ----------------------------------------------------------------------
  46. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# euca-bundle-image -i karmic-uec-i386-vmlinuz-virtual -r i386 --kernel true
  47. Checking image
  48. Compressing image
  49. Encrypting image
  50. Splitting image...
  51. Part: karmic-uec-i386-vmlinuz-virtual.part.00
  52. Generating manifest /tmp/karmic-uec-i386-vmlinuz-virtual.manifest.xml
  53. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# TIMESTAMP=$(date +%Y%m%d%H%M%S)
  54. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# BUCKET_KERNEL="k-$TIMESTAMP"
  55. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# euca-upload-bundle -b $BUCKET_KERNEL -m /tmp/karmic-uec-i386-vmlinuz-virtual.manifest.xml
  56. Checking bucket: k-20121120225145
  57. Creating bucket: k-20121120225145
  58. Uploading manifest file
  59. Uploading part: karmic-uec-i386-vmlinuz-virtual.part.00
  60. Uploaded image as k-20121120225145/karmic-uec-i386-vmlinuz-virtual.manifest.xml
  61. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# EKI=$(euca-register $BUCKET_KERNEL/$UEC_KERNEL.manifest.xml | grep "^IMAGE" | awk '{print $2}') && echo $EKI
  62. --------------------------------------------------------------
  63. BUNDLE,UPLOAD AND REGISTER THE RAMDISK WITH EUCALYPTUS:-
  64. ----------------------------------------------------------------------
  65. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# BUCKET_INITRD="r-$TIMESTAMP"
  66. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# euca-bundle-image -i karmic-uec-i386-initrd-virtual -r i386
  67. Checking image
  68. Compressing image
  69. Encrypting image
  70. Splitting image...
  71. Part: karmic-uec-i386-initrd-virtual.part.00
  72. Generating manifest /tmp/karmic-uec-i386-initrd-virtual.manifest.xml
  73. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# euca-upload-bundle -b $BUCKET_INITRD -m /tmp/karmic-uec-i386-initrd-virtual.manifest.xml
  74. Checking bucket: r-20121120225145
  75. Creating bucket: r-20121120225145
  76. Uploading manifest file
  77. Uploading part: karmic-uec-i386-initrd-virtual.part.00
  78. Uploaded image as r-20121120225145/karmic-uec-i386-initrd-virtual.manifest.xml
  79. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# ERI=$(euca-register $BUCKET_INITRD/karmic-uec-i386-initrd-
  80. virtual.manifest.xml| grep "^IMAGE" | awk '{print $2}') && echo $ERI
  81. --------------------------------------------------------------
  82. BUNDLE,UPLOAD AND REGISTER THE IMAGE WITH EUCALYPTUS:-
  83. ----------------------------------------------------------------------
  84. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# BUCKET_IMAGE="i-$TIMESTAMP"
  85. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# euca-bundle-image -i karmic-uec-i386.img -r i386 --kernel true $EKI ${ERI:+--ramdisk}
  86. Checking image
  87. Compressing image
  88. Encrypting image
  89. Splitting image...
  90. Part: karmic-uec-i386.img.part.00
  91. Part: karmic-uec-i386.img.part.01
  92. Part: karmic-uec-i386.img.part.02
  93. Part: karmic-uec-i386.img.part.03
  94. Part: karmic-uec-i386.img.part.04
  95. Part: karmic-uec-i386.img.part.05
  96. Part: karmic-uec-i386.img.part.06
  97. Part: karmic-uec-i386.img.part.07
  98. Part: karmic-uec-i386.img.part.08
  99. Part: karmic-uec-i386.img.part.09
  100. Part: karmic-uec-i386.img.part.10
  101. Part: karmic-uec-i386.img.part.11
  102. Part: karmic-uec-i386.img.part.12
  103. Part: karmic-uec-i386.img.part.13
  104. Part: karmic-uec-i386.img.part.14
  105. Part: karmic-uec-i386.img.part.15
  106. Part: karmic-uec-i386.img.part.16
  107. Generating manifest /tmp/karmic-uec-i386.img.manifest.xml
  108. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# BUCKET_IMAGE="i-$TIMESTAMP"
  109. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# euca-upload-bundle -b $BUCKET_IMAGE -m /tmp/karmic-uec-i386.img.manifest.xml
  110. Checking bucket: i-20121120225145
  111. Creating bucket: i-20121120225145
  112. Uploading manifest file
  113. Uploading part: karmic-uec-i386.img.part.00
  114. Uploading part: karmic-uec-i386.img.part.01
  115. Uploading part: karmic-uec-i386.img.part.02
  116. Uploading part: karmic-uec-i386.img.part.03
  117. Uploading part: karmic-uec-i386.img.part.04
  118. Uploading part: karmic-uec-i386.img.part.05
  119. Uploading part: karmic-uec-i386.img.part.06
  120. Uploading part: karmic-uec-i386.img.part.07
  121. Uploading part: karmic-uec-i386.img.part.08
  122. Uploading part: karmic-uec-i386.img.part.09
  123. Uploading part: karmic-uec-i386.img.part.10
  124. Uploading part: karmic-uec-i386.img.part.11
  125. Uploading part: karmic-uec-i386.img.part.12
  126. Uploading part: karmic-uec-i386.img.part.13
  127. Uploading part: karmic-uec-i386.img.part.14
  128. Uploading part: karmic-uec-i386.img.part.15
  129. Uploading part: karmic-uec-i386.img.part.16
  130. Uploaded image as i-20121120225145/karmic-uec-i386.img.manifest.xml
  131. root@kaustav-laptop:~/ubuntu-9.10-rc-uec-i386# EMI=$(euca-register $BUCKET_IMAGE/karmic-uec-i386.img.manifest.xml | grep "^IMAGE" | awk '{print $2}') && echo $EMI
  132.  
  133. root@kaustav-laptop:~# euca-describe-images -->to check if the image is available
  134. HERE IS THE PROBLEM..IT IS NOT SHOWING ANY OUTPUT.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top