URL: https://www.opennet.me/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 87905
[ Назад ]

Исходное сообщение
"проблема с xen и vif"

Отправлено Nikitosina , 20-Янв-10 11:07 
здравствуйте. Уже 2-1 день бьюсь - не могу понять в чем проблема. Создаю в xen dom с установленной windows xp sp2. Если опция vif активна, т.е. если я подключаю сетевой интерфейс, то xen не запускается нормально. В state -----. Вот:

Nico-pc:/home/nicosha# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  1479     2     r-----  11203.2
win01                                       61   512     1     ------      0.0

Если же строчку в vif заккоментировать, то все в порядке. Система грузится. И могу подключиться по vnc можно. Вот тут мой конфиг на xp:

Nico-pc:/home/nicosha# cat /etc/xen/win01.cfg
kernel = 'hvmloader'
builder = 'hvm'
memory = '512'
device_model= '/usr/lib/xen-3.2-1/bin/qemu-dm'
shadow_memory = 8

# Disks
disk = [ 'file:/home/xen/domains/win01/disk.img,ioemu:hda,w','file:/home/xen/iso/windows_xp.iso,ioemu:hdc:cdrom,r' ]
# disk = [ 'file:/home/xen/domains/win01/disk.img,ioemu:hda,w']

# Hostname
name = 'win01'
# Networking
vif = ['type=ioemu, bridge=xenbr0']
# vif = [ 'type=ioemu, bridge=xenbr0, mac=00:16:3e:03:00:c3, model=ne2k_pci' ]
# Behaviour
boot='d'
vnc=1
vncviewer=1
sdl=0


