[one-users] OpenNebula 3.0 + Xen 4.0.1 on Debian Squeeze

Gionn me at gionn.net
Sun Oct 16 08:49:08 PDT 2011


Hi,

I'm trying to use a Xen 4.0.1 (Debian Squeeze) host with OpenNebula 3.0

I am trying to deploy the ttylinux example with the following template:

NAME   = ttylinux
CPU    = 0.1
MEMORY = 64
OS = [
  BOOTLOADER = "hvmloader",
  BOOT = hd ]
DISK   = [ IMAGE_ID = 1 , target = hda ]
NIC    = [ NETWORK_ID = 2 , model = rtl8139 ]
FEATURES=[ acpi="no" ]
GRAPHICS=[
type ="vnc",
listen="0.0.0.0",
port="5900"]
RAW =[type ="xen",data="builder='hvm'"]
RAW =[type="xen",data="device_model='/usr/lib/xen-4.0/bin/qemu-dm'"]

Deployment fails with:
Sun Oct 16 17:30:00 2011 [VMM][D]: Message received: LOG I 12 Command
execution fail: 'if [ -x "/var/tmp/one/vmm/xen/deploy" ]; then
/var/tmp/one/vmm/xen/deploy
/home/oneadmin/one/var//12/images/deployment.0 xen01 12 xen01; else
                         exit 42; fi'
Sun Oct 16 17:30:00 2011 [VMM][D]: Message received: LOG I 12 Error:
Device 768 (tap) could not be connected. Hotplug scripts not working.

On next monitor probe I get:
Sun Oct 16 17:40:05 2011 [InM][I]: Found interface tap-2-768 but domain
2 does not exist.
Sun Oct 16 17:40:05 2011 [InM][I]: Found interface tap-3-768 but domain
3 does not exist.
Sun Oct 16 17:40:05 2011 [InM][I]: Found interface tap-4-768 but domain
4 does not exist.
Sun Oct 16 17:40:05 2011 [InM][I]: Found interface tap-2-768 but domain
2 does not exist.
Sun Oct 16 17:40:05 2011 [InM][I]: Found interface tap-3-768 but domain
3 does not exist.
Sun Oct 16 17:40:05 2011 [InM][I]: Found interface tap-4-768 but domain
4 does not exist.

On the host /etc/network/interfaces I've configured a single bridge:
auto lan0
iface lan0 inet static
      bridge_ports eth0
      bridge_stp off
      bridge_fd 0
      address 192.168.66.98
      netmask 255.255.255.0
      gateway 192.168.66.1
      dns-nameservers 192.168.66.1

$ cat small_network.net
NAME = "Small network"
TYPE = FIXED

#Now we'll use the cluster private network (physical)
BRIDGE = lan0
LEASES = [ IP="192.168.66.81"]
LEASES = [ IP="192.168.66.82"]
LEASES = [ IP="192.168.66.83"]

