Jump to content

Domu-u Zwis Na Udev


krupek
 Share

Recommended Posts

Witam

 

Zgłaszam się z bardzo nietypowym problemem.

Podczas startu wirtualnego systemu CZASMI zwiesza podczas startu udev

 

Dom-0 to CentOS5.2

 

Dom-U jest CentOS5.2 pracujący w trybie pełnej wirtualizacji(wiem wiem).

 

Najlepsze jest że nie za każdym razem tak jest jak mi się zwiesi to robie xm destroy serwer1 i xm create serwer1 jeszcze raz zazwyczaj za którymś razem startuje poprawnie.

 

Gdzie może być przyczyna takiego zachowania?

 

Pozdrawiam

Link to comment
Share on other sites

Wklej jakieś logi. Pewnie interesujące znajdą się w samej wirtualnej maszynie, ale na fizycznej też poszukaj.

 

Przede wszystkim:

- /var/log/messages

- /var/log/xend/xend.log

(wpisuję z pamięci, więc mogłem pomylić ścieżki)

Link to comment
Share on other sites

[2008-10-28 23:37:20 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:411) parseConfig: result is {'shadow_memory': 8, 'start_time': 1225231611.1300001, 'uuid': 'b88e8044-bda1-dac3-6fb3-c5d29b613cb6', 'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model', '/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 2], ['boot', 'c'], ['serial', 'pty'], ['vnc', 1], ['vncunused', 1], ['display', ':1.0'], ['xauthority', '/root/.Xauthority'], ['acpi', 1], ['apic', 1]], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': 'POSTGRES_1', 'backend': [], 'vcpus': 2, 'cpu_weight': 1.0, 'features': '', 'vcpu_avail': 3, 'memory': 768, 'device': [('vif', ['vif', ['backend', 0], ['script', 'vif-bridge'], ['bridge', 'xenbr0'], ['mac', '00:16:3e:19:f6:8e']]), ('vbd', ['vbd', ['backend', 0], ['dev', 'hda:disk'], ['uname', 'phy:/dev/VolGru1/Vol1'], ['mode', 'w']]), ('vbd', ['vbd', ['backend', 0], ['dev', 'hdc:cdrom'], ['mode', 'r']])], 'bootloader': None, 'cpu': None, 'maxmem': 768}
[2008-10-28 23:37:20 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:1350) XendDomainInfo.construct: None
[2008-10-28 23:37:20 xend 3265] DEBUG (balloon:127) Balloon: 804752 KiB free; need 2048; done.
[2008-10-28 23:37:20 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:1398) XendDomainInfo.initDomain: 37 1.0
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: boot, val: c
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: fda, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: fdb, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: soundhw, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: localtime, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: serial, val: pty
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: std-vga, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: isa, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: vcpus, val: 2
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: acpi, val: 1
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: usb, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: usbdevice, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:316) args: k, val: None
[2008-10-28 23:37:20 xend 3265] DEBUG (image:376) No VNC passwd configured for vfb access
[2008-10-28 23:37:20 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:1437) _initDomain:shadow_memory=0x8, maxmem=0x300, memory=0x300.
[2008-10-28 23:37:20 xend 3265] DEBUG (balloon:127) Balloon: 803720 KiB free; need 802816; done.
[2008-10-28 23:37:20 xend 3265] INFO (image:137) buildDomain os=None dom=37 vcpus=2
[2008-10-28 23:37:20 xend 3265] DEBUG (image:269) domid          = 37
[2008-10-28 23:37:20 xend 3265] DEBUG (image:270) image          = /usr/lib/xen/boot/hvmloader
[2008-10-28 23:37:20 xend 3265] DEBUG (image:271) store_evtchn   = 3
[2008-10-28 23:37:20 xend 3265] DEBUG (image:272) memsize        = 768
[2008-10-28 23:37:20 xend 3265] DEBUG (image:273) vcpus          = 2
[2008-10-28 23:37:20 xend 3265] DEBUG (image:274) pae            = 1
[2008-10-28 23:37:20 xend 3265] DEBUG (image:275) acpi           = 1
[2008-10-28 23:37:20 xend 3265] DEBUG (image:276) apic           = 1
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:19:f6:8e', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/37/0'} to /local/domain/37/device/vif/0.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:112) DevController: writing {'bridge': 'xenbr0', 'domain': 'POSTGRES_1', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/37/device/vif/0', 'mac': '00:16:3e:19:f6:8e', 'online': '1', 'frontend-id': '37'} to /local/domain/0/backend/vif/37/0.
[2008-10-28 23:37:21 xend 3265] DEBUG (blkif:24) exception looking up device number for hda: [Errno 2] No such file or directory: '/dev/hda'
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/37/768'} to /local/domain/37/device/vbd/768.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:112) DevController: writing {'domain': 'POSTGRES_1', 'frontend': '/local/domain/37/device/vbd/768', 'format': 'raw', 'dev': 'hda', 'state': '1', 'params': '/dev/VolGru1/Vol1', 'mode': 'w', 'online': '1', 'frontend-id': '37', 'type': 'phy'} to /local/domain/0/backend/vbd/37/768.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:110) DevController: writing {'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 'state': '1', 'backend': '/local/domain/0/backend/vbd/37/5632'} to /local/domain/37/device/vbd/5632.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:112) DevController: writing {'domain': 'POSTGRES_1', 'frontend': '/local/domain/37/device/vbd/5632', 'format': 'raw', 'dev': 'hdc', 'state': '1', 'params': '', 'mode': 'r', 'online': '1', 'frontend-id': '37', 'type': ''} to /local/domain/0/backend/vbd/37/5632.
[2008-10-28 23:37:21 xend 3265] INFO (image:420) spawning device models: /usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '37', '-m', '768', '-boot', 'c', '-serial', 'pty', '-vcpus', '2', '-acpi', '-domain-name', 'POSTGRES_1', '-net', 'nic,vlan=1,macaddr=00:16:3e:19:f6:8e,model=rtl8139', '-net', 'tap,vlan=1,bridge=xenbr0', '-vnc', '127.0.0.1:37', '-vncunused']
[2008-10-28 23:37:21 xend 3265] INFO (image:422) device model pid: 31986
[2008-10-28 23:37:21 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:756) Storing VM details: {'shadow_memory': '8', 'uuid': 'b88e8044-bda1-dac3-6fb3-c5d29b613cb6', 'on_reboot': 'restart', 'start_time': '1225233441.23', 'on_poweroff': 'destroy', 'name': 'POSTGRES_1', 'vcpus': '2', 'vcpu_avail': '3', 'memory': '768', 'on_crash': 'restart', 'image': '(hvm (kernel /usr/lib/xen/boot/hvmloader) (device_model /usr/lib/xen/bin/qemu-dm) (pae 1) (vcpus 2) (boot c) (serial pty) (vnc 1) (vncunused 1) (display :1.0) (xauthority /root/.Xauthority) (acpi 1) (apic 1))', 'maxmem': '768'}
[2008-10-28 23:37:21 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:791) Storing domain details: {'console/port': '4', 'name': 'POSTGRES_1', 'console/limit': '1048576', 'vm': '/vm/b88e8044-bda1-dac3-6fb3-c5d29b613cb6', 'domid': '37', 'cpu/0/availability': 'online', 'memory/target': '786432', 'store/ring-ref': '196606', 'cpu/1/availability': 'online', 'store/port': '3'}
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices vif.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:149) Waiting for 0.
[2008-10-28 23:37:21 xend.XendDomainInfo 3265] DEBUG (XendDomainInfo:989) XendDomainInfo.handleShutdownWatch
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vif/37/0/hotplug-status.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vif/37/0/hotplug-status.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:490) hotplugStatusCallback 1.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices usb.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices vbd.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:149) Waiting for 768.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vbd/37/768/hotplug-status.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vbd/37/768/hotplug-status.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:490) hotplugStatusCallback 1.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:149) Waiting for 5632.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:476) hotplugStatusCallback /local/domain/0/backend/vbd/37/5632/hotplug-status.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:490) hotplugStatusCallback 1.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices irq.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices vkbd.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices vfb.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices pci.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices ioports.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices tap.
[2008-10-28 23:37:21 xend 3265] DEBUG (DevController:143) Waiting for devices vtpm.

 

