OpenStack Deployment notes and installing WindowsXP images

Source: Internet
Author: User

The following is my recent two weeks to build OpenStack experience and notes, reference to the online very information, finally completed, the way encountered a lot of problems, such as stack.sh execution Midway error problem, the system installed VNC connection problem, BYOC host blue screen problem, and then all slowly resolved, for you to refer to users.


1. The system is ubuntu-14.04.1 AMD64 bit version, the computer single network card can be, do not need dual network card.

2. sudo apt-get update

3. Sudo apt-get upgrade

4. sudo apt-get install python-netaddr git openssh-server

5. Git clone git://github.com/openstack-dev/devstack.git

6. CD devstack;./stack.sh


Follow the prompts to enter a bunch of passwords, directly installed, if there is an error in the middle, may be the source of the download problem, pay attention to the error prompts, and then execute the git clone git://xxxxx successful, then execute./stack.sh, go ahead.

7 Access http:/server IP, user name Admin password is what you entered above.



If the server restarts, perform the following command to recover:

CD devstack;./rejoin-stack.sh

------------------------------------------------------------------------------------------

8. After a few steps, the environment is set up, and then you have to create a mirror and build the cloud host, you can toss on other computers


9. Install the relevant software sudo apt-get install python-novaclient python-glanceclient Swift QEMU-KVM

10. Set Environment variables:

Export Service_token=admin
Export Os_tenant_name=admin
Export Os_username=admin
Export os_password= your password
Export os_auth_url= "HTTP/server ip:5000/v2.0/"
Export service_endpoint= "HTTP/server ip:35357/v2.0"

11. Create an IMG file

Kvm-img create-f Raw Windowsxp.img 10G

12. Download Virtio Driver

wget Http://alt.fedoraproject.org/pub/alt/virtio-win/archives/virtio-win-0.1-59/virtio-win-0.1-59.iso
wget http://www.linuxwind.org/download/virtio-win-1.1.16.vfd

13. Start the installation program

sudo kvm-m 1024-cdrom windowsxp.iso-drive file=windowsxp.img,if=virtio,boot=on-fda virtio-win-1.1.16.vfd-boot d-nogr aphic-vnc:0

14. Installing the system using a VNC connection

15. Install the NIC driver

After the system is loaded, you need to install the network card driver, first shut down the XP system, and then enter the following command

sudo kvm-m 1024-cdrom virtio-win-0.1-59.iso-drive file=windowsxp.img,if=virtio,boot=on-net nic,model=virtio-boot d-n Ographic-net User-usb-usbdevice tablet-vnc:0


After entering the virtual machine, in the Device Manager, search the CD-ROM to install the NIC driver

16. Uploading Images

Glance image-create--name= "windowsxp"--is-public=true--container-format=ovf--disk-format=raw < windowsxp.img

17. You can then Ober Jianyun the host to the Web interface.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.