Discuss the 6.1.26 release
Posted: 29. Jul 2021, 01:27
End user forums for VirtualBox
https://forums.virtualbox.org/
Code: Select all
echo Mounting VirtualBox folders
mount -t vboxsf -o rw,uid=1000,gid=1000,fmode=666 cold /cold
Code: Select all
Aug 18 14:23:51 brandi systemd[1]: Reloading.
Aug 18 14:24:42 brandi systemd[1]: Starting rc.local...
Aug 18 14:24:42 brandi rc.local[2722]: Mounting VirtualBox folders
Aug 18 14:24:42 brandi rc.local[2722]: /sbin/mount.vboxsf: shared folder '/cold' was not found (check VM settings / spelling)
Aug 18 14:24:42 brandi systemd[1]: rc-local.service: Control process exited, code=exited status=1
Aug 18 14:24:42 brandi systemd[1]: rc-local.service: Failed with result 'exit-code'.
Aug 18 14:24:42 brandi systemd[1]: Failed to start rc.local.
Aug 18 14:24:42 brandi kernel: [ 885.064384] vboxsf: SHFL_FN_MAP_FOLDER failed for '/cold': share not found
Aug 18 14:24:42 brandi kernel: [ 885.064386] vbsf_read_super_aux err=-6
Code: Select all
# open vbox folders sometimes don't restore properly on reboot
# because @#$%ing systemd doesn't run it at the right time
# so set vboxsf to load asap so rc.local can hopefully finish before the DE starts
Code: Select all
00:00:04.787965 Changing the VM state from 'CREATING' to 'CREATED'
00:00:04.789273 SharedFolders host service: Adding host mapping
00:00:04.789287 Host path 'H:\', map name 'cold', writable, automount=false, automntpnt=, create_symlinks=false, missing=false
...
00:09:22.690287 VMMDev: Guest Additions capability report: (0x0 -> 0x0) seamless: no, hostWindowMapping: no, graphics: no
00:09:22.690398 GUI: UISession::sltAdditionsChange: GA state change event came, notifying listeners
00:09:22.690519 VMMDev: Guest Log: vboxguest: Successfully loaded version 6.1.26 r145957
00:09:22.690550 VMMDev: Guest Log: vboxguest: misc device minor 56, IRQ 20, I/O port d040, MMIO at 00000000f0400000 (size 0x400000)
00:09:22.692204 VMMDev: Guest Log: vboxsf: g_fHostFeatures=0x8000000f g_fSfFeatures=0x1 g_uSfLastFunction=29
00:09:22.692430 VMMDev: Guest Log: vboxsf: Successfully loaded version 6.1.26 r145957 on 4.15.0-153-generic SMP mod_unload modversions (LINUX_VERSION_CODE=0x40f12)
00:09:23.499378 VMMDev: Guest Log: vboxsf: SHFL_FN_MAP_FOLDER failed for '/cold': share not found
Code: Select all
Aug 18 17:36:10 brandi systemd[1]: cold.automount: Got automount request for /cold, triggered by 1783 (ls)
Aug 18 17:36:10 brandi systemd[1]: Mounting /cold...
Aug 18 17:36:10 brandi mount[1784]: /sbin/mount.vboxsf: shared folder '/cold' was not found (check VM settings / spelling)
Code: Select all
> findstr DisplayResize Logs\VBox.log
00:00:04.197772 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:04.231528 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c7f0000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:06.730977 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:07.071138 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c7f0000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:10.172534 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:14.742330 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c7f0000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
00:00:20.518400 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=800 h=600 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:24.548560 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000cd6f000 w=1920 h=1200 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
00:00:24.599650 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1920 h=1200 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:36.989211 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c7f0000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
00:00:38.216741 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=800 h=600 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:38.218396 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000cb9a000 w=1920 h=1200 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
Code: Select all
$ cat ~/vbox-displayinit-bug.sh
#!/bin/bash
xrandr --size 1920x1440
xrandr --size 1920x1200
Code: Select all
> findstr DisplayResize Logs\VBox.log
00:00:04.184609 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:04.272265 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c840000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:06.737237 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:07.057216 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c840000 w=640 h=480 bpp=32 cbLine=0xA00 flags=0x0 origin=0,0
00:00:10.245910 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=720 h=400 bpp=0 cbLine=0x0 flags=0x0 origin=0,0
00:00:13.914624 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c840000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
00:00:21.290842 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=800 h=600 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:25.328469 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000cdbf000 w=1920 h=1200 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
00:00:25.335991 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1920 h=1200 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:27.306075 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000cbea000 w=1920 h=1440 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
00:00:27.392491 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1920 h=1440 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:00:27.403215 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000cbea000 w=1920 h=1200 bpp=32 cbLine=0x1E00 flags=0x1 origin=0,0
00:16:32.173451 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=0000000000000000 w=1920 h=1200 bpp=0 cbLine=0x0 flags=0x2 origin=0,0
00:16:32.177872 Display::i_handleDisplayResize: uScreenId=0 pvVRAM=000000000c840000 w=800 h=600 bpp=32 cbLine=0xC80 flags=0x1 origin=0,0
While testing another user's issue regarding shared folders, I made a discovery that doesn't seem to fit to your description, but may be worth a try anyway. To me, it looked as if VirtualBox expected the "sf_" prefix on the mount point folder name, even if automatic mounting was disabled and no mount point was specified. See LG - Shared Folder mount point for my summary.arQon wrote:No amount of messing around with creating artificial dependencies etc seems able to resolve this: every attempt to mount the shared folders during boot, whether in rc.local, or defining them as noauto,x-systemd.automount in fstab, and so on, always results in the same (slightly wrong) error:
All display resolution changes before the first change to 1920x1200 are initiated by the (VirtualBox-provided) BIOS and the guest OS, so they are not a really chosen by VirtualBox. That leaves only the last two resolution changes (from 1920x1200 to 800x600 and back) as debatable IMHO.arQon wrote:VBox itself appears to be trying some utterly ridiculous sizes at startup in what I assume is an attempt to work around this bug itself:
Unfortunately, it's not that easy. If you want to read more about the details, scottgus1 and me did some deep investigation lately, to find out why the LastGuestSizeHint setting only works sometimes: See LastGuestSizeHint not written/updated (and the whole thread around it).arQon wrote:I'd suggest the easiest way to deal with it would be just remove all these random attempts and simply honor whatever LastGuestSizeHint is.
Sorry for the lag - I had to evacuate ahead of a fire and only got home recently.fth0 wrote:While testing another user's issue regarding shared folders, I made a discovery that doesn't seem to fit to your description, but may be worth a try anyway. To me, it looked as if VirtualBox expected the "sf_" prefix on the mount point folder name, even if automatic mounting was disabled and no mount point was specified. See LG - Shared Folder mount point for my summary.arQon wrote:No amount of messing around with creating artificial dependencies etc seems able to resolve this: every attempt to mount the shared folders during boot, whether in rc.local, or defining them as noauto,x-systemd.automount in fstab, and so on, always results in the same (slightly wrong) error:
In the VM configuration, add a dummy name as the mount point and keep auto mount disabled. Does your manual mount then work as expected? Alternatively, rename your manual mount point to include the "sf_" prefix in its folder name and in the mount command.
I meant "for the devs".fth0 wrote:Unfortunately, it's not that easy. If you want to read more about the details, scottgus1 and me did some deep investigation lately, to find out why the LastGuestSizeHint setting only works sometimes: See LastGuestSizeHint not written/updated (and the whole thread around it).arQon wrote:I'd suggest the easiest way to deal with it would be just remove all these random attempts and simply honor whatever LastGuestSizeHint is.
Of course. VirtualBox is always backwards compatible with existing VMs.ya wrote:Could you please advise if v6.1.26 is backward compatible with Snapshots created using older version like 6.0.8.