Skip to contentSkip to conversation

Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)

DISCUSSION Boris Derzhavets 3 participants 13 messages Jul 17, 2011 – Jul 20, 2011

lore
Share & tools
lore
#0 lore raw
root@boris-P5Q-E:/mnt/usr/tmp# losetup -f ubuntu11.04.iso
root@boris-P5Q-E:/mnt/usr/tmp# losetup -a
/dev/loop0: [0809]:406494 (/mnt/usr/tmp/ubuntu11.04.iso)
root@boris-P5Q-E:~/vms/natty# cat natty.hvm
name = "NattyHVM"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda5,hda,w', 'phy:/dev/loop0,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=br0' ]
device_model = "/usr/lib/xen-4.1/bin/qemu-dm"
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
vnc=1
boot="d"
usb=1
usbdevice="tablet"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
root@boris-P5Q-E:~/vms/natty# xl create natty.hvm
Parsing config file natty.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready
xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 24 lines · Boris Derzhavets
root@boris-P5Q-E:/mnt/usr/tmp# losetup -f ubuntu11.04.iso
root@boris-P5Q-E:/mnt/usr/tmp# losetup -a
/dev/loop0: [0809]:406494 (/mnt/usr/tmp/ubuntu11.04.iso)
root@boris-P5Q-E:~/vms/natty# cat natty.hvm
name = "NattyHVM"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda5,hda,w', 'phy:/dev/loop0,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=br0' ]
device_model = "/usr/lib/xen-4.1/bin/qemu-dm"
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
vnc=1
boot="d"
usb=1
usbdevice="tablet"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
Quoted 12 lines
root@boris-P5Q-E:~/vms/natty# xl create natty.hvm
Parsing config file natty.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready
xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup

qemu is failing to start.
Is there anything in /var/log/xen/qemu-dm-NattyHVM.log ?

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#2 lore raw

domid: 1
-videoram option does not work with cirrus vga device model. Videoram set to 4M. Using file /dev/sda5 in read-write mode
Using file /dev/loop0 in read-only mode
Watching /local/domain/0/device-model/1/logdirty/cmd
Watching /local/domain/0/device-model/1/command
Watching /local/domain/1/cpu
char device redirected to /dev/pts/2
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 4de22a31-1735-4d06-be4d-3887eba949ee
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error Could not read keymap file: '/usr/share/qemu/keymaps/en-us'

Boris

--- On Mon, 7/18/11, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Monday, July 18, 2011, 7:40 AM

Quoted 24 lines · Boris Derzhavets
root@boris-P5Q-E:/mnt/usr/tmp# losetup -f ubuntu11.04.iso
root@boris-P5Q-E:/mnt/usr/tmp# losetup -a
/dev/loop0: [0809]:406494 (/mnt/usr/tmp/ubuntu11.04.iso)
root@boris-P5Q-E:~/vms/natty# cat natty.hvm
name = "NattyHVM"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda5,hda,w', 'phy:/dev/loop0,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=br0' ]
device_model = "/usr/lib/xen-4.1/bin/qemu-dm"
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
vnc=1
boot="d"
usb=1
usbdevice="tablet"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'
Quoted 12 lines
root@boris-P5Q-E:~/vms/natty# xl create natty.hvm
Parsing config file natty.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready
xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup

qemu is failing to start.
Is there anything in /var/log/xen/qemu-dm-NattyHVM.log ? -----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#3 lore raw
Quoted 11 lines · Boris Derzhavets

domid: 1
-videoram option does not work with cirrus vga device model. Videoram set to 4M. Using file /dev/sda5 in read-write mode
Using file /dev/loop0 in read-only mode
Watching /local/domain/0/device-model/1/logdirty/cmd
Watching /local/domain/0/device-model/1/command
Watching /local/domain/1/cpu
char device redirected to /dev/pts/2
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb

Quoted 9 lines

Guest uuid = 4de22a31-1735-4d06-be4d-3887eba949ee
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error Could not read keymap file: '/usr/share/qemu/keymaps/en-us'

as you can see from the last line of the logs, you are missing the keymap files (see keymaps directory under qemu-xen-4.1-testing).

#4 lore raw

Keymaps installed

Now:

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 32668
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Mon Jul 18 17:36:33 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:/var/log/xen# cat qemu-dm-F14HVM.log
domid: 236
-videoram option does not work with cirrus vga device model. Videoram set to 4M.
Using file /dev/sda5 in read-write mode
Using file /dev/loop0 in read-only mode
Watching /local/domain/0/device-model/236/logdirty/cmd
Watching /local/domain/0/device-model/236/command
Watching /local/domain/236/cpu
char device redirected to /dev/pts/3
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = b5a57be5-1097-4021-b3a7-56133c229c16
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state.
xs_read(/local/domain/0/device-model/236/xen_extended_power_mgmt): read error
xs_read(): vncpasswd get error. /vm/b5a57be5-1097-4021-b3a7-56133c229c16/vncpasswd.
medium change watch on `hdc' (index: 1): /dev/loop0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
Log-dirty: no command yet.
vcpu-set: watch node error.
xs_read(/local/domain/236/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/236/log-throttling'
medium change watch on `/local/domain/236/log-throttling' - unknown device, ignored

Boris

--- On Mon, 7/18/11, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: [Xen-users] Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Monday, July 18, 2011, 8:39 AM

Quoted 11 lines · Boris Derzhavets

domid: 1
-videoram option does not work with cirrus vga device model. Videoram set to 4M. Using file /dev/sda5 in read-write mode
Using file /dev/loop0 in read-only mode
Watching /local/domain/0/device-model/1/logdirty/cmd
Watching /local/domain/0/device-model/1/command
Watching /local/domain/1/cpu
char device redirected to /dev/pts/2
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb

Quoted 9 lines

Guest uuid = 4de22a31-1735-4d06-be4d-3887eba949ee
populating video RAM at ff000000
mapping video RAM from ff000000
Register xen platform.
Done register platform.
platform_fixed_ioport: changed ro/rw state of ROM memory area. now is rw state. xs_read(/local/domain/0/device-model/1/xen_extended_power_mgmt): read error Could not read keymap file: '/usr/share/qemu/keymaps/en-us'

as you can see from the last line of the logs, you are missing the keymap files (see keymaps directory under qemu-xen-4.1-testing).

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#5 lore raw
Quoted 17 lines · Boris Derzhavets

Keymaps installed

Now:

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 32668
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0
Quoted 8 lines

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Mon Jul 18 17:36:33 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:/var/log/xen# cat qemu-dm-F14HVM.log

There aren't any error in the qemu logs.

Can you please make sure you have:

vncdisplay=0

in the f14.hvm config file?

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#6 lore raw

Here it is

root@boris-P5Q-E:~/vms/natty# cat f14.hvm
name = "HVM14"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda5,hda,w', 'phy:/dev/loop0,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=br0' ]
device_model = "/usr/lib/xen-4.1/bin/qemu-dm"
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
vnc=1
vncdisplay=0
boot="d"
usb=1
usbdevice="tablet"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'

Boris

--- On Mon, 7/18/11, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-users] Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)
To: "Boris Derzhavets" <[email protected]>
Cc: "Stefano Stabellini" <[email protected]>, "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Monday, July 18, 2011, 12:26 PM

Quoted 17 lines · Boris Derzhavets

Keymaps installed

Now:

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 32668
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0
Quoted 8 lines

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Mon Jul 18 17:36:33 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:/var/log/xen# cat qemu-dm-F14HVM.log

There aren't any error in the qemu logs.

Can you please make sure you have:

vncdisplay=0

in the f14.hvm config file?

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#7 lore raw
Quoted 18 lines · Boris Derzhavets

Here it is

root@boris-P5Q-E:~/vms/natty# cat f14.hvm
name = "HVM14"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda5,hda,w', 'phy:/dev/loop0,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=br0' ]
device_model = "/usr/lib/xen-4.1/bin/qemu-dm"
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
vnc=1
vncdisplay=0
boot="d"
usb=1
usbdevice="tablet"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'

It looks correct, I think it should work. Are you still having the problem?
Do you have any errors on the Xen serial (xl dmesg)?

#8 lore raw
root@boris-P5Q-E:~# xl dmesg
(XEN) Xen version 4.1.0 (Ubuntu 4.1.0-3ubuntu4) ([email protected]) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.0-10ubuntu2) ) Sat Jun  4 19:41:05 UTC 2011
(XEN) Bootloader: GRUB 1.99-8ubuntu1
(XEN) Command line: placeholder
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 0 MBR signatures
(XEN)  Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009cc00 (usable)
(XEN)  000000000009cc00 - 00000000000a0000 (reserved)
(XEN)  00000000000e4000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 00000000cff70000 (usable)
(XEN)  00000000cff70000 - 00000000cff7e000 (ACPI data)
(XEN)  00000000cff7e000 - 00000000cffd0000 (ACPI NVS)
(XEN)  00000000cffd0000 - 00000000d0000000 (reserved)
(XEN)  00000000fee00000 - 00000000fee01000 (reserved)
(XEN)  00000000ffe00000 - 0000000100000000 (reserved)
(XEN)  0000000100000000 - 0000000230000000 (usable)
(XEN) ACPI: RSDP 000FB030, 0014 (r0 ACPIAM)
(XEN) ACPI: RSDT CFF70000, 0040 (r1 A_M_I_ OEMRSDT   7000809 MSFT       97)
(XEN) ACPI: FACP CFF70200, 0084 (r2 A_M_I_ OEMFACP   7000809 MSFT       97)
(XEN) ACPI: DSDT CFF70440, 963E (r1  A0986 A0986000        0 INTL 20060113)
(XEN) ACPI: FACS CFF7E000, 0040
(XEN) ACPI: APIC CFF70390, 006C (r1 A_M_I_ OEMAPIC   7000809 MSFT       97)
(XEN) ACPI: MCFG CFF70400, 003C (r1 A_M_I_ OEMMCFG   7000809 MSFT       97)
(XEN) ACPI: OEMB CFF7E040, 0081 (r1 A_M_I_ AMI_OEM   7000809 MSFT       97)
(XEN) ACPI: HPET CFF79A80, 0038 (r1 A_M_I_ OEMHPET   7000809 MSFT       97)
(XEN) ACPI: OSFR CFF79AC0, 00B0 (r1 A_M_I_ OEMOSFR   7000809 MSFT       97)
(XEN) ACPI: SSDT CFF7E5D0, 0A7C (r1 DpgPmm    CpuPm       12 INTL 20060113)
(XEN) System RAM: 8191MB (8387632kB)
(XEN) Domain heap initialised
(XEN) Processor #0 7:7 APIC version 20
(XEN) Processor #1 7:7 APIC version 20
(XEN) IOAPIC[0]: apic_id 2, version 32, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) Table is not found!
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2999.757 MHz processor.
(XEN) Initing memory sharing.
(XEN) I/O virtualisation disabled
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) Platform timer is 14.318MHz HPET
(XEN) Allocated console ring of 16 KiB.
(XEN) VMX: Supported advanced features:
(XEN)  - APIC MMIO access virtualisation
(XEN)  - APIC TPR shadow
(XEN)  - Virtual NMI
(XEN)  - MSR direct-access bitmap
(XEN) HVM: ASIDs disabled.
(XEN) HVM: VMX enabled
(XEN) Brought up 2 CPUs
(XEN) *** LOADING DOMAIN 0 ***
(XEN)  Xen  kernel: 64-bit, lsb, compat32
(XEN)  Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x1e43000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN)  Dom0 alloc.:   0000000220000000->0000000224000000 (2014127 pages to be allocated)
(XEN)  Init. ramdisk: 000000022db80000->000000022ffffe00
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN)  Loaded kernel: ffffffff81000000->ffffffff81e43000
(XEN)  Init. ramdisk: ffffffff81e43000->ffffffff842c2e00
(XEN)  Phys-Mach map: ffffffff842c3000->ffffffff85253178
(XEN)  Start info:    ffffffff85254000->ffffffff852544b4
(XEN)  Page tables:   ffffffff85255000->ffffffff85282000
(XEN)  Boot stack:    ffffffff85282000->ffffffff85283000
(XEN)  TOTAL:         ffffffff80000000->ffffffff85400000
(XEN)  ENTRY ADDRESS: ffffffff81ad0200
(XEN) Dom0 has maximum 2 VCPUs
(XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 228kB init memory.

It doesn't work

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 3200
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Mon Jul 18 21:48:31 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:~/vms/natty# netstat -a | grep 590
unix  3      [ ]         STREAM     CONNECTED     12590    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     10590    

Boris

--- On Mon, 7/18/11, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-users] Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Monday, July 18, 2011, 1:13 PM

Quoted 18 lines · Boris Derzhavets

Here it is

root@boris-P5Q-E:~/vms/natty# cat f14.hvm
name = "HVM14"
builder = "hvm"
memory = "2048"
disk = ['phy:/dev/sda5,hda,w', 'phy:/dev/loop0,hdc:cdrom,r']
vif = [ 'type=ioemu,bridge=br0' ]
device_model = "/usr/lib/xen-4.1/bin/qemu-dm"
kernel = "/usr/lib/xen-4.1/boot/hvmloader"
vnc=1
vncdisplay=0
boot="d"
usb=1
usbdevice="tablet"
serial = "pty" # enable serial console
on_reboot = 'restart'
on_crash = 'restart'