подскажите, пожалуйста в чем может быть проблема. Замучался уже (((


Содержание

Сообщения в этом обсуждении
"проблема с xen и vif"
Отправлено zd3n , 20-Янв-10 11:51 
Что показывает #brctl show     ?

Я у себя в таком виде прописываю...

vif = [ 'type=ioemu, mac=00:16:3e:00:00:11, bridge=xenbr0' ]


"проблема с xen и vif"
Отправлено Nikitosina , 20-Янв-10 11:57 
не помогло. такая же фигня. только пытаешься vif задействовать система не запускается. причем хоть бы ошибки какие то писались

"проблема с xen и vif"
Отправлено zd3n , 20-Янв-10 12:05 
>не помогло. такая же фигня. только пытаешься vif задействовать система не запускается.
>причем хоть бы ошибки какие то писались

1. Что кажет #brctl show
2. Что в логе /var/log/xen/xend.log


"проблема с xen и vif"
Отправлено Nikitosina , 20-Янв-10 12:18 
xend.log

[2010-01-20 12:17:27 2468] DEBUG (XendDomainInfo:84) XendDomainInfo.create(['vm', ['name', 'win01'], ['memory', '512'], ['shadow_memory', 8], ['vcpus', 1], ['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:5557 '], ['pae', 1], ['vcpus', 1], ['boot', 'd'], ['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', '/home/nicosha/.Xauthority'], ['rtc_timeoffset', '0'], ['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 1], ['usbdevice', ''], ['keymap', ''], ['pci', []], ['guest_os_type', 'default'], ['device_model', '/usr/lib/xen-3.2-1/bin/qemu-dm']]], ['device', ['vbd', ['uname', 'file:/home/xen/domains/win01/disk.img'], ['dev', 'ioemu:hda'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'file:/home/xen/iso/windows_xp.iso'], ['dev', 'ioemu:hdc:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:16:3e:00:00:11'], ['type', 'ioemu']]]])
[2010-01-20 12:17:27 2468] DEBUG (XendDomainInfo:1618) XendDomainInfo.constructDomain
[2010-01-20 12:17:27 2468] DEBUG (balloon:132) Balloon: 546424 KiB free; need 2048; done.
[2010-01-20 12:17:27 2468] DEBUG (XendDomain:443) Adding Domain: 69
[2010-01-20 12:17:27 2468] DEBUG (XendDomainInfo:1703) XendDomainInfo.initDomain: 69 256
[2010-01-20 12:17:27 2468] DEBUG (image:234) No VNC passwd configured for vfb access
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: boot, val: d
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: fda, val: None
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: fdb, val: None
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: soundhw, val: None
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: localtime, val: 0
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: serial, val: None
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: std-vga, val: 0
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: isa, val: 0
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: acpi, val: 1
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: usb, val: 1
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: usbdevice, val: None
[2010-01-20 12:17:27 2468] DEBUG (image:476) args: pci, val: []
[2010-01-20 12:17:28 2468] DEBUG (XendDomainInfo:1738) _initDomain:shadow_memory=0x8, memory_static_max=0x20000000, memory_static_min=0x0.
[2010-01-20 12:17:28 2468] DEBUG (balloon:132) Balloon: 545140 KiB free; need 540672; done.
[2010-01-20 12:17:28 2468] INFO (image:139) buildDomain os=hvm dom=69 vcpus=1
[2010-01-20 12:17:28 2468] DEBUG (image:523) domid          = 69
[2010-01-20 12:17:28 2468] DEBUG (image:524) image          = /usr/lib/xen-3.2-1/boot/hvmloader
[2010-01-20 12:17:28 2468] DEBUG (image:525) store_evtchn   = 2
[2010-01-20 12:17:28 2468] DEBUG (image:526) memsize        = 512
[2010-01-20 12:17:28 2468] DEBUG (image:527) vcpus          = 1
[2010-01-20 12:17:28 2468] DEBUG (image:528) acpi           = 1
[2010-01-20 12:17:28 2468] DEBUG (image:529) apic           = 1
[2010-01-20 12:17:28 2468] INFO (XendDomainInfo:1514) createDevice: vfb : {'vncunused': 1, 'other_config': {'vncunused': 1, 'type': 'vnc'}, 'type': 'vnc', 'uuid': '89163872-b16c-be33-b3f8-e1ccc0fe5de5'}
[2010-01-20 12:17:28 2468] DEBUG (DevController:118) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vfb/69/0'} to /local/domain/69/device/vfb/0.
[2010-01-20 12:17:28 2468] DEBUG (DevController:120) DevController: writing {'vncunused': '1', 'domain': 'win01', 'frontend': '/local/domain/69/device/vfb/0', 'uuid': '89163872-b16c-be33-b3f8-e1ccc0fe5de5', 'state': '1', 'online': '1', 'frontend-id': '69', 'type': 'vnc'} to /local/domain/0/backend/vfb/69/0.
[2010-01-20 12:17:28 2468] INFO (XendDomainInfo:1514) createDevice: vbd : {'uuid': 'c280f5cc-98bf-d17e-3847-64974e39a0dc', 'bootable': 1, 'driver': 'ioemu', 'dev': 'ioemu:hda', 'uname': 'file:/home/xen/domains/win01/disk.img', 'mode': 'w'}
[2010-01-20 12:17:28 2468] DEBUG (DevController:118) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/69/768'} to /local/domain/69/device/vbd/768.
[2010-01-20 12:17:28 2468] DEBUG (DevController:120) DevController: writing {'domain': 'win01', 'frontend': '/local/domain/69/device/vbd/768', 'uuid': 'c280f5cc-98bf-d17e-3847-64974e39a0dc', 'dev': 'hda', 'state': '1', 'params': '/home/xen/domains/win01/disk.img', 'mode': 'w', 'online': '1', 'frontend-id': '69', 'type': 'file'} to /local/domain/0/backend/vbd/69/768.
[2010-01-20 12:17:28 2468] INFO (XendDomainInfo:1514) createDevice: vbd : {'uuid': '8a0c280b-32af-ef2f-065e-60919492cdd6', 'bootable': 0, 'driver': 'ioemu', 'dev': 'ioemu:hdc:cdrom', 'uname': 'file:/home/xen/iso/windows_xp.iso', 'mode': 'r'}
[2010-01-20 12:17:28 2468] DEBUG (DevController:118) DevController: writing {'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state': '1', 'backend': '/local/domain/0/backend/vbd/69/5632'} to /local/domain/69/device/vbd/5632.
[2010-01-20 12:17:28 2468] DEBUG (DevController:120) DevController: writing {'domain': 'win01', 'frontend': '/local/domain/69/device/vbd/5632', 'uuid': '8a0c280b-32af-ef2f-065e-60919492cdd6', 'dev': 'hdc', 'state': '1', 'params': '/home/xen/iso/windows_xp.iso', 'mode': 'r', 'online': '1', 'frontend-id': '69', 'type': 'file'} to /local/domain/0/backend/vbd/69/5632.
[2010-01-20 12:17:28 2468] INFO (XendDomainInfo:1514) createDevice: vif : {'bridge': 'xenbr0', 'mac': '00:16:3e:00:00:11', 'type': 'ioemu', 'uuid': '70916a3c-013a-c117-fdd2-f25816b53640'}
[2010-01-20 12:17:28 2468] DEBUG (DevController:118) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/vif/69/0'} to /local/domain/69/device/vif/0.
[2010-01-20 12:17:28 2468] DEBUG (DevController:120) DevController: writing {'bridge': 'xenbr0', 'domain': 'win01', 'handle': '0', 'uuid': '70916a3c-013a-c117-fdd2-f25816b53640', 'script': '/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:00:00:11', 'frontend-id': '69', 'state': '1', 'online': '1', 'frontend': '/local/domain/69/device/vif/0', 'type': 'ioemu'} to /local/domain/0/backend/vif/69/0.
[2010-01-20 12:17:28 2468] INFO (image:289) spawning device models: /usr/lib/xen-3.2-1/bin/qemu-dm ['/usr/lib/xen-3.2-1/bin/qemu-dm', '-d', '69', '-domain-name', 'win01', '-vnc', '127.0.0.1:0', '-vncunused', '-vcpus', '1', '-boot', 'd', '-acpi', '-usb', '-net', 'nic,vlan=1,macaddr=00:16:3e:00:00:11,model=rtl8139', '-net', 'tap,vlan=1,bridge=xenbr0', '-M', 'xenfv']
[2010-01-20 12:17:28 2468] INFO (image:293) device model pid: 11845
[2010-01-20 12:17:28 2468] DEBUG (XendDomainInfo:2195) Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '8', 'uuid': '820af1ae-ec54-1d26-be2e-7706d203e163', 'on_reboot': 'restart', 'start_time': '1263979048.2', '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-3.2-1/boot/hvmloader) (args 'VNC_VIEWER=127.0.1.1:5557 ') (acpi 1) (apic 1) (boot d) (device_model /usr/lib/xen-3.2-1/bin/qemu-dm) (display :0.0) (isa 0) (localtime 0) (monitor 0) (nographic 0) (pae 1) (rtc_timeoffset 0) (sdl 0) (stdvga 0) (usb 1) (vnc 1) (timer_mode 0) (vncunused 1) (xauthority /home/nicosha/.Xauthority) (pci ()) (guest_os_type default) (notes (SUSPEND_CANCEL 1)))", 'name': 'win01'}
[2010-01-20 12:17:28 2468] DEBUG (XendDomainInfo:1008) Storing domain details: {'console/port': '3', 'name': 'win01', 'console/limit': '1048576', 'store/port': '2', 'vm': '/vm/820af1ae-ec54-1d26-be2e-7706d203e163', 'domid': '69', 'image/suspend-cancel': '1', 'cpu/0/availability': 'online', 'memory/target': '524288', 'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': '131070', 'console/type': 'ioemu'}
[2010-01-20 12:17:28 2468] DEBUG (DevController:118) DevController: writing {'state': '1', 'backend-id': '0', 'backend': '/local/domain/0/backend/console/69/0'} to /local/domain/69/device/console/0.
[2010-01-20 12:17:28 2468] DEBUG (DevController:120) DevController: writing {'domain': 'win01', 'frontend': '/local/domain/69/device/console/0', 'uuid': '57158548-ab27-5fb1-5286-855e33131330', 'frontend-id': '69', 'state': '1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to /local/domain/0/backend/console/69/0.
[2010-01-20 12:17:28 2468] DEBUG (XendDomainInfo:1092) XendDomainInfo.handleShutdownWatch
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices vif.
[2010-01-20 12:17:28 2468] DEBUG (DevController:156) Waiting for 0.
[2010-01-20 12:17:28 2468] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/69/0/hotplug-status.
[2010-01-20 12:17:28 2468] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vif/69/0/hotplug-status.
[2010-01-20 12:17:28 2468] DEBUG (DevController:609) hotplugStatusCallback 1.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices vbd.
[2010-01-20 12:17:28 2468] DEBUG (DevController:156) Waiting for 768.
[2010-01-20 12:17:28 2468] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vbd/69/768/hotplug-status.
[2010-01-20 12:17:28 2468] DEBUG (DevController:609) hotplugStatusCallback 1.
[2010-01-20 12:17:28 2468] DEBUG (DevController:156) Waiting for 5632.
[2010-01-20 12:17:28 2468] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vbd/69/5632/hotplug-status.
[2010-01-20 12:17:28 2468] DEBUG (DevController:595) hotplugStatusCallback /local/domain/0/backend/vbd/69/5632/hotplug-status.
[2010-01-20 12:17:28 2468] DEBUG (DevController:609) hotplugStatusCallback 1.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices irq.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices vkbd.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices vfb.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices console.
[2010-01-20 12:17:28 2468] DEBUG (DevController:156) Waiting for 0.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices pci.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices ioports.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices tap.
[2010-01-20 12:17:28 2468] DEBUG (DevController:151) Waiting for devices vtpm.
[2010-01-20 12:17:28 2468] INFO (XendDomain:1165) Domain win01 (69) unpaused.


Nico-pc:/etc/xen# brctl show
bridge name    bridge id        STP enabled    interfaces
eth0        8000.002618b945a1    no        peth0
                            vif69.0


"проблема с xen и vif"
Отправлено zd3n , 20-Янв-10 12:39 
>Nico-pc:/etc/xen# brctl show
>bridge name bridge id  STP enabled interfaces
>eth0  8000.002618b945a1 no  peth0
>       vif69.0

Вот и причина....
интерфейса xenbr0 нет

Должно быт примерно так:

# brctl show
bridge name     bridge id               STP enabled     interfaces
virbr0          8000.000000000000       no
xenbr0          8000.06c3025c1b70       no              vif82.1
                                                        vif80.0
                                                        vif79.0
                                                        tap0
                                                        vif42.0
                                                        vif1.1
                                                        peth0
                                                        vif0.0
xenbr1          8000.32364ea73c66       no              vif82.0
                                                        vif80.1
                                                        tap1
                                                        vif1.0
                                                        peth1
                                                        vif0.1
#


"проблема с xen и vif"
Отправлено Nikitosina , 20-Янв-10 12:43 
перед тем как вы написали уже разобрался. Спасибо. Действительно проблема была в имени интерфейса

"проблема с xen и vif"
Отправлено p0d0n , 23-Апр-10 09:45 
Никитос, подскажи как разобрался,я уже всю голову поломал
xen4.0.0 ubuntu lucid 2.6.31.13 pvops симптомы те же



"проблема с xen и vif"
Отправлено p0d0n , 23-Апр-10 09:54 
конфиг машины
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 4096
shadow_memory = 16
vcpus=8
pae=1
acpi=1
apic=1
device_model = '/usr/lib/xen/bin/qemu-dm'
name = "win2008"
#vif = [ 'type=ioemu, bridge=eth0, mac=aa:00:00:12:23:34' ] #Не работает
disk = [ 'phy:/dev/loop1,xvda,w', 'phy:/dev/loop0,xvdc:cdrom,r' ]
on_poweroff = 'destroy'
on_reboot   = 'restart'
on_crash    = 'restart'
boot="dc"
sdl=0
vnc=1
vnclisten="0.0.0.0"
vncdisplay=2
vncconsole=1
vncpasswd=''
stdvga=0
usb=1
usbdevice='mouse'
usbdevice='tablet'
ne2000=0

машина выключена
brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.003048b8d3fc       no              peth0

машина включена
brctl show              
bridge name     bridge id               STP enabled     interfaces
eth0            8000.003048b8d3fc       no              peth0
                                                        tap14.0


"проблема с xen и vif"
Отправлено ustas , 01-Май-10 20:06 
Модуль ядра, отвечающий за сетевой backend для xen не загружен. Попробуй modprobe xen-netback