[one-users] some questions
jvp1 at alu.upct.es
jvp1 at alu.upct.es
Mon Sep 22 00:54:51 PDT 2008
Ok. I'll start again. I have installed on SLES10 a virtual machine from
virt-manager. This is the config file for the vm, modified with the new
location of the disk image (that works):
-------------------------------------------------------------------------------
name="sles10"
uuid="982aa47d-59bf-09b9-c889-245973481ae3"
memory=384
vcpus=1
on_poweroff="destroy"
on_reboot="restart"
on_crash="destroy"
localtime=0
builder="linux"
bootloader="/usr/lib/xen/boot/domUloader.py"
bootargs="--entry=xvda2:/boot/vmlinuz-xenpae,/boot/initrd-xenpae"
extra=" "
disk=[ 'file:/opt/images/sles10.img,xvda,w', ]
vif=[ 'mac=00:16:3e:58:82:3a', ]
vfb=['type=vnc,vncunused=1']
-------------------------------------------------------------------------------
And now, i have opennebula, and this is the file that i've created:
-------------------------------------------------------------------------------
NAME = sles10
CPU = 0.5
MEMORY = 128
OS = [
kernel = "/boot/vmlinuz-xenpae",
initrd = "/boot/initrd-xenpae",
root = "xvda2",
boot = "xvda"
]
DISK = [
source = "/opt/nebula/images/sles10.img",
target = "xvda",
readonly = "no"
]
NIC = [
mac = "00:16:3e:58:82:3a",
bridge = "eth0"
]
GRAPHICS = [
type ="vnc",
listen ="127.0.0.1",
port ="5900"
]
-------------------------------------------------------------------------------
This is vm.log:
-------------------------------------------------------------------------------
Wed Sep 17 09:15:22 2008 [DiM][I]: New VM state is ACTIVE.
Wed Sep 17 09:15:22 2008 [LCM][I]: New VM state is PROLOG.
Wed Sep 17 09:15:22 2008 [LCM][I]: New VM state is BOOT
Wed Sep 17 09:15:22 2008 [VMM][I]: Generating deployment file:
/opt/nebula/ONE//var/5/deployment.0
Wed Sep 17 09:15:24 2008 [VMM][E]: Error deploying virtual machine:
('44d388e2-30c7-77d9-d4c5-9c8838422d6f', 'VM_metrics')
Wed Sep 17 09:15:27 2008 [LCM][I]: Fail to boot VM.
Wed Sep 17 09:15:27 2008 [DiM][I]: New VM state is FAILED
Wed Sep 17 09:20:31 2008 [DiM][I]: New VM state is DONE.
-------------------------------------------------------------------------------
File deployment.0:
-------------------------------------------------------------------------------
name = 'one-5'
#O CPU_CREDITS = 128
memory = '128'
kernel = '/boot/vmlinuz-xenpae'
root = '/dev/xvda2 ro'
ramdisk = '/boot/initrd-xenapae'
disk = [
'file:/opt/nebula/images/sles10.img,xvda,w',
]
vif = [
]
vfb = ['type=vnc,vnclisten=127.0.0.1,vncdisplay=5900']
-------------------------------------------------------------------------------
Log from xend:
-------------------------------------------------------------------------------
[2008-09-22 09:02:30 4064] DEBUG (XendDomainInfo:2287) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid':
'00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'image':
'(linux (kernel ) (keymap es))', 'on_poweroff': 'destroy',
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':
'0', 'vcpus': '2', 'vcpu_avail': '3', 'name': 'Domain-0'}
[2008-09-22 09:02:30 4064] DEBUG (XendDomainInfo:1030) Storing domain
details: {'name': 'Domain-0', 'console/limit': '1048576',
'memory/target': '524288', 'vm':
'/vm/00000000-0000-0000-0000-000000000000', 'domid': '0',
'security_label': '', 'cpu/0/availability': 'online',
'cpu/1/availability': 'online',
'control/platform-feature-multiprocessor-suspend': '1', 'console/type':
'xenconsoled'}
[2008-09-22 09:02:30 4064] DEBUG (XendDomain:445) Adding Domain: 0
[2008-09-22 09:02:30 4064] DEBUG (XendDomain:381) number of vcpus to use
is 0
[2008-09-22 09:02:30 4064] DEBUG (XendDomainInfo:1114)
XendDomainInfo.handleShutdownWatch
[2008-09-22 09:02:31 4064] DEBUG (XendDomainInfo:240)
XendDomainInfo.createDormant({'vcpus_params': {'cap': 0, 'weight': 256},
'PV_args': ' ', 'features': '', 'cpus': [], 'devices':
{'38be15d2-5e87-bf05-cdc0-ad912eee4525': ('vbd', {'uuid':
'38be15d2-5e87-bf05-cdc0-ad912eee4525', 'bootable': 1, 'driver':
'paravirtualised', 'dev': 'xvda:disk', 'uname':
'file:/var/lib/xen/images/sles10/disk0', 'mode': 'w', 'backend': '0'}),
'7f04317a-704b-acc6-3cde-ec4de1f76f0c': ('vbd', {'uuid':
'7f04317a-704b-acc6-3cde-ec4de1f76f0c', 'bootable': 0, 'driver':
'paravirtualised', 'dev': 'xvdb:cdrom', 'uname':
'file:/var/lib/xen/isos/SLES-10-SP2-DVD-i386-GM-DVD1.iso', 'mode': 'r',
'backend': '0'}), 'f04fdb2d-ebab-dda6-6452-1a77b68fb055': ('vfb',
{'vncunused': '1', 'xauthority': '/root/.xauthgA5T09', 'other_config':
{'vncunused': '1', 'keymap': 'es', 'type': 'vnc', 'display': ':0.0',
'xauthority': '/root/.xauthgA5T09'}, 'keymap': 'es', 'type': 'vnc',
'display': ':0.0', 'uuid': 'f04fdb2d-ebab-dda6-6452-1a77b68fb055'}),
'c6ac3552-a2a6-c604-08a8-187b08e0a2ec': ('vif', {'mac':
'00:16:3e:58:82:3a', 'script': 'vif-bridge', 'uuid':
'c6ac3552-a2a6-c604-08a8-187b08e0a2ec', 'backend': '0'}),
'40f2f2d0-be4c-04a5-4b8d-1a551b101110': ('vkbd', {'uuid':
'40f2f2d0-be4c-04a5-4b8d-1a551b101110', 'backend': '0'})}, 'vcpu_avail':
1L, 'VCPUs_live': 1, 'PV_bootloader': '/usr/lib/xen/boot/domUloader.py',
'actions_after_crash': 'destroy', 'vbd_refs':
['38be15d2-5e87-bf05-cdc0-ad912eee4525',
'7f04317a-704b-acc6-3cde-ec4de1f76f0c'], 'PV_ramdisk': '',
'is_control_domain': False, 'name_label': 'sles10', 'VCPUs_at_startup':
1, 'HVM_boot_params': {}, 'platform': {'device_model':
'/usr/lib64/xen/bin/qemu-dm', 'keymap': 'es'}, 'PV_kernel': '',
'console_refs': ['f04fdb2d-ebab-dda6-6452-1a77b68fb055'], 'vif_refs':
['c6ac3552-a2a6-c604-08a8-187b08e0a2ec'], 'on_xend_stop': 'ignore',
'memory_static_min': 0, 'HVM_boot_policy': '', 'VCPUs_max': 1,
'start_time': 1220962254.6600001, 'memory_static_max': 402653184,
'actions_after_shutdown': 'destroy', 'on_xend_start': 'ignore',
'memory_dynamic_max': 402653184, 'actions_after_suspend': '',
'is_a_template': False, 'memory_dynamic_min': 402653184, 'uuid':
'982aa47d-59bf-09b9-c889-245973481ae3', 'shadow_memory': 0,
'PV_bootloader_args':
'--entry=xvda2:/boot/vmlinuz-xenpae,/boot/initrd-xenpae', 'notes':
{'HV_START_LOW': '4118806528', 'FEATURES':
'writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel',
'VIRT_BASE': '3221225472', 'GUEST_VERSION': '2.6', 'PADDR_OFFSET': '0',
'GUEST_OS': 'linux', 'HYPERCALL_PAGE': '3222278144', 'LOADER':
'generic', 'SUSPEND_CANCEL': '1', 'PAE_MODE': 'yes', 'ENTRY':
'3222274048', 'XEN_VERSION': 'xen-3.0'}, 'other_config': {},
'actions_after_reboot': 'restart', 'status': '1', 'vtpm_refs': []})
[2008-09-22 09:02:31 4064] INFO (SrvServer:178) unix
path=/var/lib/xend/xend-socket
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
VBD.set_device not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call: VBD.set_type
not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
session.get_all_records not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
event.get_record not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call: event.get_all
not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
VM.get_auto_power_on not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
VM.set_auto_power_on not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
VIF.get_network not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call:
VIF.set_device not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call: VIF.set_MAC
not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call: VIF.set_MTU
not found
[2008-09-22 09:02:31 4064] WARNING (XendAPI:678) API call: debug.get_all
not found
[2008-09-22 09:02:31 4064] INFO (XMLRPCServer:149) Opening Unix domain
socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has
been disabled for this server.
[2008-09-22 09:02:31 4064] INFO (XMLRPCServer:149) Opening Unix domain
socket XML-RPC server on /var/run/xend/xmlrpc.sock.
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:84)
XendDomainInfo.create(['vm', ['name', 'one-5'], ['memory', '128'],
['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'],
['image', ['linux', ['kernel', '/boot/vmlinuz-xenpae'], ['ramdisk',
'/boot/initrd-xenapae'], ['root', '/dev/xvda2 ro']]], ['device', ['vbd',
['uname', 'file:/opt/nebula/images/sles10.img'], ['dev', 'xvda'],
['mode', 'w']]], ['device', ['vkbd']], ['device', ['vfb', ['vnclisten',
'127.0.0.1'], ['type', 'vnc'], ['vncdisplay', '5900'], ['display',
':0.0'], ['xauthority', '/root/.xauthjKBIfJ']]]])
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1664)
XendDomainInfo.constructDomain
[2008-09-22 09:22:29 4064] DEBUG (balloon:151) Balloon: 1518504 KiB
free; need 2048; done.
[2008-09-22 09:22:29 4064] DEBUG (XendDomain:445) Adding Domain: 1
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1757)
XendDomainInfo.initDomain: 1 256
[2008-09-22 09:22:29 4064] DEBUG (image:231) No VNC passwd configured
for vfb access
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1825)
_initDomain:shadow_memory=0x0, memory_static_max=0x8000000,
memory_static_min=0x0.
[2008-09-22 09:22:29 4064] DEBUG (balloon:151) Balloon: 1518496 KiB
free; need 131584; done.
[2008-09-22 09:22:29 4064] ERROR (XendDomainInfo:1862)
XendDomainInfo.initDomain: exception occurred
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1842, in _initDomain
channel_details = self.image.createImage()
File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line 122,
in createImage
return self.createDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/image.py", line 131,
in createDomain
raise VmError('Kernel image does not exist: %s' % self.kernel)
VmError: Kernel image does not exist: /boot/vmlinuz-xenpae
[2008-09-22 09:22:29 4064] ERROR (XendDomainInfo:440) VM start failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 420, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line
209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1865, in _initDomain
raise exn
VmError: Kernel image does not exist: /boot/vmlinuz-xenpae
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1984)
XendDomainInfo.destroy: domid=1
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:2001)
XendDomainInfo.destroyDomain(1)
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1575) Destroying device
model
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1582) Releasing devices
[2008-09-22 09:22:29 4064] ERROR (XendDomainInfo:89) Domain construction
failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 87, in create
vm.start()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 420, in start
XendTask.log_progress(31, 60, self._initDomain)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendTask.py", line
209, in log_progress
retval = func(*args, **kwds)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1865, in _initDomain
raise exn
VmError: Kernel image does not exist: /boot/vmlinuz-xenpae
[2008-09-22 09:22:29 4064] DEBUG (XendDomainInfo:1984)
XendDomainInfo.destroy: domid=None
[2008-09-22 09:22:29 4064] ERROR (xmlrpclib2:178) Internal error
handling xend.domain.create
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/util/xmlrpclib2.py", line
131, in _marshaled_dispatch
response = self._dispatch(method, params)
File "/usr/lib64/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
return func(*params)
File
"/usr/lib64/python2.4/site-packages/xen/xend/server/XMLRPCServer.py",
line 72, in domain_create
info = XendDomain.instance().domain_create(config)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomain.py", line
961, in domain_create
dominfo = XendDomainInfo.create(config)
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 90, in create
vm.destroy()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 1988, in destroy
self._cleanupVm()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py",
line 2193, in _cleanupVm
self.metrics.destroy()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendBase.py", line
94, in destroy
XendAPIStore.deregister(self.get_uuid(), self.getClass())
File "/usr/lib64/python2.4/site-packages/xen/xend/XendAPIStore.py",
line 36, in deregister
del __classes[(uuid, type)]
KeyError: ('34a61b88-9c55-0618-d544-69d133821f44', 'VM_metrics')
More information about the Users
mailing list