Код: Выделить всё
Linux fortune 2.6.26-2-xen-amd64 #1 SMP Thu Aug 20 00:36:34 UTC 2009 x86_64 GNU/Linux
поднят dom0
Код: Выделить всё
fortune:/etc/xen/config# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3599 2 r----- 253.6
Код: Выделить всё
stas@fortune:~$ cat /etc/xen/config/host1.hvm
import os, re
arch = os.uname()[4]
if re.search('64', arch):
arch_libdir = 'lib64'
else:
arch_libdir = 'lib'
kernel = "/usr/lib/xen-3.2-1/boot/hvmloader"
builder='hvm'
memory = 386
name = "host1"
vcpus=2
#acpi=1
#apic=1
vif = [ 'type=ioemu, bridge=eth0bridged' ]
disk = [ 'phy:/dev/xvg/host1,ioemu:hda,w', 'phy:/dev/cdrom,ioemu:hdc:cdrom,r' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot="dc"
sdl=0
vnc=1
vncviewer=1
vncpasswd=''
ne2000=0
Код: Выделить всё
fortune:/etc/xen/config# xm create -c host1.hvm
Using config file "./host1.hvm".
VNC= 1
Started domain host1
xenconsole: Could not read tty from store: No such file or directory
fortune:/etc/xen/config#
Код: Выделить всё
[2009-09-24 17:02:27 2694] DEBUG (XendDomainInfo:84) XendDomainInfo.create(['vm', ['name', 'host1'], ['memory', 386], ['vcpus', 2], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel', '/usr/lib/xen-3.2-1/boot/hvmloader'], ['args', 'VNC_VIEWER=127.0.1.1:5501 '], ['pae', 1], ['vcpus', 2], ['boot', 'dc'], ['fda', ''], ['fdb', ''], ['timer_mode', 0], ['localtime', 0], ['serial', ''], ['stdvga', 0], ['isa', 0], ['nographic', 0], ['soundhw', ''], ['vnc', 1], ['vncunused', 1], ['sdl', 0], ['display', ':0.0'], ['xauthority', '/tmp/libgksu-jNpZic/.Xauthority'], ['rtc_timeoffset', '0'], ['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 0], ['usbdevice', ''], ['keymap', ''], ['pci', []], ['guest_os_type', 'default'], ['device_model', '/usr/lib64/xen/bin/qemu-dm'], ['vncpasswd', 'XXXXXXXX']]], ['device', ['vbd', ['uname', 'phy:/dev/xvg/host1'], ['dev', 'ioemu:hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/cdrom'], ['dev', 'ioemu:hdc:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'eth0bridged'], ['type', 'ioemu']]]])
[2009-09-24 17:02:27 2694] DEBUG (XendDomainInfo:1618) XendDomainInfo.constructDomain
[2009-09-24 17:02:27 2694] DEBUG (balloon:132) Balloon: 411128 KiB free; need 2048; done.
[2009-09-24 17:02:27 2694] DEBUG (XendDomain:443) Adding Domain: 6
[2009-09-24 17:02:27 2694] DEBUG (XendDomainInfo:1703) XendDomainInfo.initDomain: 6 256
[2009-09-24 17:02:27 2694] DEBUG (image:234) No VNC passwd configured for vfb access
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: boot, val: dc
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: fda, val: None
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: fdb, val: None
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: soundhw, val: None
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: localtime, val: 0
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: serial, val: None
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: std-vga, val: 0
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: isa, val: 0
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: acpi, val: 1
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: usb, val: 0
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: usbdevice, val: None
[2009-09-24 17:02:27 2694] DEBUG (image:476) args: pci, val: []
[2009-09-24 17:02:27 2694] DEBUG (XendDomainInfo:1738) _initDomain:shadow_memory=0x0, memory_static_max=0x18200000, memory_static_min=0x0.
[2009-09-24 17:02:27 2694] DEBUG (balloon:132) Balloon: 409832 KiB free; need 409600; done.
[2009-09-24 17:02:27 2694] INFO (image:139) buildDomain os=hvm dom=6 vcpus=2
[2009-09-24 17:02:27 2694] DEBUG (image:523) domid = 6
[2009-09-24 17:02:27 2694] DEBUG (image:524) image = /usr/lib/xen-3.2-1/boot/hvmloader
[2009-09-24 17:02:27 2694] DEBUG (image:525) store_evtchn = 3
[2009-09-24 17:02:27 2694] DEBUG (image:526) memsize = 386
[2009-09-24 17:02:27 2694] DEBUG (image:527) vcpus = 2
[2009-09-24 17:02:27 2694] DEBUG (image:528) acpi = 1
[2009-09-24 17:02:27 2694] DEBUG (image:529) apic = 1
[2009-09-24 17:02:27 2694] INFO (XendDomainInfo:1514) createDevice: vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'type': 'vnc'}, 'type': 'vnc', 'uuid': 'c11b0bf7-9098-f8af-4816-bc4a481be8b8'}
[2009-09-24 17:02:27 2694] DEBUG (DevController:118) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/6/0'} to /local/domain/6/device/vfb/0.
[2009-09-24 17:02:27 2694] DEBUG (DevController:120) DevController: writing {'vncunused': '1', 'domain': 'host1', 'frontend': '/local/domain/6/device/vfb/0', 'uuid': 'c11b0bf7-9098-f8af-4816-bc4a481be8b8', 'state': '1', 'online': '1', 'frontend-id': '6', 'type': 'vnc'} to /local/domain/0/backend/vfb/6/0.
[2009-09-24 17:02:27 2694] INFO (XendDomainInfo:1514) createDevice: vbd : {'uuid': '31277d5a-6c88-7f5b-bccc-92c4a5091064', 'bootable': 1, 'driver': 'ioemu', 'dev': 'ioemu:hda', 'uname': 'phy:/dev/xvg/host1', 'mode': 'w'}
[2009-09-24 17:02:27 2694] DEBUG (DevController:118) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/6/768'} to /local/domain/6/device/vbd/768.
[2009-09-24 17:02:27 2694] DEBUG (DevController:120) DevController: writing {'domain': 'host1', 'frontend': '/local/domain/6/device/vbd/768', 'uuid': '31277d5a-6c88-7f5b-bccc-92c4a5091064', 'dev': 'hda', 'state': '1', 'params': '/dev/xvg/host1', 'mode': 'w', 'online': '1', 'frontend-id': '6', 'type': 'phy'} to /local/domain/0/backend/vbd/6/768.
[2009-09-24 17:02:27 2694] INFO (XendDomainInfo:1514) createDevice: vbd : {'uuid': 'a44c0ac0-92c3-6b9a-af42-c709aeb93539', 'bootable': 0, 'driver': 'ioemu', 'dev': 'ioemu:hdc:cdrom', 'uname': 'phy:/dev/cdrom', 'mode': 'r'}
[2009-09-24 17:02:27 2694] DEBUG (DevController:118) DevController: writing {'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state': '1', 'backend': '/local/domain/0/backend/vbd/6/5632'} to /local/domain/6/device/vbd/5632.
[2009-09-24 17:02:27 2694] DEBUG (DevController:120) DevController: writing {'domain': 'host1', 'frontend': '/local/domain/6/device/vbd/5632', 'uuid': 'a44c0ac0-92c3-6b9a-af42-c709aeb93539', 'dev': 'hdc', 'state': '1', 'params': '/dev/cdrom', 'mode': 'r', 'online': '1', 'frontend-id': '6', 'type': 'phy'} to /local/domain/0/backend/vbd/6/5632.
[2009-09-24 17:02:27 2694] INFO (XendDomainInfo:1514) createDevice: vif : {'bridge': 'eth0bridged', 'mac': '00:16:3e:39:a4:ac', 'type': 'ioemu', 'uuid': '3b61a166-fc67-1344-2916-c7f4448a06d4'}
[2009-09-24 17:02:27 2694] DEBUG (DevController:118) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vif/6/0'} to /local/domain/6/device/vif/0.
[2009-09-24 17:02:28 2694] DEBUG (DevController:120) DevController: writing {'bridge': 'eth0bridged', 'domain': 'host1', 'handle': '0', 'uuid': '3b61a166-fc67-1344-2916-c7f4448a06d4', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:39:a4:ac', 'frontend-id': '6', 'state': '1', 'online': '1', 'frontend': '/local/domain/6/device/vif/0', 'type': 'ioemu'} to /local/domain/0/backend/vif/6/0.
[2009-09-24 17:02:28 2694] INFO (image:289) spawning device models: /usr/lib64/xen/bin/qemu-dm ['/usr/lib64/xen/bin/qemu-dm', '-d', '6', '-domain-name', 'host1', '-vnc', '127.0.0.1:0', '-vncunused', '-vcpus', '2', '-boot', 'dc', '-acpi', '-net', 'nic,vlan=1,macaddr=00:16:3e:39:a4:ac,model=rtl8139', '-net', 'tap,vlan=1,bridge=eth0bridged', '-M', 'xenfv']
[2009-09-24 17:02:28 2694] INFO (image:293) device model pid: 16010
[2009-09-24 17:02:28 2694] DEBUG (XendDomainInfo:2195) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '6', 'uuid': 'a4829ccb-8401-7b5c-820d-834ad7802988', 'on_reboot': 'restart', 'start_time': '1253797348.03', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'image': "(hvm (kernel /usr/lib/xen-3.2-1/boot/hvmloader) (args 'VNC_VIEWER=127.0.1.1:5501 ') (acpi 1) (apic 1) (boot dc) (device_model /usr/lib64/xen/bin/qemu-dm) (display :0.0) (isa 0) (localtime 0) (monitor 0) (nographic 0) (pae 1) (rtc_timeoffset 0) (sdl 0) (stdvga 0) (usb 0) (vnc 1) (timer_mode 0) (vncunused 1) (xauthority /tmp/libgksu-jNpZic/.Xauthority) (pci ()) (guest_os_type default) (notes (SUSPEND_CANCEL 1)))", 'name': 'host1'}
[2009-09-24 17:02:28 2694] DEBUG (XendDomainInfo:1008) Storing domain details: {'console/port': '4', 'name': 'host1', 'console/limit': '1048576', 'store/port': '3', 'vm': '/vm/a4829ccb-8401-7b5c-820d-834ad7802988', 'domid': '6', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target': '395264', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': '98814', 'cpu/1/availability': 'online', 'console/type': 'ioemu'}
[2009-09-24 17:02:28 2694] DEBUG (DevController:118) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/6/0'} to /local/domain/6/device/console/0.
[2009-09-24 17:02:28 2694] DEBUG (DevController:120) DevController: writing {'domain': 'host1', 'frontend': '/local/domain/6/device/console/0', 'uuid': 'd497c8b0-e797-255c-44b8-7f6dc54476ca', 'frontend-id': '6', 'state': '1', 'location': '4', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/6/0.
[2009-09-24 17:02:28 2694] DEBUG (XendDomainInfo:1092) XendDomainInfo.handleShutdownWatch
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices vif.
[2009-09-24 17:02:28 2694] DEBUG (DevController:156) Waiting for 0.
[2009-09-24 17:02:28 2694] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.
[2009-09-24 17:02:28 2694] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/6/0/hotplug-status.
[2009-09-24 17:02:28 2694] DEBUG (DevController:609) hotplugStatusCallback 1.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices vbd.
[2009-09-24 17:02:28 2694] DEBUG (DevController:156) Waiting for 768.
[2009-09-24 17:02:28 2694] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vbd/6/768/hotplug-status.
[2009-09-24 17:02:28 2694] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vbd/6/768/hotplug-status.
[2009-09-24 17:02:28 2694] DEBUG (DevController:609) hotplugStatusCallback 1.
[2009-09-24 17:02:28 2694] DEBUG (DevController:156) Waiting for 5632.
[2009-09-24 17:02:28 2694] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vbd/6/5632/hotplug-status.
[2009-09-24 17:02:28 2694] DEBUG (DevController:609) hotplugStatusCallback 1.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices irq.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices vkbd.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices vfb.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices console.
[2009-09-24 17:02:28 2694] DEBUG (DevController:156) Waiting for 0.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices pci.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices ioports.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices tap.
[2009-09-24 17:02:28 2694] DEBUG (DevController:151) Waiting for devices vtpm.
[2009-09-24 17:02:28 2694] INFO (XendDomain:1165) Domain host1 (6) unpaused.
Код: Выделить всё
fortune:/etc/xen/config# xm list
Name ID Mem VCPUs State Time(s)
Domain-0 0 3599 2 r----- 294.4
host1 6 386 1 ------ 0.0
fortune:/etc/xen/config#
Код: Выделить всё
fortune:/etc/xen/config# xm console 6
xenconsole: Could not read tty from store: No such file or directory
fortune:/etc/xen/config# xm console host1
xenconsole: Could not read tty from store: No such file or directory
fortune:/etc/xen/config#