Edit ~\/.bashrc<\/h4>\n$ vim ~\/.bashrc<\/pre>\nAdd this lines at the end of file.<\/span><\/p>\nexport OS_USERNAME=admin\r\nexport OS_PASSWORD=Passw0rd\r\nexport OS_TENANT_NAME=admin\r\nexport OS_AUTH_URL=http:\/\/127.0.0.1:5000\/v2.0\r\n<\/pre>\nDisable Firewall<\/h4>\n$ sudo ufw disable<\/pre>\nRun stack.sh<\/h4>\n$ cd ~\/devstack\r\n$ .\/stack.sh\r\n\r\n<\/pre>\nIMPORTANT<\/strong>: If the scripts don’t\u00a0end properly or something else goes wrong, please unstack first using .\/unstack.sh<\/strong>\u00a0script.<\/span><\/p>\nSetup networks<\/h4>\n# Remove the current network configuration \r\n\r\n# Remove the private subnet from the router\r\nneutron router-interface-delete router1 private-subnet\r\n# Remove the public network from the router\r\nneutron router-gateway-clear router1\r\n# Delete the router\r\nneutron router-delete router1\r\n# Delete the private network\r\nneutron net-delete private\r\n# Delete the public network\r\nneutron net-delete public\r\n\r\n# Setup the network\r\n\r\n# Create the private network\r\nNETID1=$(neutron net-create private --provider:network_type flat --provider:physical_network physnet1 | awk '{if (NR == 6) {print $4}}');\r\necho \"[i] Private network id: $NETID1\";\r\n# Creathe the private subnetwork\r\nSUBNETID1=$(neutron subnet-create private 10.0.1.0\/24 --dns_nameservers list=true 8.8.8.8 | awk '{if (NR == 11) {print $4}}');\r\n# Create the router\r\nROUTERID1=$(neutron router-create router | awk '{if (NR == 9) {print $4}}');\r\n# Attach the private subnetwork to the router\r\nneutron router-interface-add $ROUTERID1 $SUBNETID1\r\n# Create the public network\r\nEXTNETID1=$(neutron net-create public --router:external | awk '{if (NR == 6) {print $4}}');\r\n# Create the public subnetwork\r\nneutron subnet-create public --allocation-pool start=10.0.2.100,end=10.0.2.120 --gateway 10.0.2.1 10.0.2.0\/24 --disable-dhcp \r\n# Attach the public network to the router\r\nneutron router-gateway-set $ROUTERID1 $EXTNETID1\r\n\r\n# Security Groups\r\n\r\n# Enable ping\r\nnova secgroup-add-rule default ICMP 8 8 0.0.0.0\/0\r\n# Enable SSH\r\nnova secgroup-add-rule default tcp 22 22 0.0.0.0\/0\r\n# Enable RDP\r\nnova secgroup-add-rule default tcp 3389 3389 0.0.0.0\/0\r\n<\/pre>\nChange current version of nova and neutron<\/h4>\n
For the moment the *Nova Driver* and *Neutron Agent* for *VirtualBox* are not included in the current version of OpenStack. In order to use them we must change the version of *nova* and *neutron* installed by DevStack.<\/p>\n