Jump to content
XPEnology Community

Tutorial: DSM 6.x on Proxmox


fonix232

Recommended Posts

  • 3 weeks later...

I can't boot my Proxmox VM with this loader (https://mega.nz/#F!Fgk01YoT!7fN9Uxe4lpzZWPLXPMONMA)

All I can see is blinking cursor via qm terminal and standard info about Jun's loader via VNC console. 

System not booting. 

Last tested and worked for me is 6.2 update 2 with bootloader 1.03 (DS3617).

 

 

 

Link to comment
Share on other sites

9 hours ago, codedmind said:

@sunfishdied or anyone ... could export and share a proxmox vm template?

 

 

Best regards

My config example 

 

(Disclaimer: I need to see serial numbers in the DSM storage manager - so I found that only SATA bus can provide correct disk info for DSM, so I use scsi0 for Synology OS (vm-108-disk-1.raw) installing and bootloader via USB (vm-108-disk-0.raw), bcs QEMU support six SATA disks only. If you do not care about hard disk serial info - you can use SCSI bus for all, or SATA for all if you have less then six disks to use). 

 

args: -device ich9-usb-ehci1,id=usb,multifunction=on,bus=pci.0,addr=0xa -drive file=/var/lib/vz/images/108/vm-108-disk-0.raw,format=raw,if=none,id=drive-usb-disk2 -device usb-storage,bus=usb.0,port=2,drive=drive-usb-disk2,id=usb-disk2,bootindex=1,removable=off -rtc base=utc,driftfix=slew -global kvm-pit.lost_tick_policy=delay -no-hpet -global PIIX4_PM.disable_s3=1 -global PIIX4_PM.disable_s4=1 -realtime mlock=off -machine pc-i440fx-2.9,accel=kvm,usb=off,vmport=off,dump-guest-core=off

bios: seabios
bootdisk: scsi0
cores: 8
memory: 10240
name: DSM
net0: e1000=00:50:56:00:33:58,bridge=vmbr0
net1: e1000=33:1F:86:91:68:B2,bridge=vmbr1
numa: 0
onboot: 1
ostype: l26
serial0: socket
smbios1: uuid=a3583e20-e589-4fdd-866b-a4863e5b8ea4
sockets: 1
tablet: 0
scsihw: megasas

 

scsi0: local:108/vm-108-disk-1.raw,size=10G


sata0: /dev/disk/by-id/ata-HGST_HSB823BSI0_LSGTYY1LAGS4K6H,serial=LSGTYY1LAGS4K6H,backup=0
sata1: /dev/disk/by-id/ata-HGST_HSB823BSI0_LSGTYY1LAGSD4UH,serial=LSGTYY1LAGSD4UH,backup=0
sata2: /dev/disk/by-id/ata-HGST_HSB823BSI0_LSGTYY1LAGRPT7H,serial=LSGTYY1LAGRPT7H,backup=0
sata3: /dev/disk/by-id/ata-HGST_HSB823BSI0_LSGTYY1LAGS1WYH,serial=LSGTYY1LAGS1WYH,backup=0
sata4: /dev/disk/by-id/ata-HGST_HSB823BSI0_LSGTYY1LAGS97DH,serial=LSGTYY1LAGS97DH,backup=0
sata5: /dev/disk/by-id/ata-HGST_HSB823BSI0_LSGTYY1LAGSGN3H,serial=LSGTYY1LAGSGN3H,backup=0

 

Link to comment
Share on other sites

6 minutes ago, codedmind said:

@blessendor thanks for your post. What version of dsm are you running? And what version of loader? Do you convert the img format to raw?

 

Thanks

Jun's image is already in raw format, so you do not need to convert it, but maybe you need to mount it (with kpartx and mount cmds in the linux) and change a grub.cfg file to correctly your server's MAC address.

I posted version above: Last tested and worked for me is 6.2 update 2 with bootloader 1.03 (DS3617).

https://mega.nz/#F!yQpw0YTI!DQqIzUCG2RbBtQ6YieScWg!OZw2QKwT

During the first time boot you must install DSM with the option "Install manually", otherwise it will download the latest version which will not work with this loader.
It's much better to start your VM with CLI command: "qm start VM_ID; qm terminal VM_ID" - so you will see all booting process in the console.

 

 

Link to comment
Share on other sites

Ok, some feedback

 

Following @blessendor settings:

- Started with dsm 3615xs-6.2-2379 -  Success

- Clone VM, upgrade manually to dsm 3615xs-6.2-2379Update1 -  Success

- Clone VM, upgrade manually to dsm 3615xs-6.2-2379Update2 -  Success

- Clone VM, upgrade manually to dsm 3615xs-6.2-23824 -  No boot... stop before terminal login

 

Try change some settings, but if i change scsi controller from megaraid to others i can boot into terminal login but then loose the network.

 

Link to comment
Share on other sites

22 hours ago, blessendor said:

There is no SATA images format in PVE therms - it's only variant of the bus. 

 

From my example you can 

 

Just edit "/etc/pve/qemu-server/VM_ID.conf"

 

sata1: /absolute/path/to/your/img/file/synoboot.img

 

After saving config - you will see this disk in your PVE GUI as SATA.

 

 

And what are the changes needed in the args line ?

Link to comment
Share on other sites

3 hours ago, blessendor said:

 

What do you mean?

 

 

when I try to update to DSM 6.2.1-23824 Update 2, I get this from DSM. 

2061770862_ScreenShot2018-12-12at4_20_48PM.thumb.png.54f66b15f0bc4965a93f7dea568e07cc.png

 

