Using udev rules with OL / RH7 on VMware Fusion

Preparing to use udev rules on VMware Fusion

Before you can use udev rules with your new VMware Hard Drives you need to update the Virtual Machines .vmx file and set the following.

disk.EnableUUID = “TRUE”

Without this setting the ‘/usr/lib/udev/scsci_id’ command will no values.

As with all configuration files it’s best practice to create a backup before editing, however this is especially true for the VMware Fusion .vmx file as any mistake can result in a Virtual Machine which will no longer boot.

Shutdown your Virtual Machine before you attempt any edits of the .vmx file.

Creating the udev rules

Once your edit is complete you can reboot your VM and confirm is working ok with ‘usr/lib/udev/scsci_id -g -u -d /dev/’ e.g.

[root@ol72 ~]# /usr/lib/udev/scsi_id –verbose -g -u -d /dev/sdc
[root@ol72 ~]# /usr/lib/udev/scsi_id –verbose -g -u -d /dev/sdd
[root@ol72 ~]# /usr/lib/udev/scsi_id –verbose -g -u -d /dev/sde
[root@ol72 ~]# /usr/lib/udev/scsi_id -g -u -d /dev/sde

Now you know the Disks unique ID’s you can add them to a new udev rule. e.g.


KERNEL==”sd?1″, SUBSYSTEM==”block”, PROGRAM==”/usr/lib/udev/scsi_id -g -u -d /dev/$parent”, RESULT==”36000c298d0c4d6c7ace0c7b990069f48″, SYMLINK+=”dg_prod_oradata1″, OWNER=”grid”, GROUP=”asmadmin”, MODE=”0660″

KERNEL==”sd?1″, SUBSYSTEM==”block”, PROGRAM==”/usr/lib/udev/scsi_id -g -u -d /dev/$parent”, RESULT==”36000c290045c8d9e8660057e191ec523″, SYMLINK+=”dg_prod_oraredo1″, OWNER=”grid”, GROUP=”asmadmin”, MODE=”0660″

KERNEL==”sd?1″, SUBSYSTEM==”block”, PROGRAM==”/usr/lib/udev/scsi_id -g -u -d /dev/$parent”, RESULT==”36000c29b6dc77c32663c5b8354fffd37″, SYMLINK+=”dg_prod_orafra1″, OWNER=”grid”, GROUP=”asmadmin”, MODE=”0660″

Unlike RedHat 5 & 6 there is no need to restart the udev service on RedHat 7

Testing the udev rules

You can now test the udev rules using udevadm test e.g.

udevadm test /block/sdb/sdb1

And check the results with ls -l /dev/

[root@ol72 dev]# ls -l /dev/sd*
brw-rw—- 1 root disk 8, 32 Oct 18 11:29 sdc
brw-rw—- 1 grid asmadmin 8, 33 Oct 18 11:49 sdc1
brw-rw—- 1 root disk 8, 48 Oct 18 11:29 sdd
brw-rw—- 1 grid asmadmin 8, 49 Oct 18 11:55 sdd1
brw-rw—- 1 root disk 8, 64 Oct 18 11:29 sde
brw-rw—- 1 grid asmadmin 8, 65 Oct 18 11:55 sde1

[root@ol72 dev]# ls -l /dev/dg*
lrwxrwxrwx 1 root root 4 Oct 18 11:49 /dev/dg_prod_oradata1 -> sdc1
lrwxrwxrwx 1 root root 4 Oct 18 11:55 /dev/dg_prod_orafra1 -> sde1
lrwxrwxrwx 1 root root 4 Oct 18 11:55 /dev/dg_prod_oraredo1 -> sdd1


Oracle Linux 7.2 install on VMware Fusion 8


I have seen several great Linux install guides for Oracle’s free VirtualBox  but have never come across a version specifically for VMware Fusion, so here goes lets’s put that right.

What is VMware Fusion ?

VMware Fusion is a sofware hypervisor for Mac OS X , it’s VMware’s Mac equivalent of VMware Workstation for Windows and Linux.

Please note these are licenceable products unlike VirtualBox, so you will need to either start a free trial of buy a licence before you use VMware Fusion.

VMware Fusion provides support for big VM’s and some useful integration between your Mac and Windows VM’s. If your a PC user you may have also come across VMware Workstation Player , this is free for personal use and is avaible for  both Windows and Linux,  Workstation Player is able to run VM’s created with either VMware Workstation Pro or VMware Fusion Pro and is a great way of sharing restricted or expiring VM’s, unfortantely there is no Mac OS X version as of yet.

Parallels Desktop is another widley used virtualisation product on the Mac, Parallels Desktop Pro now includes direct support for Docker, Vagrant, Chef and Jenkins so that may provide a source of intresting future Blog.

VMware Fusion

Ok, lets kick this off by starting VMware Fusion.


Navigate to ‘File’ and select ‘New’

Click ‘Continue’ to use a previoulsy downloaded image.

Install Method

Select the required ISO, if you have previoulsy used an image Fusion will show it otherwise you will need to navigate to it.

Create new VM

Click ‘Customize Settings’ to allow you to change the defaults.


Give your Virtual Machine a file name ‘Save As’


You can now change the initial VM configuration e.g. add additional Network Interfaces, Hard Disks and chnage memory and processor sizes.

Select ‘Processors & Memory’


In this example I have increased the Memory to 4GB from 1GB and changed the Processor core count. Once complet click ‘Show All’ to return to the main configuration screen.


Select ‘Hard Disk (SCSI’), here you can add additional devices these will be presented as /dev/sdb, /dev/sdc, /dev/sdd etc… Here I have upped the /dev/sda from 20GB to 40GB.

hard disk

Use ‘Show All’ to return and click the large play button to launch the Oracle Linux installer.

Oracle Linux 7.2 Installer

Click hit ‘I’ to start the install ant the Oracle Linux 7.2 splash screen.

Install Splash

Select language, here I have selected ‘English (United Kingdom)’ this automatically updates the keyboard, timezone and other regional settings.


Installation Summary

The ‘Installation Summary’ guide you through the install requiring the completion of items maked with an exclamation mark before allowing you to proceed.


Installation Destination

Ok, lets confirm our ‘Installation Destination’

Here we can see out VMware 40GB Virtual Disk we allocated earlier, click ‘Done’ to let the installer use the whole disk.

Install dest

Software Selection

As you can see below my keyboard has changed to ‘gb’, now lets select our packages.

Base Enviroment

  • Server with GUI

Add-Ons for Selected Enviroment

  • Compatibility Libraries
  • Development Tools

Software Selection


Create User

We now need to set the ‘Root’ password create out first user account, select ‘Make this user administrator’

Create User

Set Root password

Once the installer is complete click ‘Reboot’ when prompted and accept the licence.

You will now be able to logon using the user account just created, accept language and input sources. You will be offered the chance to configure Cloud storage, click next and your ready to start configuring and using your new Linux 7.2 environment.

Next steps should include, configure network, firewall, yum updates, additional packages and user accounts etc..