Ad Widget

Collapse

Zabbix 2.4.6 VHD appliance ask "Want me to fall back..."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SwitchZabbix
    Junior Member
    • Dec 2015
    • 17

    #1

    Zabbix 2.4.6 VHD appliance ask "Want me to fall back..."

    Hi all,

    I am trying to get Zabbix up and running using the VHD appliance 2.4.6.
    My environment is:
    - Cluster Hyper-V Windows 2012 R2
    - San Storage and Cluster Shared Volumes

    Chronology:
    - Download VHD appliance from Zabbix.org
    - Unzip and copy to the CSV
    - Create a new VM 1024Mo RAM, 1 vCPU, 1 NIC, No CD, connect the VHD as IDE
    - Start the VM, get the Suse Logo.
    - I log root into the appliance then start yast2
    - Set up Keyboard, NIC, NTP, DNS
    - Use a browser to test the Zabbix portal and I can login using the admin user account.

    Then I restart the VM.
    I get the message:
    Waiting for device /dev/disk/by-id/scsi-14d....-part1 to appear:..... Could not find /dev/disk/by-id/scsi-14d....-part1
    Want me to fall back to /dev/disk/by-id/14d.....-part1? (Y/n)

    I tried to press Y or n but nothing appends.
    I then restart the VM, Select Advanced options for Zabbix_2.4_x86
    Then select the first line Zabbix_2.4_x86_64_13.1 [ VMX ], with Linu

    I got the same result.

    I then restart the VM, Select Advanced options for Zabbix_2.4_x86
    Then select the second line Zabbix_2.4_x86_64_13.1 [ VMX ], with Linu

    And it works again, I was able to login on the Zabbix portal (web site).

    I have read some resolution using a search engine. The solution is to change some files:

    After creating the MASTER computer, we need to change 2 files in order to modify the "by-id" reference in "by-name" reference.
    The files are:


    /etc/fstab
    /boot/grub/menu.lst


    in both the files we need to find every instance of names like (example)

    /dev/disk/by-id/ata-TOSHIBA-MK1246GSX-28FGTI70T-part1

    and change in something like:

    /dev/sda1

    take care about the partition number:
    -part1 -> sda1
    -part2 -> sda2



    Hi all, today I tried to clone a pc with OpenSuse12 using Clonezilla as cloning solution. Then I tried to boot the target cloned machine b...


    But in this VHD, I didn't find these files. Could you please adapt or solve by another solution this problem? I would like to start the VM without manual operation.

    Thank by advance,
    Nikky
  • ESD
    Junior Member
    • Dec 2015
    • 1

    #2
    Same problem

    Hey Nikky!

    I have the same problem, could you fix it?


    Norbert

    Comment

    • SwitchZabbix
      Junior Member
      • Dec 2015
      • 17

      #3
      ...

      Hi Norbert,

      Unfortunately, I do not have the time to do it actually because I have no idea how the image is done. I have to reverse engineering this point to be able to resolve this. I didn't find any documentation about it so. Let me know if you find some documentation.

      In anyway, this kind of problem should be resolved and applied on the download itself. I am new in Zabbix community and do not have the modus operandi for that.

      Comment

      • SwitchZabbix
        Junior Member
        • Dec 2015
        • 17

        #4
        Resolution

        Hi guys,

        I finally found the trick with a lot of research as I am a noob in Linux...

        The image is using grub2 so only 1 line is useful to change. Here find the procedure:

        Login as root then execute:

        Code:
        fdisk -l
        Output:

        Disk /dev/sda: 64.4 GB, 64425615360 bytes, 125831280 sectors
        Units = sectors of 1 * 512 = 512 bytes
        Sector size (logical/physical): 512 bytes / 512 bytes
        I/O size (minimum/optimal): 512 bytes / 512 bytes
        Disk label type: dos
        Disk identifier: 0x42d970e7

        Device Boot Start End Blocks Id System
        /dev/sda1 * 2048 125829119 62913536 83 Linux
        Note the device name: /dev/sda1

        Then edit the line 6 of the file /etc/default/grub

        Code:
        nano /etc/default/grub
        ....
        ....
        GRUB_CMDLINE_LINUX_DEFAULT=" root=/dev/sda1 disk=/dev/sda1 resume=swap USE_BY_UUID_DEVICE_NAMES=1 quiet splash=silent"
        ....
        ....
        Then generate grub2 config file with grup2-mkconfig

        Code:
        grub2-mkconfig -o /boot/grub2/grub.cfg
        That's it folks!

        Please change the image. I will open a bug report.
        Last edited by SwitchZabbix; 17-12-2015, 11:55. Reason: Correct some typo to make sense in some cases...

        Comment

        Working...