VirtualBox

Opened 12 years ago

Closed 10 years ago

#10036 closed enhancement (fixed)

Add "deleting" a file or path via guestcontrol

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

Description (last modified by Frank Mehnert)

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>
                           rm|remove|del|delete
                           <full path to resource/file/directory>
                           --username <name> --password <password>
                           [--dryrun] [--recursive] [--verbose]

Basically the same syntax as copyfrom and copyto

Change History (1)

comment:1 by Frank Mehnert, 10 years ago

Description: modified (diff)
Resolution: fixed
Status: newclosed

This command is available since VBox 4.3.0.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use