On an existing system running KVM:
* yum install xenner (1/3): xen-hypervisor-3.4.1-5.fc12.x86_64.rpm | 2.8 MB 00:00 (2/3): xen-runtime-3.4.1-5.fc12.x86_64.rpm | 4.0 MB 00:00 (3/3): xenner-0.47-3.fc12.x86_64.rpm | 191 kB 00:00 * /etc/init.d/xenner startI read an example in RedHat's bugzilla from the Xenner author:
Comment #7 From Gerd Hoffmann 2008-07-03 03:45:15 EDT: "For a quick bootup test you don't need an image, you can grab xen kernel and initrd from any fedora install dvd (images/xen/), then run "xenner -kernel vmlinuz -initrd initrd.img -vnc 127.0.0.1:0". Connecting with a vnc viewer to display :0 should show then the first stage install screen (probably complaining it couldn't find a disk)."I couldn't exactly find the files he was talking on a Fedora 12 DVD about so I used a Xen kernel and initrd from an installed RHEL5 system's /boot. I then did the following:
sudo xenner \ -kernel vmlinuz-2.6.18-164.6.1.el5xen \ -initrd initrd-2.6.18-164.6.1.el5xen.img \ -vnc 127.0.0.1:0 \ -hda guest.imgxenner-stats on another terminal as I ran the above reported that it couldn't parse the core file in /var/run/xenner. The results of running the xenner command above follow:
kvm capability clocksource: not enabled kvm capability nop-iodelay: not enabled kvm capability mmu-op: not enabled domid: 14258 -videoram option does not work with cirrus vga device model. Videoram set to 4M. frontend `/local/domain/14258/device/vbd/51712' devtype `vbd' expected backend `/local/domain/0/backend/tap/14258/51712' got `/local/domain/0/backend/blkbackd/14258/51712', ignoring frontend `/local/domain/14258/device/vbd/51712' devtype `vbd' expected backend `/local/domain/0/backend/tap/14258/51712' got `/local/domain/0/backend/blkbackd/14258/51712', ignoring Watching /local/domain/0/device-model/14258/logdirty/next-active Watching /local/domain/0/device-model/14258/command /builddir/build/BUILD/xen-3.4.1/tools/ioemu-dir/hw/xen_blktap.c:628: Init blktap pipes Could not open /var/run/tap/qemu-read-14258 xs_read(): vncpasswd get error. /vm/b254f64e-b232-477c-9285-c693c34fd432/vncpasswd. ==================== setup ==================== xen_guest_parse: ----- parse kernel ----- [xenner,1] domain_builder: memory: emu 4 MB, m2p 4 MB, guest 120 MB xen_emu_load: ----- load xen emu ----- [xenner,1] xen_load_emu_file: loading /usr/lib64/xenner/emu64.elf (190936 bytes) xen_emu_setup: ----- memory info ----- xen_emu_setup: ----- emu pgd setup ----- xen_guest_setup: ----- memory setup ----- xen_guest_setup: ----- create start-of-day ----- xen_guest_setup: ----- setup xen hypercall page ----- xen_guest_setup: ----- setup vcpu context ----- domain_builder: ----- kvm: state setup ----- domain_builder: ----- all done ----- xen be: console-0: reading backend state failed xen be: console-0: reading backend state failed xen be: console-0: reading frontend path failed calibrate tsc ... done, 3193 MHz, shift: -1, mul_frac: 2690089865 ==================== boot ==================== [xenner,1] setup_regs: 64bit [xenner,1] vcpu_thread/0: start [emu] <0>this is emu64 (xenner 0.47), boot cpu #0 [emu] <1>emu64: configuration done [emu] <1>cpu_alloc: cpu 0 [emu] <1>cpu_init: cpu 0 [emu] <1>pv_init: cpu 0, signature "KVMKVMKVM", features 0x00000000: [emu] <1>emu64: boot cpu setup done [emu] <1>emu64: paging setup done [emu] <0>print_page_fault_info: [kernel-mode] preset read kernel reserved-bit, rip ffff8300000098a3, cr2 ffff820000000020, vcpu 0 [emu] <0>page table walk for va ffff820000000020, root_mfn 1905 [emu] <0>pgd : ffff830001905000 +260 | mfn 48 | global dirty accessed user write present [emu] <0> pud : ffff830000048000 + 0 | mfn 49 | global dirty accessed user write present [emu] <0> pmd : ffff830000049000 + 0 | mfn 4a | global dirty accessed user write present [emu] <0> pte: ffff83000004a000 + 0 | mfn fee00 | global dirty accessed write present [emu] <0>panic: ring0 (emu) page fault [emu] <0>printing registers [emu] <0> code cs:rip e008:ffff8300000098a3 [emu] <0> stack ss:rsp e010:ffff83000002bea0 [emu] <0> rax ffff820000000000 rbx ffff830000033000 rcx ffff830000000000 rdx 00000000fee00163 [emu] <0> rsi 0000000000000000 rdi 0000000000001000 rsp ffff83000002bea0 rbp ffff830000033000 [emu] <0> r8 ffff83000004a000 r9 ffff83000000e92a r10 ffff83000000e494 r11 000000000000000a [emu] <0> r12 000000000002a000 r13 00000000fee00900 r14 00000000fee00000 r15 0000000000000000 [emu] <0> cs e008 ds e010 es e010 fs e010 gs e010 ss e010 [emu] <0> cr0 80050033 cr2 ffff820000000020 cr3 01905000 cr4 000006b0 rflags 00010086 [emu] <0> cr0: PE MP ET NE WP AM PG [emu] <0> cr4: PSE PAE PGE OSFXSR OSXMMEXCPT [emu] <0> rflags: ??? PF ??? RF [emu] <0>printing stack ffff83000002bea0 - ffff83000002bff8 [emu] <0> ffff83000002bea0: 0000000000000400 [emu] <0> ffff83000002bea8: 0000000000000800 [emu] <0> ffff83000002beb0: ffff800000000000 [emu] <0> ffff83000002beb8: 00000000000001e7 [emu] <0> ffff83000002bec0: 564b4d564b4d564b [emu] <0> ffff83000002bec8: ffff800000000000 [emu] <0> ffff83000002bed0: 00000f6400000001 [emu] <0> ffff83000002bed8: 0000e43500010800 [emu] <0> ffff83000002bee0: ffff8300bfe9c3f1 [emu] <0> ffff83000002bee8: ffff830000005b70 [emu] <0> ffff83000002bef0: ffff83000002bf50 [emu] <0> ffff83000002bef8: ffff830000033000 [emu] <0> ffff83000002bf00: 000000000002a000 [emu] <0> ffff83000002bf08: ffff830000028000 [emu] <0> ffff83000002bf10: 0000000000000000 [emu] <0> ffff83000002bf18: ffff8300000051cb [emu] <0> ffff83000002bf20: 0000000000000000 [emu] <0> ffff83000002bf28: 0000000000000000 [emu] <0> ffff83000002bf30: 0000000000000000 [emu] <0> ffff83000002bf38: 0000000000000000 [emu] <0> ffff83000002bf40: 0000000000000000 [emu] <0> ffff83000002bf48: ffff83000000001d [emu] <0> ffff83000002bf50: 0000000000000000 [emu] <0> ffff83000002bf58: 0000000000000000 [emu] <0> ffff83000002bf60: 0000000000000000 [emu] <0> ffff83000002bf68: 0000000000000000 [emu] <0> ffff83000002bf70: 0000000000000000 [emu] <0> ffff83000002bf78: 0000000000000000 [emu] <0> ffff83000002bf80: 0000000000000000 [emu] <0> ffff83000002bf88: 0000000000000000 [emu] <0> ffff83000002bf90: 0000000000000000 [emu] <0> ffff83000002bf98: 0000000000000000 [emu] <0> ffff83000002bfa0: 0000000000000000 [emu] <0> ffff83000002bfa8: 0000000000000000 [emu] <0> ffff83000002bfb0: 0000000000000000 [emu] <0> ffff83000002bfb8: 0000000000000000 [emu] <0> ffff83000002bfc0: 0000000000000000 [emu] <0> ffff83000002bfc8: 0000000000000000 [emu] <0> ffff83000002bfd0: 0000000000000000 [emu] <0> ffff83000002bfd8: 0000000000000000 [emu] <0> ffff83000002bfe0: 0000000000000000 [emu] <0> ffff83000002bfe8: 0000000000000000 [emu] <0> ffff83000002bff0: 0000000000000000 [emu] <0> ffff83000002bff8: 0000000000000000 guest requests shutdown, exiting. xenner_cleanup: ----- statistics ----- hypercalls : total diff emu faults : total diff page fault : 1 0 cr3 load : 2 0 event channels : total diff xenner_cleanup: ----- cleaning up -----
No comments:
Post a Comment