I need a configuration to run 2 operating systems simultaneously on a single computer.

pilgrimage

Member
Oct 17, 2021
65
2
13
44
Hello friends, I want to run 2 operating systems at the same time and take images from 2 monitors. I did this for 1 operating system with gpu passthrough. However, when I run the 2nd operating system, my 1st and 2nd vm machine shuts down and gives an error. ? Can anyone share a step-by-step configuration on this? My point is not remote desktop or VNC. I really want to manage ubuntu and windows 10 operating system from my 2 monitors at the same time.


What I want to do is exactly the process between 17:37 and 18:10 in this video.
https://www.youtube.com/watch?v=lztH7BUxIoM&t=7s

the comment of this video explains what she actually wants to do;

It's very interesting to see Type-1 hypervisor having to be able to display the VM screens on very same "server" machine. Some kind of "thin interface" to select which VM to boot and display. I've managed to run Mac OS on a VM like what was also mentioned in this video, through arch KVM but the "boot experience" is not great. It feels awkward to have a Linux running before you run the Mac VM, although I think there's a way to just script it out to auto-boot, maybe that's what LTT did afterwards. however a better experience would be to have a selection of OS/OS'es you want to boot; although I have no idea on how to fork the display into three monitors. And yes, I totally agree with this video, the future is Virtualization; even Android relies on virtualization.

How could our friend who prepared this video configure it as autoboot when he presses the power button? Also what tweak did he do to transfer it to 3 monitors without any problems? I need help with this configuration.



I need help on this.

thankyou for support.
 
Last edited:
I did this for 1 operating system with gpu passthrough. However, when I run the 2nd operating system, my 1st and 2nd vm machine shuts down and gives an error
are you passing the same GPU to multiple systems? that won't work.

if not then you can post your VM configuration files here (qm config VMID) and the error message you receive.

although I think there's a way to just script it out to auto-boot, maybe that's what LTT did afterwards.
for autoboot of VM you can just set onboot parameter for it: qm set VMID --onboot 1
 
3 video cards are installed in the computer via PCI express. 1.Nvidia NVS 310 2.GTX 1660 ti 3. AMD R7 450

3. I could not assign any vm to the video card. It shows Proxmox Hypervisor screen as Primary GPU in Bios. I can reach this server proxmox web interface from another laptop with ip.


Do I assign the onboot parameter to the Vm configuration file?


Windows VM

agent: 1
bios: ovmf
boot: order=hostpci0;virtio0
cores: 4
cpu: host,hidden=1,flags=+pcid
efidisk0: local-btrfs:101/vm-101-disk-1.raw,size=128K
hostpci0: 0000:28:00,pcie=1,x-vga=1
machine: pc-q35-6.0
memory: 8096
name: Windows10
net1: virtio=02:5E:0A:E9:94:80,bridge=vmbr1,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-pci
smbios1: uuid=ec491fcb-d20e-43a3-ba77-a602c5b33a0d
sockets: 2
virtio0: local-btrfs:101/vm-101-disk-0.raw,cache=writethrough,size=100G
vmgenid: 3ed554ad-d406-494e-84d6-ab65d8a4c139

Ubuntu VM

agent: 1
bios: ovmf
boot: order=hostpci0;scsi0;ide2
cores: 4
cpu: host,hidden=1,flags=+pcid
efidisk0: local-btrfs:100/vm-100-disk-1.raw,size=128K
hostpci0: 0000:03:00,pcie=1
ide2: none,media=cdrom
machine: q35
memory: 8049
name: Ubuntu
net0: virtio=22:1A:14:89:E7:62,bridge=vmbr1,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: local-btrfs:100/vm-100-disk-0.raw,cache=writethrough,size=32G
scsihw: virtio-scsi-pci
smbios1: uuid=3357020d-53d6-4d69-b7ea-055ea6c2fc0a
sockets: 1
usb0: host=413c:2113,usb3=1
usb1: host=046d:c045,usb3=1
vga: qxl
vmgenid: f966cd28-37f6-4463-85d1-cc4817096dbd

my grub


GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"
GRUB_CMDLINE_LINUX=""

Apart from these questions, there is another problem I have experienced below, how can I solve it?

Also, the server itself can be reached with a static ip at the moment. I have a second network card and it goes to the internet via Vm, but the server itself cannot connect to the internet. When I activate the DHCP of the second network card, I cannot reach the proxmox web interface this time. How can I make Proxmox hypervisor both go to the internet and enter the web interface with a static ip?


