Aaron Metzger
2007-Nov-07 13:29 UTC
[Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
I am trying to migrate my virtualization infrastructure from a pure Xen implementation to the more versatile Fedora virt-manager Xen/KVM environment. While doing this, I have hit some snags related to areas in which pure Xen documentation no longer applies due to the presence of lib-virt et al. First a minor comment on the Fedora8VirtQuickStart (draft I know): The section:> Building a Fedora Guest System using `virt-manager`no longer applies because between Fedora 7 and Fedora 8 there no longer appears to be a "New" button or a "File New" option in virt-manager. It would appear that the only way to create a DomU is by way of virt-install. Now, my problem. I have successfully created fully functional guest VMs which work perfectly in every way but, in the context of lib-virt and virsh, I can not figure out how to get the guest machines to be started automatically when the host machine boots. In a pure Xen environment, you symbolically link the "/etc/xen/<vm-config>" file into "/etc/xen/auto". After using virt-install to create the guest, the domain configuration files end up over in "/var/lib/xend/domains". I have tried to symbolically link the whole domain directory to "/etc/xen/auto", I have tried to link the configuration file to "/etc/xen/auto". I have tried to export the configuration as XML using virsh and then put that under "/etc/xen/auto". Nothing works and there is no indication from the xend.log that it is even trying to start the guest domains on bootup. I also tried to use: virsh autostart <domain> and get the error: libvir: error : this function is not supported by the hypervisor: virDomainSetAutostart So, my question is, is it possible to properly manage the start up and shut down of guest domains on host start up and shutdown or is that just not supported yet. If there is a way to do this, it would be a very helpful section to add to the Quick Start document because I would expect anyone migrating from a pure Xen environment to have the same issue. Google reveals that several have asked this question in the past on Fedora 7 etc and I have not seen any answer other than people suggesting to link the configuration file under "/etc/xen/auto". Thanks, Aaron
In my previous post, I was asking questions about how to get guest VMs to cleanly shutdown and start back up when the host shuts down and starts back up.> Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStartI have made some progress on this issue by complete accident. Previously I had a Fedora7 guest stored in an LVM partition. I just tried a Fedora8-RC3 guest stored in a regular file. Now the behavior is that if the guest is running when the host is shut down, it appears to try to start it back up after the host boots back up. BUT, the guest restore fails with the following: I would greatly appreciate any tips on how to stabilize this environment to get clean guest shutdowns and start ups when the host shuts down and starts up. Thanks in advance.> [2007-11-07 09:45:40 2414] INFO (SrvDaemon:338) Xend Daemon started > [2007-11-07 09:45:40 2414] INFO (SrvDaemon:342) Xend changeset: unavailable. > [2007-11-07 09:45:40 2414] INFO (SrvDaemon:349) Xend version: Unknown. > [2007-11-07 09:45:40 2414] DEBUG (XendDomainInfo:126) XendDomainInfo.recreate({''max_vcpu_id'': 3, ''cpu_time'': 12024165224L, ''ssidref'': 0, ''hvm'': 0, ''shutdown_reason'': 0, ''dying'': 0, ''online_vcpus'': 4, ''domid'': 0, ''paused'': 0, ''crashed'': 0, ''running'': 1, ''maxmem_kb'': 17179869180L, ''shutdown'': 0, ''mem_kb'': 8124200L, ''handle'': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], ''blocked'': 0, ''name'': ''Domain-0''}) > [2007-11-07 09:45:40 2414] INFO (XendDomainInfo:143) Recreating domain 0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0 > [2007-11-07 09:45:40 2414] DEBUG (XendDomainInfo:2026) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''0'', ''uuid'': ''00000000-0000-0000-0000-000000000000'', ''on_reboot'': ''restart'', ''image'': ''(linux (kernel ))'', ''on_poweroff'': ''destroy'', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''4'', ''vcpu_avail'': ''15'', ''name'': ''Domain-0''} > [2007-11-07 09:45:40 2414] DEBUG (XendDomainInfo:875) Storing domain details: {''cpu/3/availability'': ''online'', ''name'': ''Domain-0'', ''console/limit'': ''1048576'', ''memory/target'': ''8124200'', ''cpu/2/availability'': ''online'', ''vm'': ''/vm/00000000-0000-0000-0000-000000000000'', ''domid'': ''0'', ''cpu/0/availability'': ''online'', ''cpu/1/availability'': ''online'', ''control/platform-feature-multiprocessor-suspend'': ''1''} > [2007-11-07 09:45:40 2414] DEBUG (XendDomain:443) Adding Domain: 0 > [2007-11-07 09:45:40 2414] DEBUG (XendDomain:379) number of vcpus to use is 0 > [2007-11-07 09:45:40 2414] DEBUG (XendDomainInfo:875) Storing domain details: {''cpu/3/availability'': ''online'', ''name'': ''Domain-0'', ''console/limit'': ''1048576'', ''memory/target'': ''8124200'', ''cpu/2/availability'': ''online'', ''vm'': ''/vm/00000000-0000-0000-0000-000000000000'', ''domid'': ''0'', ''cpu/0/availability'': ''online'', ''cpu/1/availability'': ''online'', ''control/platform-feature-multiprocessor-suspend'': ''1''} > [2007-11-07 09:45:40 2414] DEBUG (XendDomainInfo:959) XendDomainInfo.handleShutdownWatch > [2007-11-07 09:45:40 2414] DEBUG (XendDomainInfo:233) XendDomainInfo.createDormant({''vcpus_params'': {}, ''PV_args'': '''', ''features'': '''', ''cpus'': [], ''devices'': {''9138bd07-7b37-af28-37ce-e9303b5c6f8d'': (''vfb'', {''vncunused'': ''1'', ''other_config'': {''vncunused'': ''1'', ''type'': ''vnc''}, ''type'': ''vnc'', ''uuid'': ''9138bd07-7b37-af28-37ce-e9303b5c6f8d''}), ''2f1154f7-b1fc-e94f-3ebc-a7ec9b8e2977'': (''vkbd'', {''uuid'': ''2f1154f7-b1fc-e94f-3ebc-a7ec9b8e2977'', ''backend'': ''0''}), ''91c7caa0-3dfa-fc65-a81e-b76c88fe321f'': (''vbd'', {''uuid'': ''91c7caa0-3dfa-fc65-a81e-b76c88fe321f'', ''bootable'': 1, ''driver'': ''paravirtualised'', ''dev'': ''xvda:disk'', ''uname'': ''file:/root/subversion.vm'', ''mode'': ''w'', ''backend'': ''0''}), ''2a06c796-f2a2-c96b-bd33-383ccf9a731a'': (''vif'', {''bridge'': ''eth0'', ''mac'': ''00:16:3e:1f:a4:ec'', ''script'': ''vif-bridge'', ''uuid'': ''2a06c796-f2a2-c96b-bd33-383ccf9a731a'', ''backend'': ''0''})}, ''vcpu_avail'': 1L, ''VCPUs_live'': 1, ''PV_bootloader'': ''/usr/bin/pygrub'', ''actions_after_crash'': ''restart'', ''vbd_refs'': [''91c7caa0-3dfa-fc65-a81e-b76c88fe321f''], ''PV_ramdisk'': '''', ''is_control_domain'': False, ''name_label'': ''subversion'', ''VCPUs_at_startup'': 1, ''HVM_boot_params'': {}, ''platform'': {''rtc_timeoffset'': ''0''}, ''cpu_weight'': 256, ''console_refs'': [''9138bd07-7b37-af28-37ce-e9303b5c6f8d''], ''cpu_cap'': 0, ''vif_refs'': [''2a06c796-f2a2-c96b-bd33-383ccf9a731a''], ''on_xend_stop'': ''ignore'', ''memory_static_min'': 0, ''HVM_boot_policy'': '''', ''VCPUs_max'': 1, ''start_time'': 1194445904.5699999, ''memory_static_max'': 1073741824, ''actions_after_shutdown'': ''destroy'', ''on_xend_start'': ''ignore'', ''memory_dynamic_max'': 1073741824, ''actions_after_suspend'': '''', ''is_a_template'': False, ''memory_dynamic_min'': 1073741824, ''uuid'': ''7b6bbe1a-6669-7e7e-b17a-c5d0562b4e59'', ''PV_kernel'': '''', ''cpu_time'': 39.113985640999999, ''shadow_memory'': 0, ''PV_bootloader_args'': '''', ''notes'': {''HV_START_LOW'': ''4118806528'', ''FEATURES'': ''writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode _kernel'', ''VIRT_BASE'': ''3221225472'', ''GUEST_VERSION'': ''2.6'', ''PADDR_OFFSET'': ''3221225472'', ''GUEST_OS'': ''linux'', ''HYPERCALL_PAGE'': ''3238006784'', ''LOADER'': ''generic'', ''SUSPEND_CANCEL'': ''1'', ''PAE_MODE'': ''yes'', ''ENTRY'': ''3238002688'', ''XEN_VERSION'': ''xen-3.0''}, ''other_config'': {}, ''actions_after_reboot'': ''restart'', ''status'': ''1'', ''vtpm_refs'': [], ''security'': None})> [2007-11-07 09:45:40 2414] ERROR (XendDomainInfo:2332) bridge_to_network > Traceback (most recent call last): > File "/usr/lib64/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 2330, in get_dev_xenapi_config > config.get(''bridge'')).get_uuid() > File "/usr/lib64/python2.5/site-packages/xen/xend/XendNode.py", line 510, in bridge_to_network > raise Exception(''Cannot find network for bridge %s'' % bridge) > Exception: Cannot find network for bridge eth0 > [2007-11-07 09:45:40 2414] INFO (SrvServer:180) unix path=/var/lib/xend/xend-socket > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VBD.set_device not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VBD.set_mode not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VBD.set_type not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VM.get_auto_power_on not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VM.set_auto_power_on not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VM.set_VCPUs_max not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VM.set_VCPUs_at_startup not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: debug.get_all not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: console.get_other_config not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: console.set_other_config not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VIF.get_network not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VIF.set_device not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VIF.set_MAC not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: VIF.set_MTU not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: session.get_all_records not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: event.get_record not found > [2007-11-07 09:45:40 2414] WARNING (XendAPI:672) API call: event.get_all not found > [2007-11-07 09:45:43 2414] INFO (XMLRPCServer:149) Opening Unix domain socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been disabled for this server. > [2007-11-07 09:45:43 2414] INFO (XMLRPCServer:149) Opening Unix domain socket XML-RPC server on /var/run/xend/xmlrpc.sock. > [2007-11-07 09:45:44 2414] DEBUG (XendDomainInfo:210) XendDomainInfo.restore([''domain'', [''domid'', ''4''], [''on_crash'', ''restart''], [''uuid'', ''7b6bbe1a-6669-7e7e-b17a-c5d0562b4e59''], [''bootloader_args''], [''vcpus'', ''1''], [''name'', ''subversion''], [''on_poweroff'', ''destroy''], [''on_reboot'', ''restart''], [''bootloader'', ''/usr/bin/pygrub''], [''maxmem'', ''1024''], [''memory'', ''1024''], [''shadow_memory'', ''0''], [''vcpu_avail'', ''1''], [''cpu_weight'', ''256''], [''cpu_cap'', ''0''], [''features''], [''on_xend_start'', ''ignore''], [''on_xend_stop'', ''ignore''], [''start_time'', ''1194445904.57''], [''cpu_time'', ''19.492313782''], [''online_vcpus'', ''1''], [''image'', [''linux'', [''kernel''], [''rtc_timeoffset'', ''0''], [''notes'', [''HV_START_LOW'', ''4118806528''], [''FEATURES'', ''writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel''], [''VIRT_BASE'', ''3221225472''], [''GUEST_VERSION'', ''2.6''], [''PADDR_OFFSET'', ''3221225472''], [''GUEST_OS'', ''linux''], [''HYPERCALL_PAGE'', ''3238006784''], [''LOADER'', ''generic''], [''SUSPEND_CANCEL'', ''1''], [''PAE_MODE'', ''yes''], [''ENTRY'', ''3238002688''], [''XEN_VERSION'', ''xen-3.0'']]]], [''status'', ''2''], [''state'', ''-b----''], [''store_mfn'', ''2154297''], [''console_mfn'', ''2154296''], [''device'', [''vif'', [''bridge'', ''eth0''], [''mac'', ''00:16:3e:1f:a4:ec''], [''script'', ''vif-bridge''], [''uuid'', ''2a06c796-f2a2-c96b-bd33-383ccf9a731a''], [''backend'', ''0'']]], [''device'', [''vbd'', [''uname'', ''file:/root/subversion.vm''], [''uuid'', ''91c7caa0-3dfa-fc65-a81e-b76c88fe321f''], [''mode'', ''w''], [''dev'', ''xvda:disk''], [''backend'', ''0''], [''bootable'', ''1'']]], [''device'', [''vkbd'', [''backend'', ''0'']]], [''device'', [''vfb'', [''vncunused'', ''1''], [''type'', ''vnc''], [''uuid'', ''9138bd07-7b37-af28-37ce-e9303b5c6f8d'']]]])> [2007-11-07 09:45:44 2414] DEBUG (XendDomainInfo:1465) XendDomainInfo.constructDomain > [2007-11-07 09:45:44 2414] DEBUG (balloon:113) Balloon: 131072 KiB free; need 2048; done. > [2007-11-07 09:45:44 2414] DEBUG (XendDomain:443) Adding Domain: 1 > [2007-11-07 09:45:44 2414] DEBUG (XendDomainInfo:2026) Storing VM details: {''on_xend_stop'': ''ignore'', ''shadow_memory'': ''0'', ''uuid'': ''7b6bbe1a-6669-7e7e-b17a-c5d0562b4e59'', ''on_reboot'': ''restart'', ''start_time'': ''1194445904.57'', ''on_poweroff'': ''destroy'', ''on_xend_start'': ''ignore'', ''on_crash'': ''restart'', ''xend/restart_count'': ''0'', ''vcpus'': ''1'', ''vcpu_avail'': ''1'', ''image'': "(linux (kernel ) (rtc_timeoffset 0) (notes (HV_START_LOW 4118806528) (FEATURES ''writable_page_tables|writable_descriptor_tables|auto_translated_physmap|pae_pgdir_above_4gb|supervisor_mode_kernel'') (VIRT_BASE 3221225472) (GUEST_VERSION 2.6) (PADDR_OFFSET 3221225472) (GUEST_OS linux) (HYPERCALL_PAGE 3238006784) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3238002688) (XEN_VERSION xen-3.0)))", ''name'': ''subversion''} > [2007-11-07 09:45:44 2414] INFO (XendDomainInfo:1367) createDevice: vkbd : {''uuid'': ''417e4cd7-3e82-a982-ff62-53a0b89fb649'', ''backend'': ''0''} > [2007-11-07 09:45:44 2414] DEBUG (DevController:115) DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': ''/local/domain/0/backend/vkbd/1/0''} to /local/domain/1/device/vkbd/0. > [2007-11-07 09:45:44 2414] DEBUG (DevController:117) DevController: writing {''frontend-id'': ''1'', ''domain'': ''subversion'', ''frontend'': ''/local/domain/1/device/vkbd/0'', ''state'': ''1'', ''online'': ''1''} to /local/domain/0/backend/vkbd/1/0. > [2007-11-07 09:45:44 2414] INFO (XendDomainInfo:1367) createDevice: vfb : {''vncunused'': ''1'', ''other_config'': {''vncunused'': ''1'', ''type'': ''vnc''}, ''type'': ''vnc'', ''uuid'': ''9138bd07-7b37-af28-37ce-e9303b5c6f8d''} > [2007-11-07 09:45:44 2414] DEBUG (DevController:115) DevController: writing {''state'': ''1'', ''backend-id'': ''0'', ''backend'': ''/local/domain/0/backend/vfb/1/0''} to /local/domain/1/device/vfb/0. > [2007-11-07 09:45:44 2414] DEBUG (DevController:117) DevController: writing {''vncunused'': ''1'', ''domain'': ''subversion'', ''frontend'': ''/local/domain/1/device/vfb/0'', ''uuid'': ''9138bd07-7b37-af28-37ce-e9303b5c6f8d'', ''state'': ''1'', ''online'': ''1'', ''frontend-id'': ''1'', ''type'': ''vnc''} to /local/domain/0/backend/vfb/1/0. > [2007-11-07 09:45:44 2414] DEBUG (vfbif:78) No VNC passwd configured for vfb access > [2007-11-07 09:45:44 2414] DEBUG (vfbif:9) Spawn: [''/usr/lib64/xen/bin/qemu-dm'', ''-M'', ''xenpv'', ''-d'', ''1'', ''-domain-name'', ''subversion'', ''-vnc'', ''127.0.0.1:0'', ''-vncunused''] > [2007-11-07 09:45:44 2414] INFO (XendDomainInfo:1367) createDevice: vbd : {''uuid'': ''91c7caa0-3dfa-fc65-a81e-b76c88fe321f'', ''bootable'': 1, ''driver'': ''paravirtualised'', ''dev'': ''xvda:disk'', ''uname'': ''file:/root/subversion.vm'', ''mode'': ''w'', ''backend'': ''0''} > [2007-11-07 09:45:44 2414] DEBUG (DevController:115) DevController: writing {''backend-id'': ''0'', ''virtual-device'': ''51712'', ''device-type'': ''disk'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vbd/1/51712''} to /local/domain/1/device/vbd/51712. > [2007-11-07 09:45:44 2414] DEBUG (DevController:117) DevController: writing {''domain'': ''subversion'', ''frontend'': ''/local/domain/1/device/vbd/51712'', ''uuid'': ''91c7caa0-3dfa-fc65-a81e-b76c88fe321f'', ''dev'': ''xvda'', ''state'': ''1'', ''params'': ''/root/subversion.vm'', ''mode'': ''w'', ''online'': ''1'', ''frontend-id'': ''1'', ''type'': ''file''} to /local/domain/0/backend/vbd/1/51712. > [2007-11-07 09:45:44 2414] INFO (XendDomainInfo:1367) createDevice: vif : {''bridge'': ''eth0'', ''mac'': ''00:16:3e:1f:a4:ec'', ''script'': ''vif-bridge'', ''uuid'': ''2a06c796-f2a2-c96b-bd33-383ccf9a731a'', ''backend'': ''0''} > [2007-11-07 09:45:44 2414] DEBUG (DevController:115) DevController: writing {''backend-id'': ''0'', ''mac'': ''00:16:3e:1f:a4:ec'', ''handle'': ''0'', ''state'': ''1'', ''backend'': ''/local/domain/0/backend/vif/1/0''} to /local/domain/1/device/vif/0. > [2007-11-07 09:45:44 2414] DEBUG (DevController:117) DevController: writing {''bridge'': ''eth0'', ''domain'': ''subversion'', ''handle'': ''0'', ''uuid'': ''2a06c796-f2a2-c96b-bd33-383ccf9a731a'', ''script'': ''/etc/xen/scripts/vif-bridge'', ''state'': ''1'', ''frontend'': ''/local/domain/1/device/vif/0'', ''mac'': ''00:16:3e:1f:a4:ec'', ''online'': ''1'', ''frontend-id'': ''1''} to /local/domain/0/backend/vif/1/0. > [2007-11-07 09:45:44 2414] DEBUG (XendDomainInfo:875) Storing domain details: {''image/entry'': ''3238002688'', ''console/port'': ''2'', ''image/loader'': ''generic'', ''vm'': ''/vm/7b6bbe1a-6669-7e7e-b17a-c5d0562b4e59'', ''control/platform-feature-multiprocessor-suspend'': ''1'', ''image/hv-start-low'': ''4118806528'', ''image/guest-os'': ''linux'', ''image/features/writable-descriptor-tables'': ''1'', ''image/virt-base'': ''3221225472'', ''memory/target'': ''1048576'', ''image/guest-version'': ''2.6'', ''image/features/supervisor-mode-kernel'': ''1'', ''image/pae-mode'': ''yes'', ''console/limit'': ''1048576'', ''image/paddr-offset'': ''3221225472'', ''image/hypercall-page'': ''3238006784'', ''image/suspend-cancel'': ''1'', ''cpu/0/availability'': ''online'', ''image/features/pae-pgdir-above-4gb'': ''1'', ''image/features/writable-page-tables'': ''1'', ''image/features/auto-translated-physmap'': ''1'', ''name'': ''subversion'', ''domid'': ''1'', ''image/xen-version'': ''xen-3.0'', ''store/port'': ''1''} > [2007-11-07 09:45:44 2414] DEBUG (XendCheckpoint:202) restore:shadow=0x0, _static_max=0x40000000, _static_min=0x0, > [2007-11-07 09:45:44 2414] DEBUG (balloon:119) Balloon: 131064 KiB free; 0 to scrub; need 1048576; retries: 20. > [2007-11-07 09:45:44 2414] DEBUG (balloon:134) Balloon: setting dom0 target to 7037 MiB. > [2007-11-07 09:45:44 2414] DEBUG (XendDomainInfo:583) Setting memory target of domain Domain-0 (0) to 7037 MiB. > [2007-11-07 09:45:44 2414] DEBUG (XendDomainInfo:875) Storing domain details: {''cpu/3/availability'': ''online'', ''name'': ''Domain-0'', ''console/limit'': ''1048576'', ''memory/target'': ''7205888'', ''cpu/2/availability'': ''online'', ''vm'': ''/vm/00000000-0000-0000-0000-000000000000'', ''domid'': ''0'', ''cpu/0/availability'': ''online'', ''cpu/1/availability'': ''online'', ''control/platform-feature-multiprocessor-suspend'': ''1''} > [2007-11-07 09:45:45 2414] DEBUG (balloon:113) Balloon: 1049376 KiB free; need 1048576; done. > [2007-11-07 09:45:45 2414] DEBUG (XendCheckpoint:214) [xc_restore]: /usr/lib64/xen/bin/xc_restore 4 1 1 2 0 0 0 > [2007-11-07 09:45:45 2414] INFO (XendCheckpoint:350) xc_domain_restore start: p2m_size = 40800 > [2007-11-07 09:45:45 2414] INFO (XendCheckpoint:350) ERROR Internal error: read extended-info signature failed > [2007-11-07 09:45:45 2414] INFO (XendCheckpoint:350) Restore exit with rc=1 > [2007-11-07 09:45:45 2414] DEBUG (XendDomainInfo:1713) XendDomainInfo.destroy: domid=1 > [2007-11-07 09:45:45 2414] DEBUG (XendDomainInfo:1730) XendDomainInfo.destroyDomain(1) > [2007-11-07 09:45:45 2414] ERROR (XendDomainInfo:1742) XendDomainInfo.destroy: xc.domain_destroy failed. > Traceback (most recent call last): > File "/usr/lib64/python2.5/site-packages/xen/xend/XendDomainInfo.py", line 1736, in destroyDomain > xc.domain_destroy(self.domid) > Error: (3, ''No such process'') > [2007-11-07 09:45:45 2414] ERROR (XendDomain:1104) Restore failed > Traceback (most recent call last): > File "/usr/lib64/python2.5/site-packages/xen/xend/XendDomain.py", line 1099, in domain_restore_fd > return XendCheckpoint.restore(self, fd, paused=paused) > File "/usr/lib64/python2.5/site-packages/xen/xend/XendCheckpoint.py", line 218, in restore > forkHelper(cmd, fd, handler.handler, True) > File "/usr/lib64/python2.5/site-packages/xen/xend/XendCheckpoint.py", line 338, in forkHelper > raise XendError("%s failed" % string.join(cmd)) > XendError: /usr/lib64/xen/bin/xc_restore 4 1 1 2 0 0 0 failed
Aaron Metzger
2007-Nov-07 15:38 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
yonas Abraham wrote:>> >> So, my question is, is it possible to properly manage the start up and >> shut down of guest domains on host start up and shutdown or is that just >> not supported yet. >> >> If there is a way to do this, it would be a very helpful section to add >> to the Quick Start document because I would expect anyone migrating from >> a pure Xen environment to have the same issue. Google reveals that >> several have asked this question in the past on Fedora 7 etc and I have >> not seen any answer other than people suggesting to link the >> configuration file under "/etc/xen/auto". >> >> Thanks, >> Aaron > > > I am in same boat as you. I want to know how to atuo start an image in > F7 or F8. I have seen this question asked several times and I have > seen no answer. May be it is not posible to do it. >I think I have it figured out! Edit your "/var/lib/xend/domains/<domain-uuid>/config.sxp" file. Look for the lines containing (on_xend_start ignore) (on_xend_stp ignore) and change them to be (on_xend_start start) (on_xend_stop shutdown) This will restart the domain when the xend daemon starts. Mine still fails for the case where I "reboot" the host instead of shutdown, powerup because it seems like it can not restart from the virtual machine image saved in "/var/lib/xen/save". I tried to post a log file with that failure to this list but it looks like the e-mail was to large to post or something because it hasn''t shown up in this list yet. At least now I have a solution which will work when my UPS shuts down the server during a power outage. -- Aaron
John Summerfield
2007-Nov-07 23:20 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
Aaron Metzger wrote:> yonas Abraham wrote:Why am I seeing Aaron''s messages, but not Yonas''? -- Cheers John -- spambait 1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu -- Advice http://webfoot.com/advice/email.top.php http://www.catb.org/~esr/faqs/smart-questions.html http://support.microsoft.com/kb/555375 Please do not reply off-list
Sam Folk-Williams
2007-Nov-19 19:19 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
Aaron Metzger wrote:> > I am trying to migrate my virtualization infrastructure from a pure Xen > implementation to the more versatile Fedora virt-manager Xen/KVM > environment. While doing this, I have hit some snags related to areas > in which pure Xen documentation no longer applies due to the presence of > lib-virt et al. > > First a minor comment on the Fedora8VirtQuickStart (draft I know): > > The section: > >> Building a Fedora Guest System using `virt-manager` > > no longer applies because between Fedora 7 and Fedora 8 there no longer > appears to be a "New" button or a "File New" option in virt-manager. It > would appear that the only way to create a DomU is by way of virt-install. >The doc needs updating. I did some updating this weekend. The button is not as obvious now but it is still there (you have to right-click on the hypervisor to see the "New" option. I''m not sure why this changed, but I have updated that bit. Th anks, Sam> Now, my problem. > > I have successfully created fully functional guest VMs which work > perfectly in every way but, in the context of lib-virt and virsh, I can > not figure out how to get the guest machines to be started automatically > when the host machine boots. In a pure Xen environment, you > symbolically link the "/etc/xen/<vm-config>" file into "/etc/xen/auto". > After using virt-install to create the guest, the domain configuration > files end up over in "/var/lib/xend/domains". I have tried to > symbolically link the whole domain directory to "/etc/xen/auto", I have > tried to link the configuration file to "/etc/xen/auto". I have tried > to export the configuration as XML using virsh and then put that under > "/etc/xen/auto". Nothing works and there is no indication from the > xend.log that it is even trying to start the guest domains on bootup. > > I also tried to use: > > virsh autostart <domain> > > and get the error: > > libvir: error : this function is not supported by the hypervisor: > virDomainSetAutostart > > So, my question is, is it possible to properly manage the start up and > shut down of guest domains on host start up and shutdown or is that just > not supported yet. > > If there is a way to do this, it would be a very helpful section to add > to the Quick Start document because I would expect anyone migrating from > a pure Xen environment to have the same issue. Google reveals that > several have asked this question in the past on Fedora 7 etc and I have > not seen any answer other than people suggesting to link the > configuration file under "/etc/xen/auto". > > Thanks, > Aaron > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen
John Summerfield
2007-Nov-20 05:57 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
Sam Folk-Williams wrote:> Aaron Metzger wrote: >> >> I am trying to migrate my virtualization infrastructure from a pure >> Xen implementation to the more versatile Fedora virt-manager Xen/KVM >> environment. While doing this, I have hit some snags related to areas >> in which pure Xen documentation no longer applies due to the presence >> of lib-virt et al. >> >> First a minor comment on the Fedora8VirtQuickStart (draft I know): >> >> The section: >> >>> Building a Fedora Guest System using `virt-manager` >> >> no longer applies because between Fedora 7 and Fedora 8 there no >> longer appears to be a "New" button or a "File New" option in >> virt-manager. It would appear that the only way to create a DomU is >> by way of virt-install. >> > > The doc needs updating. I did some updating this weekend. The button is > not as obvious now but it is still there (you have to right-click on the > hypervisor to see the "New" option. I''m not sure why this changed, but I > have updated that bit.That''s bizarre. According to the web site, you employed "UI Interface Designers." I think you need new designers, that''s far from intuitive. -- Cheers John -- spambait 1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu -- Advice http://webfoot.com/advice/email.top.php http://www.catb.org/~esr/faqs/smart-questions.html http://support.microsoft.com/kb/555375 Please do not reply off-list
Sam Folk-Williams
2007-Nov-20 16:01 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
John Summerfield wrote:> Sam Folk-Williams wrote: >> Aaron Metzger wrote: >>> >>> I am trying to migrate my virtualization infrastructure from a pure >>> Xen implementation to the more versatile Fedora virt-manager Xen/KVM >>> environment. While doing this, I have hit some snags related to >>> areas in which pure Xen documentation no longer applies due to the >>> presence of lib-virt et al. >>> >>> First a minor comment on the Fedora8VirtQuickStart (draft I know): >>> >>> The section: >>> >>>> Building a Fedora Guest System using `virt-manager` >>> >>> no longer applies because between Fedora 7 and Fedora 8 there no >>> longer appears to be a "New" button or a "File New" option in >>> virt-manager. It would appear that the only way to create a DomU is >>> by way of virt-install. >>> >> >> The doc needs updating. I did some updating this weekend. The button >> is not as obvious now but it is still there (you have to right-click >> on the hypervisor to see the "New" option. I''m not sure why this >> changed, but I have updated that bit. > > That''s bizarre. According to the web site, you employed "UI Interface > Designers." > > I think you need new designers, that''s far from intuitive. >Lucky for us they are happy to take suggestions and improve! Figured this out - They had to remove the global new button, because the UI now allows multiple hypervisor connections. So you need to be able to have a new button that is linked to a specific connection. The button is now there for each hypervisor on the right side. I didn''t see the button before. If you right-click, that''s a second way to access it. I don''t think it will be too hard to make the button more obvious. -Sam> >
Daniel P. Berrange
2007-Nov-20 16:08 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
On Tue, Nov 20, 2007 at 02:57:29PM +0900, John Summerfield wrote:> Sam Folk-Williams wrote: > >Aaron Metzger wrote: > >> > >>I am trying to migrate my virtualization infrastructure from a pure > >>Xen implementation to the more versatile Fedora virt-manager Xen/KVM > >>environment. While doing this, I have hit some snags related to areas > >>in which pure Xen documentation no longer applies due to the presence > >>of lib-virt et al. > >> > >>First a minor comment on the Fedora8VirtQuickStart (draft I know): > >> > >>The section: > >> > >>>Building a Fedora Guest System using `virt-manager` > >> > >>no longer applies because between Fedora 7 and Fedora 8 there no > >>longer appears to be a "New" button or a "File New" option in > >>virt-manager. It would appear that the only way to create a DomU is > >>by way of virt-install. > >> > > > >The doc needs updating. I did some updating this weekend. The button is > >not as obvious now but it is still there (you have to right-click on the > >hypervisor to see the "New" option. I''m not sure why this changed, but I > >have updated that bit. > > That''s bizarre. According to the web site, you employed "UI Interface > Designers." > > I think you need new designers, that''s far from intuitive.I''ve already stated this will be fixed in the next release to make it more obvious again. In the meantime, patches are welcomed, or you can just continue whining & making sarcastic comments. Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
Kamron B
2007-Nov-20 16:30 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
--- John Summerfield <debian@herakles.homelinux.org> wrote:> Sam Folk-Williams wrote: > > Aaron Metzger wrote: > >> > >> I am trying to migrate my virtualization > infrastructure from a pure > >> Xen implementation to the more versatile Fedora > virt-manager Xen/KVM > >> environment. While doing this, I have hit some > snags related to areas > >> in which pure Xen documentation no longer applies > due to the presence > >> of lib-virt et al. > >> > >> First a minor comment on the > Fedora8VirtQuickStart (draft I know): > >> > >> The section: > >> > >>> Building a Fedora Guest System using > `virt-manager` > >> > >> no longer applies because between Fedora 7 and > Fedora 8 there no > >> longer appears to be a "New" button or a "File > New" option in > >> virt-manager. It would appear that the only way > to create a DomU is > >> by way of virt-install. > >> > > > > The doc needs updating. I did some updating this > weekend. The button is > > not as obvious now but it is still there (you have > to right-click on the > > hypervisor to see the "New" option. I''m not sure > why this changed, but I > > have updated that bit. > > That''s bizarre. According to the web site, you > employed "UI Interface > Designers." > > I think you need new designers, that''s far from > intuitive. > > > > -- > > Cheers > John > > -- spambait > 1aaaaaaa@coco.merseine.nu > Z1aaaaaaa@coco.merseine.nu > -- Advice > http://webfoot.com/advice/email.top.php > http://www.catb.org/~esr/faqs/smart-questions.html > http://support.microsoft.com/kb/555375 > > Please do not reply off-list > > -- > Fedora-xen mailing list > Fedora-xen@redhat.com > https://www.redhat.com/mailman/listinfo/fedora-xen >____________________________________________________________________________________ Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/
The issue is described bellow: When running Windows Vista ultimate in a domain with two vcpus, and then do a heavy disk IO in domain0, the Vista will blue screen with such message "a clock interrupt was not received on a secondary processor within the allocated time interval" with Bug Check 0x101. This bug can always be reproduced by running the memory testing from Linux Performance Testing suite in domain 0. Note: domain 0 must use the hard disk as swap place. I need some helps from Linux expert. Why the system is very slow when you access the hard disk frequently under Linux? Does it allowed to preempt when do disk i/o access from 2.6.18 Linux kernel? The detailed process of disk I/O handler under Linux. The interrupt status, the cpu status and buffer lock ____________________________________________________________________________________ Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how. http://overview.mail.yahoo.com/
John Summerfield
2007-Nov-25 09:45 UTC
Re: [Fedora-xen] Newbie Virt Questions and comments on wiki/Docs/Fedora8VirtQuickStart
Daniel P. Berrange wrote:> On Tue, Nov 20, 2007 at 02:57:29PM +0900, John Summerfield wrote: >> Sam Folk-Williams wrote: >>> Aaron Metzger wrote: >>>> I am trying to migrate my virtualization infrastructure from a pure >>>> Xen implementation to the more versatile Fedora virt-manager Xen/KVM >>>> environment. While doing this, I have hit some snags related to areas >>>> in which pure Xen documentation no longer applies due to the presence >>>> of lib-virt et al. >>>> >>>> First a minor comment on the Fedora8VirtQuickStart (draft I know): >>>> >>>> The section: >>>> >>>>> Building a Fedora Guest System using `virt-manager` >>>> no longer applies because between Fedora 7 and Fedora 8 there no >>>> longer appears to be a "New" button or a "File New" option in >>>> virt-manager. It would appear that the only way to create a DomU is >>>> by way of virt-install. >>>> >>> The doc needs updating. I did some updating this weekend. The button is >>> not as obvious now but it is still there (you have to right-click on the >>> hypervisor to see the "New" option. I''m not sure why this changed, but I >>> have updated that bit. >> That''s bizarre. According to the web site, you employed "UI Interface >> Designers." >> >> I think you need new designers, that''s far from intuitive. > > I''ve already stated this will be fixed in the next release to make it more > obvious again. In the meantime, patches are welcomed, or you can just > continue whining & making sarcastic comments.I''m pleased it''s being changed. If you think I was making sarcastic comments, you''ve mistaken my intent. It was heartfelt, and on reflection, fair comment. I really do not like the UI design. As for patches, not from me. I can struggle out a bit of Perl if I must, but Python has me beaten. My time''s better spent helping people come to terms with getting their Linux systems working. -- Cheers John -- spambait 1aaaaaaa@coco.merseine.nu Z1aaaaaaa@coco.merseine.nu -- Advice http://webfoot.com/advice/email.top.php http://www.catb.org/~esr/faqs/smart-questions.html http://support.microsoft.com/kb/555375 You cannot reply off-list:-)