WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] problems with xen and hvm

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] problems with xen and hvm
From: Peter Andree <peter.andree@xxxxxxxxxxx>
Date: Thu, 28 Jul 2011 08:22:38 +0200
Delivery-date: Wed, 27 Jul 2011 23:24:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: PACT
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Dear xen-users.

First  of  all,  I'm  not  a  linux-guru  and  a beginner with xen and
completly new in this mailinglist.
I've  installed Xen on debian 6 and  I  was successful creating two
machines: one for tests and "fogserver" (to test speed of writing
computer images), both para-virtualisations.

-----------------------------------------------------------------------
Here the output of "xm list":
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  5169     2     r-----     20.6
fogserver                                    3   512     2     -b----      1.9
vm-debian                                    4   512     1     -b----      1.4
-----------------------------------------------------------------------


My  attempt  to  create a hardware-virtualisation (cpu capable of both)
failed  with "xm create ..." and  my  efforts  to  find a solution on internet 
were without
success. The content of my "phyfog.cfg" below.

The command
# xm create -c /etc/xen/phyfog.cfg
ends with:
"Using config file /etc/xen/phyfog.cfg.
 Domain 'phyfog' does not exist."

The log file of qemu-dm says:
"domid: 10
-append only allowed with -kernel option"

Any  ideas  or  how to  solve  the problem creating virtual machines with
'hvm'. Thanks in advance. Peter.

PS: informations about version below.

-----------------------------------------------------------------------
Content of "phyfog.cfg":
- begin file:
# native LINUX-Install on Debian-Xen
import os, re
arch = os.uname()[4]
if re.search('64',arch):
   arch_libdir = 'lib64'
else:
   arch_libdir = 'lib'
   
kernel       = '/usr/lib/xen-4.0/boot/hvmloader'
builder      = 'hvm'
device_model = '/usr/lib/xen-4.0/bin/qemu-dm'

memory  = '512'
shadow_memory = '8'
# drives
#root    = '/dev/sda1'
disk    = [ 'phy:/dev/sdb,ioemu:xvda,w',
            
'file:/home/isofiles/ubuntu-11.04-server-i386.iso,ioemu:hdc:cdrom,r' ]

# hostname
name    = 'phyfog'

# networking
dhcp = 'dhcp'
vif = ['mac=00:16:3e:11:22:33,type=ioemu, bridge=xenbr0']

# behaviour
boot='d'
on_poweroff = 'destroy'
obn_reboot  = 'reboot'
on_crash    = 'destroy'

#graphic configuration
sdl=1
vnc=0
vncviewer=0
- end file
-----------------------------------------------------------------------

