Linux - Virtualization and CloudThis forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How practical would this idea be? I want to install KVM/qemu on a headless installation on my PC. I then to virtualize a windows installation and a linux installation, using VGA passthrough to give access to my graphics card. I would share the main drive with the guests for common storage, and have some way of switching between the two Vms.
It's because I have a PC with a single graphics card, so i can't run 2 at once. I think it would make it faster to switch between Os's if I had kvm save the state of the Vm i'm switching from and load the state of the vm i'm switching to.
It's because I have a PC with a single graphics card, so i can't run 2 at once. I think it would make it faster to switch between Os's if I had kvm save the state of the Vm i'm switching from and load the state of the vm i'm switching to.
I am writing this on a Laptop with a single graphics interface running Windows 7. I can run Linux in a VirtualBox VM with GUI on the console, or GUI via a VNC client.
On another PC I am running Windows XP in a VirtualBox VM on a Windows 7 machine.
I don't quite understand what you mean be "I can't run two at once".
I mean that I have a desktop PC with ONE discrete PCI graphics card. I will need the card for graphics programming. I will also need the card for windows gaming. only one OS can use the card at the time
You misunderstand how this works. Under virtualization your guest OS does not get to control ANY of your machine resources directly, to include the monitor. It gets a virtual monitor that you normally map to a window that can be raised, lowered, resized, etc. You CAN map it to the full screen, but that is under YOUR control.
I can run three virtual guests at the same time (though it drags performance to a crawl) and have no problem seeing all of them at once, one at a time, or background the lot and work at the hardware level.
You misunderstand how this works. Under virtualization your guest OS does not get to control ANY of your machine resources directly, to include the monitor. It gets a virtual monitor that you normally map to a window that can be raised, lowered, resized, etc. You CAN map it to the full screen, but that is under YOUR control.
I can run three virtual guests at the same time (though it drags performance to a crawl) and have no problem seeing all of them at once, one at a time, or background the lot and work at the hardware level.
The OP wants to use PCI passthrough to assign the video card (which is a PCI card) to a VM. This should make it unavailable to the host, thus the host must be headless. An interesting question.
I wonder:
It's probably not possible to run two VMs using this card at the same time. Can you suspend one and run the other? Or does it need to be shut down entirely to release the VGA?
The headless system will require a console. Serial console perhaps? Or is there a way to run a virtual terminal without a graphics card? And share it with VNC? What will you do if something breaks and you need console access?
Would Xen be a better solution over KVM? Baremetal hypervisor, thinner than your headless installation. Or so I think; I have never tried it.
Last edited by berndbausch; 11-16-2015 at 05:56 AM.
It's probably not possible to run two VMs using this card at the same time. Can you suspend one and run the other? Or does it need to be shut down entirely to release the VGA?
I was planning on writing a script or program to suspend one VM and run the other. Good point about releasing the VGA. I don't know
Quote:
Originally Posted by berndbausch
The headless system will require a console. Serial console perhaps? Or is there a way to run a virtual terminal without a graphics card? And share it with VNC? What will you do if something breaks and you need console access?
SSH and remote X from my laptop
Quote:
Originally Posted by berndbausch
Would Xen be a better solution over KVM? Baremetal hypervisor, thinner than your headless installation. Or so I think; I have never tried it.
I don't know. I think people are generally having more success with KVM, but it's worth looking into.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.