=========================================== Prereqs: From a fresh F17 install 3GB memory required $ sudo yum install vim wget $ sudo yum update $ reboot =========================================== Install openstack: yum install mysql-server -or- mysqladmin -uroot password "newpass" ; service mysqld restart yum install --enablerepo=updates-testing openstack-utils openstack-nova openstack-glance openstack-keystone openstack-dashboard qpid-cpp-server-daemon openstack-db --service nova --init -y --rootpw cloudpass openstack-db --service glance --init -y --rootpw cloudpass systemctl start qpidd.service systemctl enable qpidd.service systemctl start libvirtd.service systemctl enable libvirtd.service systemctl start openstack-glance-api.service systemctl enable openstack-glance-api.service systemctl start openstack-glance-registry.service enable openstack-glance-registry.service dd if=/dev/zero of=/var/lib/nova/nova-volumes.img bs=1M seek=2k count=0 vgcreate nova-volumes $(sudo losetup --show -f /var/lib/nova/nova-volumes.img) openstack-config --set /etc/nova/nova.conf DEFAULT volume_group nova-volumes systemctl start openstack-nova-api.service systemctl enable openstack-nova-api.service systemctl start openstack-nova-objectstore.service systemctl enable openstack-nova-objectstore.service systemctl start openstack-nova-compute.service systemctl enable openstack-nova-compute.service systemctl start openstack-nova-network.service systemctl enable openstack-nova-network.service systemctl start openstack-nova-volume.service systemctl enable openstack-nova-volume.service systemctl start openstack-nova-scheduler.service systemctl enable openstack-nova-scheduler.service nova-manage network create demonet 10.0.0.0/24 1 256 --bridge=demonetbr0 modprobe nbd nova-manage user admin admin ABCDEF FEDCBA virsh net-destroy default wget http://syracloud.net/~mmorsi/f16-x86_64-openstack-sda.qcow2 glance add name=f16-jeos is_public=true disk_format=qcow2 container_format=bare < f16-x86_64-openstack-sda.qcow2 # only if running in a vm: openstack-config --set /etc/nova/nova.conf DEFAULT libvirt_type qemu openstack-config --set /etc/nova/nova.conf DEFAULT scheduler_default_filters AllHostsFilter setsebool -P virt_use_execmem on Setup keystone: openstack-db --service keystone --init cat > keystonerc < oskey.priv chmod 600 oskey.priv # start / view / ssh into instance nova --os_auth_url http://localhost:8774/v1.1/ boot myserver --flavor 2 --key_name mykey --image $(glance index | grep f16-jeos | awk '{print $1}') nova list sudo virsh list # once started ssh -i oskey.priv root@10.0.0.2 ^ see scripts to start openstack vm, restart nova, boot/list/remove instances =========================================== Install ovirt: yum localinstall http://ovirt.org/releases/ovirt-release-fedora.noarch.rpm yum install ovirt-engine "192.168.122.218 a.d" >> /etc/hosts dnsmasq --bind-interfaces --listen-address=127.0.0.1 echo "PermitRootLogin yes" >> /etc/ssh/sshd_config service sshd restart engine-setup copy the following to /etc/exports: ... mkdir nfs dirs chown / set perms on nfs dirs ovirt-iso-import cd into isos add storage domains to wui create new server add storage to server run once, specifying boot iso > http://a.d/webadmin : create new host, ensure cluster, data center, & templates are created ^ see scripts to activate storagedomains and start instances =========================================== Add 2nd nic, bond default network to it - /etc/sysconfig/network-scripts/ifcfg-p1p1 - /etc/sysconfig/network-scripts/ifcfg-defaultmgmt - /etc/libvirt/qemu/networks/default.xml - virsh net-define /etc/libvirt/qemu/networks/default.xml Connect nics to hub to laptop em1, setup dhcpd on laptop: /etc/dhcp/dhcpd.conf: subnet 110.220.110.0 netmask 255.255.255.0 { range 110.220.110.10 110.220.110.20; #option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; host ovirt { hardware ethernet 70:f3:95:04:27:f3; fixed-address 110.220.110.30; } #host openstack { # hardware ethernet 08:00:07:26:c0:a5; # fixed-address 110.220.110.40 #} } /etc/sysconfig/network-scripts/route-em1: 255.255.255.255/32 dev em1 /etc/sysconfig/network-scripts/ifcfg-em1: DEVICE="em1" HWADDR="F0:DE:F1:5C:F6:0A" #ONBOOT="no" #NM_CONTROLLED="yes" ONBOOT="yes" NM_CONTROLLED="no" BOOTPROTO="static" IPADDR=110.220.110.1 sudo route add -host 255.255.255.255 em1 sudo ifconfig em1 110.220.110.1 sudo service dhcpd start =========================================== Install aeolus on vm on laptop: Setup /etc/hosts pointing to openstack/ovirt instances: 110.220.110.30 ovirt 110.220.110.10 openstack $ sudo yum install aeolus-all $ sudo aeolus-configure - ping providers ping openstack ping ovirt - start listening w/ deltacloud: sudo /usr/bin/ruby /usr/bin/deltacloudd -i openstack -e production --port 3005 --host localhost -u nobody -g nobody -P "http://openstack:5000/v2.0" sudo API_PROVIDER='https://ovirt:8443/api' /usr/bin/ruby /usr/bin/deltacloudd -i rhevm -e production --port 3004 --host localhost -u nobody -g nobody - list images / instaces on ovirt & openstack client = DeltaCloud.new('admin+admin', 'cloudpass', 'http://localhost:3005/api') client = DeltaCloud.new('admin@internal', 'cloudpass', 'http://localhost:3004/api') client.instances.collect { |i| i.name } client.images.collect { |i| i.id } - deploy new instances w/ ovirt & openstack client.create_instance('a4180f79-c4bf-4d61-a801-b5990b590fb0') client.create_instance("00000000-0000-0000-0000-000000000000") client.instance('98511559-46a3-4eb2-aba2-4c81c4e0d5b5').start! client.instance('98511559-46a3-4eb2-aba2-4c81c4e0d5b5').state - build/install latest imagefactory on baremetal host git clone git://github.com/aeolusproject/imagefactory.git cd imagefactory make rpms cd imagefactory-plugins make rpms rpm -ivh imagefactory imagefactory-plugins rpmbuild --rebuild http://repos.fedorapeople.org/repos/aeolus/imagefactory/testing/latest_bindings/ovirt-engine-sdk-3.1.0.3-1.fc14.src.rpm rpm -ivh ovirt-engine-sdk - mount rhev nfs export domain on host: mount 110.220.110.30:/ext/ovirt31export /mnt/ovirt - create imagefactory json & xml config files: $ cat rhevm.json {"nfs-dir": "/mnt/ovirt", "nfs-path": "/ext/ovirt31export", "nfs-host": "110.220.110.30", "cluster": "_any_", "api-url": "http://ovirt/api", "timeout": 1800 } $ cat rhevm.xml admin@internalcloudpass - build and push image based on template: sudo imagefactory base_image browserquest_git_head_f16.xml sudo imagefactory --debug target_image --id b55b42f1-aa2d-418f-b635-252e5f343209 rhevm sudo imagefactory --debug provider_image --id "2492c8c2-ada4-4325-a783-da3c37871ba7" --target rhevm rhevm.json rhevm.xml - view entities via wui - view entities via cli aeolus --help aeolus hwp list aeolus hwp create --name demo aeolus image --help