• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

FOG on LXC

Scheduled Pinned Locked Moved
General Problems
3
18
2.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.
  • G
    gusto
    last edited by Dec 5, 2019, 4:06 PM

    1. I would like to install FOG on LXC (Proxmox 5.4.13). According to this instructions we need to enable it
      Options --> Feature --> Nestig - ON
      This setting ensures the NFS server functionality inside LXC.
      Do I need also to install NFS on a host (proxmox)?
    2. According this, components will be automatically downloaded and installed by the FOG installation script: PHP 5/6/7, MySql 5+, Apache 2+, DHCP (any!), TFTP, FTP, NFS. I already have a DHCP server set to mikrotik. At the bottom of the web site is listed
      This works for FOG too by the way you just have to use "undionly.kpxe" instead of "pxelinux.0"
      That means I have to change pxelinux.0 to undionly.kpxe?
    3. I have tentatively installed NFS in LXC (centos 7). Then I wanted to destroy the LXC, but I couldn’t destroy the LXC because filesystem in use.

    Can anyone advise me?

    1 Reply Last reply Reply Quote 0
    • S
      Sebastian Roth Moderator
      last edited by Dec 6, 2019, 3:34 PM

      @gusto I am not sure I can follow your questions.

      According to this instructions we need to enable it
      Options --> Feature --> Nestig - ON

      Where did you read about “Nesting”? Can see anything about this in the linked wiki article. Did you follow the instructions mentioned in the wiki about Apparmor?

      Do I need also to install NFS on a host (proxmox)?

      I have done a LXC installations a couple of years ago but can’t remember this part anymore. If it’s not in the wiki I don’t think it’s needed.

      That means I have to change pxelinux.0 to undionly.kpxe?

      Yes, use undionly.kpxe for legacy BIOS machines and ipxe.efi for UEFI machines. Also see https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence and my post here: https://forums.fogproject.org/post/130612

      I have tentatively installed NFS in LXC (centos 7). Then I wanted to destroy the LXC, but I couldn’t destroy the LXC because filesystem in use.

      Not sure how to solve this. Not great but rebooting the whole server should definitely fix it.

      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

      G 1 Reply Last reply Dec 7, 2019, 2:00 PM Reply Quote 0
      • G
        gusto @Sebastian Roth
        last edited by Dec 7, 2019, 2:00 PM

        @Sebastian-Roth
        Re: FOG on LXC
        nesting
        Look at here, there is a link at proxmox forum topis 10

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth Dec 7, 2019, 8:13 AM Dec 7, 2019, 2:10 PM

          @gusto Thanks for clarifying! As I see this post is from Nov 1, 2018 - some time after I have used LXC myself. I don’t have a Proxmox server at hand so I can’t try myself, sorry.

          • Do you get any error messages?
          • What output do you get when running showmount -e in the FOG LXC container?
          • Have you tried mounting the NFS share from another machine?

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          G 2 Replies Last reply Dec 7, 2019, 3:32 PM Reply Quote 0
          • G
            gusto @Sebastian Roth
            last edited by Dec 7, 2019, 3:32 PM

            @Sebastian-Roth said in FOG on LXC:

            @gusto Thanks for clarifying! As I see this post is from Nov 1, 2018 - some time after I have used LXC myself. I don’t have a Proxmox server at hand so I can’t try myself, sorry.

            • Do you get any error messages?
            • What output do you get when running showmount -e in the FOG LXC container?
            • Have you tried mounting the NFS share from another machine?

            This happened to me before I installed centos 7 from the template and NFS according to the instructions.
            Now that I have installed FOG, I will destroy the LXC without any problems. However, I have a plain FOG installed without any settings.

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by Dec 7, 2019, 3:33 PM

              @gusto So is there anything we can do for you?

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              G 1 Reply Last reply Dec 7, 2019, 3:53 PM Reply Quote 0
              • G
                gusto @Sebastian Roth
                last edited by Dec 7, 2019, 3:53 PM

                @Sebastian-Roth

                Now everything is all right. I am currently looking for a tutorial on how to set up FOG so I can install various OS over PXE

                G 1 Reply Last reply Dec 7, 2019, 4:17 PM Reply Quote 0
                • G
                  george1421 Moderator @gusto
                  last edited by Dec 7, 2019, 4:17 PM

                  @gusto https://forums.fogproject.org/topic/10944/using-fog-to-pxe-boot-into-your-favorite-installer-images

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                  G 1 Reply Last reply Dec 7, 2019, 6:42 PM Reply Quote 0
                  • G
                    gusto @george1421
                    last edited by Dec 7, 2019, 6:42 PM

                    @george1421
                    very thankyou

                    1 Reply Last reply Reply Quote 0
                    • G
                      gusto @Sebastian Roth
                      last edited by Dec 11, 2019, 12:16 PM

                      @Sebastian-Roth said in FOG on LXC:

                      @gusto Thanks for clarifying! As I see this post is from Nov 1, 2018 - some time after I have used LXC myself. I don’t have a Proxmox server at hand so I can’t try myself, sorry.

                      • Do you get any error messages?
                      • What output do you get when running showmount -e in the FOG LXC container?
                      • Have you tried mounting the NFS share from another machine?

                      Hi
                      So again, I have a problem destroying the LXC
                      I installed FOG without any problems

                      yum install git -y
                      cd ~
                      mkdir git
                      cd git
                      git clone https://github.com/FOGProject/fogproject.git
                      cd ~/git/fogproject/bin
                      ./installfog.sh
                      

                      I admit that I can destroy the LXC now.
                      However, now I want to install linux mint over pxe and do this as instructed.
                      Then I can’t destroy the LXC and get the output

                      TASK ERROR: lvremove 'pve/vm-111-disk-0' error:   Logical volume pve/vm-111-disk-0 contains a filesystem in use.
                      

                      showmount in the LXC show

                      Export list for fog-server:
                      /images/dev *
                      /images     *
                      
                      
                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Dec 11, 2019, 5:10 PM

                        @gusto Can you explain why you keep on wanting to destroy the the container??

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        G 1 Reply Last reply Dec 11, 2019, 5:43 PM Reply Quote 0
                        • G
                          gusto @Sebastian Roth
                          last edited by Dec 11, 2019, 5:43 PM

                          @Sebastian-Roth
                          I’m just doing a test. If something doesn’t work, I want to destroy the LXC, but I can’t destroy it because

                          TASK ERROR: lvremove 'pve/vm-111-disk-0' error:   Logical volume pve/vm-111-disk-0 contains a filesystem in use.
                          
                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by Sebastian Roth Dec 11, 2019, 3:11 PM Dec 11, 2019, 9:10 PM

                            @gusto When you see this error message can you run lsof | grep vm-111-disk and post the output here?

                            https://itsol.biz/lvm-problem-logical-volume-contains-filesystem-use/

                            This is not at all a FOG specific question and while we try to help I have to say that there are forums out there knowing a lot more about LXC then we FOG people do. Chance is high you get a better answer in a different forum on this specific question!

                            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                            G 1 Reply Last reply Dec 12, 2019, 5:47 AM Reply Quote 0
                            • G
                              gusto @Sebastian Roth
                              last edited by Dec 12, 2019, 5:47 AM

                              @Sebastian-Roth
                              This command gives nothing to output

                              [root@fog-server ~]# lsof | grep vm-111-disk
                              [root@fog-server ~]# 
                              
                              

                              Of course I put this question on the proxmof forum, but I didn’t get the answer (see my first post).

                              very thx

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sebastian Roth Moderator
                                last edited by Dec 12, 2019, 5:56 AM

                                @gusto Don’t run the command within the fog-server but on your proxmox host after you have tried to destroy it. Make sure you use the right VM ID. It might not be 111 anymore if you keep destroying and re-creating it.

                                Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                G 1 Reply Last reply Dec 12, 2019, 12:51 PM Reply Quote 0
                                • G
                                  gusto @Sebastian Roth
                                  last edited by Dec 12, 2019, 12:51 PM

                                  @Sebastian-Roth
                                  In this case I get so many rows

                                  ....
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  lsof: no pwd entry for UID 48
                                  ....
                                  

                                  with UID 27,48, 89 …

                                  very thx

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    Sebastian Roth Moderator
                                    last edited by Dec 12, 2019, 5:08 PM

                                    @gusto This is run on your Proxmox server console???

                                    Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                                    Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                                    G 1 Reply Last reply Dec 12, 2019, 6:51 PM Reply Quote 0
                                    • G
                                      gusto @Sebastian Roth
                                      last edited by Dec 12, 2019, 6:51 PM

                                      @Sebastian-Roth
                                      Yes on proxmox

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

                                      165

                                      Online

                                      12.0k

                                      Users

                                      17.3k

                                      Topics

                                      155.2k

                                      Posts
                                      Copyright © 2012-2024 FOG Project