View previous topic :: View next topic |
Author |
Message |
honeymak Guru
Joined: 30 Dec 2002 Posts: 594
|
Posted: Sat Jun 09, 2018 3:55 am Post subject: KVM on Raspberry Pi |
|
|
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?
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54651 Location: 56N 3W
|
Posted: Sun Jun 10, 2018 8:09 am Post subject: |
|
|
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 |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 594
|
Posted: Sun Jun 10, 2018 2:24 pm Post subject: |
|
|
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?
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3477
|
Posted: Sun Jun 10, 2018 3:17 pm Post subject: |
|
|
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 |
|
|
honeymak Guru
Joined: 30 Dec 2002 Posts: 594
|
Posted: Tue Jun 12, 2018 3:17 am Post subject: |
|
|
wondering how to enlarge the root partition
i want a larger root
_________________ hackers - make sth real
academics - read sth said to be real |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54651 Location: 56N 3W
|
Posted: Tue Jun 12, 2018 9:13 am Post subject: |
|
|
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.
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 |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3477
|
Posted: Tue Jun 12, 2018 6:02 pm Post subject: |
|
|
Quote: | wondering how to enlarge the root partition |
pro tip: LVM makes things soo much easier |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54651 Location: 56N 3W
|
Posted: Tue Jun 12, 2018 7:13 pm Post subject: |
|
|
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 |
|
|
|