[HowTo] Install QEMU/KVM on antiX

Forum Forums General Software [HowTo] Install QEMU/KVM on antiX

Tagged: ,

  • This topic has 19 replies, 9 voices, and was last updated Sep 24-6:34 am by andyprough.
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #76245
    Anonymous
      Helpful
      Up
      0
      ::

      I don’t have a computer with (U)efi hardware. Therefore, it was obvious to compensate for this shortcoming (which I do not regret in the least) with QEMU.

      Installation command:
      $ qemu-system-x86_64 -enable-kvm -m 4096 -bios /usr/share/OVMF/OVMF_CODE.fd -smp 2 -vga std -cdrom /media/Distris/antiX/antiX-21-runit_x64-base.iso -boot d -drive file=/home/male/virtu/platte.img,format=qcow2 -m 4G

      Start command:

      #!/bin/sh
      qemu-system-x86_64      -enable-kvm \
                              -bios /usr/share/ovmf/OVMF.fd \
                              -m 4096 \
                              -vga std \
                              -hda /home/male/virtu/platte.img \
                              -cpu host \
                              -smp 2 \
                              -soundhw all \
                              -monitor stdio 
      

      And no, this does not take place on antiX as host. 😉 unstable-sid

      #76259
      Anonymous
        Helpful
        Up
        0
        ::

        The above assumes, of course, that the host is of adequate size to accommodate the virtual disk in /home.

        Example: Host(my operating system) = 50G
        virtual hard disk = 20G
        the create command is:
        qemu-img create -f qcow2 virtu.img 20G

        The data exchange after an installation I do between client and host e.g. in zzzFM:
        sftp://male@IP-of-the-host/
        The client needs openssh-client and the host additionally openssh-server.

        Maybe also interesting to do only the ISO test in Qemu:
        Example without (U)Efi:
        qemu-system-x86_64 -enable-kvm -k de -smp 2 -m 2048 -vga std -monitor stdio -snapshot -cdrom /media/Distris/antiX/antiX-21-runit_x64-base.iso -name runit -boot d

        Finally it is worth to have a look at QEMU in the package management of Debian.

        #76262
        Forum Admin
        anticapitalista
          Helpful
          Up
          0
          ::

          Seems like libelogind0 needs to be installed.

          qemu-system-x86_64 -enable-kvm -boot d -cdrom /home/anticap/Remaster/iso-files/antiX-19.5_x64-full.iso -m 1024
          qemu-system-x86_64: error while loading shared libraries: libsystemd.so.0: cannot open shared object file: No such file or directory

          Philosophers have interpreted the world in many ways; the point is to change it.

          antiX with runit - leaner and meaner.

          #76313
          Anonymous
            Helpful
            Up
            0
            ::

            I think that this is normal and logical.

            #89625
            Member
            andyprough
              Helpful
              Up
              0
              ::

              Thanks for the script @rayluo!! All worked well for me.

              A note on a change since you wrote the original script – qemu-kvm is now called qemu-system-x86 to my understanding. Also if you try to do something where Virt-manager complains that you don’t have “qemu-img” installed, then you need the “qemu-utils” package.

              I really appreciate all the work you put into this, it’s fantastic.

            Viewing 5 posts - 16 through 20 (of 20 total)
            • You must be logged in to reply to this topic.