Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
install gentoo to nvme via kvm
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
mjbjr
Guru
Guru


Joined: 02 Mar 2003
Posts: 301

PostPosted: Sun Nov 28, 2021 2:48 am    Post subject: install gentoo to nvme via kvm Reply with quote

I built a new machine that has two 1TB nvme ssds. I have a very loose/generic genkernel install on nvme0 and a manjaro installed on nvme1.

I'm looking to replace the manjaro install with a new very tight gentoo install, which may take some time. The thing is, I hate not having access to the original gentoo install for the whole time I'm installing the new gentoo.

I have no experience with kvm, but I was thinking that it may be possible to install kvm to a usb flashdrive and boot that, and have access to the original gentoo install on nvme0 in one domain while doing the new install in another domain.

Possible?
Other ideas?
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Nov 28, 2021 8:57 pm    Post subject: Reply with quote

Just boot into your "loose" --what does it mean? -- Gentoo and perform a normal Gentoo installation by creating partitions on nvme1. mounting them,chrooting into your new system etc etc.
If you dont want to start afresh you might wish to rsync your existing system into the new partitions and continue from there.
Plz let me know if rsync sounds interesting to you.
No need for KVM whatsoever.
_________________
:)
Back to top
View user's profile Send private message
mjbjr
Guru
Guru


Joined: 02 Mar 2003
Posts: 301

PostPosted: Mon Nov 29, 2021 1:03 am    Post subject: Reply with quote

alamahant wrote:
Just boot into your "loose" --what does it mean? -- Gentoo and perform a normal Gentoo installation by creating partitions on nvme1. mounting them,chrooting into your new system etc etc.
If you dont want to start afresh you might wish to rsync your existing system into the new partitions and continue from there.
Plz let me know if rsync sounds interesting to you.
No need for KVM whatsoever.


'loose' means I accepted lots of defaults and didn't get very specific for that build.

I'll be starting fresh.
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2960
Location: Edge of marsh USA

PostPosted: Mon Nov 29, 2021 4:21 am    Post subject: Reply with quote

In case you change your mind, a good source for the rsync settings for copying an OS from one location to another is: https://wiki.archlinux.org/index.php/rsync#Full_system_backup.

You can save a lot of electrons and time by starting with your current installation. Just work in the chroot until your ready for it to be your daily driver.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
axl
Veteran
Veteran


Joined: 11 Oct 2002
Posts: 1144
Location: Romania

PostPosted: Mon Nov 29, 2021 9:18 pm    Post subject: Reply with quote

lol. yes you can use kvm. though kvm means kernel virtual machine, and its only a kernel module for qemu. which is a console virtual machine software otherwise known as a hypervisor, and maybe virt-manager as a gui for the whole thing. it's a multi layer thing. yes.

though you dont need to use an usb stick. u can make a virtual image. a ram image. all sorts of block devices in linux to play with. try a zram device. in the _host_ system create a zram device, with equal number threads/cores. Prolly zstd. and then pass that to virt-manager/qemu/kvm as root device for your virtual machine. That's what I do, but I do have a lot of ram to play around :)
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