Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VM EFI or BIOS?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
larry_cheech
n00b
n00b


Joined: 07 Jul 2016
Posts: 2

PostPosted: Thu Jul 07, 2016 10:34 am    Post subject: VM EFI or BIOS? Reply with quote

Hay everyone

I am installing gentoo 4.4.6 on a VM and am not sure which route to go down in terms of installation relating to the bios. Would I install with the host machine EFI in mind or due to being installed on a VM choose between either an EFI or Bios configuration.

Obviously common sense tells me to adhere to the host machine specification as the VM shares the hardware but I would like to check with more knowledgeable folk.

Thanks
Back to top
View user's profile Send private message
pilla
Administrator
Administrator


Joined: 07 Aug 2002
Posts: 7693
Location: Pelotas, BR

PostPosted: Thu Jul 07, 2016 10:49 am    Post subject: Reply with quote

I always install my VMs as if it was over BIOS. Virtualized hardware, why should I make it harder? :)
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
larry_cheech
n00b
n00b


Joined: 07 Jul 2016
Posts: 2

PostPosted: Thu Jul 07, 2016 11:05 am    Post subject: Reply with quote

pilla wrote:
I always install my VMs as if it was over BIOS. Virtualized hardware, why should I make it harder? :)


lol thats what I was hoping to hear, not really in the mood for playing with efi, thanks :lol:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43194
Location: 56N 3W

PostPosted: Thu Jul 07, 2016 7:39 pm    Post subject: Reply with quote

larry_cheech,

The VM does not share the host hardware. If you look at lspci on the host and in the VM, you will see that they are quite different.
VMs often run most of their code on the host CPU but the virtualisation solution abstracts the hardware away.

This detail important to your install. You must configure your kernel to support the hardware the VM provides, not the host hardware.
Better is the virtio interfaceos but that needs both host support (to provide the host end) and guest support (to use them.
Using the VM hardware allows unmodified guests to be run.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
vaxbrat
l33t
l33t


Joined: 05 Oct 2005
Posts: 731
Location: DC Burbs

PostPosted: Fri Jul 08, 2016 2:51 am    Post subject: hypervisor bios emulation Reply with quote

It's probably mostly a wash since the hypervisor is faking out the guest for both. That being said, if you need to "harden" this aspect for some security reasons, I suspect that the good 'ole bios emulation will have more options for doing this. For example, there are guidelines that you can follow to set up and password, disable cd/dvd boot, etc for VMWare, and all of the stuff I'm aware of assumes that you are locking down a BIOS style setup.
Back to top
View user's profile Send private message
Gankfest
l33t
l33t


Joined: 01 Aug 2007
Posts: 946
Location: Miami Beach, FL

PostPosted: Fri Jul 08, 2016 5:20 am    Post subject: Reply with quote

Why bother installing on a VM in the first place?
_________________
Gankfest™ (>")> ~*

Everyone has to start somewhere, it depends on where you end up that counts! (>")>
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Fri Jul 08, 2016 4:42 pm    Post subject: Reply with quote

Any good VM will let you boot the kernel directly, no BIOS or EFI emulation needed.
Back to top
View user's profile Send private message
1clue
Advocate
Advocate


Joined: 05 Feb 2006
Posts: 2549

PostPosted: Fri Jul 08, 2016 4:58 pm    Post subject: Reply with quote

Gankfest wrote:
Why bother installing on a VM in the first place?


Are you really asking why use virtualization? Or are you asking the OP specifically for that instance?

There are a lot of really good, sound reasons to use it.

Almost every CPU and motherboard you can buy now has hardware support for virtualization, and every new generation of hardware has newer features to make it better. That alone should convince most people that it's here to stay.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Fri Jul 08, 2016 6:09 pm    Post subject: Reply with quote

it seems to be more like "why bother with installing" rather than "Why bother with virtualization".
As already said, a VM can use direct boot. You just need a disk image (can even be empty if you stuff everything in initramfs image) and kernel file. Qemu will not call bios if you follow this path. It will just load stuff into RAM and execute kernel.

larry_cheech, if you're using qemu by any chance, let me tell you this: it comes with old-fashioned bios by default. If you want EFI, you have to patch it. If you don't know in what way one is better than the other, just stick to thing you already have.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum