LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This 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


Reply
  Search this Thread
Old 11-15-2015, 03:39 PM   #1
deepthought42
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Rep: Reputation: Disabled
setting up a virtualized dual-boot


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.
 
Old 11-15-2015, 03:57 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
You already have virtualization, so dual boot ...

Why?

What purpose would this serve that would not be served by shared storage and two discrete virtual machines?
 
Old 11-15-2015, 04:02 PM   #3
deepthought42
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-15-2015, 06:27 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by deepthought42 View Post
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".
 
Old 11-15-2015, 06:43 PM   #5
deepthought42
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
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
 
Old 11-16-2015, 05:10 AM   #6
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
are you solving a non-problem?

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.
 
Old 11-16-2015, 05:54 AM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by wpeckham View Post
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.
 
Old 11-16-2015, 11:53 AM   #8
deepthought42
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post

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 View Post
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 View Post
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.
 
Old 11-18-2015, 06:50 PM   #9
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by deepthought42 View Post
SSH and remote X from my laptop
sure but what if networking can't be started on the server?
 
Old 11-19-2015, 07:31 AM   #10
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765Reputation: 2765
server networking for ssh and vnc (and rdp, natch).

Then there would be value in extensive testing before going headless!

Also, in locking down the networking and NOT using (or even allowing installation of) NetworkManager.
 
Old 11-21-2015, 02:57 PM   #11
deepthought42
LQ Newbie
 
Registered: Apr 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
I guess my best bet then is get a cheap graphics card to use with the host or dual-boot. I'll try that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Dual-Boot into Virtualized Configuration SaintDanBert Linux - Server 3 06-29-2011 01:06 PM
Problem setting dual boot Javier Santoyo Linux - Newbie 3 09-08-2009 12:21 AM
boot into virtualized partition leedude General 0 12-08-2007 11:26 PM
Setting up a dual boot with FreeBSD 6.1 hitest Slackware 12 12-09-2006 08:15 PM
Setting up grub for dual boot wjn Linux - Newbie 3 07-26-2004 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration