[Solved] How to remove/disable floppy disc installer from VBox?

This is for discussing general topics about how to use VirtualBox.
Post Reply
_nobody_
Posts: 25
Joined: 8. Oct 2016, 20:34

[Solved] How to remove/disable floppy disc installer from VBox?

Post by _nobody_ »

This thread is part of the following effort: viewtopic.php?f=7&t=87350
(effort is not trivial, believe me :mrgreen:).

I am trying to disconnect/disable Floppy Controller, and I am not able to do it. Not that this is crucial, but this is annoying... As I start graphical VBox application, I see it as first controller in System setup.

I have tried the following things:
## Remove floppy disc installer from VBox, as nobody needs outdated appliance
[1] VBoxManage modifyvm $vmname --floppy none
[2] VBoxManage storagectl $vmname --name "Floppy Drive" --remove
[3] VBoxManage -q storagectl $VM_UUID --name "Floppy Controller" --remove

And, in every of these three cases, every time the following message pops up:

Code: Select all

+ VBoxManage storagectl stretch --name 'Floppy Drive' --remove
VBoxManage: error: Could not find a storage controller named 'Floppy Drive'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "RemoveStorageController(Bstr(pszCtl).raw())" at line 1062 of file VBoxManageStorageController.cpp
The question is: How to remove/disable floppy disc installer from VBox, using CLI (Command Line Interface)?

Thank you,
_nobody_
Last edited by socratis on 10. Apr 2018, 19:36, edited 1 time in total.
Reason: Marked as [Solved].
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: How to remove/disable floppy disc installer from VBox?

Post by Martin »

You've got the name wrong.
Looking in the GUI or with VBoxManage showvminfo the name is shown as just 'Floppy' so this command works:
VBoxManage storagectl <machine name> --name 'Floppy' --remove
_nobody_
Posts: 25
Joined: 8. Oct 2016, 20:34

Re: How to remove/disable floppy disc installer from VBox?

Post by _nobody_ »

No. Nope.

Code: Select all

+ VBoxManage storagectl stretch --name Floppy --remove
VBoxManage: error: Could not find a storage controller named 'Floppy'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "RemoveStorageController(Bstr(pszCtl).raw())" at line 1062 of file VBoxManageStorageController.cpp
It does NOT work. Sorry. :shock:

(I have tried your advise again... You overlooked that I did attempt lot of approaches (including yours) apriori this thread genesis) :mrgreen:

_nobody_
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: How to remove/disable floppy disc installer from VBox?

Post by Martin »

Well, the command I posted works here on my machine. ;)
What is the output of 'VBoxManage showvminfo stretch' on your system?
_nobody_
Posts: 25
Joined: 8. Oct 2016, 20:34

Re: How to remove/disable floppy disc installer from VBox?

Post by _nobody_ »

Martin wrote:Well, the command I posted works here on my machine. ;)
You and your machine are NOT Centre of The World... Are they??? :roll:
Martin wrote:What is the output of 'VBoxManage showvminfo stretch' on your system?
Your wish is my demand! :mrgreen:

Code: Select all

[vuser@yocto_project debian-stretch]$ VBoxManage showvminfo stretch
Name:            stretch
Groups:          /
Guest OS:        Debian (64-bit)
UUID:            935a8030-e6fd-40bc-b90f-771c73c8f731
Config file:     /data/vms/vbox/vbox_guests/stretch/stretch.vbox
Snapshot folder: /data/vms/vbox/vbox_guests/stretch/Snapshots
Log folder:      /data/vms/vbox/vbox_guests/stretch/Logs
Hardware UUID:   935a8030-e6fd-40bc-b90f-771c73c8f731
Memory size:     4096MB
Page Fusion:     off
VRAM size:       32MB
CPU exec cap:    75%
HPET:            off
Chipset:         piix3
Firmware:        BIOS
Number of CPUs:  2
PAE:             on
Long Mode:       on
Triple Fault Reset: off
APIC:            on
X2APIC:          on
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:            on
IOAPIC:          on
BIOS APIC mode:  APIC
Time offset:     0ms
RTC:             UTC
Hardw. virt.ext: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
VT-x unr. exec.: on
Paravirt. Provider: Default
Effective Paravirt. Provider: KVM
State:           powered off (since 2018-04-07T16:35:15.000000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Tracing Enabled: off
Allow Tracing to Access VM: off
Tracing Configuration: 
Autostart Enabled: off
Autostart Delay: 0
Default Frontend: 
NIC 1:           MAC: 0800277C0FE9, 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 1 Rule(0):   name = guestssh, protocol = tcp, host ip = , host port = 2222, guest ip = , guest port = 22
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:           enabled (Driver: ALSA, Controller: AC97, Codec: STAC9700)
Audio playback:  disabled
Audio capture: disabled
Clipboard Mode:  Bidirectional
Drag and drop Mode: Bidirectional
VRDE:            enabled (Address 0.0.0.0, Ports 5041-5049, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE property: TCP/Ports  = "5041-5049"
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>
USB:             enabled
EHCI:            enabled
XHCI:            disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:  <none>

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

Guest:

Configured memory balloon size:      0 MB

[vuser@yocto_project debian-stretch]$
After all, this might help you to determine my woes... If? :idea:

_nobody_
Last edited by _nobody_ on 8. Apr 2018, 06:07, edited 1 time in total.
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: How to remove/disable floppy disc installer from VBox?

Post by Martin »

Your output doesn't show any storage controllers at all?

If I add a floppy controller my output contains the following "Storage" lines:

Code: Select all

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):      2
Storage Controller Bootable (0):        on
Storage Controller Name (1):            Floppy
Storage Controller Type (1):            I82078
Storage Controller Instance Number (1): 0
Storage Controller Max Port Count (1):  1
Storage Controller Port Count (1):      1
Storage Controller Bootable (1):        on
After the command above only these remain:

Code: Select all

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):      2
Storage Controller Bootable (0):        on
_nobody_
Posts: 25
Joined: 8. Oct 2016, 20:34