This log is taken from /var/log/messages

2018-12-12T16:20:39-06:00 Portal updater: updater.c:6006 Start of the updater...
2018-12-12T16:20:39-06:00 Portal updater: updater.c:6272 ==== Start flash update ====
2018-12-12T16:20:39-06:00 Portal updater: updater.c:6276 This is X86 platform
2018-12-12T16:20:39-06:00 Portal updater: boot/boot_lock.c(227): failed to mount boot device /dev/synoboot2 /tmp/bootmnt (errno:2)
2018-12-12T16:20:39-06:00 Portal updater: updater.c:5816 Failed to mount boot partition
2018-12-12T16:20:39-06:00 Portal updater: updater.c:2711 No need to reset reason for v.23824
2018-12-12T16:20:39-06:00 Portal updater: updater.c:6810 Failed to accomplish the update! (errno = 21)
2018-12-12T16:20:39-06:00 Portal smallupd@ter: smallupdate.cpp:1203 failed to exec updater -ir
2018-12-12T16:20:39-06:00 Portal smallupd@ter: smallupdate.cpp:1374 failed to update flash
2018-12-12T16:20:39-06:00 Portal smallupd@ter: small_update.cpp:20 Failed to apply smallupdate.
2018-12-12T16:20:39-06:00 Portal synoscgi_SYNO.Core.Upgrade_1_start[21967]: Upgrade.cpp:236 Fail to exec smallupdater
2018-12-12T16:20:39-06:00 Portal synopkg: pkg_pause.cpp:26 Fail to get package info of [ActiveBackup]
2018-12-12T16:20:39-06:00 Portal synopkg: pkg_pause.cpp:26 Fail to get package info of [ActiveDirectoryServer]
2018-12-12T16:20:39-06:00 Portal [  305.068848] init: smbd main process (11367) killed by TERM signal
2018-12-12T16:20:39-06:00 Portal synoscgi_SYNO.Core.Upgrade_1_start[22080]: update_cpputil.cpp:705 synoservice: start all packages ...
2018-12-12T16:20:41-06:00 Portal synoscgi_SYNO.Core.Upgrade_1_start[22080]: update_cpputil.cpp:755 synoservice: finish started all packages
2018-12-12T16:20:41-06:00 Portal synoscgi_SYNO.Core.Upgrade_1_start[21967]: Upgrade.cpp:708 Failed to apply smallupdate

 

 

Link to comment
Share on other sites

Hi everyone, i am really struggling here.

 

I checked grub.cfg and its got the following:

 

set sn=A8ODN02468
set mac1=0011322CA603

 

so i changed my mac and serial number to match but i still can't boot.

 

EDIT: ok changing bios to seabios, i managed to install but now its just saying: booting from hard drive....

Edited by Bar1
Link to comment
Share on other sites

49 minutes ago, Bar1 said:

Hi everyone, i am really struggling here.

 

I checked grub.cfg and its got the following:

 

set sn=A8ODN02468
set mac1=0011322CA603

 

so i changed my mac and serial number to match but i still can't boot.

 

EDIT: ok changing bios to seabios, i managed to install but now its just saying: booting from hard drive....

I can try to help you, as I've been on the Proxmox + Xpenology track since we start.   SO you got it to install, then it does its reboot?     Whats your configuration of your VM?  from /etc/pve/qemu-server/vmID.conf .      

 

Depends on your boot loader settings ( whether it's a SATA drive with the image, or the USB method ), you'll need to choose the right boot order. 

Link to comment
Share on other sites

agent: 1
args: -device 'piix3-usb-uhci,addr=0x18' -drive 'id=synoboot,file=/var/lib/vz/images/102/synoboot.img,if=none,format=raw' -device 'usb-storage,id=synoboot,drive=synoboot'
bios: seabios
boot: cdn
bootdisk: sata0
cores: 1
efidisk0: local-zfs:vm-102-disk-1,size=128K
ide2: none,media=cdrom
memory: 2000
name: BDSM
net0: e1000=00:11:32:2C:A6:03,bridge=vmbr0
numa: 0
ostype: l26
sata0: local-zfs:vm-102-disk-0,size=20G,serial=A8ODN02468
sata1: local-zfs:vm-102-disk-2,size=50M
serial0: socket
smbios1: uuid=5493a726-0a20-4c4a-a6c6-53ab7062e8ab
sockets: 1
tablet: 0
vmgenid: 56e9aba4-ba92-4c3a-80af-73c3a186f5e5

Link to comment
Share on other sites

so your Synoboot is set as an USB in the ARG, and it's vm-102-disk-2 (SATA1) ?    The original ARG method no longer work with the latest boot loader, but you can use it as a SATA disk.  

Your boot order is cdn, which is cd-rom, disk, then network.  can you try to change it in the Proxmox GUI, to book from SATA1 ? 

Link to comment
Share on other sites

4 hours ago, Bar1 said:

Hi everyone, i am really struggling here.

 

I checked grub.cfg and its got the following:

 

set sn=A8ODN02468
set mac1=0011322CA603

 

so i changed my mac and serial number to match but i still can't boot.

 

EDIT: ok changing bios to seabios, i managed to install but now its just saying: booting from hard drive....

 

You can't change this serial from this READY to use a bootloader if you do not change vid=0x058f
and pid=0x6387 - serial depends on vid/pid. You can leave as is MAC also if you do not plan to run several DSM boxes in this LAN (so you must have different MACs and IPs).

 

 

 

 

Edited by blessendor
Link to comment
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.

×
×
  • Create New...