Jump to: navigation, search

Difference between revisions of "Main Page/cobbler"

Line 1: Line 1:
if [ ! -d "/data/var/lib" ]; mkdir -p /data/var/lib; fi
+
1. persist vm /etc/fstab /etc/libvirt/qemu /config/etc/libvirt/qemu bind bind 0 0
if [ ! -d  "/data/var/lib/nova/instances" ]; mkdir -p /data/var/lib/nova/instances; fi
+
2. for openstack vnc connection: novncproxy_base_url=http://128.0.0.1:6080/vnc_auto.html
chown -R nova:nova /data/var/lib/nova/
+
3. add network forward /etc/sysctl.conf net.ipv4.ip_forward = 1 net.ipv4.conf.default.rp_filter = 0
 
+
sed -i '/net\.ipv4\.conf\.all\.rp_filter/d' /etc/sysctl.conf
if [ ! -d  "/data/var/lib/neutron" ]; mkdir -p /data/var/lib/neutron; fi
+
sed -i '/net\.ipv4\.conf\.default\.rp_filter/d' /etc/sysctl.conf
chown -R neutron:neutron /data/var/lib/neutron/
+
echo "" >>/etc/sysctl.conf
 
+
echo "net.ipv4.conf.all.rp_filter = 0" >>/etc/sysctl.conf
sed -i "s/\/var\/lib/\/data\/var\/lib/g" /etc/nova/nova.conf
+
echo "net.ipv4.conf.default.rp_filter = 0" >>/etc/sysctl.conf
 
+
sysctl -p
sed -i "s/# state_path = \/var\/lib\/neutron/state_path = \/data\/var\/lib\/neutron/g" /etc/neutron/neutron.conf
+
4. neutron configuration
 
+
nova: linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
#notify_nova_on_port_status_changes = True
+
neutron:neutron.conf neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2
#notify_nova_on_port_data_changes = True
+
openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs tenant_network_type vlan
#nova_url = http://127.0.0.1:8774/v2
+
openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs network_vlan_ranges physnet1:1:4094
#nova_admin_username = admin
+
bridge_mappings = physnet1:br-$DATA_INTERFACE
#nova_admin_tenant_id = 81850988ae524d7c91c40e110d694710 #need to set when config ip
+
5.persist /etc/tgt chkconfig tgtd on
#nova_admin_password = admin
+
6.centos6-post.ks:
#nova_admin_auth_url = http://127.0.0.1:35357/v2.0
+
echo "Disable selinux"
 
+
[ -f /etc/selinux/config ] && sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
#image-minimizer.ks keep py
+
7. centos6-install.ks get rid of ntp
#common-post.ks keep networking=yes
+
8. add readme, fig
 
+
9. add iptable for kimchi
/sbin/chkconfig openstack-cinder-volume on
+
iptables -I INPUT -p tcp --dport 8000 -j ACCEPT
service openstack-cinder-volume start
+
iptables -I INPUT -p tcp --dport 8001 -j ACCEPT
/sbin/chkconfig openstack-nova-compute on
+
iptables -I INPUT -p tcp --dport 64667 -j ACCE
service openstack-nova-compute start
+
10.check space for vg but not default 20G
/sbin/chkconfig neutron-openvswitch-agent on
+
11.
service neutron-openvswitch-agent start
 
/sbin/chkconfig openstack-ceilometer-compute on
 
service openstack-ceilometer-compute start
 

Revision as of 10:00, 21 May 2014

1. persist vm /etc/fstab /etc/libvirt/qemu /config/etc/libvirt/qemu bind bind 0 0 2. for openstack vnc connection: novncproxy_base_url=http://128.0.0.1:6080/vnc_auto.html 3. add network forward /etc/sysctl.conf net.ipv4.ip_forward = 1 net.ipv4.conf.default.rp_filter = 0 sed -i '/net\.ipv4\.conf\.all\.rp_filter/d' /etc/sysctl.conf sed -i '/net\.ipv4\.conf\.default\.rp_filter/d' /etc/sysctl.conf echo "" >>/etc/sysctl.conf echo "net.ipv4.conf.all.rp_filter = 0" >>/etc/sysctl.conf echo "net.ipv4.conf.default.rp_filter = 0" >>/etc/sysctl.conf sysctl -p 4. neutron configuration nova: linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver neutron:neutron.conf neutron.plugins.openvswitch.ovs_neutron_plugin.OVSNeutronPluginV2 openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs tenant_network_type vlan openstack-config --set /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini ovs network_vlan_ranges physnet1:1:4094 bridge_mappings = physnet1:br-$DATA_INTERFACE 5.persist /etc/tgt chkconfig tgtd on 6.centos6-post.ks: echo "Disable selinux" [ -f /etc/selinux/config ] && sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config 7. centos6-install.ks get rid of ntp 8. add readme, fig 9. add iptable for kimchi iptables -I INPUT -p tcp --dport 8000 -j ACCEPT iptables -I INPUT -p tcp --dport 8001 -j ACCEPT iptables -I INPUT -p tcp --dport 64667 -j ACCE 10.check space for vg but not default 20G 11.