Comments on: CentOS Linux on Hyper-V – The Complete Guide https://www.altaro.com/hyper-v/centos-linux-hyper-v/ Hyper-V guides, how-tos, tips, and expert advice for system admins and IT professionals Wed, 31 Mar 2021 06:24:16 +0000 hourly 1 By: Bryan https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3774 Thu, 12 Nov 2020 04:04:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3774 In reply to Leuxah.

FYI, if anyone get the error grub2-editenv: error: invalid parameter “. after running this command the siply delete then readd the quotation marks.

]]>
By: Leuxah https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3737 Fri, 28 Aug 2020 15:44:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3737 I have VM on Hyper-V with CentOS 8 and kernel 4.18.0. About the disk I/O scheduler at this kernel version the options are different. I’m using the option “none” (no reordering of I/O operations) in place of “noop” (inserts I/O requests into a FIFO queue). I fount this information here https://help.marklogic.com/Knowledgebase/Article/View/notes-on-io-schedulers. To set the disk I/O scheduler at boot time you need to set the “elevator=none” (or “elevator=noop”) as a kernel parameter. On CentOS 8 do this as follows and reboot:
grub2-editenv – set “$(grub2-editenv – list | grep kernelopts) elevator=none”
grub2-editenv – list | grep kernelopts

]]>
By: Cph Media https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3608 Fri, 03 Apr 2020 10:41:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3608 Unlike VMware, you cannot drag and drop files between the Windows host and Linux guest in Hyper-V. As you have configured the SSH server, you can transfer files from your Ubuntu VM to your Hyper-V host and do the inverse by using an SFTP (Secure File Transfer Protocol) client such as WinSCP. WinSCP uses SSH for secure connection and can also use SCP (Secure Copy Protocol) for file transferring.

]]>
By: Shailen https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3488 Wed, 19 Feb 2020 12:47:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3488 Any clues how to get shared Clipboard between the host and the guest to work?
Windows 10 build 1809, Hyper-V
CentOS 8.1 1911

With VMWare, all these (including networking) just worked out of the box, but now, this Device/Credential guard is making is extremely painful to use VMware. I tried all sorts of tricks to disable this DG/CG feature but without any success.

]]>
By: Eric Siron https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3469 Tue, 04 Feb 2020 16:29:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3469 In reply to raja krishna kethepalli.

I’m not versed enough in the CentOS operating system to tell you much. Look for an OS-specific support forum. Maybe Server Fault can help.

]]>
By: raja krishna kethepalli https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3468 Tue, 04 Feb 2020 11:03:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3468 Hi Eric, Thanks for the wonderful information.

I have an issue struggling from the last 3 days. I am able to connect to internet in browser in CentOS VM but when I try to ping google.com from terminal it is saying “Name or Service not known”. could you please let me know where the settings need to be checked or where it need to be modified.

PS: for internet access in browser I have given an URL in network proxy settings( Automatic Proxy Configuration URL) in browser.

]]>
By: Eric Siron https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3428 Tue, 17 Dec 2019 14:23:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3428 In reply to Jürgen.

You genuinely believe that someone at Microsoft put in the obscene level of effort to sabotage this exact script, and their boss and team members just let that happen? Seriously? First, why??? Second, do you have any idea just how much work that would take?
Just because something doesn’t work in one environment does not mean the environment is to blame. It is trivial to write scripts that fail like that. This script makes poor decisions. It performs an environment-dependent check of some kind and does not properly sanitize the result.

]]>
By: Jürgen https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3426 Tue, 17 Dec 2019 07:48:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3426 In reply to Eric Siron.

I believe in 2 but 1 seems more likely.

The script / CentOs doesn´t like Hyper-V on Windows 2016 / 2019 (Xeon 5-2600 or Silver 4208).
But it does work under Windows 10 in Hyper-V or VMware 12.x or 15.x (i5 6200U / i7 7600).

]]>
By: Eric Siron https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3423 Mon, 16 Dec 2019 12:39:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3423 In reply to Jürgen.

Doesn’t change the diagnosis.
Two possibilities:

  1. The script makes an environment check. Either the developers did not give it a default and it returns nothing on Hyper-V, or it returns something that they did not anticipate and don’t check for.
  2. Someone at Microsoft built in a routine that watches for this script to execute, in its translated binary form, and then sabotages its memory. That routine made it through code review.

What’s your guess?

]]>
By: Jürgen https://www.altaro.com/hyper-v/centos-linux-hyper-v/#comment-3422 Mon, 16 Dec 2019 09:22:00 +0000 http://www.altaro.com/hyper-v/?p=11947#comment-3422 In reply to Eric Siron.

Hi Eric, thanks.

One more thing.
I have the product in an Virtual Box OVA running.

If i install centos 7 as a hyper-v Guest and boot to the core, i am able to rsync the comple VirtualBox OVA machine to centos and after a reboot of the clone (now a hyper-v guest) the script works fine.

]]>