Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
KVM on Raspberry Pi
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 591

PostPosted: Sat Jun 09, 2018 3:55 am    Post subject: KVM on Raspberry Pi Reply with quote

wondering how to do the following

centos as host os on rpi3
gentoo as guest on rpi3

virt-manager comes with centos
but how to get gentoo run inside virt-manager as a qcow2 image?

any installer or steps to do so?
:oops: :roll:

Split from Bootable 64-bit RPi3 Gentoo image (OpenRC/Xfce/VC4) UPDATED as its its own specialised question.
-- Neddyseagoon

_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 10, 2018 8:09 am    Post subject: Reply with quote

honeymak,

Looks like Sakaki has just done it. See the sticky.
_________________
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
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 591

PostPosted: Sun Jun 10, 2018 2:24 pm    Post subject: Reply with quote

i know sakaki's image
but that's rootfs
do i just mkfs.ext4 /normal_file.img
and then extract the tarball to that normal_file.img
and then convert the raw to qcow2?

:oops: :roll:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3477

PostPosted: Sun Jun 10, 2018 3:17 pm    Post subject: Reply with quote

Yes, just install it the regular way and then convert with qemu-img. If you really need qcow I mean.
The system inside VM doesn't care.
Back to top
View user's profile Send private message
honeymak
Guru
Guru


Joined: 30 Dec 2002
Posts: 591

PostPosted: Tue Jun 12, 2018 3:17 am    Post subject: Reply with quote

wondering how to enlarge the root partition
i want a larger root

:oops: :cry:
_________________
hackers - make sth real
academics - read sth said to be real
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 12, 2018 9:13 am    Post subject: Reply with quote

honeymak,

Make a note of the start of the root partition in fdisk.
Delete the partition table entry using fdisk. This leaves your filesystem intact.
Make a new partition table entry with an *identical* start point, so it points to your filesystem.
Make the partition bigger though.

Now you have a filesystem that does not fill the partition it lives on.
Code:
resize2fs /dev/...
will fix that. That's an online resize.

You can only 'grow' a partition like this into unallocated space as you must allocate contiguous space to a partition.
_________________
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
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3477

PostPosted: Tue Jun 12, 2018 6:02 pm    Post subject: Reply with quote

Quote:
wondering how to enlarge the root partition

pro tip: LVM makes things soo much easier
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Jun 12, 2018 7:13 pm    Post subject: Reply with quote

szatox,

Works on Raspberry Pi in arm64 mode too.
_________________
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 Gentoo on ARM 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