thankyou for support @oguz

Oguz Hocam Desteğiniz icin Teşekkürler.Türk bir arkadaştan destek almak iyi oldu :) Baskasınada faydalı olur dusuncesiyle türkçe sormuyorum Oguz Hocam.Hayırlı günler.
 
Last edited:
Can you show us your IOMMU groups using this command: for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done?
Can you tell us which motherboard (brand and model) you are using? How much memory does your system have?
 
I was unable to run this command.

for d in /sys/kernel/iommu_groups/*/devices/*; do n=${d#*/iommu_groups/*}; n=${n%%/*}; printf 'IOMMU group %s ' "$n"; lspci -nns "${d##*/}"; done

I hope the following command gave you the information you wanted.
root@pve:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/17/devices/0000:0f:00.1
/sys/kernel/iommu_groups/17/devices/0000:0f:00.0
/sys/kernel/iommu_groups/7/devices/0000:00:14.1
/sys/kernel/iommu_groups/25/devices/0000:3e:00.0
/sys/kernel/iommu_groups/25/devices/0000:3e:00.1
/sys/kernel/iommu_groups/15/devices/0000:00:1f.2
/sys/kernel/iommu_groups/15/devices/0000:00:1f.0
/sys/kernel/iommu_groups/5/devices/0000:00:11.1
/sys/kernel/iommu_groups/5/devices/0000:00:11.0
/sys/kernel/iommu_groups/23/devices/0000:3f:05.3
/sys/kernel/iommu_groups/23/devices/0000:3f:05.1
/sys/kernel/iommu_groups/23/devices/0000:3f:05.2
/sys/kernel/iommu_groups/23/devices/0000:3f:05.0
/sys/kernel/iommu_groups/13/devices/0000:00:1d.1
/sys/kernel/iommu_groups/13/devices/0000:00:1d.2
/sys/kernel/iommu_groups/13/devices/0000:00:1d.0
/sys/kernel/iommu_groups/13/devices/0000:00:1d.7
/sys/kernel/iommu_groups/3/devices/0000:00:07.0
/sys/kernel/iommu_groups/21/devices/0000:3f:03.4
/sys/kernel/iommu_groups/21/devices/0000:3f:03.2
/sys/kernel/iommu_groups/21/devices/0000:3f:03.0
/sys/kernel/iommu_groups/21/devices/0000:3f:03.1
/sys/kernel/iommu_groups/11/devices/0000:00:1b.0
/sys/kernel/iommu_groups/1/devices/0000:00:01.0
/sys/kernel/iommu_groups/28/devices/0000:3e:04.2
/sys/kernel/iommu_groups/28/devices/0000:3e:04.0
/sys/kernel/iommu_groups/28/devices/0000:3e:04.3
/sys/kernel/iommu_groups/28/devices/0000:3e:04.1
/sys/kernel/iommu_groups/18/devices/0000:28:00.3
/sys/kernel/iommu_groups/18/devices/0000:28:00.1
/sys/kernel/iommu_groups/18/devices/0000:28:00.2
/sys/kernel/iommu_groups/18/devices/0000:28:00.0
/sys/kernel/iommu_groups/8/devices/0000:00:14.2
/sys/kernel/iommu_groups/26/devices/0000:3e:02.5
/sys/kernel/iommu_groups/26/devices/0000:3e:02.3
/sys/kernel/iommu_groups/26/devices/0000:3e:02.1
/sys/kernel/iommu_groups/26/devices/0000:3e:02.4
/sys/kernel/iommu_groups/26/devices/0000:3e:02.2
/sys/kernel/iommu_groups/26/devices/0000:3e:02.0
/sys/kernel/iommu_groups/16/devices/0000:03:00.0
/sys/kernel/iommu_groups/16/devices/0000:03:00.1
/sys/kernel/iommu_groups/6/devices/0000:00:14.0
/sys/kernel/iommu_groups/24/devices/0000:3f:06.1
/sys/kernel/iommu_groups/24/devices/0000:3f:06.2
/sys/kernel/iommu_groups/24/devices/0000:3f:06.0
/sys/kernel/iommu_groups/24/devices/0000:3f:06.3
/sys/kernel/iommu_groups/14/devices/0000:00:1e.0
/sys/kernel/iommu_groups/14/devices/0000:37:05.0
/sys/kernel/iommu_groups/4/devices/0000:00:10.0
/sys/kernel/iommu_groups/4/devices/0000:00:10.1
/sys/kernel/iommu_groups/22/devices/0000:3f:04.2
/sys/kernel/iommu_groups/22/devices/0000:3f:04.0
/sys/kernel/iommu_groups/22/devices/0000:3f:04.3
/sys/kernel/iommu_groups/22/devices/0000:3f:04.1
/sys/kernel/iommu_groups/12/devices/0000:00:1c.0
/sys/kernel/iommu_groups/12/devices/0000:00:1c.5
/sys/kernel/iommu_groups/12/devices/0000:1c:00.0
/sys/kernel/iommu_groups/12/devices/0000:01:00.0
/sys/kernel/iommu_groups/30/devices/0000:3e:06.3
/sys/kernel/iommu_groups/30/devices/0000:3e:06.1
/sys/kernel/iommu_groups/30/devices/0000:3e:06.2
/sys/kernel/iommu_groups/30/devices/0000:3e:06.0
/sys/kernel/iommu_groups/2/devices/0000:00:03.0
/sys/kernel/iommu_groups/20/devices/0000:3f:02.5
/sys/kernel/iommu_groups/20/devices/0000:3f:02.3
/sys/kernel/iommu_groups/20/devices/0000:3f:02.1
/sys/kernel/iommu_groups/20/devices/0000:3f:02.4
/sys/kernel/iommu_groups/20/devices/0000:3f:02.2
/sys/kernel/iommu_groups/20/devices/0000:3f:02.0
/sys/kernel/iommu_groups/10/devices/0000:00:1a.1
/sys/kernel/iommu_groups/10/devices/0000:00:1a.2
/sys/kernel/iommu_groups/10/devices/0000:00:1a.0
/sys/kernel/iommu_groups/10/devices/0000:00:1a.7
/sys/kernel/iommu_groups/29/devices/0000:3e:05.0
/sys/kernel/iommu_groups/29/devices/0000:3e:05.3
/sys/kernel/iommu_groups/29/devices/0000:3e:05.1
/sys/kernel/iommu_groups/29/devices/0000:3e:05.2
/sys/kernel/iommu_groups/0/devices/0000:00:00.0
/sys/kernel/iommu_groups/19/devices/0000:3f:00.0
/sys/kernel/iommu_groups/19/devices/0000:3f:00.1
/sys/kernel/iommu_groups/9/devices/0000:00:15.0
/sys/kernel/iommu_groups/27/devices/0000:3e:03.1
/sys/kernel/iommu_groups/27/devices/0000:3e:03.4
/sys/kernel/iommu_groups/27/devices/0000:3e:03.2
/sys/kernel/iommu_groups/27/devices/0000:3e:03.0


