Configure client auto-resize from command line?

Discussions related to using VirtualBox on Linux hosts.
Post Reply
SimonR
Posts: 35
Joined: 12. May 2014, 04:55

Configure client auto-resize from command line?

Post by SimonR »

I'm trying to configure a VM to perform the client auto-resize behavior. All the docs I have found describe how to achieve this from the GUI, but this is a headless server, so that's not workable for me.

I have other VMs on this server which were created before the machine lost its head, and those resize automatically, just as I want, with the Remmina client that I'm using. However, the most recent VM does not (indeed, the list of supported display modes shown by windows is strangely unpredictable and incomplete too)

I ran vboxmanage showvminfo on one of those older machines and diffed it with the output of the same command on the newer machine, and I don't see any entry that seems to relate to this behavior (but perhaps it has a non-obvious name, or perhaps I just went cross-eyed looking at the output and missed it!)

Can anyone tell me how to configure this feature using only the CLI?

Here's the showvminfo output for the machine that doesn't resize:

Name: AccountsII
Groups: /
Guest OS: Windows 10 (64-bit)
UUID: 65430250-ea55-49c5-93c0-2451ee79bfed
Config file: /home/simon/VirtualBox VMs/AccountsII/AccountsII.vbox
Snapshot folder: /home/simon/VirtualBox VMs/AccountsII/Snapshots
Log folder: /home/simon/VirtualBox VMs/AccountsII/Logs
Hardware UUID: 65430250-ea55-49c5-93c0-2451ee79bfed
Memory size: 8192MB
Page Fusion: disabled
VRAM size: 128MB
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: disabled
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: HardDisk
Boot Device 4: Not Assigned
ACPI: enabled
IOAPIC: enabled
BIOS APIC mode: APIC
Time offset: 0ms
RTC: local time
Hardware Virtualization: enabled
Nested Paging: enabled
Large Pages: disabled
VT-x VPID: enabled
VT-x Unrestricted Exec.: enabled
Paravirt. Provider: Default
Effective Paravirt. Prov.: HyperV
State: powered off (since 2023-05-25T02:53:00.000000000)
Graphics Controller: VBoxSVGA
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 Controller Name (0): SATA Controller
Storage Controller Type (0): IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 30
Storage Controller Port Count (0): 30
Storage Controller Bootable (0): on
Storage Controller Name (1): IDE Controller
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 Controller (0, 0): /home/simon/VirtualBox VMs/AccountsII/AccountsIIDisk.vdi (UUID: 311234d2-57f5-48f9-9a96-f53ec963e8c3)
IDE Controller (1, 0): /usr/share/virtualbox/VBoxGuestAdditions.iso (UUID: 4166c341-f63d-447b-8ae6-b6ae73f3455c)
NIC 1: MAC: 0800274B7478, 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: PulseAudio, Controller: AC97, Codec: STAC9700)
Audio playback: disabled
Audio capture: disabled
Clipboard Mode: disabled
Drag and drop Mode: disabled
VRDE: enabled (Address 0.0.0.0, Ports 3589, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE property : TCP/Ports = "3589"
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: enabled
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/simon/VirtualBox VMs/AccountsII/AccountsII.webm
Capture dimensions: 1024x768
Capture rate: 512kbps
Capture FPS: 25kbps
Capture options:

Guest:

Configured memory balloon size: 0MB
Post Reply