Sam Mulvey
2011-Jul-09 13:17 UTC
[Xen-users] Starting basic HVM -- where am I going wrong?
I''ve been using Xen strictly for PV for a while now, but I recently
upgraded to hardware capable of HVM domUs. I''m trying to get a really
basic HVM instance going so I can get my hands around making them work, in
anticipation of using one to run a BSD to act as a firewall for other domUs on
the machine. (I like PF.) Also, I might need run windows at some point, I
suppose.
I''ve created a very simple HVM configuration file, starting with a
larger one and paring down trying to figure out where the problem is. It says
it starts up, but it doesn''t show up in ''xm list''.
The dom0 is running ArchLinux, and I''m running a Xen 4.1.1 package I
assembled and compiled myself. PV dom0''s are running fine in this
configuration, also with a VNC vfb. I''m also testing this hardware
out on a server with opterons (as opposed to xeons) and I''m getting the
same result, so I don''t think it''s the hardware.
Been at it a couple days, so any pointers as to what I''m doing wrong
would be helpful.
Everything that follows is also at: http://codepad.org/7ggtpOT9
Now to turn on the text hose!
-Sam
--------------- basic.cfg ---------------
builder = "hvm"
kernel="/usr/lib/xen/boot/hvmloader"
device_model="/usr/lib/xen/bin/qemu-dm"
memory=512
#shadow_memory=16
name=''basic''
disk=["file:/var/xen/iso/finnix-101.iso,xvda:cdrom,r"]
boot="d"
vnc=1
vncdisplay=11
vnclisten=''0.0.0.0''
vncpasswd=''password''
vncconsole=0
--------------- running the hvm dom0 ---------------
[root@helium noauto]# xm create basic.cfg
Using config file "./basic.cfg".
Started domain basic (id=5)
[root@helium noauto]# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 498 8 r----- 49.7
pvtest 1 256 1 -b---- 4.7
--------------- xend.log ---------------
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:103)
XendDomainInfo.create([''vm'', [''name'',
''basic''], [''memory'', 512],
[''on_xend_start'', ''ignore''],
[''on_xend_stop'', ''ignore''],
[''vcpus'', 1], [''oos'', 1],
[''image'', [''hvm'',
[''kernel'', ''/usr/lib/xen/boot/hvmloader''],
[''videoram'', 4], [''acpi'', 1],
[''apic'', 1], [''boot'',
''d''], [''cpuid'', []],
[''cpuid_check'', []], [''device_model'',
''/usr/lib/xen/bin/qemu-dm''], [''fda'',
''''], [''fdb'', ''''],
[''guest_os_type'', ''default''],
[''hap'', 1], [''hpet'', 0],
[''isa'', 0], [''keymap'',
''''], [''localtime'', 0],
[''nographic'', 0], [''oos'', 1],
[''pae'', 1], [''pci'', []],
[''pci_msitranslate'', 1], [''pci_power_mgmt'',
0], [''rtc_timeoffset'', 0], [''soundhw'',
''''], [''stdvga'', 0],
[''timer_mode'', 1], [''usb'', 0],
[''usbdevice'', ''''],
[''vcpus'', 1], [''vnc'', 1],
[''vncconsole'', 0], [''vncdisplay'', 11],
[''vnclisten'', ''0.0.0.0''],
[''vncunused'', 1], [''viridian'', 0],
[''vpt_align'', 1], [''xauthority'',
''/root/.Xauthority''], [''xen_platform_pci'',
1], [''memory_sharing'', 0], [''vncpasswd'',
''XXXXXXXX''], [''tsc_mode'', 0],
[''nomigrate'', 0]]], [''s3_integrity'', 1],
[''device'', [''vbd'',
[''uname'',
''file:/var/xen/iso/finnix-101.iso''], [''dev'',
''xvda:cdrom''], [''mode'',
''r'']]]])
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:2498)
XendDomainInfo.constructDomain
[2011-07-09 05:54:48 1161] DEBUG (balloon:187) Balloon: 7516540 KiB free; need
16384; done.
[2011-07-09 05:54:48 1161] DEBUG (XendDomain:476) Adding Domain: 5
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:2836)
XendDomainInfo.initDomain: 5 256
[2011-07-09 05:54:48 1161] DEBUG (image:337) Stored a VNC password for vfb
access
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: boot, val: d
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: fda, val: None
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: fdb, val: None
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: soundhw, val: None
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: localtime, val: 0
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: serial, val: None
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: std-vga, val: 0
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: isa, val: 0
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: acpi, val: 1
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: usb, val: 0
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: usbdevice, val: None
[2011-07-09 05:54:48 1161] DEBUG (image:891) args: gfx_passthru, val: None
[2011-07-09 05:54:48 1161] INFO (image:822) Need to create platform
device.[domid:5]
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:2863)
_initDomain:shadow_memory=0x0, memory_static_max=0x20000000,
memory_static_min=0x0.
[2011-07-09 05:54:48 1161] INFO (image:182) buildDomain os=hvm dom=5 vcpus=1
[2011-07-09 05:54:48 1161] DEBUG (image:949) domid = 5
[2011-07-09 05:54:48 1161] DEBUG (image:950) image =
/usr/lib/xen/boot/hvmloader
[2011-07-09 05:54:48 1161] DEBUG (image:951) store_evtchn = 2
[2011-07-09 05:54:48 1161] DEBUG (image:952) memsize = 512
[2011-07-09 05:54:48 1161] DEBUG (image:953) target = 512
[2011-07-09 05:54:48 1161] DEBUG (image:954) vcpus = 1
[2011-07-09 05:54:48 1161] DEBUG (image:955) vcpu_avail = 1
[2011-07-09 05:54:48 1161] DEBUG (image:956) acpi = 1
[2011-07-09 05:54:48 1161] DEBUG (image:957) apic = 1
[2011-07-09 05:54:48 1161] INFO (XendDomainInfo:2357) createDevice: vfb :
{''vncunused'': 1, ''other_config'':
{''vncunused'': 1, ''vncpasswd'':
''XXXXXXXX'', ''vnclisten'':
''0.0.0.0'', ''vnc'': ''1'',
''vncdisplay'': 11}, ''vnc'':
''1'', ''uuid'':
''bb72da02-d710-0c3f-02e1-8d44c6e014a0'',
''vnclisten'': ''0.0.0.0'',
''vncdisplay'': 11, ''vncpasswd'':
''XXXXXXXX''}
[2011-07-09 05:54:48 1161] DEBUG (DevController:95) DevController: writing
{''state'': ''1'',
''backend-id'': ''0'',
''backend'':
''/local/domain/0/backend/vfb/5/0''} to
/local/domain/5/device/vfb/0.
[2011-07-09 05:54:48 1161] DEBUG (DevController:97) DevController: writing
{''vncunused'': ''1'',
''domain'': ''basic'', ''vnc'':
''1'', ''uuid'':
''bb72da02-d710-0c3f-02e1-8d44c6e014a0'',
''frontend-id'': ''5'',
''vnclisten'': ''0.0.0.0'',
''vncdisplay'': ''11'',
''vncpasswd'': ''XXXXXXXX'',
''state'': ''1'', ''online'':
''1'', ''frontend'':
''/local/domain/5/device/vfb/0''} to
/local/domain/0/backend/vfb/5/0.
[2011-07-09 05:54:48 1161] INFO (XendDomainInfo:2357) createDevice: vbd :
{''uuid'':
''744cfc80-2eb3-4f19-a3b5-78faeec5650f'',
''bootable'': 1, ''driver'':
''paravirtualised'', ''dev'':
''xvda:cdrom'', ''uname'':
''file:/var/xen/iso/finnix-101.iso'', ''mode'':
''r''}
[2011-07-09 05:54:48 1161] DEBUG (DevController:95) DevController: writing
{''backend-id'': ''0'',
''virtual-device'': ''51712'',
''device-type'': ''cdrom'',
''state'': ''1'', ''backend'':
''/local/domain/0/backend/vbd/5/51712''} to
/local/domain/5/device/vbd/51712.
[2011-07-09 05:54:48 1161] DEBUG (DevController:97) DevController: writing
{''domain'': ''basic'',
''frontend'':
''/local/domain/5/device/vbd/51712'', ''uuid'':
''744cfc80-2eb3-4f19-a3b5-78faeec5650f'',
''bootable'': ''1'', ''dev'':
''xvda'', ''state'': ''1'',
''params'': ''/var/xen/iso/finnix-101.iso'',
''mode'': ''r'', ''online'':
''1'', ''frontend-id'': ''5'',
''type'': ''file''} to
/local/domain/0/backend/vbd/5/51712.
[2011-07-09 05:54:48 1161] INFO (image:418) spawning device models:
/usr/lib/xen/bin/qemu-dm [''/usr/lib/xen/bin/qemu-dm'',
''-d'', ''5'', ''-domain-name'',
''basic'', ''-videoram'', ''4'',
''-vnc'', ''0.0.0.0:11,password'',
''-vncunused'', ''-vcpus'',
''1'', ''-vcpu_avail'', ''0x1'',
''-boot'', ''d'', ''-acpi'',
''-net'', ''none'', ''-M'',
''xenfv'']
[2011-07-09 05:54:48 1161] INFO (image:467) device model pid: 2169
[2011-07-09 05:54:48 1161] INFO (image:590) waiting for sentinel_fifo
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:3420) Storing VM details:
{''on_xend_stop'': ''ignore'',
''pool_name'': ''Pool-0'',
''shadow_memory'': ''5'',
''uuid'':
''0e1316db-1024-e1ae-8ec7-ab4822aedce5'',
''on_reboot'': ''restart'',
''start_time'': ''1310216088.69'',
''on_poweroff'': ''destroy'',
''bootloader_args'': '''',
''on_xend_start'': ''ignore'',
''on_crash'': ''restart'',
''xend/restart_count'': ''0'',
''vcpus'': ''1'',
''vcpu_avail'': ''1'',
''bootloader'': '''', ''image'':
"(hvm (kernel '''') (superpages 0) (videoram 4) (hpet 0)
(stdvga 0) (vnclisten 0.0.0.0) (loader /usr/lib/xen/boot/hvmloader)
(xen_platform_pci 1) (rtc_timeoffset 0) (pci ()) (hap 1) (localtime 0)
(timer_mode 1) (vncdisplay 11) (pci_msitranslate 1) (oos 1) (apic 1) (vpt_align
1) (vncconsole 0) (vncunused 1) (boot d) (vncpasswd XXXXXX) (pae 1) (viridian 0)
(acpi 1) (vnc 1) (nographic 0) (nomigrate 0) (usb 0) (tsc_mode 0) (guest_os_type
default) (device_model /usr/lib/xen/bin/qemu-dm) (pci_power_mgmt 0) (xauthority
/root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL 1)))",
''name'': ''basic''}
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:1794) Storing domain details:
{''console/port'': ''3'',
''description'': '''',
''console/limit'': ''1048576'',
''store/port'': ''2'', ''vm'':
''/vm/0e1316db-1024-e1ae-8ec7-ab4822aedce5'',
''domid'': ''5'',
''image/suspend-cancel'': ''1'',
''cpu/0/availability'': ''online'',
''memory/target'': ''524288'',
''control/platform-feature-multiprocessor-suspend'':
''1'', ''store/ring-ref'':
''1044476'', ''console/type'':
''ioemu'', ''name'': ''basic''}
[2011-07-09 05:54:48 1161] DEBUG (DevController:95) DevController: writing
{''state'': ''1'',
''backend-id'': ''0'',
''backend'':
''/local/domain/0/backend/console/5/0''} to
/local/domain/5/device/console/0.
[2011-07-09 05:54:48 1161] DEBUG (DevController:97) DevController: writing
{''domain'': ''basic'',
''frontend'':
''/local/domain/5/device/console/0'', ''uuid'':
''23d5f34c-e6ac-f680-c0b4-8a1a88e08933'',
''frontend-id'': ''5'',
''state'': ''1'', ''location'':
''3'', ''online'': ''1'',
''protocol'': ''vt100''} to
/local/domain/0/backend/console/5/0.
[2011-07-09 05:54:48 1161] DEBUG (XendDomainInfo:1881)
XendDomainInfo.handleShutdownWatch
[2011-07-09 05:54:48 1161] DEBUG (DevController:139) Waiting for devices tap2.
[2011-07-09 05:54:48 1161] DEBUG (DevController:139) Waiting for devices vif.
[2011-07-09 05:54:48 1161] DEBUG (DevController:139) Waiting for devices vkbd.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices
ioports.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices tap.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices vif2.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices
console.
[2011-07-09 05:54:49 1161] DEBUG (DevController:144) Waiting for 0.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices vscsi.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices vbd.
[2011-07-09 05:54:49 1161] DEBUG (DevController:144) Waiting for 51712.
[2011-07-09 05:54:49 1161] DEBUG (DevController:628) hotplugStatusCallback
/local/domain/0/backend/vbd/5/51712/hotplug-status.
[2011-07-09 05:54:49 1161] DEBUG (DevController:642) hotplugStatusCallback 1.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices irq.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices vfb.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices pci.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices vusb.
[2011-07-09 05:54:49 1161] DEBUG (DevController:139) Waiting for devices vtpm.
[2011-07-09 05:54:49 1161] INFO (XendDomain:1225) Domain basic (5) unpaused.
[2011-07-09 05:54:49 1161] INFO (XendDomainInfo:2078) Domain has shutdown:
name=basic id=5 reason=reboot.
[2011-07-09 05:54:49 1161] ERROR (XendDomainInfo:2195) VM basic restarting too
fast (Elapsed time: 0.519135 seconds). Refusing to restart to avoid loops.
[2011-07-09 05:54:49 1161] DEBUG (XendDomainInfo:3071) XendDomainInfo.destroy:
domid=5
[2011-07-09 05:54:49 1161] DEBUG (XendDomainInfo:2401) Destroying device model
[2011-07-09 05:54:50 1161] INFO (image:615) basic device model terminated
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:2408) Releasing devices
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:2414) Removing console/0
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:2414) Removing vbd/51712
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:2414) Removing vfb/0
[2011-07-09 05:54:50 1161] DEBUG (XendDomainInfo:1276)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
--------------- xend-debug.log ---------------
xc: info: VIRTUAL MEMORY ARRANGEMENT:
Loader: 0000000000100000->000000000017af70
TOTAL: 0000000000000000->0000000020000000
ENTRY ADDRESS: 00000000001015a0
xc: info: PHYSICAL MEMORY ALLOCATION:
4KB PAGES: 0x0000000000000200
2MB PAGES: 0x00000000000000ff
1GB PAGES: 0x0000000000000000
--------------- qemu-dm-basic.log ---------------
domid: 5
Using xvda for guest''s hda
Using file /var/xen/iso/finnix-101.iso in read-only mode
Watching /local/domain/0/device-model/5/logdirty/cmd
Watching /local/domain/0/device-model/5/command
Watching /local/domain/5/cpu
qemu_map_cache_init nr_buckets = 10000 size 4194304
shared page at pfn feffd
buffered io page at pfn feffb
Guest uuid = 0e1316db-1024-e1ae-8ec7-ab4822aedce5
Time offset set 0
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/5/xen_extended_power_mgmt): read error
Using xvda for guest''s hda
medium change watch on `xvda'' (index: 0): /var/xen/iso/finnix-101.iso
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/5/log-throttling): read error
qemu: ignoring not-understood drive `/local/domain/5/log-throttling''
medium change watch on `/local/domain/5/log-throttling'' - unknown
device, ignored
char device redirected to /dev/pts/5
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
xen be: console-0: xen be: console-0: initialise() failed
initialise() failed
--------------- xm dmesg ---------------
__ __ _ _ _ _
\ \/ /___ _ __ | || | / | / |
\ // _ \ ''_ \ | || |_ | | | |
/ \ __/ | | | |__ _|| |_| |
/_/\_\___|_| |_| |_|(_)_(_)_|
(XEN) Xen version 4.1.1 (sam@localdomain) (gcc version 4.6.1 (GCC) ) Sat Jul 9
03:23:12 HADT 2011
(XEN) Latest ChangeSet: unavailable
(XEN) Bootloader: GRUB 1.99
(XEN) Command line: dom0_mem=512M com1=115200,8n1 console=com1
(XEN) Video information:
(XEN) VGA is text mode 80x25, font 8x16
(XEN) VBE/DDC methods: V2; EDID transfer time: 2 seconds
(XEN) Disc information:
(XEN) Found 1 MBR signatures
(XEN) Found 1 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN) 0000000000000000 - 000000000009ec00 (usable)
(XEN) 000000000009ec00 - 00000000000a0000 (reserved)
(XEN) 00000000000f0000 - 0000000000100000 (reserved)
(XEN) 0000000000100000 - 00000000dfeda4c0 (usable)
(XEN) 00000000dfeda4c0 - 00000000dfeeb0e8 (ACPI data)
(XEN) 00000000dfeeb0e8 - 00000000e0000000 (reserved)
(XEN) 00000000fec00000 - 00000000fec10000 (reserved)
(XEN) 00000000fee00000 - 00000000fee10000 (reserved)
(XEN) 00000000ffc00000 - 0000000100000000 (reserved)
(XEN) 0000000100000000 - 000000021ffff000 (usable)
(XEN) ACPI: RSDP 000F4F30, 0024 (r2 HP )
(XEN) ACPI: XSDT DFEDA880, 005C (r1 HP ProLiant 2 ÔøΩ 162E)
(XEN) ACPI: FACP DFEDA900, 00F4 (r3 HP ProLiant 2 ÔøΩ 162E)
(XEN) ACPI: DSDT DFEDAA00, 2052 (r1 HP DSDT 1 INTL 20030228)
(XEN) ACPI: FACS DFEDA5C0, 0040
(XEN) ACPI: SPCR DFEDA600, 0050 (r1 HP SPCRRBSU 1 ÔøΩ 162E)
(XEN) ACPI: SRAT DFEDA680, 0058 (r1 HP HOT ADD 1 0)
(XEN) ACPI: MCFG DFEDA700, 003C (r1 HP ProLiant 1 0)
(XEN) ACPI: APIC DFEDA740, 00FA (r1 HP 00000083 2 0)
(XEN) ACPI: SSDT DFEDFA00, 17D1 (r1 HP SSDT 1 INTL 20030228)
(XEN) ACPI: SSDT DFEE24C0, 0969 (r1 HP SSDTP 1 INTL 20030228)
(XEN) System RAM: 8190MB (8387036kB)
(XEN) Domain heap initialised
(XEN) Processor #0 15:4 APIC version 20
(XEN) Processor #4 15:4 APIC version 20
(XEN) Processor #12 15:4 APIC version 20
(XEN) Processor #8 15:4 APIC version 20
(XEN) Processor #2 15:4 APIC version 20
(XEN) Processor #6 15:4 APIC version 20
(XEN) Processor #14 15:4 APIC version 20
(XEN) Processor #10 15:4 APIC version 20
(XEN) IOAPIC[0]: apic_id 1, version 32, address 0xfec00000, GSI 0-23
(XEN) IOAPIC[1]: apic_id 2, version 32, address 0xfec80000, GSI 24-47
(XEN) IOAPIC[2]: apic_id 3, version 32, address 0xfec80800, GSI 48-71
(XEN) IOAPIC[3]: apic_id 6, version 32, address 0xfec83000, GSI 72-95
(XEN) IOAPIC[4]: apic_id 7, version 32, address 0xfec83800, GSI 96-119
(XEN) Enabling APIC mode: Flat. Using 5 I/O APICs
(XEN) Table is not found!
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2666.967 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 3.579MHz ACPI PM Timer
(XEN) Allocated console ring of 16 KiB.
(XEN) VMX: Supported advanced features:
(XEN) - APIC TPR shadow
(XEN) HVM: ASIDs disabled.
(XEN) HVM: VMX enabled
(XEN) Brought up 8 CPUs
(XEN) CPUIDLE: disabled due to no HPET. Force enable with
''cpuidle''.
(XEN) *** LOADING DOMAIN 0 ***
(XEN) Xen kernel: 64-bit, lsb, compat32
(XEN) Dom0 kernel: 64-bit, PAE, lsb, paddr 0x1000000 -> 0x172e000
(XEN) PHYSICAL MEMORY ARRANGEMENT:
(XEN) Dom0 alloc.: 0000000216000000->0000000218000000 (121165 pages to be
allocated)
(XEN) Init. ramdisk: 000000021f74d000->000000021fdffc00
(XEN) VIRTUAL MEMORY ARRANGEMENT:
(XEN) Loaded kernel: ffffffff81000000->ffffffff8172e000
(XEN) Init. ramdisk: ffffffff8172e000->ffffffff81de0c00
(XEN) Phys-Mach map: ffffffff81de1000->ffffffff81ee1000
(XEN) Start info: ffffffff81ee1000->ffffffff81ee14b4
(XEN) Page tables: ffffffff81ee2000->ffffffff81ef5000
(XEN) Boot stack: ffffffff81ef5000->ffffffff81ef6000
(XEN) TOTAL: ffffffff80000000->ffffffff82000000
(XEN) ENTRY ADDRESS: ffffffff81560200
(XEN) Dom0 has maximum 8 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) *** Serial input -> DOM0 (type ''CTRL-a'' three times
to switch input to Xen)
(XEN) Freed 224kB init memory.
--------------- xm info ---------------
host : helium
release : 2.6.32.18-kdom0-tt
version : #5 SMP Wed Sep 15 01:51:13 PDT 2010
machine : x86_64
nr_cpus : 8
nr_nodes : 1
cores_per_socket : 2
threads_per_core : 1
cpu_mhz : 2666
hw_caps :
bfebfbff:20000800:00000000:00000180:000064bd:00000000:00000001:00000000
virt_caps : hvm
total_memory : 8190
free_memory : 7340
free_cpus : 0
xen_major : 4
xen_minor : 1
xen_extra : .1
xen_caps : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32
hvm-3.0-x86_32p hvm-3.0-x86_64
xen_scheduler : credit
xen_pagesize : 4096
platform_params : virt_start=0xffff800000000000
xen_changeset : unavailable
xen_commandline : dom0_mem=512M com1=115200,8n1 console=com1
cc_compiler : gcc version 4.6.1 (GCC)
cc_compile_by : sam
cc_compile_domain : localdomain
cc_compile_date : Sat Jul 9 03:23:12 HADT 2011
xend_config_format : 4
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
kcobler@coblercorp.com
2011-Jul-09 13:24 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
Quoting Sam Mulvey <sam@tacomatelematics.com>:> > > I''ve been using Xen strictly for PV for a while now, but I recently > upgraded to hardware capable of HVM domUs. I''m trying to get a > really basic HVM instance going so I can get my hands around making > them work, in anticipation of using one to run a BSD to act as a > firewall for other domUs on the machine. (I like PF.) Also, I > might need run windows at some point, I suppose. > > I''ve created a very simple HVM configuration file, starting with a > larger one and paring down trying to figure out where the problem > is. It says it starts up, but it doesn''t show up in ''xm list''. > > The dom0 is running ArchLinux, and I''m running a Xen 4.1.1 package I > assembled and compiled myself. PV dom0''s are running fine in this > configuration, also with a VNC vfb. I''m also testing this hardware > out on a server with opterons (as opposed to xeons) and I''m getting > the same result, so I don''t think it''s the hardware. > > Been at it a couple days, so any pointers as to what I''m doing wrong > would be helpful. > > > Everything that follows is also at: http://codepad.org/7ggtpOT9 > > > Now to turn on the text hose! > > -Sam > > --------------- basic.cfg --------------- > > builder = "hvm" > kernel="/usr/lib/xen/boot/hvmloader" > device_model="/usr/lib/xen/bin/qemu-dm" > > memory=512 > #shadow_memory=16 > name=''basic'' > > disk=["file:/var/xen/iso/finnix-101.iso,xvda:cdrom,r"] > > boot="d" > > vnc=1 > vncdisplay=11 > vnclisten=''0.0.0.0'' > vncpasswd=''password'' > vncconsole=0 > > --------------- running the hvm dom0 --------------- > > [root@helium noauto]# xm create basic.cfg > Using config file "./basic.cfg". > Started domain basic (id=5)I''ve used xm new basic.cfg to add the domain to Xen management. Ken Cobler _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sam Mulvey
2011-Jul-09 13:34 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
On Jul 9, 2011, at 6:24 AM, kcobler@coblercorp.com wrote:> I''ve used xm new basic.cfg to add the domain to Xen management. > > Ken CoblerAh, yes. Well, it keeps basic in `xm list` now, but when I start it I tend to get the same output, but this time I only get that qemu-dm failure line only once: --- domid: 8 Using xvda for guest''s hda Using file /var/xen/iso/finnix-101.iso in read-only mode Watching /local/domain/0/device-model/8/logdirty/cmd Watching /local/domain/0/device-model/8/command Watching /local/domain/8/cpu qemu_map_cache_init nr_buckets = 10000 size 4194304 shared page at pfn feffd buffered io page at pfn feffb Guest uuid = 54084c29-56ef-d5b3-7573-bc74d6232071 Time offset set 0 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/8/xen_extended_power_mgmt): read error Using xvda for guest''s hda medium change watch on `xvda'' (index: 0): /var/xen/iso/finnix-101.iso I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0 Log-dirty: no command yet. char device redirected to /dev/pts/3 xen be: console-0: xen be: console-0: initialise() failed initialise() failed vcpu-set: watch node error. xen be: console-0: xen be: console-0: initialise() failed initialise() failed xs_read(/local/domain/8/log-throttling): read error qemu: ignoring not-understood drive `/local/domain/8/log-throttling'' medium change watch on `/local/domain/8/log-throttling'' - unknown device, ignored xen be: console-0: xen be: console-0: initialise() failed initialise() failed ---- Also, when I start with ''xl'', I get basically the same thing, only it tries it a number of times before giving up. -Sam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Rainer Sokoll
2011-Jul-09 13:36 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
Am 09.07.2011 um 15:17 schrieb Sam Mulvey:> --------------- basic.cfg --------------- > > builder = "hvm"[...]> disk=["file:/var/xen/iso/finnix-101.iso,xvda:cdrom,r"]With fully virtualized DomU''s (builder = "hvm"), you must use hda, not xvda - to my best knowledge. Also, if you want to install a virtual machine, you will also need to supply a harddisk, not only a cdrom. Rainer _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
kcobler@coblercorp.com
2011-Jul-09 13:41 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
Quoting Sam Mulvey <sam@tacomatelematics.com>:> > On Jul 9, 2011, at 6:24 AM, kcobler@coblercorp.com wrote: > >> I''ve used xm new basic.cfg to add the domain to Xen management. >> >> Ken Cobler > > Ah, yes. > > Well, it keeps basic in `xm list` now, but when I start it I tend to > get the same output, but this time I only get that qemu-dm failure > line only once: > > --- > domid: 8 > Using xvda for guest''s hda > Using file /var/xen/iso/finnix-101.iso in read-only mode > Watching /local/domain/0/device-model/8/logdirty/cmd > Watching /local/domain/0/device-model/8/command > Watching /local/domain/8/cpu > qemu_map_cache_init nr_buckets = 10000 size 4194304 > shared page at pfn feffd > buffered io page at pfn feffb > Guest uuid = 54084c29-56ef-d5b3-7573-bc74d6232071 > Time offset set 0 > 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/8/xen_extended_power_mgmt): read error > Using xvda for guest''s hda > medium change watch on `xvda'' (index: 0): /var/xen/iso/finnix-101.iso > I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0It looks like the file /var/xen/iso/finnix-101.iso does not exist. Ken Cobler _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sam Mulvey
2011-Jul-09 13:45 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
On Jul 9, 2011, at 6:36 AM, Rainer Sokoll wrote:> > With fully virtualized DomU''s (builder = "hvm"), you must use hda, not xvda - to my best knowledge. > Also, if you want to install a virtual machine, you will also need to supply a harddisk, not only a cdrom. >I''ve tried various permutations on xvda, hda, hdc, xvdc, and so on, xvda was just the last one I used. Also, I started out with an LVM partition attached to it, like so: disk=["phy:/dev/heG0/hvmtest,hda,w","file:/var/xen/iso/finnix-101.iso,hdc:cdrom,r"] And in paring down I removed it in hopes that there was a problem with disk handling. I''ve even removed the cdrom file just to see if it would boot and then look confused, to no avail. finnix is a livecd ISO, which is why I''m using that-- virtual disk isn''t needed to test things out. I''ve also played with various apic, acpi, and pae toggles. -Sam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sam Mulvey
2011-Jul-09 14:39 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
> name="win7" > description="Windows 7 x64" > uuid="1ec1ad8e-02b8-77ed-a215-faa992f53f4a" > memory=1024 > maxmem=1024 > vcpus=1 > on_poweroff="destroy" > on_reboot="restart" > on_crash="destroy" > localtime=1 > keymap="en-us" > > builder="hvm" > device_model="/usr/lib/xen/bin/qemu-dm" > kernel="/usr/lib/xen/boot/hvmloader" > boot="c" > disk=[ ''phy:/dev/sr0,hda:cdrom,r'', ''file:/var/lib/xen/images/win7/disk0.img,hdc,w'', ] > vif=[ ''mac=00:16:3e:22:c4:5b,bridge=br0,model=rtl8139'', ] > > stdvga=0 > vnc=1 > vncunused=1 > extid=0 > usb=1 > acpi=1 > pae=1 > > usbdevice=''tablet'' > > serial="pty"I''ve tried it with your changes, no joy still. No differences in the qemu output. I''ll keep hammering at it. Thanks for you help! -- Sam Mulvey Tacoma Telematics sam@tacomatelematics.com (253) 883-3030 x110 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sam Mulvey
2011-Jul-09 15:04 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
On Jul 9, 2011, at 7:17 AM, kcobler@coblercorp.com wrote:> > > As long as it is readable. > > Here is a copy of a working HVM (Windows 7) that I use. > > Note: I first created the disk file (/var/lib/xen/images/win7/disk0.img) with all zeros, so it will appear as an unformatted hard drive to the guest OS. The first time, I ran with boot="d" to boot off the CDROM to load. After the OS was loaded, I xm delete win7, changed boot="c", xm new win7 and then started the vm with xm start win7. >In a follow up, I tried it with a burned CD, and it touched the drive briefly before dying again, so it seems to get pretty far in talking to the drives. -Sam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Sam Mulvey
2011-Jul-28 05:36 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
On Jul 9, 2011, at 8:04 AM, Sam Mulvey wrote:> > On Jul 9, 2011, at 7:17 AM, kcobler@coblercorp.com wrote: >> >> >> As long as it is readable. >> >> Here is a copy of a working HVM (Windows 7) that I use. >> >> Note: I first created the disk file (/var/lib/xen/images/win7/disk0.img) with all zeros, so it will appear as an unformatted hard drive to the guest OS. The first time, I ran with boot="d" to boot off the CDROM to load. After the OS was loaded, I xm delete win7, changed boot="c", xm new win7 and then started the vm with xm start win7. >> > > > In a follow up, I tried it with a burned CD, and it touched the drive briefly before dying again, so it seems to get pretty far in talking to the drives. > > > -SamI know it''s been a couple weeks since I posted this, but I thought I would point out that after reading some other stuff on this list, and some things online, I switched my development machine to the 4.2-unstable tree, and HVM is working. Given that I''ve found a work-around for what I planned to use HVM for (albeit using a NetBSD development snapshot) I''ll be sticking with that on my production system until 4.2 or a 4.1.x with fixes is released. If there''s a developer tracking the list who''d like me to do some poking around to find the source of the issue, I''m willing to help out. Thank you everyone for your advice, and of course for all the work that goes into Xen. -Sam _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2011-Jul-28 15:16 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
On Thu, Jul 28, 2011 at 5:36 AM, Sam Mulvey <sam@tacomatelematics.com> wrote:> I know it''s been a couple weeks since I posted this, but I thought I would > point out that after reading some other stuff on this list, and some things > online, I switched my development machine to the 4.2-unstable tree, and HVM > is working. > Given that I''ve found a work-around for what I planned to use HVM for > (albeit using a NetBSD development snapshot) I''ll be sticking with that on > my production system until 4.2 or a 4.1.x with fixes is released. If > there''s a developer tracking the list who''d like me to do some poking around > to find the source of the issue, I''m willing to help out. > Thank you everyone for your advice, and of course for all the work that goes > into Xen.Could it be this issue you are running into: http://xen.markmail.org/search/?q=hvm%20xen%204.1#query:hvm%20xen%204.1%20type%3Adevelopment%20from%3A%22Boris%20Derzhavets%22+page:1+mid:zl7rrktrdncb3p2p+state:results If not, as you can see from that thread, we are very interested in tracking down issues and finding the proper fixes. The Xen-devel mailing list is always happy to have testers and very willing to help users working through legitimate bugs. http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions Thanks, Todd -- Todd Deshane http://www.linkedin.com/in/deshantm http://www.xen.org/products/cloudxen.html http://runningxen.com/ _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Pasi Kärkkäinen
2011-Jul-30 06:30 UTC
Re: [Xen-users] Starting basic HVM -- where am I going wrong?
On Sat, Jul 09, 2011 at 07:39:51AM -0700, Sam Mulvey wrote:> name="win7" > description="Windows 7 x64" > uuid="1ec1ad8e-02b8-77ed-a215-faa992f53f4a" > memory=1024 > maxmem=1024 > vcpus=1 > on_poweroff="destroy" > on_reboot="restart" > on_crash="destroy" > localtime=1 > keymap="en-us" > > builder="hvm" > device_model="/usr/lib/xen/bin/qemu-dm" > kernel="/usr/lib/xen/boot/hvmloader" > boot="c"> disk=[ ''phy:/dev/sr0,hda:cdrom,r'', > ''file:/var/lib/xen/images/win7/disk0.img,hdc,w'', ]Boot/system disk is most often hda, and cdrom is hdc, so you might want to swap the order.. Dunno if that''ll make a difference, but HVM guests definitely do work on 4.0 and 4.1 versions. (Unless if you have a gcc 4.6, then you need extra patch, which is already in xen 4.x trees.)> vif=[ ''mac=00:16:3e:22:c4:5b,bridge=br0,model=rtl8139'', ] >Consider using ''e1000'' instead, that''s the best emulated NIC available. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users