Wednesday, March 25, 2009

Mounting CD and DVD in SuSE in Hyper-V with the Linux Integration Components Installed

SuSE Enterprise 10 SP2 works great on Hyper V, the performance (especially once you get the VMBus drivers installed) is near-iron, and the integration between SuSE and AD is great. It's the perfect setup for running a few Linux servers in a mostly Windows shop.

The only problem that I had getting the CD/DVD drive to mount. Once you get the VMBus drivers working properly, when you boot with the XEN kernal the CD Rom drive will show up as a Hard Disk to Linux. This will prevent SUSE from automatically mounting the CD/DVD drive when you swap out the discs (or upon boot). The solution is to mount the CD/DVD rom manually; to do that, do the following:
  1. Open up Terminal
  2. Make a directory as a mount point for the drive ( "mkdir /media/cdrom0" )
  3. Mount the drive by typing in: "mount -t iso9660 /dev/hdc /media/cdrom0"
This is assuming that the DVD drive for the Virtual Host is on IDE Controller 1 location 0. If it is on another channel, you'll have to change the /dev/hdc line of the mount command to the correct value:
  • IDE Controller 0, Location 0: /dev/hda
  • IDE Controller 0, Location 1: /dev/hdb
  • IDE Controller 1, Location 0: /dev/hdc
  • IDE Controller 1, Location 1: /dev/hdc

Update: Found one more issue. When using YaST2 to configure the network interface, make sure that you use the "Traditional Method with ifup" and not "User Controlled with Network Manager". Otherwise it will continually fail to setup the network adapter without providing any relevant error messages.

No comments: