<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Õżѱ¦</b> <span dir="ltr"><<a href="mailto:zhangjiabao@gmail.com">zhangjiabao@gmail.com</a>></span><br>Date: 2009/10/21<br>
Subject: VM's state is not steady and VM is unreacheble<br>To: <a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a><br><br><br>Hi,<br>I installed Opennebula on my system,I use a host named oneserve as the front-end(the host is also a node in the system),whose IP is 192.168.1 105,and I use a host named oneclient as the node ,whose IP is 192.168.1.106.<br>

I use the following template to create a virtual network:<br>-----------------------------------------------------------<br>NAME   = "Public VLAN"<br>TYPE   = FIXED<br>BRIDGE = eth0<br>LEASES = [IP=192.168.1.249,MAC=00:1C:25:A2:8D:B7]<br>

<br>------------------------------------------------------------<br><br>I can see the virtual network created successfully.<br><br>-----------------------------------------------------<br>[root@oneserver domains]# onevm list<br>

  ID     NAME STAT CPU     MEM        HOSTNAME        TIME<br>  42    xen01 susp   0  524288       oneserver 00 00:19:55<br>[root@oneserver domains]# onevnet list<br> NID NAME              TYPE BRIDGE<br>   1 Public VLAN      Fixed   eth0<br>

[root@oneserver domains]# onevnet show 1<br>NID               : 1<br>UID               : 0<br>Network Name      : Public VLAN<br>Type              : Fixed<br>Bridge            : eth0<br><br>....: Template :....<br>        BRIDGE=eth0<br>

        LEASES=IP=192.168.1.249,MAC=00:1C:25:A2:8D:B7<br>        NAME=Public VLAN<br>        TYPE=FIXED<br><br>....: Leases :....<br>IP = 192.168.1.249  MAC = 00:1c:25:a2:8d:b7  USED = 1 VID = 42<br>-------------------------------------------------------------------<br>

<br>and next,I use a template to create a VM as follow:<br><br>------------------------------------------------------------------------<br>NAME   = xen01<br>CPU    = 1<br>MEMORY = 512<br>OS = [ kernel     = "/boot/vmlinuz-2.6.18-128.el5xen",<br>

       initrd     = "/boot/initrd-2.6.18-128.el5xen.img",<br>       root       = "sda1"]<br>DISK = [ source   = "/home/domains/disk.img",<br>         target   = "sda1",<br>         readonly = "no"]<br>

DISK = [  type     = "swap",<br>          size     = 512,<br>          target   = "sdb1",<br>          readonly = "no"]<br>NIC = [NETWORK="Public VLAN"]<br>--------------------------------------------------------------------------<br>

<br>and after minites the VM's state is running,<br><br>---------------------------------------------------------------------------<br><br>[root@oneserver domains]# onevm list<br>  ID     NAME STAT CPU     MEM        HOSTNAME        TIME<br>

  42    xen01 runn   0  524288       oneserver 00 00:11:20<br><br>[root@oneserver domains]# onevm show 42<br>VID            : 42                  <br>UID            : 0                   <br>STATE          : SUSPENDED           <br>

LCM STATE      : LCM_INIT            <br>DEPLOY ID      : one-42              <br>MEMORY         : 524288              <br>CPU            : 0                   <br>LAST POLL      : 1256200675          <br>START TIME     : 10/22 16:26:03      <br>

STOP TIME      : 01/01 08:00:00      <br>NET TX         : 0                   <br>NET RX         : 0                   <br><br>....: Template :....<br>    CPU             : 1                   <br>    DISK            : READONLY=no,SOURCE=/home/domains/disk.img,TARGET=sda1<br>

    DISK            : READONLY=no,SIZE=512,TARGET=sdb1,TYPE=swap<br>    MEMORY          : 512                 <br>    NAME            : xen01               <br>    NIC             : BRIDGE=eth0,IP=192.168.1.249,MAC=00:1c:25:a2:8d:b7,NETWORK=Public VLAN,VNID=1<br>

    OS              : INITRD=/boot/initrd-2.6.18-128.el5xen.img,KERNEL=/boot/vmlinuz-2.6.18-128.el5xen,ROOT=sda1<br><br>--------------------------------------------------------------------<br><br>but the state of the VM changes ,sometimes it is done ,and sometimes it is suspend,like the following.<br>

<br>-----------------------------------------------------------------<br><br>[root@oneserver domains]# onevm list<br>  ID     NAME STAT CPU     MEM        HOSTNAME        TIME<br>  42    xen01 susp   0  524288       oneserver 00 00:19:55<br>

-----------------------------------------------------------------------<br><br><br>when the VM's state is running ,i try to login it ,but the VM is unreacheable.<br>----------------------------------------------------------------------------<br>

<br>[root@oneserver domains]# ping 192.168.1.249<br>PING 192.168.1.249 (192.168.1.249) 56(84) bytes of data.<br>From 192.168.1.105 icmp_seq=1 Destination Host Unreachable<br>From 192.168.1.105 icmp_seq=2 Destination Host Unreachable<br>

>From 192.168.1.105 icmp_seq=3 Destination Host Unreachable<br><br>---------------------------------------------------------------------------<br><br>and I try to use the order 'xm console 'to login some error returns too.<br>

<br>----------------------------------------------------------------------------<br><br>[root@oneserver domains]# xm console one-42<br><br>SELinux:  Initializing.<br>selinux_register_security:  Registering secondary module capability<br>

Capability LSM initialized as secondary<br>Mount-cache hash table entries: 256<br>CPU: L1 I cache: 32K, L1 D cache: 32K<br>CPU: L2 cache: 6144K<br>CPU: Physical Processor ID: 0<br>CPU: Processor Core ID: 1<br>(SMP-)alternatives turned off<br>

Brought up 1 CPUs<br>checking if image is initramfs... it is<br>Grant table initialized<br>NET: Registered protocol family 16<br>ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread F467A0 could not acquire Mutex [2] [20060707]<br>

No dock devices found.<br>ACPI Exception (utmutex-0262): AE_BAD_PARAMETER, Thread F467A0 could not acquire Mutex [2] [20060707]<br>Brought up 1 CPUs<br>PCI: setting up Xen PCI frontend stub<br>ACPI: Interpreter disabled.<br>

Linux Plug and Play Support v0.97 (c) Adam Belay<br>pnp: PnP ACPI: disabled<br>xen_mem: Initialising balloon driver.<br>usbcore: registered new driver usbfs<br>usbcore: registered new driver hub<br>PCI: System does not support PCI<br>

PCI: System does not support PCI<br>NetLabel: Initializing<br>NetLabel:  domain hash size = 128<br>NetLabel:  protocols = UNLABELED CIPSOv4<br>NetLabel:  unlabeled traffic allowed by default<br>NET: Registered protocol family 2<br>

IP route cache hash table entries: 32768 (order: 6, 262144 bytes)<br>TCP established hash table entries: 131072 (order: 9, 2097152 bytes)<br>TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)<br>TCP: Hash tables configured (established 131072 bind 65536)<br>

TCP reno registered<br>audit: initializing netlink socket (disabled)<br>type=2000 audit(1256201781.637:1): initialized<br>VFS: Disk quotas dquot_6.5.1<br>Dquot-cache hash table entries: 512 (order 0, 4096 bytes)<br>Initializing Cryptographic API<br>

alg: No test for crc32c (crc32c-generic)<br>ksign: Installing public key data<br>Loading keyring<br>- Added public key 75ED35FE9471DC0E<br>- User ID: CentOS (Kernel Module GPG key)<br>io scheduler noop registered<br>io scheduler anticipatory registered<br>

