Ticket #10036 (closed enhancement: fixed)

Opened 6 years ago

Last modified 4 years ago

Add "deleting" a file or path via guestcontrol

Reported by: tech13 Owned by:
Priority: minor Component: guest control
Version: VirtualBox 4.1.6 Keywords:
Cc: Guest type: other
Host type: other

Description (last modified by frank) (diff)

Guest control currently allows coping files to/from a guest, and creating directories, but no direct command for deleting them.

Current work around is executing a command to delete. Comes up often with importing a debian system and the NIC changing MACs, but forgetting to configure extra interfaces for eth1+ since eth0 is tied to the original MAC. Still want a new mac when cloning a template install.

VBoxManage guestcontrol "My VM" exec /bin/rm
   --username root --password ____
   -- /etc/udev/rules.d/70-persistent-net.rules

Suggested syntax

  VBoxManage guestcontroll <vmname>|<uuid>
                           <full path to resource/file/directory>
                           --username <name> --password <password>
                           [--dryrun] [--recursive] [--verbose]

Basically the same syntax as copyfrom and copyto

Change History

comment:1 Changed 4 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed
  • Description modified (diff)

This command is available since VBox 4.3.0.

Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use