Any way to hide 50mb synoboot disk from Storage Manager in VM?


Recommended Posts

Hi All,

 

I have Xpenology up and running as a VM and nearly everything is good. All I need is to be able to hide/remove the system synoboot disk from the DSM Storage Manager.

 

sm.thumb.jpg.4feeff759810285169d789f1c0340313.jpg

 

This is a virtual disk image, not a usb stick. I am not using ESXi. Currently, I am on bhyve (FreeNAS) but have also tried Xenserver.

 

I have done a lot of googling for this topic but without success. None of the grub command line options seem to make any difference. I am using Jun's ds918 6.2.1 loader (2018-10-09)

 

Otherwise everything is great! Can anyone point me in the right direction?

Link to post
Share on other sites
  • 2 weeks later...
  • 1 year later...
On 11/17/2018 at 9:20 AM, MooseMan123 said:

Try this:

 

 

 

Thanks!!!

 

Yes, this is the correct way hiding the bootdisk.

Here is the detail on how to hide the bootdisk on bhyve.

 

1. first, you have to make bhyve use two sata contoller instead of one.

I dont know how to do that in FreeNAS, I am using vm-bhyve manager.

and the  vm config as follow:

loader="uefi-csm"
cpu=8
cpu_sockets=1
cpu_cores=4
cpu_threads=2
memory=4G
ahci_device_limit="1"
disk0_type="ahci-hd"
disk0_name="ds3617-1.03b.img"
disk1_type="ahci-hd"
disk1_name="disk0.img"
disk1_opts="sectorsize=4096/4096"
passthru0="2/0/0"
passthru1="2/0/1"

ahci_device_limit will limit one controller one disk. I have two disks, so the actual bhyve commandline will be like below:

-s 0,hostbridge -s 31,lpc -s 4:0,ahci-hd,/tank/vm/synas/ds3617-1.03b.img -s 5:0,ahci-hd,/tank/vm/synas/disk0.img,sectorsize=4096/4096 -s 6:0,passthru,2/0/0 -s 6:1,passthru,2/0/1

that shows pcie slot 4 and slot 5 are sata controllers.

from view of vm, vm have 2 sata controllers, bootdisk attach to controller 1(pcie slot 4), data disk attach to controller 2(pcie slot 5).

 

2. second, modify the grub.cfg

As you may  know, there are 3 boot entries in grub.cfg

menuentry "DS3617xs 6.2 Baremetal $VERSION" --class os {
        set img=
        savedefault
        loadlinux 3617 usb
        loadinitrd
        showtips
}

menuentry "DS3617xs 6.2 Baremetal $VERSION Reinstall" --class os {
        set img=
        loadlinux 3617 usb mfg
        loadinitrd
        showtips
}

#menuentry "DS3617xs 6.2 Baremetal AMD $VERSION" --class os {
#        set img=
#        set zImage=bzImage
#        savedefault
#        loadlinux 3617 usb
#        loadinitrd
#        showtips
#}

menuentry "DS3617xs 6.2 VMWare/ESXI $VERSION" --class os {
        set img=
        savedefault
        loadlinux 3617 sata
        loadinitrd
        showtips
}

 default entry is for beremental, It will NOT USING the sata_args defined in the config!!!

set sata_args='sata_uid=1 sata_pcislot=5 synoboot_satadom=1 DiskIdxMap=1C SataPortMap=1 SasIdxMap=0'

so you can comment out first two menu or modify first menu entry use sata_args. something like below

(replace usb with sata)

menuentry "DS3617xs 6.2 Baremetal $VERSION" --class os {
        set img=
        savedefault
        loadlinux 3617 sata
        loadinitrd
        showtips
}

also modify sata_args as below

(bhyve only use sata controller)

#set sata_args='sata_uid=1 sata_pcislot=5 synoboot_satadom=1 DiskIdxMap=1C SataPortMap=1 SasIdxMap=0'
set sata_args='DiskIdxMap=1F00'

as define DiskIdxMap=1F00, the first sata controller disk number is from 32, second sata controller disk number is from 0.

that will make bootdisk invisible.

if you check the sata device name from command line

root@QNAS:/# ls /dev/sda*
/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sdaf3

sda is the name of data disk, and sdaf is the bootdisk's name.

 

Finally, the 50M bootdisk will not shown in web interface.

 

Cheers.

Edited by IST QIAN
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.