io scheduler deadline registered<br>io scheduler cfq registered (default)<br>pci_hotplug: PCI Hot Plug PCI Core version: 0.5<br>rtc: IRQ 8 is not free.<br>Non-volatile memory driver v1.2<br>Linux agpgart interface v0.101 (c) Dave Jones<br>

RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize<br>Xen virtual console successfully installed as xvc0<br>Event-channel device installed.<br>Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2<br>

ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx<br>ide-floppy driver 0.99.newide<br>usbcore: registered new driver hiddev<br>usbcore: registered new driver usbhid<br>drivers/usb/input/hid-core.c: v2.6:USB HID core driver<br>

PNP: No PS/2 controller found. Probing ports directly.<br>i8042.c: No controller found.<br>mice: PS/2 mouse device common for all mice<br>md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27<br>md: bitmap version 4.39<br>

TCP bic registered<br>Initializing IPsec netlink socket<br>NET: Registered protocol family 1<br>NET: Registered protocol family 17<br>XENBUS: Device with no driver: device/vbd/2049<br>XENBUS: Device with no driver: device/vbd/2065<br>

XENBUS: Device with no driver: device/vif/0<br>XENBUS: Device with no driver: device/console/0<br>Write protecting the kernel read-only data: 467k<br>Red Hat nash version 5.1.19.6 starting<br>Mounting proc filesystem<br>
Mounting sysfs filesystem<br>
Creating /dev<br>Creating initial device nodes<br>Setting up hotplug.<br>Creating block device nodes.<br>Loading ehci-hcd.ko module<br>Loading ohci-hcd.ko module<br>Loading uhci-hcd.ko module<br>USB Universal Host Controller Interface driver v3.0<br>

Loading jbd.ko module<br>Loading ext3.ko module<br>Loading scsi_mod.ko module<br>SCSI subsystem initialized<br>Loading sd_mod.ko module<br>Loading libata.ko module<br>Loading ahci.ko module<br>Loading dm-mod.ko module<br>

device-mapper: uevent: version 1.0.3<br>device-mapper: ioctl: 4.11.5-ioctl (2007-12-12) initialised: <a href="mailto:dm-devel@redhat.com" target="_blank">dm-devel@redhat.com</a><br>Loading dm-log.ko module<br>Loading dm-mirror.ko module<br>

Loading dm-zero.ko module<br>Loading dm-snapshot.ko module<br>Loading dm-mem-cache.ko module<br>Loading dm-region_hash.ko module<br>Loading dm-message.ko module<br>Loading dm-raid45.ko module<br>device-mapper: dm-raid45: initialized v0.2429<br>

Waiting for driver initialization.<br>Scanning and configuring dmraid supported devices<br>Scanning logical volumes<br>  Reading all physical volumes.  This may take a while...<br>Activating logical volumes<br>  Volume group "VolGroup00" not found<br>

Creating root device.<br>Mounting root filesystem.<br>mount: could not find filesystem '/dev/root'<br>Setting up other filesystems.<br>Setting up new root fs<br>setuproot: moving /dev failed: No such file or directory<br>

no fstab.sys, mounting internal defaults<br>setuproot: error mounting /proc: No such file or directory<br>setuproot: error mounting /sys: No such file or directory<br>Switching to new root and running init.<br>unmounting old /dev<br>

unmounting old /proc<br>unmounting old /sys<br>switchroot: mount failed: No such file or directory<br>Kernel panic - not syncing: Attempted to kill init!<br><br>---------------------------------------------------------------------------------------------<br>

<br>the following is the vm.log file:<br><br>------------------------------------------------------------------------<br>Thu Oct 22 16:26:07 2009 [DiM][I]: New VM state is ACTIVE.<br>Thu Oct 22 16:26:07 2009 [LCM][I]: New VM state is PROLOG.<br>

Thu Oct 22 16:26:07 2009 [TM][I]: tm_clone.sh: oneserver:/home/domains/disk.img oneserver:/home/one/var//42/images/disk.0<br>Thu Oct 22 16:26:07 2009 [TM][I]: tm_clone.sh: DST: /home/one/var//42/images/disk.0<br>Thu Oct 22 16:26:07 2009 [TM][I]: tm_clone.sh: Creating directory /home/one/var//42/images<br>

Thu Oct 22 16:26:07 2009 [TM][I]: tm_clone.sh: Executed "mkdir -p /home/one/var//42/images".<br>Thu Oct 22 16:26:07 2009 [TM][I]: tm_clone.sh: Executed "chmod a+w /home/one/var//42/images".<br>Thu Oct 22 16:26:07 2009 [TM][I]: tm_clone.sh: Cloning /home/domains/disk.img<br>

Thu Oct 22 16:29:38 2009 [TM][I]: tm_clone.sh: Executed "cp /home/domains/disk.img /home/one/var//42/images/disk.0".<br>Thu Oct 22 16:29:38 2009 [TM][I]: tm_clone.sh: Executed "chmod a+w /home/one/var//42/images/disk.0".<br>

Thu Oct 22 16:29:38 2009 [TM][I]: tm_mkswap.sh: Creating 512Mb image in /home/one/var//42/images/disk.1<br>Thu Oct 22 16:29:38 2009 [TM][I]: tm_mkswap.sh: Executed "dd if=/dev/zero of=/home/one/var//42/images/disk.1 bs=1 count=1 seek=512M".<br>

Thu Oct 22 16:29:38 2009 [TM][I]: tm_mkswap.sh: Initializing swap space<br>Thu Oct 22 16:29:39 2009 [TM][I]: tm_mkswap.sh: Executed "/sbin/mkswap /home/one/var//42/images/disk.1".<br>Thu Oct 22 16:29:39 2009 [TM][I]: tm_mkswap.sh: Executed "chmod a+w /home/one/var//42/images/disk.1".<br>

Thu Oct 22 16:29:39 2009 [LCM][I]: New VM state is BOOT<br>Thu Oct 22 16:29:39 2009 [VMM][I]: Generating deployment file: /home/one/var/42/deployment.0<br>Thu Oct 22 16:29:39 2009 [VMM][I]: Command: scp /home/one/var/42/deployment.0 oneserver:/home/one/var//42/images/deployment.0<br>

Thu Oct 22 16:29:39 2009 [VMM][I]: Copy success<br>Thu Oct 22 16:29:39 2009 [VMM][I]: Setting credits for the VM<br>Thu Oct 22 16:29:39 2009 [VMM][I]: Command: sudo /usr/sbin/xm create /home/one/var//42/images/deployment.0 \&\& sudo /usr/sbin/xm sched-cred -d one-42 -w 256<br>

Thu Oct 22 16:29:42 2009 [LCM][I]: New VM state is RUNNING<br>Thu Oct 22 16:29:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:30:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:30:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:31:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 1<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:31:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:32:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:32:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:33:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 5<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:33:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:34:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:34:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:35:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:35:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 2<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:36:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:36:58 2009 [VMM][I]: Monitor Information:<br>    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:37:28 2009 [VMM][I]: Monitor Information:<br>

    CPU   : 0<br>    Memory: 524288<br>    Net_TX: 0<br>    Net_RX: 0<br><br>Thu Oct 22 16:37:58 2009 [VMM][I]: VM running but new state from monitor is PAUSED.<br><br>Thu Oct 22 16:37:58 2009 [LCM][I]: VM is suspended.<br>

Thu Oct 22 16:37:58 2009 [DiM][I]: New VM state is SUSPENDED<br>Thu Oct 22 16:52:32 2009 [DiM][I]: New VM state is DONE.<br><br>-------------------------------------------------------------------------------------------<br>

<br>I really do not why it is ,do you know how to fix it?<br><br>Best wishes,<br><br>Atlas.<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div><br>