IF instance status showing Pending and you can see error "qemu: linux kernel too old to load a ram disk" in log files under /var/log/libvirt/qemu/, then that is the issue of image. So try new image
I could provision VM using following images
1) ubuntu-10.04-server-cloudimg-amd64.tar.gz <====
This image was working with Eucalyptus 2.0.3 (Ubuntu 11.04)
================================
http://uec-images.ubuntu.com/ <--- Main link
Ubuntu Server 9.10 (Karmic Koala)
=========================
http://cloud-images-archive.ubuntu.com/karmic/
http://cloud-images-archive.ubuntu.com/karmic/20110425/
Ubuntu Server 10.04 (Lucid Lynx)
=========================
http://uec-images.ubuntu.com/lucid/
http://uec-images.ubuntu.com/lucid/20120323/
Ubuntu Server 10.10 (Maverick Meerkat)
=============================
http://uec-images.ubuntu.com/maverick/
Ubuntu Server 11.04 (Natty Narwhal)
===========================
http://uec-images.ubuntu.com/natty/
Ubuntu Server 11.10 (Oneiric Ocelet)
===========================
http://uec-images.ubuntu.com/oneiric/
Ubuntu Server 12.04 (Precise Pangolin)
=============================
http://uec-images.ubuntu.com/precise/
Custom Search
Showing posts with label Eucalyptus. Show all posts
Showing posts with label Eucalyptus. Show all posts
Tuesday, April 3, 2012
Friday, March 30, 2012
Eucalyptus Syntax error /etc/eucalyptus/httpd-cc.conf /etc/eucalyptus/httpd-nc.conf
saju@ubuntu:~$/etc/init.d/eucalyptus-nc start
* Starting Eucalyptus services eucalyptus-nc Syntax error on line 17 of /etc/eucalyptus/httpd-nc.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
Failed to start the NC!
saju@ubuntu:~$/etc/init.d/eucalyptus-cc start
* Starting Eucalyptus cluster controller eucalyptus-cc Syntax error on line 17 of /etc/eucalyptus/httpd-cc.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
Failed to start the CC!
Solution
=====
1) Edit eucalyptus.conf
#vim /etc/eucalyptus/eucalyptus.conf
then change EUCA_USER="root" to EUCA_USER="eucalyptus"
2) Restart
/etc/init.d/eucalyptus-cc cleanrestart
/etc/init.d/eucalyptus-nc restart
/etc/init.d/eucalyptus-cloud restart
* Starting Eucalyptus services eucalyptus-nc Syntax error on line 17 of /etc/eucalyptus/httpd-nc.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
Failed to start the NC!
saju@ubuntu:~$/etc/init.d/eucalyptus-cc start
* Starting Eucalyptus cluster controller eucalyptus-cc Syntax error on line 17 of /etc/eucalyptus/httpd-cc.conf:
Error:\tApache has not been designed to serve pages while\n\trunning as root. There are known race conditions that\n\twill allow any local user to read any file on the system.\n\tIf you still desire to serve pages as root then\n\tadd -DBIG_SECURITY_HOLE to the CFLAGS env variable\n\tand then rebuild the server.\n\tIt is strongly suggested that you instead modify the User\n\tdirective in your httpd.conf file to list a non-root\n\tuser.\n
Failed to start the CC!
Solution
=====
1) Edit eucalyptus.conf
#vim /etc/eucalyptus/eucalyptus.conf
then change EUCA_USER="root" to EUCA_USER="eucalyptus"
2) Restart
/etc/init.d/eucalyptus-cc cleanrestart
/etc/init.d/eucalyptus-nc restart
/etc/init.d/eucalyptus-cloud restart
Friday, January 6, 2012
how to upgrade to new version of eucalyptus
1) Stop all services
# service eucalyptus-common stop
# service eucalyptus stop
# service eucalyptus-nc stop
# service eucalyptus-dc stop
# service eucalyptus-sc stop
# service eucalyptus-cc stop
2) Remove eucalyptus 2.0.2 (old version)
# apt-get remove eucalyptus-common
# apt-get remove eucalyptus*
3) add reop of new eucalyptus 2.0.3
http://wiki.almende.com/index.php/Eucalyptus
# vim /etc/apt/sources.list
deb http://eucalyptussoftware.com/downloads/repo/eucalyptus/2.0.3/debian/
squeeze main
4) do update
# apt-get update
5) Install eucalyptus 2.0.3
# apt-get install eucalyptus-cloud eucalyptus-cc eucalyptus-walrus eucalyptus-sc
6) Check version
# vim /etc/eucalyptus/eucalyptus-version
7) Some usefull commands
# apt-get -f install
# sudo killall -9 dpkg
# sudo killall -9 apt-get
# apt-get update
# dpkg --configure -a
# service eucalyptus-common stop
# service eucalyptus stop
# service eucalyptus-nc stop
# service eucalyptus-dc stop
# service eucalyptus-sc stop
# service eucalyptus-cc stop
2) Remove eucalyptus 2.0.2 (old version)
# apt-get remove eucalyptus-common
# apt-get remove eucalyptus*
3) add reop of new eucalyptus 2.0.3
http://wiki.almende.com/index.
# vim /etc/apt/sources.list
deb http://eucalyptussoftware.com/
squeeze main
4) do update
# apt-get update
5) Install eucalyptus 2.0.3
# apt-get install eucalyptus-cloud eucalyptus-cc eucalyptus-walrus eucalyptus-sc
6) Check version
# vim /etc/eucalyptus/eucalyptus-
7) Some usefull commands
# apt-get -f install
# sudo killall -9 dpkg
# sudo killall -9 apt-get
# apt-get update
# dpkg --configure -a
Wednesday, November 9, 2011
Eucalyptus Not enough resources (0 < 1: vm instances
Eucalyptus Not enough resources (0 < 1: vm instances
Step-1
======
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.103
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0000 / 0000 1 192 2
AVAILABILITYZONE |- c1.medium 0000 / 0000 1 256 5
AVAILABILITYZONE |- m1.large 0000 / 0000 2 512 10
AVAILABILITYZONE |- m1.xlarge 0000 / 0000 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20
root@saju:~#
Step-2
======
root@saju:~#
root@saju:~# euca_conf --deregister-cluster cluster
SUCCESS: cluster 'cluster' successfully deregistered.
root@saju:~#
Step-3
======
root@saju:~#
root@saju:~#
root@saju:~# euca_conf --register-cluster cluster 192.168.0.103
Trying rsync to sync keys with "192.168.0.103"...The authenticity of host '192.168.0.103 (192.168.0.103)' can't be established.
ECDSA key fingerprint is dc:67:55:82:19:86:6e:26:54:49:57:ee:6e:98:77:b0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.103' (ECDSA) to the list of known hosts.
done.
SUCCESS: new cluster 'cluster' on host '192.168.0.103' successfully registered.
root@saju:~#
root@saju:~#
Step-4
======
root@saju:~#
root@saju:~#
root@saju:~# euca_conf --no-rsync --discover-nodes
root@saju:~#
root@saju:~#
Step-5
======
root@saju:~#
root@saju:~#
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.103
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0030 / 0030 1 192 2
AVAILABILITYZONE |- c1.medium 0024 / 0024 1 256 5
AVAILABILITYZONE |- m1.large 0012 / 0012 2 512 10
AVAILABILITYZONE |- m1.xlarge 0006 / 0006 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0003 / 0003 4 2048 20
root@saju:~#
root@saju:~#
root@saju:~#
Step-5
======
Try Provision VM
Step-1
======
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.103
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0000 / 0000 1 192 2
AVAILABILITYZONE |- c1.medium 0000 / 0000 1 256 5
AVAILABILITYZONE |- m1.large 0000 / 0000 2 512 10
AVAILABILITYZONE |- m1.xlarge 0000 / 0000 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20
root@saju:~#
Step-2
======
root@saju:~#
root@saju:~# euca_conf --deregister-cluster cluster
SUCCESS: cluster 'cluster' successfully deregistered.
root@saju:~#
Step-3
======
root@saju:~#
root@saju:~#
root@saju:~# euca_conf --register-cluster cluster 192.168.0.103
Trying rsync to sync keys with "192.168.0.103"...The authenticity of host '192.168.0.103 (192.168.0.103)' can't be established.
ECDSA key fingerprint is dc:67:55:82:19:86:6e:26:54:49:57:ee:6e:98:77:b0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.0.103' (ECDSA) to the list of known hosts.
done.
SUCCESS: new cluster 'cluster' on host '192.168.0.103' successfully registered.
root@saju:~#
root@saju:~#
Step-4
======
root@saju:~#
root@saju:~#
root@saju:~# euca_conf --no-rsync --discover-nodes
root@saju:~#
root@saju:~#
Step-5
======
root@saju:~#
root@saju:~#
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.103
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0030 / 0030 1 192 2
AVAILABILITYZONE |- c1.medium 0024 / 0024 1 256 5
AVAILABILITYZONE |- m1.large 0012 / 0012 2 512 10
AVAILABILITYZONE |- m1.xlarge 0006 / 0006 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0003 / 0003 4 2048 20
root@saju:~#
root@saju:~#
root@saju:~#
Step-5
======
Try Provision VM
Eucalyptus Not enough resources available: addresses (try --addressing private)
Eucalyptus Not enough resources available: addresses (try --addressing private)
1)Check Resources
------------------
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.111
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0030 / 0030 1 192 2
AVAILABILITYZONE |- c1.medium 0024 / 0024 1 256 5
AVAILABILITYZONE |- m1.large 0012 / 0012 2 512 10
AVAILABILITYZONE |- m1.xlarge 0006 / 0006 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0003 / 0003 4 2048 20
root@saju:~#
2)Free up Resources
------------------
* Remove unwanted VMs and Disks
3)Restart Cloud controller
---------------------------
root@saju:~#
root@saju:~#
root@saju:~# service eucalyptus-cc restart
eucalyptus-cc start/running, process 27279
root@saju:~#
root@saju:~#
4)Check Resources again
------------------------
root@saju:~#
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.111
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0000 / 0000 1 192 2
AVAILABILITYZONE |- c1.medium 0000 / 0000 1 256 5
AVAILABILITYZONE |- m1.large 0000 / 0000 2 512 10
AVAILABILITYZONE |- m1.xlarge 0000 / 0000 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20
root@saju:~#
root@saju:~#
root@saju:~#
5)Check address
-----------------
root@saju:~# euca-describe-addresses
ADDRESS 192.168.0.21 available (admin)
ADDRESS 192.168.0.22 available (admin)
root@saju:~#
root@saju:~#
6)Release address
-----------------
root@saju:~# euca-release-address 192.168.0.21
ADDRESS 192.168.0.21
root@saju:~#
root@saju:~# euca-release-address 192.168.0.22
ADDRESS 192.168.0.22
root@saju:~#
root@saju:~#
root@saju:~#
root@saju:~# euca-describe-addresses
ADDRESS 192.168.0.21 nobody
ADDRESS 192.168.0.22 nobody
root@saju:~#
root@saju:~#
7)Try VM Provision
------------------------
End
1)Check Resources
------------------
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.111
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0030 / 0030 1 192 2
AVAILABILITYZONE |- c1.medium 0024 / 0024 1 256 5
AVAILABILITYZONE |- m1.large 0012 / 0012 2 512 10
AVAILABILITYZONE |- m1.xlarge 0006 / 0006 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0003 / 0003 4 2048 20
root@saju:~#
2)Free up Resources
------------------
* Remove unwanted VMs and Disks
3)Restart Cloud controller
---------------------------
root@saju:~#
root@saju:~#
root@saju:~# service eucalyptus-cc restart
eucalyptus-cc start/running, process 27279
root@saju:~#
root@saju:~#
4)Check Resources again
------------------------
root@saju:~#
root@saju:~# euca-describe-availability-zones verbose
AVAILABILITYZONE cluster 192.168.0.111
AVAILABILITYZONE |- vm types free / max cpu ram disk
AVAILABILITYZONE |- m1.small 0000 / 0000 1 192 2
AVAILABILITYZONE |- c1.medium 0000 / 0000 1 256 5
AVAILABILITYZONE |- m1.large 0000 / 0000 2 512 10
AVAILABILITYZONE |- m1.xlarge 0000 / 0000 2 1024 20
AVAILABILITYZONE |- c1.xlarge 0000 / 0000 4 2048 20
root@saju:~#
root@saju:~#
root@saju:~#
5)Check address
-----------------
root@saju:~# euca-describe-addresses
ADDRESS 192.168.0.21 available (admin)
ADDRESS 192.168.0.22 available (admin)
root@saju:~#
root@saju:~#
6)Release address
-----------------
root@saju:~# euca-release-address 192.168.0.21
ADDRESS 192.168.0.21
root@saju:~#
root@saju:~# euca-release-address 192.168.0.22
ADDRESS 192.168.0.22
root@saju:~#
root@saju:~#
root@saju:~#
root@saju:~# euca-describe-addresses
ADDRESS 192.168.0.21 nobody
ADDRESS 192.168.0.22 nobody
root@saju:~#
root@saju:~#
7)Try VM Provision
------------------------
End
Monday, March 7, 2011
Eucalyptus No route to host when ssh to instance
Eucalyptus No route to host when ssh to a instance
Check your network subnets: I think you are using 192.168.1.x for the MANAGED-NOVLANS but that network is the one your machine are using. Try something different, for example 10.10.x.x. If you do such a change you have to stop all eucalyptus services (and instances) and you have to restart the cc with clean-restart.
**********1**********
* In Cluster Controller
* In /etc/eucalyptus/eucalyptus.local.conf
# network configuration from the input configuration file
VNET_MODE="MANAGED-NOVLAN"
VNET_SUBNET="172.19.0.0"
VNET_NETMASK="255.255.0.0"
VNET_DNS="125.22.47.125"
VNET_ADDRSPERNET="32"
VNET_PUBLICIPS="192.168.1.50-192.168.1.60" <------
--------- change to
# network configuration from the input configuration file
VNET_MODE="MANAGED-NOVLAN"
VNET_SUBNET="172.19.0.0"
VNET_NETMASK="255.255.0.0"
VNET_DNS="125.22.47.125"
VNET_ADDRSPERNET="32"
VNET_PUBLICIPS="10.10.5.1-10.10.5.9" <-------
**********2**********
# restart eucalyptus-cc CLEAN=1
**********3**********
root@cc-host:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:66:1c:4d:8c
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:66ff:fe1c:4d8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5478 errors:0 dropped:0 overruns:0 frame:0
TX packets:4483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1550033 (1.5 MB) TX bytes:1828909 (1.8 MB)
Interrupt:22 Base address:0xb800
eth0:metadata Link encap:Ethernet HWaddr 00:19:66:1c:4d:8c <------------------
inet addr:169.254.169.254 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:22 Base address:0xb800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:57349 errors:0 dropped:0 overruns:0 frame:0
TX packets:57349 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27541581 (27.5 MB) TX bytes:27541581 (27.5 MB)
===============================
More
Check your network subnets: I think you are using 192.168.1.x for the MANAGED-NOVLANS but that network is the one your machine are using. Try something different, for example 10.10.x.x. If you do such a change you have to stop all eucalyptus services (and instances) and you have to restart the cc with clean-restart.
**********1**********
* In Cluster Controller
* In /etc/eucalyptus/eucalyptus.local.conf
# network configuration from the input configuration file
VNET_MODE="MANAGED-NOVLAN"
VNET_SUBNET="172.19.0.0"
VNET_NETMASK="255.255.0.0"
VNET_DNS="125.22.47.125"
VNET_ADDRSPERNET="32"
VNET_PUBLICIPS="192.168.1.50-192.168.1.60" <------
--------- change to
# network configuration from the input configuration file
VNET_MODE="MANAGED-NOVLAN"
VNET_SUBNET="172.19.0.0"
VNET_NETMASK="255.255.0.0"
VNET_DNS="125.22.47.125"
VNET_ADDRSPERNET="32"
VNET_PUBLICIPS="10.10.5.1-10.10.5.9" <-------
**********2**********
# restart eucalyptus-cc CLEAN=1
**********3**********
root@cc-host:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:66:1c:4d:8c
inet addr:192.168.1.107 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::219:66ff:fe1c:4d8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5478 errors:0 dropped:0 overruns:0 frame:0
TX packets:4483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1550033 (1.5 MB) TX bytes:1828909 (1.8 MB)
Interrupt:22 Base address:0xb800
eth0:metadata Link encap:Ethernet HWaddr 00:19:66:1c:4d:8c <------------------
inet addr:169.254.169.254 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:22 Base address:0xb800
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:57349 errors:0 dropped:0 overruns:0 frame:0
TX packets:57349 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:27541581 (27.5 MB) TX bytes:27541581 (27.5 MB)
===============================
More
Monday, February 28, 2011
Eucalyptus Instance goes from pending to shutting down to terminated
Eucalyptus Instance goes from pending to shutting down to terminated
vim /etc/eucalyptus/eucalyptus.conf
Change "eth0" to "br0" or "br0" to "eth0" based on your network configuration
---------------------------
# Affects: CC, NC
# See: **NOTE** below
ENABLE_WS_SECURITY="Y"
LOGLEVEL="DEBUG"
VNET_PUBINTERFACE="eth0" <---
VNET_PRIVINTERFACE="eth0" <---
VNET_MODE="MANAGED-NOVLAN"
--------------------------- change to
# Affects: CC, NC
# See: **NOTE** below
ENABLE_WS_SECURITY="Y"
LOGLEVEL="DEBUG"
VNET_PUBINTERFACE="br0" <---
VNET_PRIVINTERFACE="br0" <---
VNET_MODE="MANAGED-NOVLAN"
vim /etc/eucalyptus/eucalyptus.conf
Change "eth0" to "br0" or "br0" to "eth0" based on your network configuration
---------------------------
# Affects: CC, NC
# See: **NOTE** below
ENABLE_WS_SECURITY="Y"
LOGLEVEL="DEBUG"
VNET_PUBINTERFACE="eth0" <---
VNET_PRIVINTERFACE="eth0" <---
VNET_MODE="MANAGED-NOVLAN"
--------------------------- change to
# Affects: CC, NC
# See: **NOTE** below
ENABLE_WS_SECURITY="Y"
LOGLEVEL="DEBUG"
VNET_PUBINTERFACE="br0" <---
VNET_PRIVINTERFACE="br0" <---
VNET_MODE="MANAGED-NOVLAN"
Subscribe to:
Posts (Atom)