ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    KVM on Fedora

    IT Discussion
    kvm lvm lvm management fedora 28
    4
    14
    1.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      So I'm trying to get this going, and I'm starting to get irritated.

      I've installed KVM, it runs fine. I create a VM using a local ISO on the default SR available. I create a new SR using the remaining 900something GB of space and then create a qcow2.

      I use this qcow2 as the disk for the VM, and install. The install completed. I shutdown the VM, reboot the host and then the qcow2 is missing.

      WTF?!

      Paging @scottalanmiller for guidance.

      F 1 Reply Last reply Reply Quote 1
      • F
        Francesco Provino @DustinB3403
        last edited by

        @dustinb3403 usually, the problem is the LV not mounted at boot time. Check your fstab, try to mount the LV manually etc.

        1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by

          This is what I've got.

          # /etc/fstab
          # Created by anaconda on Fri Jun  1 09:56:13 2018
          #
          # Accessible filesystems, by reference, are maintained under '/dev/disk'
          # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
          #
          /dev/mapper/fedora_localhost--live-root /                       ext4    defaults        1 1
          UUID=281e2f9f-9d5f-4017-8271-dc83a85e6fca /boot                   ext4    defaults        1 2
          /dev/mapper/fedora_localhost--live-home /home                   ext4    defaults        1 2
          /dev/mapper/fedora_localhost--live-swap swap                    swap    defaults        0 0
          
          1 Reply Last reply Reply Quote 0
          • DustinB3403D
            DustinB3403
            last edited by

            I've just added

            /home/user.name/vm-storage/ defaults 1 1
            

            to fstab, should that do?

            And actually looking in the existing directories that I was going to use, nothing was there. .

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • black3dynamiteB
              black3dynamite
              last edited by black3dynamite

              Is your new storage set to autostart on boot?
              Check the connection details for storage.

              DustinB3403D 1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @black3dynamite
                last edited by

                @black3dynamite at the VM level or host?

                black3dynamiteB 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite @DustinB3403
                  last edited by

                  @dustinb3403 From the host.

                  1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403
                    last edited by

                    This is my first swing at kvm so treat me like a toddler.

                    I would assume if I create a file using virtmanager that it stays between hosts reboots...

                    1 Reply Last reply Reply Quote 0
                    • DustinB3403D
                      DustinB3403
                      last edited by

                      Hrm for whatever reason it stayed this time...

                      1 Reply Last reply Reply Quote 0
                      • black3dynamiteB
                        black3dynamite
                        last edited by

                        What do you have set up for your storage?
                        The state status should be active and autostart on boot enabled.
                        0_1527882286612_vm-store.png

                        DustinB3403D 1 Reply Last reply Reply Quote 0
                        • ObsolesceO
                          Obsolesce @DustinB3403
                          last edited by

                          @dustinb3403 said in KVM on Fedora:

                          I've just added

                          /home/user.name/vm-storage/ defaults 1 1
                          

                          to fstab, should that do?

                          And actually looking in the existing directories that I was going to use, nothing was there. .

                          Why didn't you set this up before you installed Fedora using custom partitioning?

                          Now, why aren't you fixing it via Cockpit?

                          DustinB3403D 1 Reply Last reply Reply Quote 0
                          • DustinB3403D
                            DustinB3403 @black3dynamite
                            last edited by

                            @black3dynamite It is, and was set to that as well.

                            1 Reply Last reply Reply Quote 0
                            • black3dynamiteB
                              black3dynamite
                              last edited by

                              Did you create the vm under qemu:///system or qemu:///session (user session)?

                              1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403 @Obsolesce
                                last edited by

                                @obsolesce said in KVM on Fedora:

                                @dustinb3403 said in KVM on Fedora:

                                I've just added

                                /home/user.name/vm-storage/ defaults 1 1
                                

                                to fstab, should that do?

                                And actually looking in the existing directories that I was going to use, nothing was there. .

                                Why didn't you set this up before you installed Fedora using custom partitioning?

                                Now, why aren't you fixing it via Cockpit?

                                Because im tired and running around raged.

                                1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post