[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] Xen Novell rpm does not start Dom0 on my openSuse 10.2
# -*- mode: python; -*- #============================================================================ # Python configuration setup for 'xm create'. # This script sets the parameters used when a domain is created using 'xm create'. # You use a separate script for each domain you want to create, or # you can set the parameters for the domain on the xm command line. #============================================================================ import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' #---------------------------------------------------------------------------- # Kernel image file. kernel = "/usr/lib/xen/boot/hvmloader" # The domain build function. HVM domain uses 'hvm'. builder='hvm' # Initial memory allocation (in megabytes) for the new domain. # # WARNING: Creating a domain with insufficient memory may cause out of # memory errors. The domain needs enough memory to boot kernel # and modules. Allocating less than 32MBs is not recommended. memory = 512 # Shadow pagetable memory for the domain, in MB. # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. # shadow_memory = 8 # A name for your domain. All domains must have different names. name = "WinXP" # 128-bit UUID for the domain. The default behavior is to generate a new UUID # on each call to 'xm create'. #uuid = "06ed00fe-1162-4fc4-b5d8-11993ee4a8b9" #----------------------------------------------------------------------------- # The number of cpus guest platform has, default=1 #vcpus=1 # Enable/disable HVM guest PAE, default=1 (enabled) #pae=1 # Enable/disable HVM guest ACPI, default=1 (enabled) #acpi=1 # Enable/disable HVM APIC mode, default=1 (enabled) # Note that this option is ignored if vcpus > 1 #apic=1 # List of which CPUS this domain is allowed to use, default Xen picks #cpus = "" # leave to Xen to pick #cpus = "0" # all vcpus run on CPU0 #cpus = "0-3,5,^1" # run on cpus 0,2,3,5 # Optionally define mac and/or bridge for the network interfaces. # Random MACs are assigned if not given. #vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0, model=ne2k_pci' ] # type=ioemu specify the NIC is an ioemu device not netfront vif = [ 'type=ioemu, bridge=xenbr0' ] #---------------------------------------------------------------------------- # Define the disk devices you want the domain to have access to, and # what you want them accessible as. # Each disk entry is of the form phy:UNAME,DEV,MODE # where UNAME is the device, DEV is the device name the domain will see, # and MODE is r for read-only, w for read-write. #disk = [ 'phy:hda1,hda1,r' ] disk = [ 'file:/var/lib/xen/images/winxp.img,hda,w', ',hdc:cdrom,r' ] #---------------------------------------------------------------------------- # Configure the behaviour when a domain exits. There are three 'reasons' # for a domain to stop: poweroff, reboot, and crash. For each of these you # may specify: # # "destroy", meaning that the domain is cleaned up as normal; # "restart", meaning that a new domain is started in place of the old # one; # "preserve", meaning that no clean-up is done until the domain is # manually destroyed (using xm destroy, for example); or # "rename-restart", meaning that the old domain is not cleaned up, but is # renamed and a new domain started in its place. # # The default is # # on_poweroff = 'destroy' # on_reboot = 'restart' # on_crash = 'restart' # # For backwards compatibility we also support the deprecated option restart # # restart = 'onreboot' means on_poweroff = 'destroy' # on_reboot = 'restart' # on_crash = 'destroy' # # restart = 'always' means on_poweroff = 'restart' # on_reboot = 'restart' # on_crash = 'restart' # # restart = 'never' means on_poweroff = 'destroy' # on_reboot = 'destroy' # on_crash = 'destroy' #on_poweroff = 'destroy' #on_reboot = 'restart' #on_crash = 'restart' #============================================================================ # New stuff device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c), Network (n) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="d" #----------------------------------------------------------------------------- # write to temporary files instead of disk image files #snapshot=1 #---------------------------------------------------------------------------- # enable SDL library for graphics, default = 0 sdl=1 #---------------------------------------------------------------------------- # enable VNC library for graphics, default = 1 vnc=0 #---------------------------------------------------------------------------- # address that should be listened on for the VNC server if vnc is set. # default is to use 'vnc-listen' setting from /etc/xen/xend-config.sxp #vnclisten="127.0.0.1" #---------------------------------------------------------------------------- # set VNC display number, default = domid #vncdisplay=1 #---------------------------------------------------------------------------- # try to find an unused port for the VNC server, default = 1 #vncunused=1 #---------------------------------------------------------------------------- # enable spawning vncviewer for domain's console # (only valid when vnc=1), default = 0 #vncconsole=0 #---------------------------------------------------------------------------- # set password for domain's VNC console # default is depents on vncpasswd in xend-config.sxp vncpasswd='' #---------------------------------------------------------------------------- # no graphics, use serial port #nographic=0 #---------------------------------------------------------------------------- # enable stdvga, default = 0 (use cirrus logic device model) stdvga=0 #----------------------------------------------------------------------------- # serial port re-direct to pty deivce, /dev/pts/n # then xm console or minicom can connect serial='pty' #----------------------------------------------------------------------------- # Qemu Monitor, default is disable # Use ctrl-alt-2 to connect #monitor=1 #----------------------------------------------------------------------------- # enable sound card support, [sb16|es1370|all|..,..], default none soundhw='all' #----------------------------------------------------------------------------- # set the real time clock to local time [default=0 i.e. set to utc] #localtime=1 #----------------------------------------------------------------------------- # set the real time clock offset in seconds [default=0 i.e. same as dom0] #rtc_timeoffset=3600 #----------------------------------------------------------------------------- # start in full screen #full-screen=1 #----------------------------------------------------------------------------- # Enable USB support (specific devices specified at runtime through the # monitor window) usb=1 # Enable USB mouse support (only enable one of the following, `mouse' for # PS/2 protocol relative mouse, `tablet' for # absolute mouse) #usbdevice='mouse' #usbdevice='tablet' #----------------------------------------------------------------------------- # Set keyboard layout, default is en-us keyboard. keymap='de-ch' [2007-10-22 23:56:23 5262] DEBUG (XendDomainInfo:78) XendDomainInfo.create(['vm', ['name', 'WinXP'], ['memory', 512], ['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model', '/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'dca'], ['fda', ''], ['fdb', ''], ['localtime', 0], ['serial', 'pty'], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw', 'all'], ['vnc', 0], ['vncunused', 1], ['sdl', 1], ['display', ':0.0'], ['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', '0'], ['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 1], ['usbdevice', ''], ['keymap', 'de-ch'], ['vncpasswd', 'XXXXXXXX']]], ['device', ['vbd', ['uname', 'file:/var/lib/xen/images/winxp.img'], ['dev', 'hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', ''], ['dev', 'hdc:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']]]]) [2007-10-22 23:56:23 5262] DEBUG (XendDomainInfo:1414) XendDomainInfo.constructDomain [2007-10-22 23:56:23 5262] DEBUG (balloon:113) Balloon: 539644 KiB free; need 2048; done. [2007-10-22 23:56:23 5262] DEBUG (XendDomain:434) Adding Domain: 10 [2007-10-22 23:56:23 5262] DEBUG (XendDomainInfo:1468) XendDomainInfo.initDomain: 10 256 [2007-10-22 23:56:23 5262] DEBUG (image:330) args: boot, val: dca [2007-10-22 23:56:23 5262] DEBUG (image:330) args: fda, val: None [2007-10-22 23:56:23 5262] DEBUG (image:330) args: fdb, val: None [2007-10-22 23:56:23 5262] DEBUG (image:330) args: soundhw, val: all [2007-10-22 23:56:23 5262] DEBUG (image:330) args: localtime, val: 0 [2007-10-22 23:56:23 5262] DEBUG (image:330) args: serial, val: pty [2007-10-22 23:56:23 5262] DEBUG (image:330) args: std-vga, val: 0 [2007-10-22 23:56:23 5262] DEBUG (image:330) args: isa, val: 0 [2007-10-22 23:56:23 5262] DEBUG (image:330) args: acpi, val: 1 [2007-10-22 23:56:23 5262] DEBUG (image:330) args: usb, val: 1 [2007-10-22 23:56:23 5262] DEBUG (image:330) args: usbdevice, val: None [2007-10-22 23:56:23 5262] DEBUG (image:330) args: k, val: de-ch [2007-10-22 23:56:23 5262] DEBUG (XendDomainInfo:1500) _initDomain:shadow_memory=0x0, memory_static_max=0x20000000, memory_static_min=0x0. [2007-10-22 23:56:23 5262] DEBUG (balloon:113) Balloon: 538616 KiB free; need 537600; done. [2007-10-22 23:56:23 5262] INFO (image:129) buildDomain os=hvm dom=10 vcpus=1 [2007-10-22 23:56:23 5262] DEBUG (image:278) domid = 10 [2007-10-22 23:56:23 5262] DEBUG (image:279) image = /usr/lib/xen/boot/hvmloader [2007-10-22 23:56:23 5262] DEBUG (image:280) store_evtchn = 2 [2007-10-22 23:56:23 5262] DEBUG (image:281) memsize = 512 [2007-10-22 23:56:23 5262] DEBUG (image:282) vcpus = 1 [2007-10-22 23:56:23 5262] DEBUG (image:283) pae = 1 [2007-10-22 23:56:23 5262] DEBUG (image:284) acpi = 1 [2007-10-22 23:56:23 5262] DEBUG (image:285) apic = 1 [2007-10-22 23:56:23 5262] INFO (XendDomainInfo:1316) createDevice: vbd : {'uuid': 'c0a6bf86-9d64-9ab3-caab-2c6858e8c7d7', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'hda', 'uname': 'file:/var/lib/xen/images/winxp.img', 'mode': 'w'} [2007-10-22 23:56:23 5262] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/10/768'} to /local/domain/10/device/vbd/768. [2007-10-22 23:56:23 5262] DEBUG (DevController:117) DevController: writing {'domain': 'WinXP', 'frontend': '/local/domain/10/device/vbd/768', 'uuid': 'c0a6bf86-9d64-9ab3-caab-2c6858e8c7d7', 'dev': 'hda', 'state': '1', 'params': '/var/lib/xen/images/winxp.img', 'mode': 'w', 'online': '1', 'frontend-id': '10', 'type': 'file'} to /local/domain/0/backend/vbd/10/768. [2007-10-22 23:56:23 5262] INFO (XendDomainInfo:1316) createDevice: vbd : {'uuid': '51b803a8-144a-1f5e-5663-22c2c162a8d0', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'hdc:cdrom', 'uname': '', 'mode': 'r'} [2007-10-22 23:56:23 5262] DEBUG (DevController:115) DevController: writing {'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state': '1', 'backend': '/local/domain/0/backend/vbd/10/5632'} to /local/domain/10/device/vbd/5632. [2007-10-22 23:56:23 5262] DEBUG (DevController:117) DevController: writing {'domain': 'WinXP', 'frontend': '/local/domain/10/device/vbd/5632', 'uuid': '51b803a8-144a-1f5e-5663-22c2c162a8d0', 'dev': 'hdc', 'state': '1', 'params': '', 'mode': 'r', 'online': '1', 'frontend-id': '10', 'type': ''} to /local/domain/0/backend/vbd/10/5632. [2007-10-22 23:56:23 5262] INFO (XendDomainInfo:1316) createDevice: vif : {'bridge': 'xenbr0', 'type': 'ioemu', 'uuid': '7caec317-660c-f311-7442-f61e880187d2'} [2007-10-22 23:56:23 5262] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vif/10/0'} to /local/domain/10/device/vif/0. [2007-10-22 23:56:23 5262] DEBUG (DevController:117) DevController: writing {'bridge': 'xenbr0', 'domain': 'WinXP', 'handle': '0', 'uuid': '7caec317-660c-f311-7442-f61e880187d2', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/10/device/vif/0', 'mac': '00:16:3e:2b:b4:b8', 'online': '1', 'frontend-id': '10', 'type': 'ioemu'} to /local/domain/0/backend/vif/10/0. [2007-10-22 23:56:23 5262] INFO (image:445) spawning device models: /usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '10', '-vcpus', '1', '-boot', 'dca', '-soundhw', 'all', '-serial', 'pty', '-acpi', '-usb', '-k', 'de-ch', '-domain-name', 'WinXP', '-net', 'nic,vlan=1,macaddr=00:16:3e:6f:30:48,model=rtl8139', '-net', 'tap,vlan=1,bridge=xenbr0'] [2007-10-22 23:56:23 5262] INFO (image:449) device model pid: 10153 [2007-10-22 23:56:23 5262] DEBUG (XendDomainInfo:1973) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '5', 'uuid': 'cd3098bf-cf35-faad-0fa9-bfe2ded68432', 'on_reboot': 'restart', 'start_time': '1193090183.91', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'image': '(hvm (kernel /usr/lib/xen/boot/hvmloader) (acpi 1) (apic 1) (boot dca) (device_model /usr/lib/xen/bin/qemu-dm) (display :0.0) (keymap de-ch) (isa 0) (localtime 0) (monitor 0) (nographic 0) (pae 1) (rtc_timeoffset 0) (serial pty) (sdl 1) (soundhw all) (stdvga 0) (usb 1) (vnc 0) (vncunused 1) (xauthority /root/.Xauthority) (notes (SUSPEND_CANCEL 1)))', 'name': 'WinXP'} [2007-10-22 23:56:23 5262] DEBUG (XendDomainInfo:824) Storing domain details: {'console/port': '3', 'name': 'WinXP', 'console/limit': '1048576', 'vm': '/vm/cd3098bf-cf35-faad-0fa9-bfe2ded68432', 'domid': '10', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target': '524288', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': '131070', 'store/port': '2'} [2007-10-22 23:56:23 5262] DEBUG (DevController:115) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/10/0'} to /local/domain/10/device/console/0. [2007-10-22 23:56:23 5262] DEBUG (DevController:117) DevController: writing {'domain': 'WinXP', 'protocol': 'vt100', 'uuid': '5e8e111a-e50b-5302-7637-db67ecef704e', 'frontend': '/local/domain/10/device/console/0', 'state': '1', 'location': '3', 'online': '1', 'frontend-id': '10'} to /local/domain/0/backend/console/10/0. [2007-10-22 23:56:24 5262] DEBUG (XendDomainInfo:908) XendDomainInfo.handleShutdownWatch [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices vif. [2007-10-22 23:56:24 5262] DEBUG (DevController:153) Waiting for 0. [2007-10-22 23:56:24 5262] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vif/10/0/hotplug-status. [2007-10-22 23:56:24 5262] DEBUG (DevController:553) hotplugStatusCallback 1. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices usb. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices vbd. [2007-10-22 23:56:24 5262] DEBUG (DevController:153) Waiting for 768. [2007-10-22 23:56:24 5262] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vbd/10/768/hotplug-status. [2007-10-22 23:56:24 5262] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vbd/10/768/hotplug-status. [2007-10-22 23:56:24 5262] DEBUG (DevController:553) hotplugStatusCallback 1. [2007-10-22 23:56:24 5262] DEBUG (DevController:153) Waiting for 5632. [2007-10-22 23:56:24 5262] DEBUG (DevController:539) hotplugStatusCallback /local/domain/0/backend/vbd/10/5632/hotplug-status. [2007-10-22 23:56:24 5262] DEBUG (DevController:553) hotplugStatusCallback 1. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices irq. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices vkbd. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices vfb. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices console. [2007-10-22 23:56:24 5262] DEBUG (DevController:153) Waiting for 0. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices pci. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices ioports. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices tap. [2007-10-22 23:56:24 5262] DEBUG (DevController:148) Waiting for devices vtpm. [2007-10-22 23:56:24 5262] INFO (XendDomain:1108) Domain WinXP (10) unpaused. [2007-10-22 23:56:24 5262] INFO (XendDomainInfo:1090) Domain has shutdown: name=WinXP id=10 reason=poweroff. [2007-10-22 23:56:24 5262] DEBUG (XendDomainInfo:1660) XendDomainInfo.destroy: domid=10 [2007-10-22 23:56:24 5262] DEBUG (XendDomainInfo:1677) XendDomainInfo.destroyDomain(10) _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |