With a little side of applesauce...

Tuesday, January 30, 2007

Virtual PC 2004 - Installing Virtual Machine Additions for Linux on Ubuntu Dapper guest

Here is a rough guide for installing the Virtual Machine Additions for Linux on a Ubuntu Dapper guest.

1. Download the VMAdditions for Linux as instructed here

2. Run the MSI, which will place the iso image in:

C:\Program Files\Microsoft Virtual Server\Virtual Machine Additions

3. With the guest image off, set the CD to point to the VMAdditionsForLinux.iso image.

4. Boot the guest image and login to GNOME.

5. Start gnome-terminal

6. mkdir ~/vmadditionsforlinux

7. cd ~/vmadditionsforlinux

8. cp /cdrom/* .

9. sudo apt-get install alien

10. for rpm in $(ls *.rpm) ; do sudo alien $rpm ; done

11. sudo ./vmadd-install.run all

12. for i in $(ls *.deb); do sudo dpkg - i –force-overwrite $i ; done

13. sudo reboot

I’m not sure that we really gain anything from the vmadditions for linux on Ubuntu Dapper… For instance, I can do full-screen now, but the desktop remains the default size. I haven’t explored any of the other benefits yet…

Also, it has introduced a new bug. Previously, I was able to simply suspend my laptop, then come back and access the virtual machine in the same state as when I suspended. Now, I need to reset my virtual machine to fix whatever foo causes it to freeze when windows is recovering from the suspended state. (Possibly fixed by vpc2004qfe889677_msdn.msp, (which comes bundled in the virtualpc2004 download)? (Hot Fix for Microsoft Knowledge Base article number(s) 889677))

NOTES:

It appears that there is a lot of overlap in the rpm packages that MS has created for vmadditionsforlinux. I needed to add the –force-overwrite option to dpkg, so that it would install all of the vmadd*.deb packages:


speeves@vpcubuntu:~/vmadditionsforlinux$ for i in $(ls *.deb); do sudo dpkg - i $i ; done
Password:
Selecting previously deselected package vmadd-full.
(Reading database ... 73612 files and directories currently installed.)
Unpacking vmadd-full (from vmadd-full_0.0.1-2_i386.deb) ...
Setting up vmadd-full (0.0.1-2) ...
Selecting previously deselected package vmadd-heartbeat.
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-heartbeat (from vmadd-heartbeat_0.0.1-2_i386.deb) ...
dpkg: error processing vmadd-heartbeat_0.0.1-2_i386.deb (--install):
trying to overwrite `/usr/sbin/vmadd-heartbeatd', which is also in package vmad d-full
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
vmadd-heartbeat_0.0.1-2_i386.deb
Selecting previously deselected package vmadd-kernel-module.
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-kernel-module (from vmadd-kernel-module_0.0.1-2_i386.deb) ...
dpkg: error processing vmadd-kernel-module_0.0.1-2_i386.deb (--install):
trying to overwrite `/lib/modules/vmadd/module/Makefile', which is also in pack age vmadd-full
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
vmadd-kernel-module_0.0.1-2_i386.deb
Selecting previously deselected package vmadd-scsi.
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-scsi (from vmadd-scsi_0.0.1-2_i386.deb) ...
dpkg: error processing vmadd-scsi_0.0.1-2_i386.deb (--install):
trying to overwrite `/lib/modules/vmadd/scsi/VPCSCSIMiniportDriver.o_shipped', which is also in package vmadd-full
Errors were encountered while processing:
vmadd-scsi_0.0.1-2_i386.deb
Selecting previously deselected package vmadd-shutdown.
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-shutdown (from vmadd-shutdown_0.0.1-2_i386.deb) ...
dpkg: error processing vmadd-shutdown_0.0.1-2_i386.deb (--install):
trying to overwrite `/usr/sbin/vmadd-shutdownd', which is also in package vmadd -full
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
vmadd-shutdown_0.0.1-2_i386.deb
Selecting previously deselected package vmadd-timesync.
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-timesync (from vmadd-timesync_0.0.1-2_i386.deb) ...
dpkg: error processing vmadd-timesync_0.0.1-2_i386.deb (--install):
trying to overwrite `/usr/sbin/vmadd-timesyncd', which is also in package vmadd -full
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
vmadd-timesync_0.0.1-2_i386.deb
Selecting previously deselected package vmadd-x11.
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-x11 (from vmadd-x11_0.0.1-2_i386.deb) ...
dpkg: error processing vmadd-x11_0.0.1-2_i386.deb (--install):
trying to overwrite `/usr/X11R6/lib/modules/input/mouse_drv.o', which is also i n package vmadd-full
Errors were encountered while processing:
vmadd-x11_0.0.1-2_i386.deb
speeves@vpcubuntu:~/vmadditionsforlinux$ for i in $(ls *.deb); do sudo dpkg - i --force-overwrite $i ; done
(Reading database ... 73651 files and directories currently installed.)
Preparing to replace vmadd-full 0.0.1-2 (using vmadd-full_0.0.1-2_i386.deb) ...
Unpacking replacement vmadd-full ...
Setting up vmadd-full (0.0.1-2) ...
(Reading database ... 73651 files and directories currently installed.)
Unpacking vmadd-heartbeat (from vmadd-heartbeat_0.0.1-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/sbin/vmadd-heartbeatd', which is also in package vmad d-full
Setting up vmadd-heartbeat (0.0.1-2) ...
(Reading database ... 73654 files and directories currently installed.)
Unpacking vmadd-kernel-module (from vmadd-kernel-module_0.0.1-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/Makefile', which is also in pack age vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/vpc-utils.c', which is also in p ackage vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/vpc-utils.h', which is also in p ackage vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/vpc-user.h', which is also in pa ckage vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/vpc-dll.h', which is also in pac kage vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/vpc-mod.c', which is also in pac kage vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/module/vpc-mod.h', which is also in pac kage vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/sbin/vmadd-prepare-module', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/sbin/vmadd.dll', which is also in package vmadd-full
Setting up vmadd-kernel-module (0.0.1-2) ...
(Reading database ... 73657 files and directories currently installed.)
Unpacking vmadd-scsi (from vmadd-scsi_0.0.1-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/VPCSCSIMiniportDriver.o_shipped', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/miniport.h', which is also in pack age vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/Makefile', which is also in packag e vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/VPCSCSIMiniportDriverUtilities.o_s hipped', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/vpc-scsi.c', which is also in pack age vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/vpc-scsi.h', which is also in pack age vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/vpc-scsi-wrap.c', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/vpc-scsi-wrap.h', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/intf_template.h', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/VPCProducerConsumerArray.o_shipped ', which is also in package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/lib/modules/vmadd/scsi/WindowsTypes.h', which is also in package vmadd-full
Setting up vmadd-scsi (0.0.1-2) ...
(Reading database ... 73660 files and directories currently installed.)
Unpacking vmadd-shutdown (from vmadd-shutdown_0.0.1-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/sbin/vmadd-shutdownd', which is also in package vmadd -full
Setting up vmadd-shutdown (0.0.1-2) ...
(Reading database ... 73663 files and directories currently installed.)
Unpacking vmadd-timesync (from vmadd-timesync_0.0.1-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/sbin/vmadd-timesyncd', which is also in package vmadd -full
Setting up vmadd-timesync (0.0.1-2) ...
(Reading database ... 73666 files and directories currently installed.)
Unpacking vmadd-x11 (from vmadd-x11_0.0.1-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/X11R6/lib/modules/input/mouse_drv.o', which is also i n package vmadd-full
dpkg - warning, overriding problem because --force enabled:
trying to overwrite `/usr/X11R6/lib/modules/drivers/s3_drv.o', which is also in package vmadd-full
Setting up vmadd-x11 (0.0.1-2) ...
speeves@spdellubuntu:~/vmadditionsforlinux$ ls

2 comments:

Andrew Timson said...

The overlap comes from the fact that the install image includes RPMs for the individual components, as well as one all-inclusive RPM. Naturally, the last includes all the elements in the individual RPMs.

Anonymous said...

Dear Author speeves.erikin.com !
What words... super, remarkable idea