about windows server imags

Asked by halfss

Sorry,my english is very bad.

my nova.conf

--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/var/lock/nova
--verbose=1
--s3_host=60.12.206.101
--rabbit_host=60.12.206.101
--cc_host=60.12.206.101
--ec2_url=http://60.12.206.101:8773/services/Cloud
--fixed_range=10.0.0.0/24
--network_size=254
--FAKE_subdomain=ec2
--routing_source_ip=60.12.206.101
--sql_connection=mysql://nova:nova@192.168.1.2/nova
--glance_host=60.12.206.101
--image_service=nova.image.glance.GlanceImageService
--network_manager=nova.network.manager.FlatDHCPManager
--flat_network_dhcp_start=10.0.0.2
--flat_interface=eth1
--public_interface=eth0
--flat_injected=false
--my_ip=60.12.206.101
--network_host=60.12.206.101
--vnc_console_proxy_url=http://60.12.206.101:6080
--vnc_enabled=True
--vncproxy_host=0.0.0.0
--vncproxy_host=http://60.12.206.101:6080

when i start an instance with imags that make by myself,froot@op1:/home/openstack# euca-describe-instances
root@op1:/home/openstack# euca-describe-images
IMAGE aki-00000008 bucket/maverick-server-uec-amd64-vmlinuz-virtual.manifest.xml available public i386 kernel
IMAGE ami-00000009 bucket/maverick-server-uec-amd64.img.manifest.xml available public i386 machine aki-00000008
IMAGE aki-0000000b guanfang/maverick-server-uec-amd64-vmlinuz-virtual.manifest.xml available public i386 kernel
IMAGE ami-0000000c guanfang/maverick-server-uec-amd64.img.manifest.xml available public i386 machine aki-0000000b
IMAGE ami-00000014 mybucket/server.img.manifest.xml available public x86_64 machine
IMAGE ami-00000015 mybucket/win03.img.manifest.xml available public x86_64 machine
IMAGE ami-00000017 mybucket/win08r2.img.manifest.xml available public x86_64 machine

root@op1:/home/openstack# euca-describe-instances
RESERVATION r-uth5vc2f cloud default
INSTANCE i-00000009 ami-00000002 10.0.0.4 10.0.0.4 running gamewave (cloud, op1) 0 m1.tiny 2011-08-29T05:08:14Z nova
RESERVATION r-eovboxsu cloud default
INSTANCE i-00000014 ami-00000014 10.0.0.5 10.0.0.5 running gamewave (cloud, op2) 0 m1.medium 2011-08-30T01:11:29Z nova
RESERVATION r-484yzaeb cloud default
INSTANCE i-0000001a ami-00000017 10.0.0.2 10.0.0.2 shutdown gamewave (cloud, op1) 0 m1.medium 2011-08-30T02:12:42Z nova

the instance that use centos imags(make by myself too) is ok,but the instance i-1a is filed to start.The image windows server 2003 and window server 2008 with the same error,can not start the instance.

here is some error in nova-compute.log

2011-08-30 10:14:57,546 ERROR nova.exception [-] 未捕获异常
(nova.exception): TRACE: Traceback (most recent call last):
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/exception.py", line 120, in _wrap
(nova.exception): TRACE: return f(*args, **kw)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/libvirt_conn.py", line 616, in spawn
(nova.exception): TRACE: self._create_image(instance, xml, network_info)
(nova.exception): TRACE: File "/usr/lib/pymodules/python2.7/nova/virt/libvirt_conn.py", line 945, in _create_image
(nova.exception): TRACE: ' data into image %(img_id)s (%(e)s)') % locals())
(nova.exception): TRACE: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)
(nova.exception): TRACE:
2011-08-30 10:14:57,548 ERROR nova.compute.manager [5-EDGRWJCT0-V4PURA68 gamewave cloud] Instance '26' failed to spawn. Is virtualization enabled in the BIOS?
(nova.compute.manager): TRACE: Traceback (most recent call last):
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/compute/manager.py", line 234, in run_instance
(nova.compute.manager): TRACE: self.driver.spawn(instance_ref)
(nova.compute.manager): TRACE: File "/usr/lib/pymodules/python2.7/nova/exception.py", line 126, in _wrap
(nova.compute.manager): TRACE: raise Error(str(e))
(nova.compute.manager): TRACE: Error: 'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)
(nova.compute.manager): TRACE:
2011-08-30 10:15:34,801 INFO nova.compute.manager [-] Found instance 'instance-0000001a' in DB but no VM. State=8, so setting state to shutoff.
2011-08-30 10:15:34,801 INFO nova.compute.manager [-] DB/VM state mismatch. Changing state from '8' to '5'
2011-08-30 10:16:34,932 INFO nova.compute.manager [-] Found instance 'instance-0000001a' in DB but no VM. State=5, so setting state to shutoff.
2011-08-30 10:17:34,983 INFO nova.compute.manager [-] Found instance 'instance-0000001a' in DB but no VM. State=5, so setting state to shutoff.

Is anybody can give me some help? thanks very much.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
Yaguang Tang
Solved:
Last query:
Last reply:
Revision history for this message
Best Yaguang Tang (heut2008) said :
#1

 check if you have start libvirt-bin ,if not ,start it by start libvirt-bin.

Revision history for this message
halfss (ljvsss) said :
#2

Thanks beyondmandela, that solved my question.