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

Re: [Xen-users] Problem creating vm with two nics

To: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Subject: Re: [Xen-users] Problem creating vm with two nics
From: Martin Aceto <maceto@xxxxxxxxxxxxxxxxxx>
Date: Mon, 30 Nov 2009 11:53:18 -0200
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 30 Nov 2009 05:54:14 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=6qfs16s3ofYSTHABRbMMibeBlmqVCLBq6q1fIRfCYPM=; b=DLB533EtkwAbm2F8GucMgU5q3U9Cii9OvWWJCRyMwoboHATGZsK76kNpy0RspLdgxe 2hxbuCyYJyyxXsJPa+sJI6sv6J6n3egD/DaPY/S0ZEvYhM7iaj0W/aYE7ekfZM6BKpSC nYO9uf3cBpCteUvRG036i+mV1uPo5wrxWJFoo=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=MIlIOFuhtGOHpE0BsgYmbfhUgePLDK9hLQCfrVUDK/LBvKR5qrDWh/wTn/UkhAK745 l8kW2uooMHRIbindoI3ikMYyutsOg0i0Cj0VVhD5SZ4Vgem08JXSM3Of23vIHfm3/0LO vqREOMNYxcBT/Qif+1/RmGa0ou534BftfC0JM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0911272131v7b3ac9ccnfb9e900b095617db@xxxxxxxxxxxxxx>
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>
References: <78ad293c0911270904g523f150cs9b805d0accf27001@xxxxxxxxxxxxxx> <7207d96f0911272131v7b3ac9ccnfb9e900b095617db@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi, Fajar

I not use "quite" command line, on domU kernel,

Probe with one alone Nic

/etc/xen/scripts/network-bridge-wrapper

#!/bin/sh
dir=$(dirname "$0")
"$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0

but make the same think, not boot.

My config vm file is, see something wrong?

#
#  Kernel + memory size
#
#kernel  = '/boot/vmlinuz-2.6-xenU'

kernel      = '/boot/vmlinuz-2.6.18.8-xen'
ramdisk     = '/boot/initrd.img-2.6.18.8-xen'

memory  = '1024'

#
# CPUs
#
vcpus = 2
cpus = "0,1"

#
#  Disk device(s).
#
root    = '/dev/sda1 ro'
disk    = [ 'phy:/dev/vg0/vm4.domain.com-disk,sda1,w', 'phy:/dev/vg0/vm4.domain.com-swap,sda2,w' ]

#
#  Hostname
#
name    = 'vm4'
hostname    = 'vm4.domain.com'

#
#  Networking
#

vif = [ 'ip=10.10.10.150,mac=00:16:3e:11:c3:7c,bridge=xenbr0', 'ip=192.168.10.15,mac=00:16:3e:24:87:ae,bridge=xenbr1' ]

 #
 #  Behaviour
 #

 > on_reboot   = 'restart'
 on_crash    = 'restart'

In the log I found these Warnings, perhaps may be the problem?

[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: session.get_all_records not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: event.get_record not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: event.get_all not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: VIF.get_network not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: VIF.set_device not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: VIF.set_MAC not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: VIF.set_MTU not found
[2009-11-30 10:46:43 3862] WARNING (XendAPI:701) API call: debug.get_all not found


and when I create the vm this

[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:92) XendDomainInfo.create(['vm', ['name', 'vm4.backing'], ['memory', '1024'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['vcpus', 2], ['on_xend_start', 'ignore'], [
'on_xend_stop', 'ignore'], ['cpus', '0,1'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18.8-xen'], ['ramdisk', '/boot/initrd.img-2.6.18.8-xen'], ['root', '/dev/sda1 ro'], ['videoram', 4]]], ['s3_integrity', 1], ['device', ['vbd', ['uname', 'ph
y:/dev/vg0/vm4.backing-online.com.ar-disk'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/vg0/vm4.backing-online.com.ar-swap'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '10.10.10.150'], ['mac', '00:16:
3e:11:c3:7c'], ['bridge', 'xenbr0']]], ['device', ['vif', ['ip', '192.168.10.15'], ['mac', '00:16:3e:24:87:ae'], ['bridge', 'xenbr1']]]])
[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:2304) XendDomainInfo.constructDomain
[2009-11-30 11:32:46 3879] DEBUG (balloon:166) Balloon: 3936832 KiB free; need 4096; done.
[2009-11-30 11:32:46 3879] DEBUG (XendDomain:453) Adding Domain: 1
[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:2505) XendDomainInfo.initDomain: 1 256
[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:2529) _initDomain:shadow_memory=0x0, memory_static_max=0x40000000, memory_static_min=0x0.
[2009-11-30 11:32:46 3879] DEBUG (balloon:166) Balloon: 3936832 KiB free; need 1052672; done.
[2009-11-30 11:32:46 3879] INFO (image:173) buildDomain os=linux dom=1 vcpus=2
[2009-11-30 11:32:46 3879] DEBUG (image:663) domid          = 1
[2009-11-30 11:32:46 3879] DEBUG (image:664) memsize        = 1024
[2009-11-30 11:32:46 3879] DEBUG (image:665) image          = /boot/vmlinuz-2.6.18.8-xen
[2009-11-30 11:32:46 3879] DEBUG (image:666) store_evtchn   = 1
[2009-11-30 11:32:46 3879] DEBUG (image:667) console_evtchn = 2
[2009-11-30 11:32:46 3879] DEBUG (image:668) cmdline        = root=/dev/sda1 ro
[2009-11-30 11:32:46 3879] DEBUG (image:669) ramdisk        = /boot/initrd.img-2.6.18.8-xen
[2009-11-30 11:32:46 3879] DEBUG (image:670) vcpus          = 2
[2009-11-30 11:32:46 3879] DEBUG (image:671) features       =
[2009-11-30 11:32:46 3879] DEBUG (image:672) flags          = 0
[2009-11-30 11:32:46 3879] INFO (XendDomainInfo:2168) createDevice: vbd : {'uuid': '57d9e9ed-cdba-64c4-0899-4368a9bf4e8f', 'bootable': 1, 'driver': 'paravirtualised', 'dev': 'sda1', 'uname': 'phy:/dev/vg0/vm4.backing-online.com.ar-disk', 'mode': 'w'}
[2009-11-30 11:32:46 3879] DEBUG (DevController:95) DevController: writing {'virtual-device': '2049', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/2049'} to /local/domain/
1/device/vbd/2049.
[2009-11-30 11:32:46 3879] DEBUG (DevController:97) DevController: writing {'domain': 'vm4.backing', 'frontend': '/local/domain/1/device/vbd/2049', 'uuid': '57d9e9ed-cdba-64c4-0899-4368a9bf4e8f', 'bootable': '1', 'dev': 'sda1', 'state': '1', 'params'
: '/dev/vg0/vm4.backing-online.com.ar-disk', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'phy'} to /local/domain/0/backend/vbd/1/2049.
[2009-11-30 11:32:46 3879] INFO (XendDomainInfo:2168) createDevice: vbd : {'uuid': '2acd2a81-aecd-979d-2393-e970445cf4aa', 'bootable': 0, 'driver': 'paravirtualised', 'dev': 'sda2', 'uname': 'phy:/dev/vg0/vm4.backing-online.com.ar-swap', 'mode': 'w'}
[2009-11-30 11:32:46 3879] DEBUG (DevController:95) DevController: writing {'virtual-device': '2050', 'device-type': 'disk', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vbd/1/2050'} to /local/domain/
1/device/vbd/2050.
[2009-11-30 11:32:46 3879] DEBUG (DevController:97) DevController: writing {'domain': 'vm4.backing', 'frontend': '/local/domain/1/device/vbd/2050', 'uuid': '2acd2a81-aecd-979d-2393-e970445cf4aa', 'bootable': '0', 'dev': 'sda2', 'state': '1', 'params'
: '/dev/vg0/vm4.backing-online.com.ar-swap', 'mode': 'w', 'online': '1', 'frontend-id': '1', 'type': 'phy'} to /local/domain/0/backend/vbd/1/2050.
[2009-11-30 11:32:46 3879] INFO (XendDomainInfo:2168) createDevice: vif : {'ip': '10.10.10.150', 'mac': '00:16:3e:11:c3:7c', 'uuid': '81813407-d280-383a-2966-bb7797e67470', 'bridge': 'xenbr0'}
[2009-11-30 11:32:46 3879] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:11:c3:7c', 'handle': '0', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'} to /local/domain/1/device/
vif/0.
[2009-11-30 11:32:46 3879] DEBUG (DevController:97) DevController: writing {'bridge': 'xenbr0', 'domain': 'vm4.backing', 'handle': '0', 'uuid': '81813407-d280-383a-2966-bb7797e67470', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '10.10.10.150', '
mac': '00:16:3e:11:c3:7c', 'frontend-id': '1', 'state': '1', 'online': '1', 'frontend': '/local/domain/1/device/vif/0'} to /local/domain/0/backend/vif/1/0.
[2009-11-30 11:32:46 3879] INFO (XendDomainInfo:2168) createDevice: vif : {'ip': '192.168.10.15', 'mac': '00:16:3e:24:87:ae', 'uuid': '938300e9-6966-78d3-f0cd-9db92a99a605', 'bridge': 'xenbr1'}
[2009-11-30 11:32:46 3879] DEBUG (DevController:95) DevController: writing {'mac': '00:16:3e:24:87:ae', 'handle': '1', 'protocol': 'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/1'} to /local/domain/1/device/
vif/1.
[2009-11-30 11:32:46 3879] DEBUG (DevController:97) DevController: writing {'bridge': 'xenbr1', 'domain': 'vm4.backing', 'handle': '1', 'uuid': '938300e9-6966-78d3-f0cd-9db92a99a605', 'script': '/etc/xen/scripts/vif-bridge', 'ip': '192.168.10.15', 'm
ac': '00:16:3e:24:87:ae', 'frontend-id': '1', 'state': '1', 'online': '1', 'frontend': '/local/domain/1/device/vif/1'} to /local/domain/0/backend/vif/1/1.
[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:3060) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': '0b691bb6-389d-28ed-fc74-08f5aaa86917', 'on_reboot': 'restart', 'start_time': '1259587966.89', 'on_poweroff': 'destroy
', 'bootloader_args': '', 'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '2', 'vcpu_avail': '3', 'bootloader': '', 'image': "(linux (kernel /boot/vmlinuz-2.6.18.8-xen) (ramdisk /boot/initrd.img-2.6.18.8-xen) (ar
gs 'root=/dev/sda1 ro ') (videoram 4) (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_O
FFSET 3221225472) (GUEST_OS linux) (HYPERCALL_PAGE 3222278144) (LOADER generic) (SUSPEND_CANCEL 1) (PAE_MODE yes) (ENTRY 3222274048) (XEN_VERSION xen-3.0)))", 'name': 'vm4.backing'}
[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:1622) Storing domain details: {'console/ring-ref': '1298512', 'image/entry': '3222274048', 'console/port': '2', 'store/ring-ref': '1298513', 'image/loader': 'generic', 'vm': '/vm/0b691bb6-389d-28ed-fc7
4-08f5aaa86917', 'control/platform-feature-multiprocessor-suspend': '1', 'image/hv-start-low': '4118806528', 'image/guest-os': 'linux', 'cpu/1/availability': 'online', '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': '3222278144', 'image/suspend-can
cel': '1', 'cpu/0/availability': 'online', 'image/features/pae-pgdir-above-4gb': '1', 'image/features/writable-page-tables': '1', 'console/type': 'xenconsoled', 'image/features/auto-translated-physmap': '1', 'name': 'vm4.backing', 'domid': '1', 'imag
e/xen-version': 'xen-3.0', 'store/port': '1'}
[2009-11-30 11:32:46 3879] DEBUG (DevController:95) DevController: writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/1/0'} to /local/domain/1/device/console/0.
[2009-11-30 11:32:46 3879] DEBUG (DevController:97) DevController: writing {'domain': 'vm4.backing', 'frontend': '/local/domain/1/device/console/0', 'uuid': '70396127-1888-757d-fb42-f439bd5b9949', 'frontend-id': '1', 'state': '1', 'location': '2', 'o
nline': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/1/0.
[2009-11-30 11:32:46 3879] DEBUG (XendDomainInfo:1709) XendDomainInfo.handleShutdownWatch
[2009-11-30 11:32:46 3879] DEBUG (DevController:139) Waiting for devices vif.
[2009-11-30 11:32:46 3879] DEBUG (DevController:144) Waiting for 0.
[2009-11-30 11:32:46 3879] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2009-11-30 11:32:47 3879] DEBUG (DevController:629) hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
[2009-11-30 11:32:47 3879] DEBUG (DevController:643) hotplugStatusCallback 1.

but I see nothing wrong... Any idea ?


Thank You
--
Martin

On Sat, Nov 28, 2009 at 3:31 AM, Fajar A. Nugraha <fajar@xxxxxxxxx> wrote:
On Sat, Nov 28, 2009 at 12:04 AM, Martin Aceto <martin.aceto@xxxxxxxxx> wrote:

> I need to configure two Nics eth0 and eth1

> /etc/xen/scripts/network-
> bridge-wrapper
>
> #!/bin/sh
> dir=$(dirname "$0")
> "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0
> "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1


> And when i want to run a virtual machine, it halts when it's booting
>
> NET: Registered protocol family 10
> lo: Disabled Privacy Extensions
> IPv6 over IPv4 tunneling driver
>
> and it doesn't continue! Has anyone have any idea of what am I doing wrong?

Does it work when using /etc/xen/scripts/network-bridge-wrapper, but
with single NIC?
Are you using "quiet" on domU kernel command line? If so, you'd get
more useful message by removing it.

--
Fajar
 
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>