3 Replies Latest reply on Oct 23, 2014 1:20 AM by horowitz

    Windows XP VM shuts down randomly (also Server 2003 VM)

    sthistle Enthusiast

       

      Running VMware Server v1.0.7  on Fedora 8 Host

       

       

      The VM shuts down at random times, normally during the evening.

       

      vmware.log for the guest shows:Feb 08 13:51:14: vmx| ASSERT /build/mts/release/bora-108231/pompeii2005/bora/lib/left/pollLeft.c:1412 bugNr=2430

      Feb 08 13:51:14: vmx| Backtrace:

      Feb 08 13:51:14: vmx| Backtrace[0] 0xbf9afb08 eip 0x805b560

      Feb 08 13:51:14: vmx| Backtrace[1] 0xbf9aff28 eip 0x80c0dbb

      Feb 08 13:51:14: vmx| Backtrace[2] 0xbf9aff68 eip 0x8066bce

      Feb 08 13:51:14: vmx| Backtrace[3] 0xbf9aff98 eip 0x82b6fab

      Feb 08 13:51:14: vmx| Backtrace[4] 0xbf9affd8 eip 0x82b7125

      Feb 08 13:51:14: vmx| Backtrace[5] 0xbf9b0008 eip 0x8094009

      Feb 08 13:51:14: vmx| Backtrace[6] 0xbf9b0048 eip 0x8194c20

      Feb 08 13:51:14: vmx| Backtrace[7] 0xbf9b0088 eip 0x8091e6c

      Feb 08 13:51:14: vmx| Backtrace[8] 0xbf9b00b8 eip 0x8078c2c

      Feb 08 13:51:14: vmx| Backtrace[9] 0xbf9b00d8 eip 0x816764f

      Feb 08 13:51:14: vmx| Backtrace[10] 0xbf9b00f8 eip 0x81676f3

      Feb 08 13:51:14: vmx| Backtrace[11] 0xbf9b0148 eip 0x81989b0

      Feb 08 13:51:14: vmx| Backtrace[12] 0xbf9b0168 eip 0x81d067d

      Feb 08 13:51:14: vmx| Backtrace[13] 0xbf9b0198 eip 0x81d05d1

      Feb 08 13:51:14: vmx| Backtrace[14] 0xbf9b01b8 eip 0x81d051c

      Feb 08 13:51:14: vmx| Backtrace[15] 0xbf9b01d8 eip 0x8067de9

      Feb 08 13:51:14: vmx| Backtrace[16] 0xbf9b0638 eip 0x80679ce

      Feb 08 13:51:14: vmx| Backtrace[17] 0xbf9b0688 eip 0x8067077

      Feb 08 13:51:14: vmx| Backtrace[18] 0xbf9b06a8 eip 0x8066f59

      Feb 08 13:51:14: vmx| Backtrace[19] 0xbf9b06d8 eip 0x80c160e

      Feb 08 13:51:14: vmx| Backtrace[20] 0xbf9b06e8 eip 0x80c157b

      Feb 08 13:51:14: vmx| Backtrace[21] 0xbf9b0718 eip 0x80c044d

      Feb 08 13:51:14: vmx| Backtrace[22] 0xbf9b0768 eip 0x805045c

      Feb 08 13:51:14: vmx| Backtrace[23] 0xbf9b0788 eip 0x804f434

      Feb 08 13:51:14: vmx| Backtrace[24] 0xbf9b07e8 eip 0x70d390

      Feb 08 13:51:14: vmx| Backtrace[25] 00000000 eip 0x804e381

      Feb 08 13:51:14: vmx| Core dump limit is 51200 kb.

      Feb 08 13:51:14: vmx| Attempting to dump core...

      Feb 08 13:51:20: vmx| http://msg.log.error.unrecoverable VMware Server unrecoverable error: (vmx)

      Feb 08 13:51:20: vmx| ASSERT /build/mts/release/bora-108231/pompeii2005/bora/lib/left/pollLeft.c:1412 bugNr=2430

      Feb 08 13:51:20: vmx| ASSERT /build/mts/release/bora-108231/pompeii2005/bora/lib/left/pollLeft.c:1412 bugNr=2430

      Feb 08 13:51:20: vmx| A log file is available in "/data/vmware/virtual_machines/cgyvmws53/vmware.log".

      Feb 08 13:51:20: IO#2| VTHREAD watched thread 0 "vmx" died

      Feb 08 13:51:20: IO#0| VTHREAD watched thread 0 "vmx" died

      Feb 08 13:51:20: IO#3| VTHREAD watched thread 0 "vmx" died

      Feb 08 13:51:20: IO#1| VTHREAD watched thread 0 "vmx" died

      Feb 08 13:51:20: mks| VTHREAD watched thread 0 "vmx" died

      Feb 08 13:51:38: vcpu-0| VTHREAD watched thread 0 "vmx" died

       

       

      vmware served.log shows:

       

       

      Feb 08 13:51:38: app| VMServerd IPC closed the connection with thread /data/vmware/virtual_machines/cgyvmws53/cgyvmws53.vmx (0x8d25bb0)

      Feb 08 13:51:38: app| Lost connection to /data/vmware/virtual_machines/cgyvmws53/cgyvmws53.vmx (/data/vmware/virtual_machines/cgyvmws53/cgyvmws53.vmx) unexpectedly.

      Feb 08 13:51:38: app| cleanup: cleaned up 1 objects

      Feb 08 13:51:38: app| vmdbPipe_Streams Couldn't read: OVL_STATUS_EOF

      Feb 08 13:51:38: app| VMHS: Connection to VM broken: cfg: /data/vmware/virtual_machines/cgyvmws53/cgyvmws53.vmx; error: Pipe: Read failed; state: 3

      Feb 08 13:51:39: app| Stale data for path: /vm/#f2cf97dbc7f2b8a6/vmx/localMksOwner/ (current value '_UNSET_')

      Feb 08 13:51:39: app| VM suddenly changed state: poweredOff.

      Feb 08 13:51:39: app| VM suddenly changed state: poweredOff.

      Feb 08 13:51:39: app| VM suddenly changed state: poweredOff.

       

       

       

       

       

        • 1. Re: Windows XP VM shuts down randomly (also Server 2003 VM)
          sthistle Enthusiast

           

          Also seeing a lot of these in the logs:

           

           

          vmware.log:Feb 12 08:50:50: vmx| SCSI0:0: Command WRITE(10) took 1.025 seconds (ok)

          vmware.log:Feb 12 08:50:50: vmx| SCSI0:0: Command WRITE(10) took 1.021 seconds (ok)

          vmware.log:Feb 12 08:50:50: vmx| SCSI0:0: Command WRITE(10) took 1.018 seconds (ok)

          vmware.log:Feb 12 08:50:52: vmx| SCSI0:0: Command WRITE(10) took 1.553 seconds (ok)

          vmware.log:Feb 12 08:50:52: vmx| SCSI0:0: Command WRITE(10) took 1.392 seconds (ok)

          vmware.log:Feb 12 08:50:52: vmx| SCSI0:0: Command WRITE(10) took 1.558 seconds (ok)

          vmware.log:Feb 12 08:55:25: vmx| SCSI0:0: Command WRITE(10) took 1.090 seconds (ok)

          vmware.log:Feb 12 08:55:26: vmx| SCSI0:0: Command WRITE(10) took 1.058 seconds (ok)

           

           

          • 2. Re: Windows XP VM shuts down randomly (also Server 2003 VM)
            sthistle Enthusiast

            I guess no one has a solution? I did a batch of performance tuning stuff, and the problem seems to be decreased somewhat.

             

            We currently have 80 of these boxes running Fedora 5 and 8, mostly 8. Only a couple of the boxes show these issues. I made the following changes to the servers themselves:

             

            Added to /etc/vmware/config:

             

            mainMem.useNamedFile=FALSE

            tools.timeSync = true

            host.useFastClock = FALSE

            tmpDirectory="/dev/shm" # I have 8GB in the host, so this is fine

            prefvmx.useRecommendedLockedMemSize="TRUE"

            prefvmx.minVmMemPct="100"

             

            Made the following to stop useing shared memory pools

             

            mem.ShareScanTotal=0

            mem.ShareScanVM=0

            mem.ShareScanThreshold=4096

            sched.mem.maxmemctl=0

            sched.mem.pshare.enable = "FALSE"

            MemTrimRate = "0"

            MemAllowAutoScaleDown = "FALSE"

             

            Following changes to /etc/sysctl.conf

             

            vm.swappiness = 0

            vm.overcommit_memory = 1

            vm.dirty_background_ratio = 5

            vm.dirty_ratio = 10

            vm.dirty_expire_centisecs = 1000

            dev.rtc.max-user-freq = 1024

             

            I turned off "Internet Time" in the Windows host so time syncs with the vmware tools

             

            Most of this came from the article http://blog.dhampir.no/content/performance-tuning-vmware-server

            • 3. Re: Windows XP VM shuts down randomly (also Server 2003 VM)
              horowitz Lurker
              I am referring to an older thread concerning the issue of periodic freezes in an XP-VM under linux: Tips for Improving Performance On Linux Host communities.vmware.com/post!reply.jspa?message=1176901
              Hoping to alleviate my problem I added the values suggested by GTC to the /etc/sysctl.conf file:

              vm.swappiness = 0

              vm.overcommit_memory = 0

              vm.dirty_background_ratio = 2

              vm.dirty_ratio = 100

              vm.dirty_expire_centisecs = 9000

              vm.dirty_writeback_centisecs = 3000

               

               

              After reboot these values are successfully changed in vm.swappiness, vm.overcommit_memory, vm.dirty_expire_centisecs,

              not in the remaining files, however. This is surprising considering that all files have identical permissions.

               

              Changing the files directly in /proc/sys/vm is not possible, neither as root nor as root from a live (CD) system.

              The error returned states "unexpected error writing to the file: invalid argument"

               

              Does anyone know how these values can be changed permanently?

              Any help will be appreciated!