VirtualBox

Opened 5 years ago

Last modified 5 years ago

#18811 new defect

6.0.10 snaphot fails on NFS share with savestate

Reported by: guideloom Owned by:
Component: other Version: VirtualBox 6.0.10
Keywords: Cc:
Guest type: all Host type: Linux

Description

This all works with 5.2.X. A fresh install of 6.0.10 yields the following bug:

With a VM located on an NFS share, if that VM is put into "savestate", and we try to clone that VM, the clone fails with the following error:

Progress state: VBOX_E_IPRT_ERROR
VBoxManage: error: Clone VM failed
VBoxManage: error: Code VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error (extended info not available)
VBoxManage: error: Context: "RTEXITCODE handleCloneVM(HandlerArg*)" at line 609 of file VBoxManageMisc.cpp

If the VM was shutdown using poweroff or acpipowerbutton, the clone works as expected.
Note: If the VM is located on a local ext4 filesystem, cloning of a savestate VM works as expected. The issue only happens if the VM is on an NFS share AND the vm was put into "savestate".

Some traces below: VMinfo:

[vbox@scvm001 ]$ vm showvminfo dtest
Name:                        dtest
Groups:                      /
Guest OS:                    Ubuntu (64-bit)
UUID:                        7ff40ac1-6ebb-4d3f-9726-148f9f700e41
Config file:                 /home/vbox/vms/dtest/dtest.vbox
Snapshot folder:             /home/vbox/vms/dtest/Snapshots
Log folder:                  /home/vbox/vms/dtest/Logs
Hardware UUID:               7ff40ac1-6ebb-4d3f-9726-148f9f700e41
Memory size                  2048MB
Page Fusion:                 disabled
VRAM size:                   16MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              2
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:               DVD
Boot Device 2:               HardDisk
Boot Device 3:               Not Assigned
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
RTC:                         UTC
Hardw. virt.ext:             enabled
Nested Paging:               enabled
Large Pages:                 disabled
VT-x VPID:                   enabled
VT-x unr. exec.:             enabled
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   KVM
State:                       powered off (since 2019-07-25T18:24:07.000000000)
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:            
Storage Controller Name (0):            SATA
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      1
Storage Controller Bootable (0):        on
Storage Controller Name (1):            IDE
Storage Controller Type (1):            PIIX4
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  2
Storage Controller Port Count (1):      2
Storage Controller Bootable (1):        on
SATA (0, 0): /home/vbox/vms/dtest/dtest.vmdk (UUID: 2ec6b9b3-1ea9-44e8-b2b2-d752ef938034)
IDE (1, 0): Empty
NIC 1:                       MAC: 080027BDA9CB, Attachment: Bridged Interface 'enp65s0', Cable connected: on, Trace: off (file: none), Type: 82545EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, 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
Audio playback:              disabled
Audio capture:               disabled
Clipboard Mode:              disabled
Drag and drop Mode:          disabled
VRDE:                        enabled (Address 0.0.0.0, Ports 3400, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection:           disabled
VRDE property               : TCP/Ports  = "3400"
VRDE property               : TCP/Address = <not set>
VRDE property               : VideoChannel/Enabled = <not set>
VRDE property               : VideoChannel/Quality = <not set>
VRDE property               : VideoChannel/DownscaleProtection = <not set>
VRDE property               : Client/DisableDisplay = <not set>
VRDE property               : Client/DisableInput = <not set>
VRDE property               : Client/DisableAudio = <not set>
VRDE property               : Client/DisableUSB = <not set>
VRDE property               : Client/DisableClipboard = <not set>
VRDE property               : Client/DisableUpstreamAudio = <not set>
VRDE property               : Client/DisableRDPDR = <not set>
VRDE property               : H3DRedirect/Enabled = <not set>
VRDE property               : Security/Method = <not set>
VRDE property               : Security/ServerCertificate = <not set>
VRDE property               : Security/ServerPrivateKey = <not set>
VRDE property               : Security/CACertificate = <not set>
VRDE property               : Audio/RateCorrectionMode = <not set>
VRDE property               : Audio/LogPath = <not set>
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:<none>

Capturing:                   not active
Capture audio:               not active
Capture screens:             0
Capture file:                /home/vbox/vms/dtest/dtest.webm
Capture dimensions:          1024x768
Capture rate:                512kbps
Capture FPS:                 25kbps
Capture options:             

Description:
dtest
Guest:

Configured memory balloon size: 0MB

Show where the disk is located

[vbox@scvm001 ]$ vm showvminfo dtest | grep SATA
Storage Controller Name (0):            SATA
SATA (0, 0): /home/vbox/vms/dtest/dtest.vmdk (UUID: 2ec6b9b3-1ea9-44e8-b2b2-d752ef938034)

Show the disk mount point

[vbox@scvm001 ]$ df -k /home/vbox/vms/dtest/dtest.vmdk
Filesystem      1K-blocks       Used  Available Use% Mounted on
scqn001:/vbox  3787705600 1550129152 2237035776  41% /mnt/scqn001

Show the mount type and mount options. This is an NFS mount.

[vbox@scvm001 ]$ grep /mnt/scqn001 /etc/mtab
scqn001:/vbox /mnt/scqn001 nfs4 rw,relatime,vers=4.2,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.10.31,local_lock=none,addr=192.168.10.29 0 0

Start the VM

[vbox@scvm001 ]$ vm startvm --type headless dtest
Waiting for VM "dtest" to power on...
VM "dtest" has been successfully started.

Show clone working if VM is set to "poweroff"

[vbox@scvm001 ]$ vboxmanage controlvm dtest poweroff
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
[vbox@scvm001 ]$ vboxmanage clonevm dtest --mode all --basefolder /mnt/lv001-r0/backup/vms --name dtest-20190803-114608-vboxbu
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "dtest-20190803-114608-vboxbu"
[vbox@scvm001 ]$ vboxmanage startvm dtest --type headless
Waiting for VM "dtest" to power on...
VM "dtest" has been successfully started.

Show clone working if VM is set to "acpipowerbutton"

[vbox@scvm001 ]$ vboxmanage controlvm dtest acpipowerbutton
[vbox@scvm001 ]$ vboxmanage clonevm dtest --mode all --basefolder /mnt/lv001-r0/backup/vms --name dtest-20190803-114015-vboxbu
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Machine has been successfully cloned as "dtest-20190803-114015-vboxbu"
[vbox@scvm001 ]$ vboxmanage startvm dtest --type headless
Waiting for VM "dtest" to power on...
VM "dtest" has been successfully started.

Show clone failing is VM is set to "savestate"

[vbox@scvm001 ]$ vboxmanage controlvm dtest savestate
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
[vbox@scvm001 ]$ vboxmanage clonevm dtest --mode all --basefolder /mnt/lv001-r0/backup/vms --name dtest-20190803-114359-vboxbu
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...
Progress state: VBOX_E_IPRT_ERROR
VBoxManage: error: Clone VM failed
VBoxManage: error: Code VBOX_E_IPRT_ERROR (0x80BB0005) - Runtime subsystem error (extended info not available)
VBoxManage: error: Context: "RTEXITCODE handleCloneVM(HandlerArg*)" at line 609 of file VBoxManageMisc.cpp
[vbox@scvm001 ]$ vboxmanage startvm dtest --type headless
Waiting for VM "dtest" to power on...
VM "dtest" has been successfully started.

Removing 6.0.10 and installing 5.2.X, everything works as expected.

Change History (1)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use