In the past I have had problems getting the Atmel AVRISP mkII to work with Virtualbox. This can be really irritating if, like me, you want to write code in Linux but are forced to run Windows for Skype and various closed-source development tools (ugh).
Today, it seems to be working. I can talk to the AVRISP with avrdude and program devices. Cool!
I’m not sure what I changed. I’m using Virtualbox 3.2.10 r66523, running on a Windows 7 64-bit host. The VM/client OS is Ubuntu 10.10. I created a USB filter for the AVRISP in the Virtual Machine settings; it doesn’t seem to work without it. That might be what I was missing before.
To avoid having to run avrdude with root priveledges, I created the file /etc/udev/rules.d/10-avrisp2.rules with the contents:
SUBSYSTEM=="usb", SYSFS{idVendor}=="03eb", SYSFS{idProduct}=="2104", GROUP="adm", MODE="0666"
Pretty simple.
Oh, I should add that there is no guarantee other combinations of host/client OS will work. If you’re getting different results, leave a comment.