Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
possible to put existing OS into virtual machine container ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Mgiese
Veteran
Veteran


Joined: 23 Mar 2005
Posts: 1607
Location: indiana

PostPosted: Fri Mar 23, 2018 10:34 am    Post subject: possible to put existing OS into virtual machine container ? Reply with quote

hi there,

i have a harddisc with linux install (5 partitions). is it possible to put them afterwards into a KVM container ???

thanks a lot
_________________
I do not have a Superman complex, for I am God not Superman :D

Ryzen9 7950x ; Geforce1650 ; kernel 6.5 ; XFCE
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Mar 23, 2018 11:57 am    Post subject: Reply with quote

Mgiese,

Simple answer, yes.

More complex answer, you will need to rebuild your kernel to support the hardware offered to the guest by KVM or if your KVM host supports virtio and you want to use that, the guest kernel needs to use the virtio drivers.

If you go the virtio route, Your HDD will become /dev/vda, so you need to fix /etc/fstab and the kernel command line.

You can do it in two steps. Migrate to the KVM guest hardware first them move to virtio once that works.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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