Re: How to remove/disable floppy disc installer from VBox?

Post by _nobody_ »

You were correct. None of the SATA controllers are there, since in my bash script I have the following on the very first line:

Code: Select all

#!/bin/bash -ex
The -e means that script unconditionally exits if there is an error, so the Floppy error deletion (delete unexisting Floppy) is prior SATA controllers setup.

Thus, if I disable the Floppy delete line, I have the following:

Code: Select all

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
SATA controller (0, 0): /data/vms/vbox/vbox_guests/stretch/stretch.vdi (UUID: 56d67258-f5a4-457e-9f66-0fe14431c577)
SATA controller (1, 0): /data/vms/vbox/iso_files/debian-live-9.4.0-amd64-gnome.iso (UUID: d4e2f979-88e5-437d-afd0-1f9ed494169e)
My problem is to understand, if I start Graphical VBox representation, why I see in Boot order Floppy controller?
Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
So, the first question is: how to remove from the default boot menu Floppy controller?
The second question is: how to add in the boot menu USB mass media/stick?


Thank you.
_nobody_
andyp73
Volunteer
Posts: 1631
Joined: 25. May 2010, 23:48
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation

Re: How to remove/disable floppy disc installer from VBox?

Post by andyp73 »

_nobody_ wrote:So, the first question is: how to remove from the default boot menu Floppy controller?
VBoxManage --help wrote:
[--boot<1-4> none|floppy|dvd|disk|net>]
Won't something as simple as setting boot1 to be disk and boot2...boot4 as none work?
_nobody_ wrote:The second question is: how to add in the boot menu USB mass media/stick?
You can't. The VirtualBox BIOS doesn't support booting from USB.

-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Martin
Volunteer
Posts: 2560
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: PUEL
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: How to remove/disable floppy disc installer from VBox?

Post by Martin »

You should also be able to just ignore the floppy entry in the boot order as it will be ignored when there is no floppy controller.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Windows, OSX
Location: U S of A

Re: How to remove/disable floppy disc installer from VBox?

Post by ChipMcK »

_nobody_ wrote:Boot menu mode: message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
Are you referring to this ?
Boot Order Menu
Boot Order Menu
bootOrder.png (11.81 KiB) Viewed 7531 times
_nobody_
Posts: 25
Joined: 8. Oct 2016, 20:34

Re: How to remove/disable floppy disc installer from VBox?

Post by _nobody_ »

YES, I am referring to this, and the command line solution to that is the following:

Code: Select all

## VBoxmanage modifyvm $vmname --boot<1-4> none|dvd|disk|none|none

VBoxManage modifyvm $vmname --boot1 dvd
VBoxManage modifyvm $vmname --boot2 disk
VBoxManage modifyvm $vmname --boot3 none
VBoxManage modifyvm $vmname --boot4 none
andyp73 wrote:You can't. The VirtualBox BIOS doesn't support booting from USB.
-Andy.
Now I need somehow to understand how to do preseeding configuration for the Debian Installer (d-i)... Since I would like to install Debian as from pressed file without human interaction! :mrgreen:

_nobody_
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: How to remove/disable floppy disc installer from VBox?

Post by socratis »

_nobody_
If you have a thread open, you don't open a 2nd thread simply to reference the 1st one. Please do not do it again, it seems duplicate...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
_nobody_
Posts: 25
Joined: 8. Oct 2016, 20:34

Re: How to remove/disable floppy disc installer from VBox?

Post by _nobody_ »

socratis wrote:_nobody_
If you have a thread open, you don't open a 2nd thread simply to reference the 1st one. Please do not do it again, it seems duplicate...
Not quite... Wrong reasoning, till the mine latest post!

Referring to my last post in this thread, you are perfectly correct! So I need to formulate every new request/question as separate item (in the very new thread), NOT related/connected to anything I have asked before... :idea:
_______

According what I wrote above, you should un-lock viewtopic.php?f=7&t=87350#p417777, and lock this thread, since this thread is, after all, SOLVED! :mrgreen:

(please, do so, mark this thread as solved, indeed) :!:

_nobody_
socratis
Site Moderator
Posts: 27330
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: [Solved] How to remove/disable floppy disc installer from VBox?

Post by socratis »

Done and done.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply