[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] vhd format support failed on suse11 x86_64 sp2
Hi all, I had met with a question about vhd format when i install xen 4.2.0 source code on suse11_x86_64_sp2.
execute steps:
1)Install fully suse 11 sp2 to host pc
2)Boot from Xen kernel menu
3)Download xen 4.2.0 source code from http://xen.org/download/index_4.2.0.html
4)Download bin86-0.16.19.tar.gz cmake-2.8.9.tar.gz Dev86src-0.16.19.tar.gz gettext-0.18.1.1.tar.gz glib-2.32.4.tar.xz libffi-3.0.9.tar.gz
lloyd-yajl-2.0.1-0- gf4b2b1a.tar.gz openssl-1.0.1c.tar.gz util-linux-2.22.tar.gz uuid-1.6.2.tar.gz xz-5.0.4.tar.gz zlib-1.2.7.tar.bz2 python-devel-2.6.0-8.6.x86_64.rpm for building xen 4.2.0 5)#rpm -e xen-libs-4.1.2_14-0.5.5
#rpm -e xen-tools-4.1.2_14-0.5.5 #rpm -e xen-libs-32bits-4.1.2_14-0.5.5 --nodeps 6)install git tools to update xen 4.2.0 source
7)# make world
# make install 8)# /etc/init.d/xencommons start
# /etc/init.d/xend start #modprobe blktap2 #modprobe blktap 9)localhost:~/work/test # vhd-util create -n vdisk.vhd -s 10240MB 10)modfiy /etc/xen/xmexample.hvm
see accessoriy file xmexample.hvm
11)localhost:~/work/test # xm list Name ID Mem VCPUs State Time(s) Domain-0 0 1773 4 r----- 16853.0 12)xm info host : localhost release : 3.0.13-0.27-xen version : #1 SMP Wed Feb 15 13:33:49 UTC 2012 (d73692b) machine : x86_64 nr_cpus : 4 nr_nodes : 1 cores_per_socket : 4 threads_per_core : 1 cpu_mhz : 3093 hw_caps : bfebfbff:28100800:00000000:00003f40:17bae3ff:00000000:00000001:00000000 virt_caps : hvm hvm_directio total_memory : 1959 free_memory : 149 free_cpus : 0 xen_major : 4 xen_minor : 2 xen_extra : .0 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 : cc_compiler : gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973] cc_compile_by : root cc_compile_domain : cc_compile_date : Thu Oct 25 10:59:12 EDT 2012 xend_config_format : 4 13)xm create -c /etc/xen/xmexample.hvm
14)localhost:~/work/test # vncviewer 127.0.0.1:0
see accessory IMAG0160.jpg
/var/log/xen/xend.log:
[2012-10-25 17:50:39 6523] DEBUG (XendDomainInfo:103) XendDomainInfo.create(['vm', ['name', 'Windows'], ['memory', 128], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos', 1], ['image', ['hvm', ['kernel', 'hvmloader'], ['videoram', 4], ['serial', 'pty'], ['acpi', 1], ['apic', 1], ['boot', 'c'], ['cpuid', []], ['cpuid_check', []], ['device_model', 'qemu-dm'], ['display', ':0.0'], ['fda', ''], ['fdb', ''], ['guest_os_type', 'default'], ['hap', 1], ['hpet', 0], ['isa', 0], ['keymap', ''], ['localtime', 0], ['nestedhvm', 0], ['nographic', 0], ['opengl', 1], ['oos', 1], ['pae', 1], ['pci', []], ['pci_msitranslate', 1], ['pci_power_mgmt', 0], ['rtc_timeoffset', 0], ['sdl', 0], ['soundhw', ''], ['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice', ''], ['vcpus', 1], ['vnc', 1], ['vncunused', 1], ['viridian', 0], ['vpt_align', 1], ['xauthority', '/var/run/gdm/auth-for-root-aeJHqG/database'], ['xen_platform_pci', 1], ['memory_sharing', 0], ['vncpasswd', 'XXXXXXXX'], ['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['tap2', ['uname', 'tap2:tapdisk:aio:/root/work/test/vdisk.vhd'], ['dev', 'xvda'], ['mode', 'w']]], ['device', ['tap', ['uname', 'tap:tapdisk:aio:/root/work/test/windows.iso'], ['dev', 'xvdb'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'br0'], ['type', 'ioemu']]]]) [2012-10-25 17:50:39 6523] DEBUG (XendDomainInfo:2501) XendDomainInfo.constructDomain [2012-10-25 17:50:39 6523] DEBUG (balloon:187) Balloon: 153496 KiB free; need 16384; done. [2012-10-25 17:50:39 6523] DEBUG (XendDomain:476) Adding Domain: 5 [2012-10-25 17:50:39 6523] DEBUG (XendDomainInfo:2844) XendDomainInfo.initDomain: 5 256 [2012-10-25 17:50:39 6523] DEBUG (image:339) No VNC passwd configured for vfb access [2012-10-25 17:50:39 6523] DEBUG (image:891) args: boot, val: c [2012-10-25 17:50:39 6523] DEBUG (image:891) args: fda, val: None [2012-10-25 17:50:39 6523] DEBUG (image:891) args: fdb, val: None [2012-10-25 17:50:39 6523] DEBUG (image:891) args: soundhw, val: None [2012-10-25 17:50:39 6523] DEBUG (image:891) args: localtime, val: 0 [2012-10-25 17:50:39 6523] DEBUG (image:891) args: serial, val: ['pty'] [2012-10-25 17:50:39 6523] DEBUG (image:891) args: std-vga, val: 0 [2012-10-25 17:50:39 6523] DEBUG (image:891) args: isa, val: 0 [2012-10-25 17:50:39 6523] DEBUG (image:891) args: acpi, val: 1 [2012-10-25 17:50:39 6523] DEBUG (image:891) args: usb, val: 0 [2012-10-25 17:50:39 6523] DEBUG (image:891) args: usbdevice, val: None [2012-10-25 17:50:39 6523] DEBUG (image:891) args: gfx_passthru, val: None [2012-10-25 17:50:39 6523] INFO (image:822) Need to create platform device.[domid:5] [2012-10-25 17:50:39 6523] DEBUG (XendDomainInfo:2871) _initDomain:shadow_memory=0x0, memory_static_max=0x8000000, memory_static_min=0x0. [2012-10-25 17:50:39 6523] INFO (image:182) buildDomain os=hvm dom=5 vcpus=1 [2012-10-25 17:50:39 6523] DEBUG (image:950) domid = 5 [2012-10-25 17:50:39 6523] DEBUG (image:951) image = /usr/lib/xen/boot/hvmloader [2012-10-25 17:50:39 6523] DEBUG (image:952) store_evtchn = 3 [2012-10-25 17:50:39 6523] DEBUG (image:953) memsize = 128 [2012-10-25 17:50:39 6523] DEBUG (image:954) target = 128 [2012-10-25 17:50:39 6523] DEBUG (image:955) vcpus = 1 [2012-10-25 17:50:39 6523] DEBUG (image:956) vcpu_avail = 1 [2012-10-25 17:50:39 6523] DEBUG (image:957) acpi = 1 [2012-10-25 17:50:39 6523] DEBUG (image:958) apic = 1 [2012-10-25 17:50:39 6523] INFO (XendDomainInfo:2350) 12345 _createDevices [2012-10-25 17:50:39 6523] INFO (XendDomainInfo:2360) createDevice: vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1'}, 'vnc': '1', 'uuid': '3441d0c2-271f-2dbb-3a39-601517ed91ef'} [2012-10-25 17:50:39 6523] DEBUG (DevController:63) 12345 DevController:createDevice [2012-10-25 17:50:39 6523] DEBUG (DevController:96) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/5/0'} to /local/domain/5/device/vfb/0.
[2012-10-25 17:50:39 6523] DEBUG (DevController:98) DevController: writing {'vncunused': '1', 'domain': 'Windows', 'frontend': '/local/domain/5/device/vfb/0', 'uuid': '3441d0c2-271f-2dbb-3a39-601517ed91ef', 'frontend-id': '5', 'state': '1', 'online': '1', 'vnc': '1'} to /local/domain/0/backend/vfb/5/0. [2012-10-25 17:50:39 6523] INFO (XendDomainInfo:2360) createDevice: tap2 : {'bootable': 1, 'uname': 'tap2:tapdisk:aio:/root/work/test/vdisk.vhd', 'mode': 'w', 'dev': 'xvda', 'uuid': '7ab43f67-5cdc-9e14-5223-3ba2e6da4f47'} [2012-10-25 17:50:39 6523] DEBUG (DevController:63) 12345 DevController:createDevice [2012-10-25 17:50:39 6523] DEBUG (DevController:96) DevController: writing {'backend-id': '0', 'virtual-device': '51712', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/5/51712'} to /local/domain/5/device/vbd/51712.
[2012-10-25 17:50:39 6523] DEBUG (DevController:98) DevController: writing {'domain': 'Windows', 'frontend': '/local/domain/5/device/vbd/51712', 'uuid': '7ab43f67-5cdc-9e14-5223-3ba2e6da4f47', 'bootable': '1', 'dev': 'xvda', 'state': '1', 'params': '/dev/xen/blktap-2/tapdev0', 'mode': 'w', 'online': '1', 'frontend-id': '5', 'type': 'phy', 'tapdisk-params': 'tapdisk:aio:/root/work/test/vdisk.vhd'} to /local/domain/0/backend/vbd/5/51712. [2012-10-25 17:50:40 6523] INFO (XendDomainInfo:2360) createDevice: tap : {'bootable': 0, 'uname': 'tap:tapdisk:aio:/root/work/test/windows.iso', 'mode': 'r', 'dev': 'xvdb', 'uuid': '36e83db7-f935-d0e2-f89e-c3da5007666a'} [2012-10-25 17:50:40 6523] DEBUG (DevController:63) 12345 DevController:createDevice [2012-10-25 17:50:40 6523] DEBUG (DevController:96) DevController: writing {'backend-id': '0', 'virtual-device': '51728', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/tap/5/51728'} to /local/domain/5/device/vbd/51728.
[2012-10-25 17:50:40 6523] DEBUG (DevController:98) DevController: writing {'domain': 'Windows', 'frontend': '/local/domain/5/device/vbd/51728', 'uuid': '36e83db7-f935-d0e2-f89e-c3da5007666a', 'bootable': '0', 'dev': 'xvdb', 'state': '1', 'params': 'tapdisk:aio:/root/work/test/windows.iso', 'mode': 'r', 'online': '1', 'frontend-id': '5', 'type': 'tap'} to /local/domain/0/backend/tap/5/51728. [2012-10-25 17:50:40 6523] INFO (XendDomainInfo:2360) createDevice: vif : {'bridge': 'br0', 'mac': '00:16:3e:6d:78:c5', 'type': 'ioemu', 'uuid': 'b3ac119a-e271-1b75-4145-0222bd4dc8c8'} [2012-10-25 17:50:40 6523] DEBUG (DevController:63) 12345 DevController:createDevice [2012-10-25 17:50:40 6523] DEBUG (DevController:96) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vif/5/0'} to /local/domain/5/device/vif/0.
[2012-10-25 17:50:40 6523] DEBUG (DevController:98) DevController: writing {'bridge': 'br0', 'domain': 'Windows', 'handle': '0', 'uuid': 'b3ac119a-e271-1b75-4145-0222bd4dc8c8', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:6d:78:c5', 'frontend-id': '5', 'state': '1', 'online': '1', 'frontend': '/local/domain/5/device/vif/0', 'type': 'ioemu'} to /local/domain/0/backend/vif/5/0. [2012-10-25 17:50:40 6523] INFO (image:418) spawning device models: /usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '5', '-domain-name', 'Windows', '-videoram', '4', '-vnc', '127.0.0.1:0', '-vncunused', '-vcpus', '1', '-vcpu_avail', '0x1', '-boot', 'c', '-serial', 'pty', '-acpi', '-net', 'nic,vlan=1,macaddr=00:16:3e:6d:78:c5,model=rtl8139', '-net', 'tap,vlan=1,ifname=vif5.0-emu,bridge=br0,script=no,downscript=no', '-M', 'xenfv'] [2012-10-25 17:50:40 6523] INFO (image:467) device model pid: 28014 [2012-10-25 17:50:40 6523] INFO (image:590) waiting for sentinel_fifo [2012-10-25 17:50:40 6523] DEBUG (XendDomainInfo:3428) Storing VM details: {'on_xend_stop': 'ignore', 'pool_name': 'Pool-0', 'shadow_memory': '2', 'uuid': '35a5c3a2-5261-fd1e-94ef-710c70ca2a62', 'on_reboot': 'restart', 'start_time': '1351201840.05', '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) (loader /usr/lib/xen/boot/hvmloader) (xen_platform_pci 1) (opengl 1) (nestedhvm 0) (rtc_timeoffset 0) (pci ()) (hap 1) (localtime 0) (timer_mode 1) (pci_msitranslate 1) (oos 1) (apic 1) (sdl 0) (display :0.0) (vpt_align 1) (serial pty) (vncunused 1) (boot c) (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 /var/run/gdm/auth-for-root-aeJHqG/database) (isa 0) (notes (SUSPEND_CANCEL 1)))", 'name': 'Windows'} [2012-10-25 17:50:40 6523] DEBUG (XendDomainInfo:1796) Storing domain details: {'console/port': '4', 'description': '', 'console/limit': '1048576', 'vm': '/vm/35a5c3a2-5261-fd1e-94ef-710c70ca2a62', 'domid': '5', 'store/port': '3', 'console/type': 'ioemu', 'cpu/0/availability': 'online', 'memory/target': '131072', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': '1044476', 'control/platform-feature-xs_reset_watches': '1', 'image/suspend-cancel': '1', 'name': 'Windows'} [2012-10-25 17:50:40 6523] DEBUG (DevController:63) 12345 DevController:createDevice [2012-10-25 17:50:40 6523] DEBUG (DevController:96) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/5/0'} to /local/domain/5/device/console/0. [2012-10-25 17:50:40 6523] DEBUG (DevController:98) DevController: writing {'domain': 'Windows', 'frontend': '/local/domain/5/device/console/0', 'uuid': 'c112b1a4-a8fd-f0aa-7ebc-01ef41df0d51', 'frontend-id': '5', 'state': '1', 'location': '4', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/5/0. [2012-10-25 17:50:40 6523] DEBUG (XendDomainInfo:1883) XendDomainInfo.handleShutdownWatch [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices tap2. [2012-10-25 17:50:40 6523] DEBUG (DevController:145) Waiting for 51712. [2012-10-25 17:50:40 6523] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vbd/5/51712/hotplug-status. [2012-10-25 17:50:40 6523] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vbd/5/51712/hotplug-status. [2012-10-25 17:50:40 6523] DEBUG (DevController:643) hotplugStatusCallback 1. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vif. [2012-10-25 17:50:40 6523] DEBUG (DevController:145) Waiting for 0. [2012-10-25 17:50:40 6523] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/5/0/hotplug-status. [2012-10-25 17:50:40 6523] DEBUG (DevController:643) hotplugStatusCallback 1. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vkbd. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices ioports. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices tap. [2012-10-25 17:50:40 6523] DEBUG (DevController:145) Waiting for 51728. [2012-10-25 17:50:40 6523] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/tap/5/51728/hotplug-status. [2012-10-25 17:50:40 6523] DEBUG (DevController:643) hotplugStatusCallback 1. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vif2. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices console. [2012-10-25 17:50:40 6523] DEBUG (DevController:145) Waiting for 0. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vscsi. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vbd. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices irq. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vfb. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices pci. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vusb. [2012-10-25 17:50:40 6523] DEBUG (DevController:140) Waiting for devices vtpm. [2012-10-25 17:50:40 6523] INFO (XendDomain:1225) Domain Windows (5) unpaused. [2012-10-25 17:50:40 6523] WARNING (XendDomainInfo:581) Could not unpause blktap disk: ('unpause', '-p27922', '-m0') failed (5632 ) [2012-10-25 17:51:56 6523] INFO (XendDomainInfo:2080) Domain has shutdown: name=Windows id=5 reason=poweroff. [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:3079) XendDomainInfo.destroy: domid=5 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2404) Destroying device model [2012-10-25 17:51:56 6523] INFO (image:615) Windows device model terminated [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2411) Releasing devices [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing tap2/51712 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = tap2, device = tap2/51712 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing vif/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing tap/51728 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = tap, device = tap/51728 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing console/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = console, device = console/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing vfb/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2409) No device model [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2411) Releasing devices [2012-10-25 17:51:56 6523] DEBUG (DevController:650) deviceDestroyCallback /local/domain/0/backend/vbd/5/51712/hotplug-status. [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing tap2/51712 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = tap2, device = tap2/51712 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing vif/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:2417) Removing tap/51728 [2012-10-25 17:51:56 6523] DEBUG (XendDomainInfo:1277) XendDomainInfo.destroyDevice: deviceClass = tap, device = tap/51728 [2012-10-25 17:51:56 6523] DEBUG (DevController:650) deviceDestroyCallback /local/domain/0/backend/vbd/5/51712/hotplug-status. [2012-10-25 17:51:56 6523] DEBUG (DevController:659) deviceDestroyCallback 6. Attachment:
xmexample.hvm Attachment:
IMAG0160.jpg _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |