This is for discussing general topics about how to use VirtualBox.
Stickybit
Posts: 89 Joined: 23. Mar 2011, 09:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows
Post
by Stickybit » 8. Jul 2026, 11:48
Hi all
I'm seeing a issue when trying to configure a nat-network for a VM. This is what I do:
Code: Select all
"\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyvm {54204fa7-b413-4359-8a7e-4093c1761251} --nic1 natnetwork --nat-network1 SpecialNat
.. and the settings are changed as expected:
Nat1.png (75.94 KiB) Viewed 21268 times
Nat2.png (42.88 KiB) Viewed 21268 times
.. but not IP is offered in the VM.
If I instead manually configure the "SpecialNat" network on the VM with the GUI, then it works just fine. What would be the problem here?
(I will do some more testing a provide logs)
Br. Stickybit
Stickybit
Posts: 89 Joined: 23. Mar 2011, 09:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows
Post
by Stickybit » 8. Jul 2026, 12:20
Apparently it works setting this with vboxmanage for a running Windows 11 VM - but I still cannot seem to make it work for a newly create devices with no OS. Manually configuring the specified natnetwork with the VM GUI settings - then it works just fine. It's most strange.
Br. Stickybit
Attachments
Logs.zip
(92.6 KiB) Downloaded 289 times
Stickybit
Posts: 89 Joined: 23. Mar 2011, 09:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows
Post
by Stickybit » 8. Jul 2026, 12:39
Those are the commands used for the VM creation:
Code: Select all
2026-07-08 12:34:32 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe createvm --name "GruNat4" --basefolder "C:\Users\41231\VirtualBox VMs\8E1AC0E9-7EAF-4578-8FDC-EB2A209EC853" --ostype "Windows10_64" --default --register --platform-architecture="x86""
2026-07-08 12:34:32 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --cpus 2 --memory "2048" --clipboard-mode bidirectional --draganddrop bidirectional --pae on --accelerate3d off --vram 128 --nic1 natnetwork --nat-network1 "SpecialNat" --bridgeadapter1 "Qualcomm FastConnect 6900 Wi-Fi 6E Dual Band Simultaneous (DBS) WiFiCx Network Adapter""
2026-07-08 12:34:32 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --tpm-type="2.0""
2026-07-08 12:34:32 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe modifyvm "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --firmware "efi64""
2026-07-08 12:34:32 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe createmedium --filename "C:\Users\41231\VirtualBox VMs\8E1AC0E9-7EAF-4578-8FDC-EB2A209EC853\GruNat4\GruNat4.vdi" --size 102400 --format "VDI""
2026-07-08 12:34:33 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storageattach "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --storagectl "SATA" --device 0 --port 0 --type "hdd" --medium "C:\Users\41231\VirtualBox VMs\8E1AC0E9-7EAF-4578-8FDC-EB2A209EC853\GruNat4\GruNat4.vdi""
2026-07-08 12:34:33 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe storageattach "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --storagectl "SATA" --device 0 --port 1 --type dvddrive --medium "emptydrive""
2026-07-08 12:34:33 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe setextradata "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" "VBoxInternal/Devices/efi/0/Config/DmiSystemSerial" "Vbox97161297""
2026-07-08 12:34:33 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe sharedfolder add "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --name="Temp" --hostpath="C:\Temp" --automount --auto-mount-point="T:""
2026-07-08 12:34:33 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe sharedfolder add "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --name="Documents" --hostpath="C:\Users\41231\OneDrive - Company\Documents" --automount --auto-mount-point="O:""
2026-07-08 12:34:33 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe snapshot "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" take "Clean" --description "Clean snapshot of VM.""
2026-07-08 12:34:34 - EMEA\41231 - Executing command "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe showvminfo "cc1896f3-80dc-4c2f-86e0-3dd79fde0e06" --machinereadable"
All works just fine .. and been running for years with
.. but now I need to switch to the specified nat network.
Stickybit
Posts: 89 Joined: 23. Mar 2011, 09:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows
Post
by Stickybit » 8. Jul 2026, 15:33
Found the problem .. the name of the network is .. case sensitive.