Skip to main content
Replaced restart with start
Source Link
Zaheer
  • 536
  • 6
  • 6

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

Shutdown the VM and open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

RestartStart VM. Open Ubuntu Display settings and choose scale 200.

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

Shutdown the VM and open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

Restart VM. Open Ubuntu Display settings and choose scale 200.

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

Shutdown the VM and open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

Start VM. Open Ubuntu Display settings and choose scale 200.

Omits a compulsary step; the VM must be shutdown to effect chanegs with `set-vmvideo`.
Source Link

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

OpenShutdown the VM and open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

Restart VM. Open Ubuntu Display settings and choose scale 200.

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

Open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

Restart VM. Open Ubuntu Display settings and choose scale 200.

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

Shutdown the VM and open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

Restart VM. Open Ubuntu Display settings and choose scale 200.

Source Link
Zaheer
  • 536
  • 6
  • 6

Below worked for me. Tested on Ubuntu 20.04 | Host Windows 11.

Open grub file.

sudo nano /etc/default/grub

Change value of GRUB_CMDLINE_LINUX_DEFAULT with below. Replace 3840x2160 with your highest resolution.

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash video=hyperv_fb:3840x2160"

Run below commands

sudo update-grub

sudo apt install linux-image-extra-virtual

Open PowerShell as administrator on host machine and run below. Replace "ubuntu" with your vm name. Change "3840" and "2160" with your highest resolution.

set-vmvideo -vmname ubuntu -horizontalresolution:3840  -verticalresolution:2160 -resolutiontype single

This command may not be required. It is something I read on Kali blog.

set-vm "Ubuntu" -EnhancedSessionTransportType HVSocket

Restart VM. Open Ubuntu Display settings and choose scale 200.