| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,140 +0,0 @@ |
| 1 |
-`DevStack </>`__ |
|
| 2 |
- |
|
| 3 |
-- `Overview <../overview.html>`__ |
|
| 4 |
-- `Changes <../changes.html>`__ |
|
| 5 |
-- `FAQ <../faq.html>`__ |
|
| 6 |
-- `git.openstack.org <https://git.openstack.org/cgit/openstack-dev/devstack>`__ |
|
| 7 |
-- `Gerrit <https://review.openstack.org/#/q/status:open+project:openstack-dev/devstack,n,z>`__ |
|
| 8 |
- |
|
| 9 |
-PXE Boot Server Guide: Magic Dust for Network Boot |
|
| 10 |
-================================================== |
|
| 11 |
- |
|
| 12 |
-Boot DevStack from a PXE server to a RAM disk. |
|
| 13 |
- |
|
| 14 |
-Prerequisites Hardware & OpenWRT |
|
| 15 |
- |
|
| 16 |
-Hardware |
|
| 17 |
-~~~~~~~~ |
|
| 18 |
- |
|
| 19 |
-The whole point of this exercise is to have a highly portable boot |
|
| 20 |
-server, so using a small router with a USB port is the desired platform. |
|
| 21 |
-This guide uses a Buffalo WZR-HP-G300NH as an example, but it is easily |
|
| 22 |
-generalized for other supported platforms. See openwrt.org for more. |
|
| 23 |
- |
|
| 24 |
-OpenWRT |
|
| 25 |
-~~~~~~~ |
|
| 26 |
- |
|
| 27 |
-Any recent 'Backfire' build of OpenWRT will work for the boot server |
|
| 28 |
-project. We build from trunk and have made the images available at |
|
| 29 |
-`http://openwrt.xr7.org/openwrt <http://openwrt.xr7.org/openwrt>`__. |
|
| 30 |
- |
|
| 31 |
-Installation bit blasting |
|
| 32 |
- |
|
| 33 |
-Install the Image |
|
| 34 |
-~~~~~~~~~~~~~~~~~ |
|
| 35 |
- |
|
| 36 |
-This process follows `the OpenWRT doc OEM |
|
| 37 |
-Install <http://wiki.openwrt.org/toh/buffalo/wzr-hp-g300h>`__ to tftp |
|
| 38 |
-the new image onto the router. You need a computer to set up the router, |
|
| 39 |
-we assume it is a recent Linux or OS/X installation. |
|
| 40 |
- |
|
| 41 |
-- Get openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin |
|
| 42 |
- |
|
| 43 |
- :: |
|
| 44 |
- |
|
| 45 |
- wget http://openwrt.xr7.org/openwrt/ar71xx/openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin |
|
| 46 |
- |
|
| 47 |
-- Connect computer to LAN port 4 (closest to WAN port) |
|
| 48 |
-- Set computer interface to IP address in the 192.168.11.2 |
|
| 49 |
-- Add static arp entry for router |
|
| 50 |
- |
|
| 51 |
- :: |
|
| 52 |
- |
|
| 53 |
- arp -s 192.168.11.1 <mac-address> |
|
| 54 |
- |
|
| 55 |
-- Start TFTP transfer attempt |
|
| 56 |
- |
|
| 57 |
- :: |
|
| 58 |
- |
|
| 59 |
- tftp 192.168.11.1 |
|
| 60 |
- binary |
|
| 61 |
- rexmt 1 |
|
| 62 |
- timeout 60 |
|
| 63 |
- put openwrt-ar71xx-wzr-hp-g300nh-squashfs-tftp.bin |
|
| 64 |
- |
|
| 65 |
-- Power on router. Router will reboot and initialize on 192.168.1.1. |
|
| 66 |
-- Delete static arp entry for router |
|
| 67 |
- |
|
| 68 |
- :: |
|
| 69 |
- |
|
| 70 |
- arp -d 192.168.11.1 |
|
| 71 |
- |
|
| 72 |
-- Set computer to DHCP, connect and telnet to router and set root |
|
| 73 |
- password. |
|
| 74 |
- |
|
| 75 |
-Configure the Router |
|
| 76 |
-~~~~~~~~~~~~~~~~~~~~ |
|
| 77 |
- |
|
| 78 |
-- Update ``/etc/opkg.conf`` to point to our repo: |
|
| 79 |
- |
|
| 80 |
- :: |
|
| 81 |
- |
|
| 82 |
- src/gz packages http://192.168.5.13/openwrt/build/ar71xx/packages |
|
| 83 |
- |
|
| 84 |
-- Configure anon mounts: |
|
| 85 |
- |
|
| 86 |
- :: |
|
| 87 |
- |
|
| 88 |
- uci delete fstab.@mount[0] |
|
| 89 |
- uci commit fstab |
|
| 90 |
- /etc/init.d/fstab restart |
|
| 91 |
- |
|
| 92 |
-- Reset the DHCP address range. DevStack will claim the upper /25 of |
|
| 93 |
- the router's LAN address space for floating IPs so the default DHCP |
|
| 94 |
- address range needs to be moved: |
|
| 95 |
- |
|
| 96 |
- :: |
|
| 97 |
- |
|
| 98 |
- uci set dhcp.lan.start=65 |
|
| 99 |
- uci set dhcp.lan.limit=60 |
|
| 100 |
- uci commit dhcp |
|
| 101 |
- |
|
| 102 |
-- Enable TFTP: |
|
| 103 |
- |
|
| 104 |
- :: |
|
| 105 |
- |
|
| 106 |
- uci set dhcp.@dnsmasq[0].enable_tftp=1 |
|
| 107 |
- uci set dhcp.@dnsmasq[0].tftp_root=/mnt/sda1/tftpboot |
|
| 108 |
- uci set dhcp.@dnsmasq[0].dhcp_boot=pxelinux.0 |
|
| 109 |
- uci commit dhcp |
|
| 110 |
- /etc/init.d/dnsmasq restart |
|
| 111 |
- |
|
| 112 |
-Set Up tftpboot |
|
| 113 |
-~~~~~~~~~~~~~~~ |
|
| 114 |
- |
|
| 115 |
-- Create the ``/tmp/tftpboot`` structure and populate it: |
|
| 116 |
- |
|
| 117 |
- :: |
|
| 118 |
- |
|
| 119 |
- cd ~/devstack |
|
| 120 |
- tools/build_pxe_boot.sh /tmp |
|
| 121 |
- |
|
| 122 |
- This calls ``tools/build_ramdisk.sh`` to create a 2GB ramdisk |
|
| 123 |
- containing a complete development Oneiric OS plus the OpenStack code |
|
| 124 |
- checkouts. |
|
| 125 |
- |
|
| 126 |
-- Copy ``tftpboot`` to a USB drive: |
|
| 127 |
- |
|
| 128 |
- :: |
|
| 129 |
- |
|
| 130 |
- mount /dev/sdb1 /mnt/tmp |
|
| 131 |
- rsync -a /tmp/tftpboot/ /mnt/tmp/tftpboot/ |
|
| 132 |
- umount /mnt/tmp |
|
| 133 |
- |
|
| 134 |
-- Plug USB drive into router. It will be automounted and is ready to |
|
| 135 |
- serve content. |
|
| 136 |
- |
|
| 137 |
-Now `return <ramdisk.html>`__ to the RAM disk Guide to kick off your |
|
| 138 |
-DevStack experience. |
| 139 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,86 +0,0 @@ |
| 1 |
-`DevStack </>`__ |
|
| 2 |
- |
|
| 3 |
-- `Overview <../overview.html>`__ |
|
| 4 |
-- `Changes <../changes.html>`__ |
|
| 5 |
-- `FAQ <../faq.html>`__ |
|
| 6 |
-- `git.openstack.org <https://git.openstack.org/cgit/openstack-dev/devstack>`__ |
|
| 7 |
-- `Gerrit <https://review.openstack.org/#/q/status:open+project:openstack-dev/devstack,n,z>`__ |
|
| 8 |
- |
|
| 9 |
-Stack-in-a-Box: Try before you mkfs |
|
| 10 |
-=================================== |
|
| 11 |
- |
|
| 12 |
-Run DevStack from a RAM disk to give it a whirl before making the |
|
| 13 |
-commitment to install it. We'll cover booting from a USB drive or over |
|
| 14 |
-the network via PXE. We'll even thow in configuring a home router to |
|
| 15 |
-handle the PXE boot. You will need a minimum of 3GB for both of these |
|
| 16 |
-configurations as the RAM disk itself is 2GB. |
|
| 17 |
- |
|
| 18 |
-Prerequisites Hardware |
|
| 19 |
- |
|
| 20 |
-USB Boot |
|
| 21 |
-~~~~~~~~ |
|
| 22 |
- |
|
| 23 |
-`This guide <usb-boot.html>`__ covers the creation of a bootable USB |
|
| 24 |
-drive. Your computer BIOS must support booting from USB. |
|
| 25 |
- |
|
| 26 |
-PXE Boot |
|
| 27 |
-~~~~~~~~ |
|
| 28 |
- |
|
| 29 |
-`This guide <pxe-boot.html>`__ covers the installation of OpenWRT on a |
|
| 30 |
-home router and configuring it as a PXE server, plus the creation of the |
|
| 31 |
-boot images and PXE support files. |
|
| 32 |
- |
|
| 33 |
-Installation bit blasting |
|
| 34 |
- |
|
| 35 |
-Install DevStack |
|
| 36 |
-~~~~~~~~~~~~~~~~ |
|
| 37 |
- |
|
| 38 |
-Grab the latest version of DevStack via https: |
|
| 39 |
- |
|
| 40 |
-:: |
|
| 41 |
- |
|
| 42 |
- sudo apt-get install git -y |
|
| 43 |
- git clone https://git.openstack.org/openstack-dev/devstack |
|
| 44 |
- cd devstack |
|
| 45 |
- |
|
| 46 |
-Prepare the Boot RAMdisk |
|
| 47 |
-~~~~~~~~~~~~~~~~~~~~~~~~ |
|
| 48 |
- |
|
| 49 |
-Pick your boot method and follow the guide to prepare to build the RAM |
|
| 50 |
-disk and set up the boot process: |
|
| 51 |
- |
|
| 52 |
-- `USB boot <usb-boot.html>`__ |
|
| 53 |
-- `PXE boot <pxe-boot.html>`__ |
|
| 54 |
- |
|
| 55 |
-Fire It Up |
|
| 56 |
-~~~~~~~~~~ |
|
| 57 |
- |
|
| 58 |
-- Boot the computer into the RAM disk. The details will vary from |
|
| 59 |
- machine to machine but most BIOSes have a method to select the boot |
|
| 60 |
- device, often by pressing F12 during POST. |
|
| 61 |
-- Select 'DevStack' from the Boot Menu. |
|
| 62 |
-- Log in with the 'stack' user and 'pass' password. |
|
| 63 |
-- Create ``devstack/localrc`` if you wish to change any of the |
|
| 64 |
- configuration variables. You will probably want to at least set the |
|
| 65 |
- admin login password to something memorable rather than the default |
|
| 66 |
- 20 random characters: |
|
| 67 |
- |
|
| 68 |
- :: |
|
| 69 |
- |
|
| 70 |
- ADMIN_PASSWORD=openstack |
|
| 71 |
- |
|
| 72 |
-- Fire up OpenStack! |
|
| 73 |
- |
|
| 74 |
- :: |
|
| 75 |
- |
|
| 76 |
- ./run.sh |
|
| 77 |
- |
|
| 78 |
-- See the processes running in screen: |
|
| 79 |
- |
|
| 80 |
- :: |
|
| 81 |
- |
|
| 82 |
- screen -x |
|
| 83 |
- |
|
| 84 |
-- Connect to the dashboard at ``http://<ip-address>/`` |
| 85 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,57 +0,0 @@ |
| 1 |
-`DevStack </>`__ |
|
| 2 |
- |
|
| 3 |
-- `Overview <../overview.html>`__ |
|
| 4 |
-- `Changes <../changes.html>`__ |
|
| 5 |
-- `FAQ <../faq.html>`__ |
|
| 6 |
-- `git.openstack.org <https://git.openstack.org/cgit/openstack-dev/devstack>`__ |
|
| 7 |
-- `Gerrit <https://review.openstack.org/#/q/status:open+project:openstack-dev/devstack,n,z>`__ |
|
| 8 |
- |
|
| 9 |
-USB Boot: Undoable Stack Boot |
|
| 10 |
-============================= |
|
| 11 |
- |
|
| 12 |
-Boot DevStack from a USB disk into a RAM disk. |
|
| 13 |
- |
|
| 14 |
-Prerequisites |
|
| 15 |
- |
|
| 16 |
-Hardware |
|
| 17 |
-~~~~~~~~ |
|
| 18 |
- |
|
| 19 |
-This guide covers the creation of a bootable USB drive. Your computer |
|
| 20 |
-BIOS must support booting from USB and You will want at least 3GB of |
|
| 21 |
-RAM. You also will need a USB drive of at least 2GB. |
|
| 22 |
- |
|
| 23 |
-Software |
|
| 24 |
-~~~~~~~~ |
|
| 25 |
- |
|
| 26 |
-Ubuntu 11.10 (Oneiric Ocelot) is required on host to create images. |
|
| 27 |
- |
|
| 28 |
-Installation bit blasting |
|
| 29 |
- |
|
| 30 |
-Set Up USB Drive |
|
| 31 |
-~~~~~~~~~~~~~~~~ |
|
| 32 |
- |
|
| 33 |
-- Insert the USB drive into the computer. Make a note of the device |
|
| 34 |
- name, such as ``sdb``. Do not mount the device. |
|
| 35 |
-- Install the boot system: |
|
| 36 |
- |
|
| 37 |
- :: |
|
| 38 |
- |
|
| 39 |
- tools/build_usb_boot.sh /dev/sdb1 |
|
| 40 |
- |
|
| 41 |
- This calls tools/build\_ramdisk.sh to create a 2GB ramdisk containing |
|
| 42 |
- a complete development Oneiric OS plus the OpenStack code checkouts. |
|
| 43 |
- It then writes a syslinux boot sector to the specified device and |
|
| 44 |
- creates ``/syslinux``. |
|
| 45 |
- |
|
| 46 |
-- If desired, you may now mount the device: |
|
| 47 |
- |
|
| 48 |
- :: |
|
| 49 |
- |
|
| 50 |
- mount /dev/sdb1 /mnt/tmp |
|
| 51 |
- # foo |
|
| 52 |
- umount /mnt/tmp |
|
| 53 |
- |
|
| 54 |
-Now `return <ramdisk.html>`__ to the RAM disk Guide to kick off your |
|
| 55 |
-DevStack experience. |