Thursday, September 6, 2012

Windows "Could not find this item" Error

I had an issue where something in the Windows file system got corrupt and I couldn't delete a certain folder.  The error I got was "Could not find this item".  I tried a lot of things like renaming, moving, etc., but nothing worked.  This finally did it:

1. Open up a command prompt and go to the parent directory of the problematic directory.
2. Run Dir /x and make a note of the 8.3 format version of the folder name.  It may be shortened, with a ~ in it.
3. Run Ren <8.3 folder name> <some arbitrary new name> to rename the folder.
4. Run Del <some arbitrary new name> or just delete the renamed folder in Windows Explorer.

Friday, August 31, 2012

Updating MAC Address After Cloning VirtualBox VM

If you want to clone a VM in VirtualBox, and want to have both VM's network-accessible, you have to select "Reinitialize the MAC address of all network cards" when creating the clone.  However, when starting your new clone, the network will try to use the old MAC address, so you'll have no connectivity.

[Note the below steps pertain to CentOS 6.2]

As root:
# vi /etc/udev/rules.d/70-persistent-net.rules
Get rid of the first line, which references eth0.  For the second line, change eth1 to eth0.  Make a note of the MAC address in this line (ATTR{address}). Save.

# vi /etc/sysconfig/network-scripts/ifcfg-Auto_eth0
Update HWADDR to be the new MAC address you made a note of in the previous step.  Save.

# service network restart

You should have connectivity now.

Taken from here http://zscribble.wordpress.com/2011/11/07/clone-a-virtual-machine-in-virtualbox/