It looks correct, I think it should work. Are you still having the problem?
Do you have any errors on the Xen serial (xl dmesg)?

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#9 lore raw
Quoted 19 lines · Boris Derzhavets

It doesn't work

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 3200
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Quoted 6 lines

Mon Jul 18 21:48:31 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:~/vms/natty# netstat -a | grep 590
unix  3      [ ]         STREAM     CONNECTED     12590    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     10590   

Can you give it a try with SDL?
Set:

vnc=0
sdl=1

in your VM config file.

I hope you'll be able to see at least the BIOS booting in the SDL window, and maybe an error accessing the disks.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#10 lore raw

For SDL :

root@boris-P5Q-E:~/vms/natty# xm create f14.hvm
Using config file "./f14.hvm".
Error: Domain 'HVM14' does not exist.
root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
libxl: error: libxl_device.c:476:libxl__wait_for_device_model Device Model not ready
xl: fatal error: libxl_create.c:535, rc=-1: libxl__confirm_device_model_startup

Boris

--- On Tue, 7/19/11, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-users] Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Tuesday, July 19, 2011, 6:48 AM

Quoted 19 lines · Boris Derzhavets

It doesn't work

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 3200
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Quoted 6 lines

Mon Jul 18 21:48:31 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:~/vms/natty# netstat -a | grep 590
unix  3      [ ]         STREAM     CONNECTED     12590    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     10590   

Can you give it a try with SDL?
Set:

vnc=0
sdl=1

in your VM config file.

I hope you'll be able to see at least the BIOS booting in the SDL window, and maybe an error accessing the disks. -----Inline Attachment Follows-----

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#11 lore raw

Re: Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 . How to backport HVM support ?

In reply to Stefano Stabellini

Stefano,

I believe that in Xen Unstable should be set of CS's brought back HVM support. The question is - which ones ?

Boris.

--- On Tue, 7/19/11, Stefano Stabellini <[email protected]> wrote:

From: Stefano Stabellini <[email protected]>
Subject: Re: [Xen-users] Re: [Xen-devel] Failure to create HVM DomU at Xen 4.1 ( kernel 3.0.0-5-generic) Ubuntu 11.10 (alpha 2)
To: "Boris Derzhavets" <[email protected]>
Cc: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>, "Stefano Stabellini" <[email protected]>
Date: Tuesday, July 19, 2011, 6:48 AM

Quoted 19 lines · Boris Derzhavets

It doesn't work

root@boris-P5Q-E:~/vms/natty# xl create f14.hvm
Parsing config file f14.hvm
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000017b150
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000101580
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 3200
root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0

VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55 Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

Quoted 6 lines

Mon Jul 18 21:48:31 2011
 main:        unable to connect to host: Connection refused (111)

root@boris-P5Q-E:~/vms/natty# netstat -a | grep 590
unix  3      [ ]         STREAM     CONNECTED     12590    @/tmp/.X11-unix/X0
unix  3      [ ]         STREAM     CONNECTED     10590   

Can you give it a try with SDL?
Set:

vnc=0
sdl=1

in your VM config file.

I hope you'll be able to see at least the BIOS booting in the SDL window, and maybe an error accessing the disks. -----Inline Attachment Follows-----

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-users mailing list
[email protected]
http://lists.xensource.com/xen-users

#12 lore raw
In reply to Boris Derzhavets
        root@boris-P5Q-E:~/vms/natty# vncviewer localhost:0
        VNC Viewer Free Edition 4.1.1 for X - built Apr  9 2010 18:41:55
        Copyright (C) 2002-2005 RealVNC Ltd.
        See http://www.realvnc.com for information on VNC.
        
        Mon Jul 18 21:48:31 2011
         main:        unable to connect to host: Connection refused
        (111)
        
        root@boris-P5Q-E:~/vms/natty# netstat -a | grep 590
        unix  3      [ ]         STREAM     CONNECTED     12590
        @/tmp/.X11-unix/X0
        unix  3      [ ]         STREAM     CONNECTED     10590    

What does "ps aux | grep qemu" show as your qemu command line? Also "netstat -a | grep qemu" might be interesting.

When I have an issue with qemu I often specify the device model in my guest configuration as a script containing:

	echo $@ > /tmp/qemu-dm
	sleep 1h

Then immediately after running "xl create" I can examine /tmp/qemu-dm and run the qemu by hand in the foreground, or under gdb etc. (there is a timeout in xl waiting for qemu to announce itself so you need to be reasonably prompt...)

Ian.