Page 1 of 1

Manjaro (Kernel 4.9): Random freezes of VM

Posted: 17. Feb 2017, 15:31
by Cathodoluminescence
Hello!

since a few days I have the problem that my VM freezes after a few minutes. The manager is stating that it still runs, and I also can't see anything suspicious in the log file. If I change the window size, it will be recorded in the log, but nothing else from the moment it freezes.

Infos

Code: Select all

Name:            RamanVM
Groups:          /
Guest OS:        Windows 7 (32-bit)
UUID:            6921cef4-7726-42ca-9868-0939be9cea32
Config file:     /run/media/cl/ssd2/VM/RamanVM/RamanVM.vbox
Snapshot folder: /run/media/cl/ssd2/VM/RamanVM/Snapshots
Log folder:      /run/media/cl/ssd2/VM/RamanVM/Logs
Hardware UUID:   6921cef4-7726-42ca-9868-0939be9cea32
Memory size:     3633MB
Page Fusion:     off
VRAM size:       76MB
CPU exec cap:    100%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  1
PAE:             on
Long Mode:       off
Triple Fault Reset: off
APIC:            on
X2APIC:          off
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): HardDisk
Boot Device (2): Not Assigned
Boot Device (3): Not Assigned
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          on
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             local time
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     on
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Legacy
Effective Paravirt. Provider: None                                                                                                                             
State:           running (since 2017-02-17T13:15:27.061000000)                                                                                                 
Monitor count:   1                                                                                                                                             
3D Acceleration: off                                                                                                                                           
2D Video Acceleration: on                                                                                                                                      
Teleporter Enabled: off                                                                                                                                        
Teleporter Port: 0                                                                                                                                             
Teleporter Address:                                                                                                                                            
Teleporter Password:                                                                                                                                           
Tracing Enabled: off                                                                                                                                           
Allow Tracing to Access VM: off                                                                                                                                
Tracing Configuration:                                                                                                                                         
Autostart Enabled: off                                                                                                                                         
Autostart Delay: 0                                                                                                                                             
Default Frontend:                                                                                                                                              
Storage Controller Name (0):            IDE                                                                                                                    
Storage Controller Type (0):            PIIX4                                                                                                                  
Storage Controller Instance Number (0): 0                                                                                                                      
Storage Controller Max Port Count (0):  2                                                                                                                      
Storage Controller Port Count (0):      2                                                                                                                      
Storage Controller Bootable (0):        on                                                                                                                     
Storage Controller Name (1):            SATA                                                                                                                   
Storage Controller Type (1):            IntelAhci                                                                                                              
Storage Controller Instance Number (1): 0                                                                                                                      
Storage Controller Max Port Count (1):  30
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
IDE (0, 0): /run/media/cl/ssd2/VM/RamanVM/C:/Program Files/Oracle/VirtualBox/VBoxGuestAdditions.iso (UUID: 90d0abcb-cf66-404d-920c-2ce871a07c05)
IDE (0, 1): /run/media/cl/ssd2/VM/RamanVM/RamanVM Clone-disk1.vdi (UUID: db534f75-9914-4780-8ecb-615018bf9d19)
IDE (1, 0): Empty
NIC 1:           MAC: 080027F657E5, Attachment: none, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: allow-all, Bandwidth group: none
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
UART 3:          disabled
UART 4:          disabled
LPT 1:           disabled
LPT 2:           disabled
Audio:           disabled
Clipboard Mode:  Bidirectional
Drag and drop Mode: Bidirectional
Session name:    GUI/Qt
Video mode:      1920x1029x32 at 0,0 enabled
VRDE:            disabled
USB:             disabled
EHCI:            disabled
XHCI:            disabled

USB Device Filters:

Index:            0
Active:           yes
Name:             New Filter 1
VendorId:         
ProductId:        
Revision:         
Manufacturer:     
Product:          
Remote:           
Serial Number:    

Index:            1
Active:           yes
Name:             SanDisk Cruzer Force [0127]
VendorId:         0781
ProductId:        557d
Revision:         0127
Manufacturer:     SanDisk
Product:          Cruzer Force
Remote:           0
Serial Number:    4C530001270204111340

Available remote USB devices:

<none>

Currently Attached USB Devices:

<none>

Bandwidth groups:  <none>

Shared folders:  

Name: 'Downloads', Host path: '/home/cl/Downloads' (machine mapping), writable
Name: 'projects', Host path: '/home/cl/projects' (machine mapping), writable
Name: 'exchange', Host path: '/home/cl/exchange' (machine mapping), writable
Name: 'projects_local', Host path: '/run/media/cl/ssd2/projects_local' (machine mapping), writable

VRDE Connection:    not active
Clients so far:     0

