Questions:
I have many VMs in virtualbox, some VMs were created by Vagrant, others created manually via GUI. But whenever I start VMs using vboxmanage starvm, the state of the VM shows as Powerd Off in GUI or vboxmanage showvminfo, even if the VM is running in GUI.
The host OS is Manjaro with R9-7945HX processor, and secure boot is disabled.
Code: Select all
(base) 0x00 in ~/Hypervisor/virtual-machines/Tools/Gparted/Logs λ inxi
CPU: 16-core AMD Ryzen 9 7945HX with Radeon Graphics (-MT MCP-)
speed/min/max: 1055/400/5461 MHz Kernel: 6.7.0-0-MANJARO x86_64 Up: 4h 8m
Mem: 8.47/30.53 GiB (27.8%) Storage: 2.75 TiB (22.9% used) Procs: 544
Shell: Zsh inxi: 3.3.33
eg. start a VM called Gparted.
Code: Select all
(base) 0x00 in ~/Hypervisor/virtual-machines/Tools/Gparted/Logs λ vboxmanage startvm Gparted
Waiting for VM "Gparted" to power on...
VM "Gparted" has been successfully started.
(base) 0x00 in ~/Hypervisor/virtual-machines/Tools/Gparted/Logs λ vboxmanage showvminfo Gparted | grep State
State: powered off (since 2024-02-22T08:25:59.000000000)
(base) 0x00 in ~/Hypervisor/virtual-machines/Tools/Gparted/Logs λ vboxmanage list runningvms
(base) 0x00 in ~/Hypervisor/virtual-machines/Tools/Gparted/Logs λ
But in the processes list the VM shows as running
Code: Select all
(base) 0x00 in /var/log λ ps -ef | grep -iE 'vbox|virtual|slot' | grep -v grep
root 467 2 0 12:39 ? 00:00:00 [iprt-VBoxTscThread]
0x00 53520 1638 0 15:51 ? 00:00:11 /usr/lib/virtualbox/VirtualBox
0x00 53539 1096 0 15:51 ? 00:00:02 /usr/lib/virtualbox/VBoxXPCOMIPCD
0x00 53545 1096 0 15:51 ? 00:00:06 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
0x00 72847 1096 0 16:51 ? 00:00:01 /usr/lib/virtualbox/VBoxXPCOMIPCD
0x00 72853 1096 0 16:51 ? 00:00:05 /usr/lib/virtualbox/VBoxSVC --auto-shutdown
0x00 72881 72853 0 16:51 ? 00:01:09 /usr/lib/virtualbox/VirtualBoxVM --comment Gparted --startvm 4c830005-8675-45da-bc9f-a11964d3f610 --no-startvm-errormsgbox
Code: Select all
(base) 0x00 in /var/log λ sudo dmesg
[15066.546635] vboxdrv: 0000000037a5da6e VMMR0.r0
[15066.652917] vboxdrv: 00000000a81b79f7 VBoxDDR0.r0
download/file.php?mode=view&id=52145
Full information of vboxmanage showvminfo Gparted
Code: Select all
(base) 0x00 in ~/.config λ vboxmanage showvminfo Gparted
Name: Gparted
Encryption: disabled
Groups: /Tools
Guest OS: Debian (64-bit)
UUID: 4c830005-8675-45da-bc9f-a11964d3f610
Config file: /home/0x00/Hypervisor/virtual-machines/Tools/Gparted/Gparted.vbox
Snapshot folder: /home/0x00/Hypervisor/virtual-machines/Tools/Gparted/Snapshots
Log folder: /home/0x00/Hypervisor/virtual-machines/Tools/Gparted/Logs
Hardware UUID: 4c830005-8675-45da-bc9f-a11964d3f610
Memory size: 2048MB
Page Fusion: disabled
VRAM size: 16MB
CPU exec cap: 100%
HPET: disabled
CPUProfile: host
Chipset: piix3
Firmware: BIOS
Number of CPUs: 4
PAE: disabled
Long Mode: enabled
Triple Fault Reset: disabled
APIC: enabled
X2APIC: enabled
Nested VT-x/AMD-V: disabled
CPUID Portability Level: 0
CPUID overrides: None
Boot menu mode: message and menu
Boot Device 1: Floppy
Boot Device 2: DVD
Boot Device 3: HardDisk
Boot Device 4: Not Assigned
ACPI: enabled
IOAPIC: enabled
BIOS APIC mode: APIC
Time offset: 0ms
BIOS NVRAM File: /home/0x00/Hypervisor/virtual-machines/Tools/Gparted/Gparted.nvram
RTC: UTC
Hardware Virtualization: enabled
Nested Paging: enabled
Large Pages: enabled
VT-x VPID: enabled
VT-x Unrestricted Exec.: enabled
AMD-V Virt. Vmsave/Vmload: enabled
IOMMU: None
Paravirt. Provider: Default
Effective Paravirt. Prov.: KVM
State: powered off (since 2024-02-22T08:51:04.000000000)
Graphics Controller: VMSVGA
Monitor count: 1
3D Acceleration: disabled
2D Video Acceleration: disabled
Teleporter Enabled: disabled
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Tracing Enabled: disabled
Allow Tracing to Access VM: disabled
Tracing Configuration:
Autostart Enabled: disabled
Autostart Delay: 0
Default Frontend:
VM process priority: default
Storage Controllers:
#0: 'IDE', Type: PIIX4, Instance: 0, Ports: 2 (max 2), Bootable
Port 1, Unit 0: UUID: 0454109d-478c-44ac-b34a-f9ce5530f095
Location: "/home/0x00/Hypervisor/iso/gparted-live-1.5.0-1-amd64.iso"
#1: 'SATA', Type: IntelAhci, Instance: 0, Ports: 1 (max 30), Bootable
Port 0, Unit 0: UUID: 4c07cc72-0522-4517-b2ca-ce18d1e90159
Location: "/home/0x00/Hypervisor/virtual-machines/Tools/Gparted/Snapshots/{4c07cc72-0522-4517-b2ca-ce18d1e90159}.vdi"
NIC 1: MAC: 080027F03201, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
NIC 3: disabled
NIC 4: disabled
NIC 5: disabled
NIC 6: disabled
NIC 7: disabled
NIC 8: disabled
Pointing Device: USB Tablet
Keyboard Device: PS/2 Keyboard
UART 1: disabled
UART 2: disabled
UART 3: disabled
UART 4: disabled
LPT 1: disabled
LPT 2: disabled
Audio: enabled (Driver: Default, Controller: AC97, Codec: AD1980)
Audio playback: enabled
Audio capture: disabled
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: disabled
OHCI USB: enabled
EHCI USB: enabled
xHCI USB: disabled
USB Device Filters: <none>
Bandwidth groups: <none>
Shared folders: <none>
Recording enabled: no
Recording screens: 1
Screen 0:
Enabled: yes
ID: 0
Record video: yes
Destination: File
File: /home/0x00/Hypervisor/virtual-machines/Tools/Gparted/Gparted-screen0.webm
Options: vc_enabled=true,ac_enabled=false,ac_profile=med
Video dimensions: 1024x768
Video rate: 512kbps
Video FPS: 25fps
* Snapshots:
Name: Pure (UUID: 02dc5814-0b25-428f-a52b-92ba2b6be4f0) *
* Guest:
Configured memory balloon: 0MB
Things I tried:
1. Remove the .vbox-<username>-ipc directory mention in ch02.html#2.3.5. Starting Oracle VM VirtualBox on Linux
2. Upgrade/downgrade virtualbox/linux kernel didn’t work
3. Start virtualbox as root and create a virtual machine usinig the same ISO, then to reproduce the steps mentioned above. The state mathced as expected !!! (runnging-running)
It’s various from
viewtopic.php?p=426125
4. Tried to read some source code, but didn’t find the function that handle starvm subcommand
Any of workarounds or hints would be appreciated
[English is not my native lanuage, if some expression make you confuse]
Thanks