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.
For more information, see About Volumes > Volumes Attachment and Device Names.
-
Connect to your VM and open a terminal.
-
Download the OUTSCALE package you need in the directory of your choice using one of the following methods:
-
For CentOS VMs, with the following url: https://oos.eu-west-2.outscale.com/omi/packages/osc-udev-rules-20160519-1.x86_64.rpm
-
For Ubuntu VMs, with the following url: https://oos.eu-west-2.outscale.com/omi/packages/osc-udev-rules-20190314_amd64.deb
> wget URL
-
-
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
-
-
If the
Wrong volumes names in your /etc/fstab
warning message appears, contact our Support team or modify your /etc/fstab file:-
Open your /etc/fstab file in a text editor.
-
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 Samplecat /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.
-
-
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
intoxvd
, your modifications are correct. -
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.