Resizing Oracle VirtuaBox VDI on a Mac

Resizing Oracle VirtuaBox VDI on a Mac

Today I needed to increase the size of the VDI file on my Oracle Virtualbox virtual machine.  I run it on a MacBook Pro so I can still use Windows 7, 10, and 2016 as needed for their utilities or testing.

Resizing has to be performed from the mac Terminal (command line).  The syntax is pretty simple, but still there is room for error.

With VirtualBox closed, go to the folder where the VDI is stored and run the command below substituting your filename and size requirements respectively.  NOTE:  there are two dashes before the resize command.

The following example would resize the file to 123,456K  (123.456MB)

VBoxManage modifyhd  “Windows 7 Pro.VDI” — resize 123456

However, I received an error.  “Cannot register the hard disk  because a hard disk  already exists”.  During the course of the error there was a long number in {brackets}.    The key is to copy that number and rerun the command substituting it for your filename as shown below:

VBoxManage modifyhd  {18fd3671-1b4f-49d1-a4bc-40e52bb78051} — resize 123456

Increasing the size could take place nearly instantly on a faster computer, but no error message is a great sign.  A directory listing won’t show an increase in file size as it has not been utilized yet.  Open up VirtualBox and you will be able to see the change under storage properties.

Hope this helps!

Google Drive Trash Cleaner 

Google Drive Trash Cleaner is a command line program that can do exactly what the title says.  It’s available as a Windows or Python executable from GitHub

In my example I downloaded it on a computer that doesn’t even have Google Drive Backup & Sync.  When I ran it I was prompted that I needed to run it with a “no authorization” command line.  Once I did that it gave me a link to Google with a very long url.  By visiting that link I was able to login to Google, confirm that I wanted Drive Trash Cleaner  to have access and receive an authorization number.

Once I provided the authorization number to the app, it accesses the drive perfectly.

Using the simple command of  cleaner -d 1 -a the utility connects and deletes any files/folders older than 1 day in the recycle bin.

By default it deletes items over 30 days old.  “-d” allows your specify the number of days.  “-a” will cause it to automatically delete without requiring authorization.

Full usage and syntax are shown below

usage: cleaner [-h] [-a] [-v] [-d #] [-q] [-t SECS] [-m] [–noprogress]
[–fullpath] [–logfile PATH] [–ptokenfile PATH]
[–credfile PATH]

optional arguments:

-h, –help show this help message and exit

-a, –auto Automatically delete older trashed files in Google Drive without prompting user for confirmation

-v, –view Only view which files are to be deleted without deleting them

-d #, –days # Number of days files can remain in Google Drive trash before being deleted. Default is 30

-q, –quiet Quiet mode. Only show file count.

-t SECS, –timeout SECS Specify timeout period in seconds. Default is 300

-m, –mydriveonly Only delete files in the ‘My Drive’ hierarchy, excluding those in ‘Computers’ etc.

–noprogress Don’t show scanning progress. Useful when directing output to files.

–fullpath Show full path to files. May be slow for a large number of files. NOTE: the path shown is the ‘current’ path, may be different from the original path (when trashing) if the original parent folder has moved.

–logfile PATH Path to log file. Default is no logs

 

Google

SonicWall TZ300w Wireless Firewall with Security Service

I had the pleasure of setting another of these morning.  However, there was an important difference.  SonicWall (Dell) has released new firmware that radically changes how this unit is configured.

For better or worse, it will take some getting used.  It’s always important to use the latest firmware so it is what it is.  They did this to all of their units a few years ago so I it’s to be expected.  Change for functionally I completely understand and support.  Change just so you can say you’ve done something different I think is a waste of time and money for all involved.  The previous generation redsign offered a “classic view”, but that wasn’t immediately apparent in this version.

TZ300w Rear View
TZ300w Rear View. 3 Antenna’s, and programmable gigabit ports!
TZ300w Front View
Sleek, sexy, beautiful simple design that shows everything you want (need) to know.

 

 

 

 

 

 

 

Accompanying the new user interface in the unit is a new MySonicWall.com.  After registering the unit through the old user interface and updating to the newest firmware the SonicWall Status page looks happy and everything is ok.  However, when I look at the MySonicWall page it shows the unit offline.  I’m positive it’s not.  When I look at the page, I see another unit that a different technican setup this week is also “offline”.  A quick check of our managed  server’s network status confirms that they both indeed online.  I guess this is just a bug in the new fancy interface.  All of our older units are showing as “online” as they should be.

Hardware specification wise, it’s hard to thing of something that this thing won’t happen for a small to mid-size business.   The published numbers show a firewall inspection rate of 750Mbps, support for 25 VLANS, 10 site-to-site VPNs, and up to 60 simultaneous VPN users.

It’s around $700, so this is not your typical SOHO (small office home office) unit–they have another model for that.

 

Netgear EX2700 N300 Wireless Range Extender

I have a client that works in an older historic brick building.  They are using a Ring Video Doorbell to monitor their front door activity.

The Problem
Buildings with thick walls limit wireless radio signal.   The Ring had poor signal quality and often lost connection with the Internet.

The Solution
A wireless range extender.  An extender should be placed about half-way between the source of the signal (WiFi router or access point) and the device(s) you are trying to get service to.  Once configured the devices connecting to the extender will operation alongside any of the other devices.

Pros & Cons
Pro:  It works.  Con:  Because of the work of the extender, it operates at about half the speed of the original wifi network you are connected to.

I’ve used a few different products in the past and they all seem to do what they are supposed to do.  This Netgear was no exception and it comes from a company that has a good history of backing its products.  You can buy online for around $50.