[1]
download VMWare Workstation 8.0.2
[2]
it work on the linux kernel 3.2
http://weltall.heliohost.org/
tar xzvf file.tar.gzsudo ./patch-modules_3.2.0.sh[3]
sudo sh VMware-Workstation-8.0.2-123456.i386.bundle
sudo ./patch-modules_3.2.0.sh
tar xzvf file.tar.gzsudo ./patch-modules_3.2.0.shsudo ./patch-modules_3.2.0.sh
# nova-manage service list Binary Host Zone Status State Updated_At nova-scheduler vpsee nova enabled :-) 2011-12-05 13:26:51 nova-volume vpsee nova enabled :-) 2011-12-05 13:26:49 nova-network vpsee nova enabled :-) 2011-12-05 13:26:51 nova-compute vpsee nova enabled :-) 2011-12-05 13:26:52 # euca-describe-availability-zones verbose Warning: failed to parse error message from AWS: :1:0: syntax error None: None修改 nova.conf 文件,在末尾明确加上 –use_deprecated_auth=true 这行(这个设置本来是默认的,以前版本的 OpenStack Nova 是不需要的),然后重启 nova 服务并重新生成 novacreds.zip,记得一定要 source novarc 哟:
# vi /etc/nova/nova.conf ... --use_deprecated_auth=true # restart libvirt-bin; restart nova-network; restart nova-compute; restart nova-api; restart nova-objectstore; restart nova-scheduler; restart nova-volume; restart glance-api; restart glance-registry # nova-manage project zipfile mycloud vpsee /home/vpsee/creds/novacreds.zip # cd /home/vpsee/creds # unzip novacreds.zip # chown -R vpsee:vpsee /home/vpsee/creds/ # source /home/vpsee/creds/novarc # euca-describe-availability-zones verbose AVAILABILITYZONE nova available AVAILABILITYZONE |- vpsee AVAILABILITYZONE | |- nova-scheduler enabled :-) 2011-12-05 13:32:44 AVAILABILITYZONE | |- nova-volume enabled :-) 2011-12-05 13:32:43 AVAILABILITYZONE | |- nova-network enabled :-) 2011-12-05 13:32:44 AVAILABILITYZONE | |- nova-compute enabled :-) 2011-12-05 13:32:47再附带一句,OpenStack 正在飞速发展中,这样或那样的问题也许在新版本里就不存在了,以前没有的问题也可能第一次出现在新版本中。
$ sudo vi /etc/nova/nova.conf --logdir=/var/log/nova --state_path=/var/lib/nova --lock_path=/var/lock/nova --verbose --s3_host=172.16.39.111 --rabbit_host=172.16.39.111 --cc_host=172.16.39.111 --ec2_url=http://172.16.39.111:8773/services/Cloud --FAKE_subdomain=ec2 --sql_connection=mysql://root:vpsee@172.16.39.111/nova --glance_host=172.16.39.111 --image_service=nova.image.glance.GlanceImageService --my_ip=172.16.39.111 --network_manager=nova.network.manager.FlatManager --fixed_range=172.16.38.0/23 --num_networks=1 --flat_injected=true看看 bridge 网卡配置是否正确:
$ sudo vi /etc/network/interfaces auto lo iface lo inet loopback auto br100 iface br100 inet static address 172.16.39.111 netmask 255.255.254.0 gateway 172.16.38.1 bridge_ports eth0 bridge_stp off bridge_maxwait 0 bridge_fd 0如果修改了上面的配置需要重启 Nova 的各个模块和 Ubuntu 的网络,怕麻烦的话还是直接重启系统吧:
$ sudo reboot如果 nova-manage network list 发现有以前留下的网络需要 delete 掉,删除所有以前残留的网络然后重新创建一个 172.16.38.0/23 新网络:
$ sudo nova-manage network delete 192.168.3.0/24 1 255 $ sudo nova-manage network create 172.16.38.0/23 1 512 $ sudo nova-manage network list network netmask start address DNS 172.16.38.0/23 255.255.254.0 172.16.38.2 8.8.4.4因为有些 IP 地址是我们局域网正在用的,新建的 VM 不能占用这些 IP,所以需要划分一些 IP 留给 OpenStack Nova 用,需要进入数据库后修改 fixed_ips 这个表的 reserved 为 0,比如我们想把 172.16.39.222-226 这5个 IP 留给 OpenStack Nova instances:
$ mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 135 Server version: 5.1.54-1ubuntu4 (Ubuntu) Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> use nova; Database changed mysql> update fixed_ips set reserved = '1'; Query OK, 6 rows affected (0.00 sec) Rows matched: 1448 Changed: 6 Warnings: 0 mysql> update fixed_ips set reserved = '0' where address='172.16.39.222'; mysql> update fixed_ips set reserved = '0' where address='172.16.39.223'; mysql> update fixed_ips set reserved = '0' where address='172.16.39.224'; mysql> update fixed_ips set reserved = '0' where address='172.16.39.225'; mysql> update fixed_ips set reserved = '0' where address='172.16.39.226';重启 OpenStack Nova 的各个模块,然后新建一个 ubuntu instance 测试一下是否得到了正确的 IP 并能 ping 通网关(172.16.38.1)。
| virt. | adv. | kernal | hw | bg | |
| Xen | Para/Full | CPU | guest(2.6.23), host(patch) | Citrix(2007) | |
| KVM | Full | I/O | 2.6.20 | VT-x, AMD-V | RedHat(2008) |
| Legend | |
| PV | Para-Virtualized (Xen): Guest kernel optimized for virtualization. |
| FV | Fully-Virtualized (Xen or KVM): Unmodified guest kernel, requires virtualization support in hardware. |
| Optimized | Supported. PV or optimized PV drivers provided, fully certified stack (e.g. Microsoft SVVP). |
| Supported | Supported but no or limited optimized PV drivers provided, limited certification (for Windows Server e.g. Microsoft WHQL but no SVVP). |
| Unsupported | Not supported and may not work |
| N/A | Not a valid combination. |
| Tech Preview | Technically possible, but not yet supported. |
| Virtualization Platform, Kernel & Processor Architecture | |||||
| Guest Operating System | RHEL 6 64-bit x86_64 (KVM), RHEV-H 6 | RHEL 5 64-bit x86-64 (KVM)1, RHEV-H 5 | RHEL 5 64-bit x86-64 (Xen) | RHEL 5 32-bit x 86-32 (PAE, Xen) | RHEL 5 IA64 |
| Supported Enterprise Linux Combinations | |||||
| Red Hat Enterprise Linux 3 x86-64 FV | Optimized2 | Optimized2 | Optimized | N/A | N/A |
| Red Hat Enterprise Linux 3 x86-32 FV | Optimized2 | Optimized2 | Optimized3 | Optimized3 | N/A |
| Red Hat Enterprise Linux 3 IA64 FV | N/A | N/A | N/A | N/A | N/A |
| Red Hat Enterprise Linux 4 x86-64 PV | N/A | N/A | Optimized | N/A | N/A |
| Red Hat Enterprise Linux 4 x86-64 FV | Optimized2 | Optimized2 | Optimized3 | N/A | N/A |
| Red Hat Enterprise Linux 4 x86-32 PV | N/A | N/A | Optimized4 | Optimized | N/A |
| Red Hat Enterprise Linux 4 x86-32 FV | Optimized2 | Optimized2 | Optimized3 | Optimized3 | N/A |
| Red Hat Enterprise Linux 4 IA64 PV | N/A | N/A | N/A | N/A | Optimized |
| Red Hat Enterprise Linux 4 IA64 FV | N/A | N/A | N/A | N/A | Supported |
| Red Hat Enterprise Linux 5 x86-64 PV | N/A | N/A | Optimized | N/A | N/A |
| Red Hat Enterprise Linux 5 x86-64 FV | Optimized2 | Optimized2 | Optimized3 | N/A | N/A |
| Red Hat Enterprise Linux 5 x86-32 PV | N/A | N/A | Optimized4 | Optimized | N/A |
| Red Hat Enterprise Linux 5 x86-32 FV | Optimized2 | Optimized2 | Optimized3 | Optimized3 | N/A |
| Red Hat Enterprise Linux 5 IA64 PV | N/A | N/A | N/A | N/A | Optimized |
| Red Hat Enterprise Linux 5 IA64 FV | N/A | N/A | N/A | N/A | Supported |
| Red Hat Enterprise Linux 6 x86-64 PV | N/A | N/A | Optimized2 | N/A | N/A |
| Red Hat Enterprise Linux 6 x86-64 FV | Optimized2 | Optimized2 | Optimized2 | N/A | N/A |
| Red Hat Enterprise Linux 6 x86-32 PV | N/A | N/A | Optimized2 | Optimized2 | N/A |
| Red Hat Enterprise Linux 6 x86-32 FV | Optimized2 | Optimized2 | Optimized2 | Optimized2 | N/A |
| Supported 3rd Party Guest Operating Systems | |||||
| Windows Server 2000 32-Bit x86 | Unsupported | Unsupported | Supported | Supported | N/A |
| Windows Server 2000 IA64 | N/A | N/A | N/A | N/A | Supported |
| Windows Server 2003 32-Bit x86 | Optimized5 | Optimized5 | Supported7 | Supported7 | N/A |
| Windows Server 2003 64-Bit x86 | Optimized5 | Optimized5 | Unsupported | N/A | N/A |
| Windows Server 2003 IA64 | N/A | N/A | N/A | N/A | Supported |
| Windows Server 2003 R2 32-Bit x86 | Optimized5 | Optimized5 | Supported7 | Supported7 | N/A |
| Windows Server 2003 R2 64-Bit x86 | Optimized5 | Optimized5 | Unsupported | N/A | N/A |
| Windows Server 2003 R2 IA64 | N/A | N/A | N/A | N/A | Supported |
| Windows Server 2008 32-Bit x86 | Optimized5 | Optimized5 | Supported7 | Supported7 | N/A |
| Windows Server 2008 64-Bit x86 | Optimized5 | Optimized5 | Unsupported | N/A | N/A |
| Windows Server 2008 IA64 | N/A | N/A | N/A | N/A | Supported |
| Windows Server 2008 R2 64-Bit x86 | Optimized5 | Optimized5 | Unsupported | N/A | N/A |
| Windows Server 2008 R2 IA64 | N/A | N/A | N/A | N/A | Supported |
| Windows XP 32-Bit x86 | Optimized6 | Optimized6 | Supported | Supported | N/A |
| Windows XP 64-Bit x86 | Unsupported | Unsupported | Unsupported | N/A | N/A |
| Windows Vista 32-Bit x86 | Supported | Supported | Supported | Supported | N/A |
| Windows Vista 64-Bit x86 | Supported | Supported | Supported | N/A | N/A |
| Windows 7 32-Bit x86 | Optimized5 | Optimized5 | Unsupported | N/A | N/A |
| Windows 7 64-Bit x86 | Optimized5 | Optimized5 | Unsupported | N/A | N/A |