Installing the Packages for Linux Device Names

If you want to migrate a Linux virtual machine (VM) from VMWare, VirtualBox or Amazon Web Services (AWS) to an OUTSCALE Linux VM, you have to install a package to configure udev rules. For more information about the migration procedure, see Migrating a Linux VM to the OUTSCALE Cloud.

  1. Connect to your VM and open a terminal.

  2. Download the OUTSCALE package you need in the directory of your choice using one of the following methods:

  3. Install the package on the VM using one of the following methods:

    • For CentOS VMs:

      > rpm -i osc-udev-rules-20160519-1.x86_64.rpm
    • For Ubuntu VMs:

      > dpkg -i osc-udev-rules-20190314_amd64.deb
  4. If the Wrong volumes names in your /etc/fstab warning message appears, contact our Support team or modify your /etc/fstab file:

    1. Open your /etc/fstab file in a text editor.

    2. Modify the device names for attached volumes that are in the /dev/sdX format to the /dev/xvdX format, X being the same letter in both formats.

      /etc/fstab File Sample
      cat /etc/fstab
      proc        /proc       proc        defaults,nosuid,nodev,noexec,relatime       0 0
      sysfs       /sys        sysfs       defaults,nosuid,nodev,noexec,relatime       0 0
      tmpfs       /dev/shm        tmpfs       defaults,nosuid,nodev               0 0
      devpts      /dev/pts        devpts      defaults,nosuid,noexec,relatime,mode=620        0 0
      /dev/vda1       /           ext4        defaults,noatime,nodiratime             0 0
      none        /selinux        selinuxfs       noauto,defaults                 0 0
      /dev/xvdd   /mnt/d      ext3        defaults                    0 0
      /dev/xvdh   /mnt/h      ext3        defaults                    0 0

      You must use the /dev/vda1 device name for the root file system (root device).

      You must use a /dev/xvdX device name format for any other volume.

  5. To check that no device names in the /dev/sdX format remain in the /etc/fstab file of your VM, execute in any directory the osc-check_vdsd script contained in the package and installed in /usr/local/bin:

    > osc-check_vdsd

    If the output is empty and you only changed all sd into xvd, your modifications are correct.

  6. Reboot your VM.
    The package is installed and you can see the links between /dev/xvdX and /dev/sdY device names in the /dev directory.

Related Page

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.