VirtualBox

Opened 12 years ago

Last modified 10 years ago

#10036 closed enhancement

Add "deleting" a file or path via guestcontrol — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use