Parodia
  • Communities
  • Multi-communities
  • Support Lemmy
  • Search
  • Login
  • Sign Up
Guix and GuixSD@infosec.pubbycm0002@toast.ooo
2 months

How to run GNU Guix/Hurd in qemu without childhurd

English
0
    How to run GNU Guix/Hurd in qemu - Parodia
    lemmy.parodia.dev
    > Usually you would run GNU Guix/Hurd in a childhurd, as described here [https://guix.gnu.org/manual/devel/en/html_node/Virtualization-Services.html#The-Hurd-in-a-Virtual-Machine], but not all of us can to do that. I found a way to run GNU Guix/Hurd in qemu, and all you need is the qemu package. > > 1. Download the latest Guix System image from https://guix.gnu.org/en/download/latest/ [https://guix.gnu.org/en/download/latest/]. > > 2. Convert the downloaded QCOW2 image into a raw disk image using qemu-img: > > qemu-img convert -O raw /path/to/source.qcow2 /path/to/output.img > > (Replace /path/to/ with the desired directory paths on your system.) > > 3. Resize the image to the amount of disk space as desired. For example: > > qemu-img resize hurd-system.img 30G > > 4. Mount the image and resize the main partition as desired. The gnome disks tool can be used for this process, or any kind of partitioning software that supports raw images. Resize the main partition to, as an example 30gb, and write your changes. > > 5. Virtualize it in qemu. We are going to use the same command as in the debian GNU/Hurd guide, but echo your image instead. > > kvm -m 2G -drive file=$(echo yourimage.img),cache=writeback > > 6. Your setup is complete, but I will include this as a bonus step. When you are at the login page just do login root and enter with no password. > > GNU Guix integrates well with the Hurd so you can find documentation here [https://guix.gnu.org/manual/1.5.0/en/html_node/index.html] > > Note, when I did this setup, running guix pull was slow, but I think this is an issue with Guix and not specifically the GNU Hurd variant. OC by @provectus@lemmy.ml [/u/provectus@lemmy.ml] [https://lemmy.parodia.dev/u/provectus@lemmy.ml]
    You must log in or register to comment.

    Guix and GuixSD@infosec.pub

    guix@infosec.pub

    Subscribe from remote instance

    Create post

    Report community

    Modlog
    You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !guix@infosec.pub

    Community for all Guix and GuixSD users

    Visibility: Public

    This community is visible to everyone.

    • 0 users / Day
    • 0 users / Week
    • 7 users / Month
    • 7 users / 6 months
    • 9 posts
    • 0 comments
    • 0 local subscribers
    • 0 subscribers
    • BE: 1.0.0-beta.1
    • Modlog
    • Legal
    • Instances
    • Docs
    • Code
    • join-lemmy.org