I have read and tried all suggestions on the virtual box forum and ubuntu forum and i am no nearer being able to load Guest Additions to win xp install so that i can connect a usb printer. My Virtual box is not connected to the net and is the guest of Host Ubuntu 8.10

Asked by Nigel Hollick

I have read and tried all suggestions on the virtual box forum and ubuntu forum and i am no nearer being able to load Guest Additions to a win xp install so that i can connect a usb printer. My Virtual box is not connected to the net and is the Guest of Host Ubuntu 8.10

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Wyatt Smith
Solved:
Last query:
Last reply:
Revision history for this message
Best Wyatt Smith (wyatt-smith) said :
#1

For vbox usb support on winXP with an Intrepid host, please ensure you comply with these requirements.

1) Don´t use open source version.
http://www.virtualbox.org/wiki/Linux_Downloads
Virtualbox ose does not have usb support, so you must download and install virtualbox from their website. (If you need to uninstall the ose version, make sure you delete the ~/.virtualbox folder.)

2) All users of virtualbox must be a member of the group vboxusers. (System-> Administration-> Users & Groups). This group is created during install. Users must be assigned manually.

3) Make sure VirtualBox kernel module (vboxdrv) is updated. To recompile the kernel module from the terminal type ¨sudo /etc/init.d/vboxdrv setup¨

4) Make sure that the current user has permission to access the USB filesystem (usbfs). Permissions are given when the filesystem is mounted. Setup an inode to assign permissions by editing your /etc/fstab file. To edit from the terminal ¨gksudo gedit /etc/fstab¨. For example I added

#usbfs
none /proc/bus/usb usbfs devgid=46,devmode=664 0 0

Replace 46 with the group ID that matches your system (search /etc/group for "usb", ¨vboxusers, or similar). Make sure you assign user to whatever group you choose. Alternatively, if you don't mind the security hole, give all users access to USB by changing "664" to "666".

5) Install the virtualbox guest additions. With winXP running go to (Devices-> Install Guest Additions)

6) Enable and configure USB within VirtualBox (Machine-> Settings-> USB)

I am not sure what you have tried so far, but I hope that this helps. With a little patience, you should be able to get your usb properly configured and working. Let me know how you make out.

Revision history for this message
Nigel Hollick (nigelhollick) said :
#2

Thank for answering, much appreciated. I have just switched to UBUNTU from MS and am thrilled, but very much a newbie and struggling with the completely different approach. Trying to to read the ink levels on my Epson DX3850 so first tried Mtinkc but permissions denied in any case appears to be orphaned software, then tried through Wine but appears to be a driver conflict so now trying Virtual Box but not able to install downloaded version.

Background info from

SYSTEM MONITOR

MOOSE

UBUNTU
 Release 8.10 (intrepid)
 Kernal Linux 2.6.27-11-generic
 Gnome 2.24.1

HARDWARE
 Memory 1.2gb
 Processor AMD Duron(tm) (I think its a 1.6 running at 1800mhhz)

SYSTEM STATUS
 Available disk space 197.6 GiB

I have tried the following:-

UNINSTALLED OSE version

THEN

nigel@Moose:~$ ~/.virtualbox
bash: /home/nigel/.virtualbox: No such file or directory
nigel@Moose:~$

DOWNLOADED

wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -

nigel@Moose:~$ apt-get install virtualbox-2.1
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
nigel@Moose:~$

SOFTWARE SOURCES tab AUTHENTICATION
Key is listed as Sun Microsystems etc.

THEN DOWNLOADED

nigel@Moose:~$ wget -q http://download.virtualbox.org/virtualbox/debian intrepid non-free
nigel@Moose:~$ apt-get install virtualbox-2.1
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
nigel@Moose:~$ install virtualbox-2.1
install: missing destination file operand after `virtualbox-2.1'
Try `install --help' for more information.
nigel@Moose:~$ install --help
Usage: install [OPTION]... [-T] SOURCE DEST
  or: install [OPTION]... SOURCE... DIRECTORY
  or: install [OPTION]... -t DIRECTORY SOURCE...
  or: install [OPTION]... -d DIRECTORY...
In the first three forms, copy SOURCE to DEST or multiple SOURCE(s) to
the existing DIRECTORY, while setting permission modes and owner/group.
In the 4th form, create all components of the given DIRECTORY(ies).

Mandatory arguments to long options are mandatory for short options too.
      --backup[=CONTROL] make a backup of each existing destination file
  -b like --backup but does not accept an argument
  -c (ignored)
  -d, --directory treat all arguments as directory names; create all
                        components of the specified directories
  -D create all leading components of DEST except the last,
                        then copy SOURCE to DEST
  -g, --group=GROUP set group ownership, instead of process' current group
  -m, --mode=MODE set permission mode (as in chmod), instead of rwxr-xr-x
  -o, --owner=OWNER set ownership (super-user only)
  -p, --preserve-timestamps apply access/modification times of SOURCE files
                        to corresponding destination files
  -s, --strip strip symbol tables
  -S, --suffix=SUFFIX override the usual backup suffix
  -t, --target-directory=DIRECTORY copy all SOURCE arguments into DIRECTORY
  -T, --no-target-directory treat DEST as a normal file
  -v, --verbose print the name of each directory as it is created
      --preserve-context preserve SELinux security context
  -Z, --context=CONTEXT set SELinux security context of files and directories
      --help display this help and exit
      --version output version information and exit

The backup suffix is `~', unless set with --suffix or SIMPLE_BACKUP_SUFFIX.
The version control method may be selected via the --backup option or through
the VERSION_CONTROL environment variable. Here are the values:

  none, off never make backups (even if --backup is given)
  numbered, t make numbered backups
  existing, nil numbered if numbered backups exist, simple otherwise
  simple, never always make simple backups

Report bugs to <email address hidden>.
nigel@Moose:~$

THEN TRIED

nigel@Moose:~$ sudo /etc/init.d/vboxdrv setup¨
[sudo] password for nigel:
 * Usage: /etc/init.d/vboxdrv {start|stop|restart|status}

FINALLY

nigel@Moose:~$ wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
OK
nigel@Moose:~$ apt-get install virtualbox-2.1
E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
nigel@Moose:~$

STUCK

Regards

Nigel

Revision history for this message
Nigel Hollick (nigelhollick) said :
#3

Hi Wyatt

All is well. I was being too complicated. I tried to follow the written instructions on the Virtual Box website but eventually noticed the i386 tab next to the intrepid install line. This appears to have done the install completely including the kernal rebuild. Anyway I have seen my ink levels for the first time in weeks and it isn't good. Thank you very much for your help.

Regards

Nigel

PS. I think Ubuntu is wonderful and am loath to do a windows install. Probably won't be necessary in a year or two. And apologise for the wordy response above.

Revision history for this message
Nigel Hollick (nigelhollick) said :
#4

Thanks Wyatt Smith, that solved my question.