The features of my server are:

CPU(s) 16 x Intel(R) Xeon(R) CPU E5620 @ 2.40GHz (2 Sockets)
16 GB HP Workstation Z600
SSD DISK 1 TB
Kernel Version Linux 5.11.22-4-pve #1 SMP PVE 5.11.22-8 (Fri, 27 Aug 2021 11:51:34 +0200)
PVE Manager Version pve-manager/7.0-11/63d82f4e
Repository Status Proxmox VE updates Non production-ready repository enabled!
16 GB HP Workstation Z600
 
Looks like your system has only 16GB of memory and you give two VMs each almost 8GB, which leaves much too little memory for the Proxmox host. You are probably getting OOM (out of memory) errors in the System Syslog (journalctl -b 0).
 
you are absolutely correct.

I downloaded a Vm 4gb and was able to take images from both screens.

thank you so much
for your help


I have two more questions. Thank you very much for your help.

1.Now I'm throwing 1 usb mouse and usb keyboard to vms connected to this computer. At the same time, the image comes back to vm monitors, but 1 usb keyboard and usb mouse only work or get locked. How to define single mouse and single keyboard between 2 or 3 vms.

2.Also, the server itself can be reached with a static ip at the moment. I have a second network card and it goes to the internet via Vm, but the server itself cannot connect to the internet. When I activate the DHCP of the second network card, I cannot reach the proxmox web interface this time. How can I make Proxmox hypervisor both go to the internet and enter the web interface with a static ip?