$ cat /var/log/xend.log
[2011-10-16 17:28:18 1157] DEBUG (XendDomainInfo:101)
XendDomainInfo.create(['vm', ['name', 'one-12'], ['memory', '256'],
['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['vcpus', 1],
['oos', 1], ['bootloader', '/usr/lib/xen-4.0/boot/hvmloader'],
['bootloader_args', '-q'], ['image', ['hvm', ['videoram', 4], ['acpi',
1], ['apic', 1], ['boot', 'c'], ['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], ['soundhw', ''],
['stdvga', 0], ['timer_mode', 1], ['usb', 0], ['usbdevice', ''],
['vcpus', 1], ['vncunused', 1], ['viridian', 0], ['vpt_align', 1],
['xauthority', '/root/.Xauthority'], ['xen_platform_pci', 1],
['memory_sharing', 0], ['device_model', '/usr/lib/xen-4.0/bin/qemu-dm'],
['tsc_mode', 0], ['nomigrate', 0]]], ['s3_integrity', 1], ['device',
['tap', ['uname', 'tap:aio:/home/oneadmin/one/var//12/images/disk.0'],
['dev', 'hda'], ['mode', 'w']]], ['device', ['vif', ['ip',
'192.168.66.81'], ['model', 'rtl8139'], ['mac', '02:00:c0:a8:42:51'],
['bridge', 'lan0']]], ['device', ['vkbd']], ['device', ['vfb', ['vnc',
'1'], ['vnclisten', '0.0.0.0'], ['vncdisplay', '0'], ['xauthority',
'/root/.Xauthority']]]])
[2011-10-16 17:28:19 1157] DEBUG (XendDomainInfo:2508)
XendDomainInfo.constructDomain
[2011-10-16 17:28:19 1157] DEBUG (balloon:220) Balloon: 270844 KiB free;
need 16384; done.
[2011-10-16 17:28:19 1157] DEBUG (XendDomain:464) Adding Domain: 3
[2011-10-16 17:28:19 1157] DEBUG (XendDomainInfo:2818)
XendDomainInfo.initDomain: 3 256
[2011-10-16 17:28:19 1157] DEBUG (image:339) No VNC passwd configured
for vfb access
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: boot, val: c
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: fda, val: None
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: fdb, val: None
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: soundhw, val: None
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: localtime, val: 0
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: serial, val: None
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: std-vga, val: 0
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: isa, val: 0
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: acpi, val: 1
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: usb, val: 0
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: usbdevice, val: None
[2011-10-16 17:28:19 1157] DEBUG (image:891) args: gfx_passthru, val: None
[2011-10-16 17:28:19 1157] INFO (image:822) Need to create platform
device.[domid:3]
[2011-10-16 17:28:19 1157] DEBUG (XendDomainInfo:2845)
_initDomain:shadow_memory=0x0, memory_static_max=0x10000000,
memory_static_min=0x0.
[2011-10-16 17:28:19 1157] INFO (image:182) buildDomain os=hvm dom=3 vcpus=1
[2011-10-16 17:28:19 1157] DEBUG (image:949) domid          = 3
[2011-10-16 17:28:19 1157] DEBUG (image:950) image          =
/usr/lib/xen-4.0/boot/hvmloader
[2011-10-16 17:28:19 1157] DEBUG (image:951) store_evtchn   = 2
[2011-10-16 17:28:19 1157] DEBUG (image:952) memsize        = 256
[2011-10-16 17:28:19 1157] DEBUG (image:953) target         = 256
[2011-10-16 17:28:19 1157] DEBUG (image:954) vcpus          = 1
[2011-10-16 17:28:19 1157] DEBUG (image:955) vcpu_avail     = 1
[2011-10-16 17:28:19 1157] DEBUG (image:956) acpi           = 1
[2011-10-16 17:28:19 1157] DEBUG (image:957) apic           = 1
[2011-10-16 17:28:19 1157] INFO (XendDomainInfo:2367) createDevice: vkbd
: {'uuid': '9e89d371-ffd4-6ca0-2e14-79e74cd7fcf0'}
[2011-10-16 17:28:19 1157] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vkbd/3/0'} to /local/domain/3/device/vkbd/0.
[2011-10-16 17:28:19 1157] DEBUG (DevController:97) DevController:
writing {'frontend-id': '3', 'domain': 'one-12', 'frontend':
'/local/domain/3/device/vkbd/0', 'state': '1', 'online': '1'} to
/local/domain/0/backend/vkbd/3/0.
[2011-10-16 17:28:19 1157] INFO (XendDomainInfo:2367) createDevice: vfb
: {'other_config': {'vnclisten': '0.0.0.0', 'vnc': '1', 'vncdisplay':
'0', 'xauthority': '/root/.Xauthority'}, 'vnc': '1', 'xauthority':
'/root/.Xauthority', 'vnclisten': '0.0.0.0', 'vncdisplay': '0', 'uuid':
'7c082dc2-a2c1-1f50-1ccf-1a5439218c5e'}
[2011-10-16 17:28:19 1157] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/3/0'} to /local/domain/3/device/vfb/0.
[2011-10-16 17:28:19 1157] DEBUG (DevController:97) DevController:
writing {'domain': 'one-12', 'frontend': '/local/domain/3/device/vfb/0',
'uuid': '7c082dc2-a2c1-1f50-1ccf-1a5439218c5e', 'frontend-id': '3',
'vnclisten': '0.0.0.0', 'vncdisplay': '0', 'state': '1', 'online': '1',
'vnc': '1', 'xauthority': '/root/.Xauthority'} to
/local/domain/0/backend/vfb/3/0.
[2011-10-16 17:28:19 1157] INFO (XendDomainInfo:2367) createDevice: tap
: {'bootable': 1, 'uname':
'tap:aio:/home/oneadmin/one/var//12/images/disk.0', 'mode': 'w', 'dev':
'hda', 'uuid': '6c98edae-0e87-92e6-8142-f7919f3da2df'}
[2011-10-16 17:28:19 1157] DEBUG (DevController:95) DevController:
writing {'backend-id': '0', 'virtual-device': '768', 'device-type':
'disk', 'state': '1', 'backend': '/local/domain/0/backend/tap/3/768'} to
/local/domain/3/device/vbd/768.
[2011-10-16 17:28:19 1157] DEBUG (DevController:97) DevController:
writing {'domain': 'one-12', 'frontend':
'/local/domain/3/device/vbd/768', 'uuid':
'6c98edae-0e87-92e6-8142-f7919f3da2df', 'bootable': '1', 'dev': 'hda',
'state': '1', 'params': 'aio:/home/oneadmin/one/var//12/images/disk.0',
'mode': 'w', 'online': '1', 'frontend-id': '3', 'type': 'tap'} to
/local/domain/0/backend/tap/3/768.
[2011-10-16 17:28:19 1157] INFO (XendDomainInfo:2367) createDevice: vif
: {'mac': '02:00:c0:a8:42:51', 'ip': '192.168.66.81', 'model':
'rtl8139', 'uuid': 'd00b5f67-7f04-16da-6e2c-fe8df0a1752d', 'bridge': 'lan0'}
[2011-10-16 17:28:19 1157] DEBUG (DevController:95) DevController:
writing {'backend-id': '0', 'mac': '02:00:c0:a8:42:51', 'handle': '0',
'state': '1', 'backend': '/local/domain/0/backend/vif/3/0'} to
/local/domain/3/device/vif/0.
[2011-10-16 17:28:19 1157] DEBUG (DevController:97) DevController:
writing {'bridge': 'lan0', 'domain': 'one-12', 'handle': '0', 'uuid':
'd00b5f67-7f04-16da-6e2c-fe8df0a1752d', 'script':
'/etc/xen/scripts/vif-bridge', 'ip': '192.168.66.81', 'mac':
'02:00:c0:a8:42:51', 'frontend-id': '3', 'state': '1', 'online': '1',
'frontend': '/local/domain/3/device/vif/0', 'model': 'rtl8139'} to
/local/domain/0/backend/vif/3/0.
[2011-10-16 17:28:19 1157] INFO (image:418) spawning device models:
/usr/lib/xen-4.0/bin/qemu-dm ['/usr/lib/xen-4.0/bin/qemu-dm', '-d', '3',
'-domain-name', 'one-12', '-videoram', '4', '-vnc', '0.0.0.0:0',
'-vncunused', '-vcpus', '1', '-vcpu_avail', '0x1', '-boot', 'c',
'-acpi', '-net', 'nic,vlan=1,macaddr=02:00:c0:a8:42:51,model=rtl8139',
'-net', 'tap,vlan=1,ifname=tap3.0,bridge=lan0', '-M', 'xenfv']
[2011-10-16 17:28:19 1157] INFO (image:467) device model pid: 2417
[2011-10-16 17:28:19 1157] DEBUG (XendDomainInfo:3400) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '3', 'uuid':
'ca5c3ef5-a596-2698-dc08-f7f6bda26b20', 'on_reboot': 'restart',
'start_time': '1318778899.26', 'on_poweroff': 'destroy',
'bootloader_args': '-q', 'on_xend_start': 'ignore', 'on_crash':
'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1',
'bootloader': '/usr/lib/xen-4.0/boot/hvmloader', 'image': '(hvm (kernel
) (superpages 0) (tsc_mode 0) (videoram 4) (hpet 0) (boot c) (loader
/usr/lib/xen-4.0/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) (nographic 0)
(guest_os_type default) (pci_msitranslate 1) (oos 1) (apic 1) (nomigrate
0) (device_model /usr/lib/xen-4.0/bin/qemu-dm) (pci_power_mgmt 0) (usb
0) (xauthority /root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL 1)))',
'name': 'one-12'}
[2011-10-16 17:28:19 1157] INFO (image:590) waiting for sentinel_fifo
[2011-10-16 17:28:19 1157] DEBUG (XendDomainInfo:1804) Storing domain
details: {'console/port': '3', 'description': '', 'console/limit':
'1048576', 'store/port': '2', 'vm':
'/vm/ca5c3ef5-a596-2698-dc08-f7f6bda26b20', 'domid': '3',
'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
'memory/target': '262144',
'control/platform-feature-multiprocessor-suspend': '1',
'store/ring-ref': '1044476', 'console/type': 'ioemu', 'name': 'one-12'}
[2011-10-16 17:28:19 1157] DEBUG (DevController:95) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/3/0'} to /local/domain/3/device/console/0.
[2011-10-16 17:28:19 1157] DEBUG (DevController:97) DevController:
writing {'domain': 'one-12', 'frontend':
'/local/domain/3/device/console/0', 'uuid':
'7498ca21-f121-83bd-8737-b9270d9b9716', 'frontend-id': '3', 'state':
'1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/3/0.
[2011-10-16 17:28:19 1157] DEBUG (XendDomainInfo:1891)
XendDomainInfo.handleShutdownWatch
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
vif2.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
vif.
[2011-10-16 17:28:19 1157] DEBUG (DevController:144) Waiting for 0.
[2011-10-16 17:28:19 1157] DEBUG (DevController:628)
hotplugStatusCallback /local/domain/0/backend/vif/3/0/hotplug-status.
[2011-10-16 17:28:19 1157] DEBUG (DevController:642)
hotplugStatusCallback 1.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
vscsi.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
vbd.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
ioports.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
irq.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
vkbd.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
vfb.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
console.
[2011-10-16 17:28:19 1157] DEBUG (DevController:144) Waiting for 0.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
pci.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
tap2.
[2011-10-16 17:28:19 1157] DEBUG (DevController:139) Waiting for devices
tap.
[2011-10-16 17:28:19 1157] DEBUG (DevController:144) Waiting for 768.
[2011-10-16 17:28:19 1157] DEBUG (DevController:628)
hotplugStatusCallback /local/domain/0/backend/tap/3/768/hotplug-status.
[2011-10-16 17:29:59 1157] DEBUG (XendDomainInfo:3053)
XendDomainInfo.destroy: domid=3

-- 
Giovanni Toraldo
http://gionn.net/



More information about the Users mailing list