mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix HVM booting through Xen-API when the kernel is unspecified.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
53211200e3
commit
866cc9cd43
2 files changed
+5
No files matched your search
@@ -1555,6 +1555,8 @@ class XendDomainInfo:
|
||||
if boot:
|
||||
# HVM booting.
|
||||
self.info['image']['type'] = 'hvm'
|
||||
if not 'devices' in self.info['image']:
|
||||
self.info['image']['devices'] = {}
|
||||
self.info['image']['devices']['boot'] = boot
|
||||
elif not blexec and kernel:
|
||||
# Boot from dom0. Nothing left to do -- the kernel and ramdisk
|
||||
|
||||
@@ -312,6 +312,9 @@ class HVMImageHandler(ImageHandler):
|
||||
def configure(self, vmConfig, imageConfig, deviceConfig):
|
||||
ImageHandler.configure(self, vmConfig, imageConfig, deviceConfig)
|
||||
|
||||
if not self.kernel:
|
||||
self.kernel = '/usr/lib/xen/boot/hvmloader'
|
||||
|
||||
info = xc.xeninfo()
|
||||
if 'hvm' not in info['xen_caps']:
|
||||
raise VmError("HVM guest support is unavailable: is VT/AMD-V "
|
||||
|
||||