-----------------------------------------------------------------------
The content of "xend.log" below. Seemed to be a qemu-dm problem!
- begin of "xend.log"
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:101) 
XendDomainInfo.create(['vm', ['name', 'phyfog'], ['memory', '512'], 
['shadow_memory', '8'], ['on_poweroff', 'destroy'], ['on_crash', 'destroy'], 
['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1], ['oos', 
1], ['image', ['hvm', ['kernel', '/usr/lib/xen-default/boot/hvmloader'], ['ip', 
':127.0.255.255::::eth0:dhcp'], ['videoram', 4], ['acpi', 1], ['apic', 1], 
['boot', 'd'], ['cpuid', []], ['cpuid_check', []], ['fda', ''], ['fdb', ''], 
['guest_os_type', 'default'], ['hap', 1], ['hpet', 0], ['isa', 0], ['keymap', 
''], ['localtime', 0], ['nographic', 0], ['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', '/root/.Xauthority'], ['xen_platform_pci', 1], 
['memory_sharing', 0], ['device_model', '/usr/lib/xen-default/bin/qemu-dm'], 
['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device', ['vbd', 
['uname', 'phy:/dev/sdb'], ['dev', 'ioemu:xvda'], ['mode', 'w']]], ['device', 
['vbd', ['uname', 'file:/home/isofiles/ubuntu-11.04-server-i386.iso'], ['dev', 
'ioemu:hdc:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], 
['mac', '00:16:3e:11:22:33'], ['type', 'ioemu']]]])
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2508) 
XendDomainInfo.constructDomain
[2011-07-28 01:16:58 1213] DEBUG (balloon:220) Balloon: 1182384 KiB free; need 
16384; done.
[2011-07-28 01:16:58 1213] DEBUG (XendDomain:464) Adding Domain: 10
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2818) 
XendDomainInfo.initDomain: 10 256
[2011-07-28 01:16:58 1213] DEBUG (image:339) No VNC passwd configured for vfb 
access
[2011-07-28 01:16:58 1213] DEBUG (image:852) cmdline        = 
ip=:127.0.255.255::::eth0:dhcp 
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: boot, val: d
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: fda, val: None
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: fdb, val: None
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: soundhw, val: None
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: localtime, val: 0
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: serial, val: None
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: std-vga, val: 0
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: isa, val: 0
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: acpi, val: 1
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: usb, val: 0
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: usbdevice, val: None
[2011-07-28 01:16:58 1213] DEBUG (image:891) args: gfx_passthru, val: None
[2011-07-28 01:16:58 1213] INFO (image:822) Need to create platform 
device.[domid:10]
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2845) 
_initDomain:shadow_memory=0x8, memory_static_max=0x20000000, 
memory_static_min=0x0.
[2011-07-28 01:16:58 1213] INFO (image:182) buildDomain os=hvm dom=10 vcpus=1
[2011-07-28 01:16:58 1213] DEBUG (image:949) domid          = 10
[2011-07-28 01:16:58 1213] DEBUG (image:950) image          = 
/usr/lib/xen-default/boot/hvmloader
[2011-07-28 01:16:58 1213] DEBUG (image:951) store_evtchn   = 2
[2011-07-28 01:16:58 1213] DEBUG (image:952) memsize        = 512
[2011-07-28 01:16:58 1213] DEBUG (image:953) target         = 512
[2011-07-28 01:16:58 1213] DEBUG (image:954) vcpus          = 1
[2011-07-28 01:16:58 1213] DEBUG (image:955) vcpu_avail     = 1
[2011-07-28 01:16:58 1213] DEBUG (image:956) acpi           = 1
[2011-07-28 01:16:58 1213] DEBUG (image:957) apic           = 1
[2011-07-28 01:16:58 1213] INFO (XendDomainInfo:2367) createDevice: vfb : 
{'vncunused': 1, 'other_config': {'vncunused': 1, 'vnc': '1'}, 'vnc': '1', 
'uuid': '8b676636-e1b9-3942-10a2-93820cc4aa58', 'keymap': 'de-de'}
[2011-07-28 01:16:58 1213] DEBUG (DevController:95) DevController: writing 
{'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vfb/10/0'} to /local/domain/10/device/vfb/0.
[2011-07-28 01:16:58 1213] DEBUG (DevController:97) DevController: writing 
{'vncunused': '1', 'domain': 'phyfog', 'frontend': 
'/local/domain/10/device/vfb/0', 'uuid': 
'8b676636-e1b9-3942-10a2-93820cc4aa58', 'frontend-id': '10', 'state': '1', 
'keymap': 'de-de', 'online': '1', 'vnc': '1'} to 
/local/domain/0/backend/vfb/10/0.
[2011-07-28 01:16:58 1213] INFO (XendDomainInfo:2367) createDevice: vbd : 
{'uuid': 'c3ca3041-9211-7f34-b2ba-d72a0b487f11', 'bootable': 1, 'driver': 
'ioemu', 'dev': 'ioemu:xvda', 'uname': 'phy:/dev/sdb', 'mode': 'w'}
[2011-07-28 01:16:58 1213] DEBUG (DevController:95) DevController: writing 
{'backend-id': '0', 'virtual-device': '51712', 'device-type': 'disk', 'state': 
'1', 'backend': '/local/domain/0/backend/vbd/10/51712'} to 
/local/domain/10/device/vbd/51712.
[2011-07-28 01:16:58 1213] DEBUG (DevController:97) DevController: writing 
{'domain': 'phyfog', 'frontend': '/local/domain/10/device/vbd/51712', 'uuid': 
'c3ca3041-9211-7f34-b2ba-d72a0b487f11', 'bootable': '1', 'dev': 'xvda', 
'state': '1', 'params': '/dev/sdb', 'mode': 'w', 'online': '1', 'frontend-id': 
'10', 'type': 'phy'} to /local/domain/0/backend/vbd/10/51712.
[2011-07-28 01:16:58 1213] INFO (XendDomainInfo:2367) createDevice: vbd : 
{'uuid': 'ac87d114-5f42-79d9-2633-5598088e786f', 'bootable': 0, 'driver': 
'ioemu', 'dev': 'ioemu:hdc:cdrom', 'uname': 
'file:/home/isofiles/ubuntu-11.04-server-i386.iso', 'mode': 'r'}
[2011-07-28 01:16:58 1213] DEBUG (DevController:95) 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.
[2011-07-28 01:16:58 1213] DEBUG (DevController:97) DevController: writing 
{'domain': 'phyfog', 'frontend': '/local/domain/10/device/vbd/5632', 'uuid': 
'ac87d114-5f42-79d9-2633-5598088e786f', 'bootable': '0', 'dev': 'hdc', 'state': 
'1', 'params': '/home/isofiles/ubuntu-11.04-server-i386.iso', 'mode': 'r', 
'online': '1', 'frontend-id': '10', 'type': 'file'} to 
/local/domain/0/backend/vbd/10/5632.
[2011-07-28 01:16:58 1213] INFO (XendDomainInfo:2367) createDevice: vif : 
{'bridge': 'xenbr0', 'mac': '00:16:3e:11:22:33', 'type': 'ioemu', 'uuid': 
'0e1a0656-1bb0-30ee-7cb1-e5bd2cdac732'}
[2011-07-28 01:16:58 1213] DEBUG (DevController:95) DevController: writing 
{'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vif/10/0'} to /local/domain/10/device/vif/0.
[2011-07-28 01:16:58 1213] DEBUG (DevController:97) DevController: writing 
{'bridge': 'xenbr0', 'domain': 'phyfog', 'handle': '0', 'uuid': 
'0e1a0656-1bb0-30ee-7cb1-e5bd2cdac732', 'script': 
'/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:11:22:33', 'frontend-id': '10', 
'state': '1', 'online': '1', 'frontend': '/local/domain/10/device/vif/0', 
'type': 'ioemu'} to /local/domain/0/backend/vif/10/0.
[2011-07-28 01:16:58 1213] INFO (image:418) spawning device models: 
/usr/lib/xen-default/bin/qemu-dm ['/usr/lib/xen-default/bin/qemu-dm', '-d', 
'10', '-domain-name', 'phyfog', '-videoram', '4', '-k', 'de-de', '-vnc', 
'127.0.0.1:0', '-vncunused', '-vcpus', '1', '-vcpu_avail', '0x1', '-append', 
'ip=:127.0.255.255::::eth0:dhcp ', '-boot', 'd', '-acpi', '-net', 
'nic,vlan=1,macaddr=00:16:3e:11:22:33,model=rtl8139', '-net', 
'tap,vlan=1,ifname=tap10.0,bridge=xenbr0', '-M', 'xenfv']
[2011-07-28 01:16:58 1213] INFO (image:467) device model pid: 8956
[2011-07-28 01:16:58 1213] INFO (image:590) waiting for sentinel_fifo
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:3400) Storing VM details: 
{'on_xend_stop': 'ignore', 'shadow_memory': '8', 'uuid': 
'476e781c-7882-c9ed-5180-8e2642268b28', 'on_reboot': 'restart', 'start_time': 
'1311808618.3', 'on_poweroff': 'destroy', 'bootloader_args': '', 
'on_xend_start': 'ignore', 'on_crash': 'destroy', 'xend/restart_count': '0', 
'vcpus': '1', 'vcpu_avail': '1', 'bootloader': '', 'image': "(hvm (kernel ) 
(args 'ip=:127.0.255.255::::eth0:dhcp ') (superpages 0) (tsc_mode 0) (videoram 
4) (hpet 0) (boot d) (loader /usr/lib/xen-default/boot/hvmloader) (vpt_align 1) 
(xen_platform_pci 1) (vncunused 1) (rtc_timeoffset 0) (pci ()) (pae 1) (stdvga 
0) (hap 1) (viridian 0) (acpi 1) (localtime 0) (timer_mode 1) (vnc 1) 
(nographic 0) (guest_os_type default) (pci_msitranslate 1) (oos 1) (apic 1) 
(sdl 0) (nomigrate 0) (device_model /usr/lib/xen-default/bin/qemu-dm) (keymap 
de-de) (pci_power_mgmt 0) (usb 0) (xauthority /root/.Xauthority) (isa 0) (notes 
(SUSPEND_CANCEL 1)))", 'name': 'phyfog'}
[2011-07-28 01:16:58 1213] WARNING (image:552) domain phyfog: device model 
failure: pid 8956: malfunctioning (closed sentinel), killed; see 
/var/log/xen/qemu-dm-phyfog.log 
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:1804) Storing domain details: 
{'console/port': '3', 'description': '', 'console/limit': '1048576', 
'store/port': '2', 'vm': '/vm/476e781c-7882-c9ed-5180-8e2642268b28', 'domid': 
'10', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 
'memory/target': '524288', 'control/platform-feature-multiprocessor-suspend': 
'1', 'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'phyfog'}
[2011-07-28 01:16:58 1213] WARNING (XendDomainInfo:2071) Domain has crashed: 
name=phyfog id=10.
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:3053) XendDomainInfo.destroy: 
domid=10
[2011-07-28 01:16:58 1213] DEBUG (DevController:95) DevController: writing 
{'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/console/10/0'} to /local/domain/10/device/console/0.
[2011-07-28 01:16:58 1213] DEBUG (DevController:97) DevController: writing 
{'domain': 'phyfog', 'frontend': '/local/domain/10/device/console/0', 'uuid': 
'4e60921b-0f09-9356-5817-f0be06ae7cb3', 'frontend-id': '10', 'state': '1', 
'location': '3', 'online': '1', 'protocol': 'vt100'} to 
/local/domain/0/backend/console/10/0.
[2011-07-28 01:16:58 1213] WARNING (XendDomainInfo:2071) Domain has crashed: 
name=phyfog id=10.
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2411) Destroying device model
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2418) Releasing devices
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2424) Removing vif/0
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:1286) 
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2424) Removing vbd/51712
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:1286) 
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/51712
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2424) Removing vbd/5632
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:1286) 
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/5632
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2424) Removing vfb/0
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:1286) 
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:2424) Removing console/0
[2011-07-28 01:16:58 1213] DEBUG (XendDomainInfo:1286) 
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
- end of "xend.log"
-----------------------------------------------------------------------
output of "dpkg -l | grep xen:
ii  libxenstore3.0                          4.0.1-2      Xenstore 
communications library for Xen
ii  linux-headers-2.6-xen-amd64             2.6.32+29    Header files for Linux 
2.6-xen-amd64 (meta-package)
ii  linux-headers-2.6.32-5-common-xen       2.6.32-35    Common header files 
for Linux 2.6.32-5-xen
ii  linux-headers-2.6.32-5-xen-amd64        2.6.32-35    Header files for Linux 
2.6.32-5-xen-amd64
ii  linux-image-2.6-xen-amd64               2.6.32+29    Linux 2.6 for 64-bit 
PCs (meta-package), Xen dom0 support
ii  linux-image-2.6.32-5-xen-amd64          2.6.32-35    Linux 2.6.32 for 
64-bit PCs, Xen dom0 support
ii  xen-hypervisor-4.0-amd64                4.0.1-2      The Xen Hypervisor on 
AMD64
ii  xen-qemu-dm-4.0                         4.0.1-2      Xen Qemu Device Model 
virtual machine hardware emulator
ii  xen-tools                               4.2-1        Tools to manage Xen 
virtual servers
ii  xen-utils-4.0                           4.0.1-2      XEN administrative 
tools
ii  xen-utils-common                        4.0.0-1      XEN administrative 
tools - common files
ii  xenstore-utils                          4.0.1-2      Xenstore utilities for 
Xen
-----------------------------------------------------------------------


-- 
mailto:peter.andree@xxxxxxxxxxx


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>