How to run Ubuntu Server on Hyper-V
Please share with your friends...
  • 1
  • 1
  •  
  •  
  • 2
  • 1
  •  
  •  
  •  
  •  
    5
    Shares


⇐ BackPage⇑ First

Performance Optimisation

In Best Practices for running Linux on Hyper-V, Microsoft recommends the use of the NOOP scheduler for better disk I/O performance. To use this scheduler in Ubuntu, the elevator=noop instruction needs to be added to kernel parameters line in the grub configuration file.

Use the following instructions to enable the NOOP schedule for better disk I/O performance.

  1. Determine which I/O Scheduler is currently in use, using the following command:
    cat /sys/block/sda/queue/scheduler

    The command will show the Completely Fair Queuing scheduler is in use by default:

    noop deadline [cfq]
  2. Enable the NOOP scheduler, using the following commands:
    sudo sed -i '/GRUB_CMDLINE_LINUX_DEFAULT/ s/^\(.*\)\("\)/\1 elevator=noop\2/' /etc/default/grub
    sudo update-grub

    Provide your password when prompted.

  3. Reboot the virtual machine so this change to the scheduler can take affect, using the following command:
    sudo reboot

    The virtual machine will reboot.

  4. Once rebooted, login and determine which I/O Scheduler is in use, using the following command:
    cat /sys/block/sda/queue/scheduler

    The command will now indicate that the noop scheduler is in use:

    [noop] deadline cfq

Your virtual Ubuntu Server on Hyper-V is now ready to go!

⇐ BackPage⇑ First

How to run Ubuntu Server on Hyper-V

Please share with your friends...
  • 1
  • 1
  •  
  •  
  • 2
  • 1
  •  
  •  
  •  
  •  
    5
    Shares
Tagged on:                             

One thought on “How to run Ubuntu Server on Hyper-V

  • 05/03/2018 at 1:53 AM
    Permalink

    Tried something like this Ubuntu 18.04 and hyper-v only bad thing is no audio.

    Reply

Leave a Reply