Ticket #10036 (closed enhancement: fixed)
Add "deleting" a file or path via guestcontrol
|Reported by:||tech13||Owned by:|
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
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