Video capturing:    not active
Capture screens:    0
Capture file:       /run/media/cl/ssd2/VM/RamanVM/RamanVM.webm
Capture dimensions: 1024x768
Capture rate:       512 kbps
Capture FPS:        25

Guest:

Configured memory balloon size:      0 MB
OS type:                             Windows7
Additions run level:                 3
Additions version:                   4.3.16 r95972


Guest Facilities:

Facility "VirtualBox Base Driver": active/running (last update: 2017/02/17 13:15:55 UTC)
Facility "VirtualBox System Service": active/running (last update: 2017/02/17 13:15:57 UTC)
Facility "VirtualBox Desktop Integration": active/running (last update: 2017/02/17 13:18:01 UTC)
Facility "Seamless Mode": active/running (last update: 2017/02/17 13:15:55 UTC)
Facility "Graphics Mode": active/running (last update: 2017/02/17 13:15:55 UTC)

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 17. Feb 2017, 15:33
by mpack
Please post a VM log file. With the VM fully shut down, right click and "Show Log" in the GUI, save "VBox.log" (no other file) to a zip, and attach the zip here.

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 17. Feb 2017, 15:37
by Cathodoluminescence
I was trying to put it in here as code, but the board did let me... here is the file!

And thanks for any help!

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 17. Feb 2017, 19:37
by mpack
Everything looks pretty good, except... I see that the VM only has one CPU core assigned, so the VM freezing would be a natural consequence of a guest process hogging the CPU. Your host has 4 cores, so you can afford to let the guest have two. Then it should be easier to pop up the guest tasklist and find out the CPU hog is. BTW, if this was an XP VM then it wouldn't start using a second core just because you allocated one. In XP you had to manually replace the HAL. I don't know whether Win7 is any smarter - it ought to be.

By the way, what kind of disk is your host drive "/run/media/c1/ssd2"? I gather that it's an SSD, but on what bus? (Internal SATA, eSATA, USB2, USB3, network etc)?

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 18. Feb 2017, 09:33
by WFV
mpack wrote:BTW, if this was an XP VM then it wouldn't start using a second core just because you allocated one. In XP you had to manually replace the HAL.
Interesting. How do you tell if the XP machine isn't using two cores assigned? I have an XP guest and it shows 2 (of 8 ) cores in the Device Manager but have wondered at times how slow certain jobs run on it. Maybe only using one because I never made any changes to HAL? Task Manager shows two cores also. Just curious, thanks.

EDIT: (answered) Thanks socratis and mpack

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 18. Feb 2017, 10:09
by socratis
WFV wrote:How do you tell if the XP machine isn't using two cores assigned?
WFV wrote:Task Manager shows two cores also.
You pretty much answered your own question.

Go to the Device Manager (right-click on the computer » Properties » Hardware » Device Manager). Expand Computer. If it says "ACPI Multiprocessor PC", then you've installed the HAL that supports more than one CPUs. And it shows in the Task Manager. That choice is made during the XP installation depending on the amount of CPUs that you have during the installation.

If you had installed XP with a single CPU, the Computer would say "Advanced Configuration and Power Interface (ACPI) PC". If that was the case and you later decided to increase the number of CPUs, XP would not see them. At all. It would only use one CPU.

So, bottom line, if you see more than one CPU in the Task Manager, you're all set.

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 18. Feb 2017, 10:34
by mpack
For me the clearest display of this in XP is the task manager. You go to the performance tab, and if it shows two CPU performance history windows then you have two cores. If it only shows one window then its only using one core.

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 18. Feb 2017, 15:44
by Perryg
Why would you use a system folder to store the guests? (/run/media/cl/ssd2/VM/RamanVM/RamanVM Clone-disk1.vdi)
Permissions are root:root so it means you would have to run in root or change the permissions to allow you to do so. Either is a major security risk and not the way VirtualBox was intended to run.

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 21. Feb 2017, 14:51
by Cathodoluminescence
I am running it from a secondary SSD as my the primary one does not have enough empty space. I don't think I gave VirtualBox any special rights, but then again, I set it up over a year ago!

To everyone else: I am running a Win 7 32 bit machine. And it run like this for at least a year or so. I added a second core in the configuration and it seems to run again. Not sure, why it wasn't running anymore with a single core, but thanks a lot!

Re: Manjaro (Kernel 4.9): Random freezes of VM

Posted: 21. Feb 2017, 16:07
by mpack
Cathodoluminescence wrote:I added a second core in the configuration and it seems to run again. Not sure, why it wasn't running anymore with a single core, but thanks a lot!
That implies that it was running, but it was maxing out the core on some task (cough: windows update). You should have been able to find this task in the guest task manager, as already mentioned. Of course it may have taken ages to get around to popping up the task manager window, but that should be less of a problem now that it has an additional core to do that with.