Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo as kvm guest
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
ro
Apprentice
Apprentice


Joined: 28 Mar 2003
Posts: 289

PostPosted: Wed Sep 14, 2016 10:32 am    Post subject: gentoo as kvm guest Reply with quote

Hi folks,
I am back ;-) I have spent quite some time getting gentoo to run inside a kvm guest (using ubuntu 16.04 with libvirt on the host).
However, I have the problem with the root filesystem, neither with or without initramfs I can boot. I tried to use the same config as the livecd, but with the drivers built-in, I used https://wiki.gentoo.org/wiki/QEMU/Linux_guest#Guest and also tried with genkernel --virtio --install all, I edited the grub.cfg to use "root=/dev/vda2 real_root=/dev/vda2" and also did this using the UUID.
I just don't get that stuff to run. However, when I use "sata disk" on the host instead of virtio and change the grub.cfg to "root=/dev/sda2" there is no problem.

Any advice?
_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Back to top
View user's profile Send private message
ro
Apprentice
Apprentice


Joined: 28 Mar 2003
Posts: 289

PostPosted: Wed Sep 14, 2016 9:26 pm    Post subject: Reply with quote

I solved the problem: just for reference, if someone has the same problems as I had: i switched to funtoo and installed the debian-sources. A quick "genkernel --makeopts="-j8" --menuconfig --install all" with enabling the drivers from the link above did the trick. Don't know why this did not work with original gentoo. However, now it works.

I will now continue with my work on performance testing between virtualbox, xen, kvm, vmware esxi and ms hyperv.
_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Thu Sep 15, 2016 6:13 pm    Post subject: Reply with quote

I think making /dev/vd* work takes those 3 compilled in:
CONFIG_VIRTIO_BLK
CONFIG_VIRTIO
CONFIG_VIRTIO_PCI

It's been quite some time though, so you may want to test it yourself :)
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