Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added kvm module loading, tiny image istead of default

  • Loading branch information...
commit 555cdb0ef82eeeda8ddbcb4676f8b99d2673aa0a 1 parent 666cf92
@abrindeyev abrindeyev authored
Showing with 11 additions and 6 deletions.
  1. +5 −1 install-cc.sh
  2. +6 −5 runit.sh
View
6 install-cc.sh
@@ -29,10 +29,14 @@ mysql -uroot -p$DB_PASS mysql < grant.sql
rm -f grant.sql
# Nova installation
-yum install -y euca2ools openstack-nova-api openstack-nova-compute openstack-nova-instancemonitor openstack-nova-network openstack-nova-objectstore openstack-nova-scheduler openstack-nova-volume unzip libvirt
+yum install -y euca2ools openstack-nova-api openstack-nova-compute openstack-nova-instancemonitor openstack-nova-network openstack-nova-objectstore openstack-nova-scheduler openstack-nova-volume unzip libvirt qemu-kvm qemu-kvm-tools
+modprobe kvm
+modprobe kvm-intel
+sleep 2
service libvirtd start
+
# Switching Nova to MySQL db rather than default SQLite
perl -pi -e "s,sql_connection=.*$,sql_connection=mysql://$DB_USER:$DB_PASS\@$CC_ADDR/$DB_NAME," /etc/nova/nova*.conf
perl -pi -e "s,s3_host=.*$,s3_host=$CC_ADDR," /etc/nova/nova*.conf
View
11 runit.sh
@@ -19,7 +19,7 @@ unzip nova_creds.zip
source novarc
cd $CDIR
-#tar zxf images.tgz
+tar zxf images.tgz
euca-bundle-image -i images/aki-lucid/image -p kernel --kernel true
euca-bundle-image -i images/ari-lucid/image -p ramdisk --ramdisk true
@@ -35,8 +35,9 @@ cd $TMPDIR || exit -1
euca-add-keypair mykey > mykey.priv
chmod 600 mykey.priv
-euca-run-instances $AMI_MACHINE --kernel $AMI_KERNEL --ramdisk $AMI_RAMDISK -k mykey
-euca-describe-instances
-sleep 2
-euca-describe-instances
+euca-run-instances $AMI_MACHINE --kernel $AMI_KERNEL --ramdisk $AMI_RAMDISK -k mykey -t m1.tiny
+#euca-describe-instances
+#sleep 2
+#euca-describe-instances
cat /var/log/nova/nova-compute.log
+echo $TMPDIR/novarc
Please sign in to comment.
Something went wrong with that request. Please try again.