to jest xend.log z Dom-0

 

 

Link to comment
Share on other sites

Wygląda nieźle. Wklej jeszcze jak wygląda na dom0 /etc/xen/serwer1 (nie wiem czy tak nazwałeś plik - na pewno znajdziesz właściwy). Z domU wklej fdisk -l /dev/hda oraz /etc/fstab. Pewnie więcej informacji znajdziesz w dmesg domU.

Link to comment
Share on other sites

  • 2 weeks later...

Sorki ze dopiero teraz straszny miałem nawal roboty co nie rozwiązało problemu:

 

/etc/xen/skrzynka_podawcza

 

name = "skrzynka_podawcza"
uuid = "e1fc8a2f-a48a-50b5-e8b5-136375cec790"
maxmem = 1024
memory = 1024
vcpus = 1
bootloader = "/usr/bin/pygrub"
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
vfb = [ "type=vnc,vncunused=1" ]
disk = [ "tap:aio:/var/lib/xen/images/skrzynka_podawcza.img,xvda,w","file:/os/CentOS-5.1-i386-bin-DVD.iso,hdc:cdrom,r" ]
vif = [ "mac=00:16:3e:2f:71:f2,bridge=xenbr0" ]

nie mam hda mam

fdisk -l /dev/xvda z dom-U

 

Disk /dev/xvda: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          13      104391   83  Linux
/dev/xvda2              14         274     2096482+  82  Linux swap / Solaris
/dev/xvda3             275        7832    60709635   83  Linux

 

oraz

cat /etc/fstab

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-xvda2        swap                    swap    defaults        0 0

 

 

Link to comment
Share on other sites

Hmm, chyba wkleiłeś dane z innej maszyny niż wcześniej...

 

Nie mniej jednak, jedyny interesujący nas fragment logów to:

[2008-10-28 23:37:21 xend 3265] DEBUG (blkif:24) exception looking up device number for hda: [Errno 2] No such file or directory: '/dev/hda'

Dlatego zapytałem o wycinki fstab i fdisk, ale te wyglądają ok.

 

Google mówią na ten temat kilka ciekawych rzeczy. Nie będę jednak przepisywał - na pewno wygodniej będzie Ci korzystać z informacji z pierwszej ręki.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...