Tutorial: Install DSM 6.2 on ESXi 6.7


Recommended Posts

44 minutes ago, luchuma said:

what do you mean your mac address ?

 

provide screen of vm network and grubcfg

 

@unkyjoe

 

there must be some bad config somwhere

 

So this NIC: is my lan

image.thumb.png.723698562330e8d7568755a5530833d8.png

This is my VM config

image.thumb.png.f9ac8268c91243687dc57175adccf041.png

And this is my GRUB config:

if serial --port=0x3F8 --speed=115200;then

set has_serial=true

terminal_input --append serial

terminal_output --append serial

else

clear

fi

 

terminal_input --append console

terminal_output --append console

 

if [ x"${grub_platform}" = xefi ]; then

insmod efi_gop

insmod efi_uga

else

insmod vbe

fi

 

set extra_initrd="extra.lzma"

set info="info.txt"

 

set vid=0x058f

set pid=0x6387

set sn=1130LWN029982

set mac1=a0369f026e20

set rootdev=/dev/md0

set netif_num=1

set extra_args_3615=''

#set extra_args_3615='earlycon=uart8250,io,0x3f8,115200n8 earlyprintk loglevel=15'

 

set common_args_3615='syno_hdd_powerup_seq=0 HddHotplug=0 syno_hw_version=DS3615xs vender_format_version=2 console=ttyS0,115200n8 withefi elevator=elevator quiet syno_port_thaw=1'

 

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

 

set default='0'

set timeout='1'

set fallback='1'

 

if [ -s $prefix/grubenv ]; then

load_env

if [ -n "$saved_entry" ]; then

set default="${saved_entry}"

fi

fi

 

VERSION="with Jun's Mod v1.03b"

 

search --file -s /bzImage

 

function savedefault {

if [ -s $prefix/grubenv ]; then

saved_entry="${chosen}"

save_env saved_entry

fi

}

 

function do_option {

if [ $# -lt 2 ]; then

eval "set value=\"\$$1\""

echo "current $1: $value"; return;

fi

set key=$1

shift

set $key="$*"

if [ -s $prefix/grubenv ]; then

save_env $key

fi

}

 

function vid { do_option vid $@; }

function pid { do_option pid $@; }

function sn { do_option sn $@; }

function mac1 { do_option mac1 $@; }

function mac2 { do_option mac2 $@; }

function mac3 { do_option mac3 $@; }

function mac4 { do_option mac4 $@; }

function rootdev { do_option rootdev $@; }

function append { do_option extra_args_3615 $@; }

 

function vidpid {

if [ $# -lt 2 ]; then

echo "usage: vidpid 0xVVVV 0xPPPP"; return;

fi

set usb_args="vid=$1 pid=$2"

if [ -s $prefix/grubenv ]; then

save_env usb_args

fi

}

 

function showtips {

if [ -n "$has_serial" ]; then

terminal_output --remove serial

fi

echo "Screen will stop updating shortly, please open http://find.synology.com to continue."

echo

echo

if [ -n "$has_serial" ]; then

terminal_output --append serial

fi

}

 

function loadinitrd {

if [ -s $img/$info ]; then

if [ -n "$has_serial" ]; then

terminal_output --remove serial

fi

cat $img/$info

if [ -n "$has_serial" ]; then

terminal_output --append serial

fi

fi

# if [ -s $img/$extra_initrd ]; then

# initrd $img/rd.gz $img/$extra_initrd

# else

# initrd $img/rd.gz

# fi

}

 

function common_add_option {

eval "set value=\"\$$1\""

if [ -z $value ]; then return 1; fi

set common_args="$common_args $1=$value"

}

 

function common_add_option_ex {

eval "set value=\"\$$1\""

if [ -z $value ]; then return 1; fi

set common_args="$common_args $2=$value"

}

 

function loadlinux {

set model=$1

set bootdev=$2

shift 2

if [ -n $vid -a -n $pid ]; then

set usb_args="vid=$vid pid=$pid"

fi

eval "set common_args=\"\$common_args_$model\""

eval "set extra_args=\"\$extra_args_$model\""

eval "set bootdev_args=\"\$${bootdev}_args\""

common_add_option_ex rootdev root

common_add_option sn

if common_add_option mac1; then set netif_num=1; fi

if common_add_option mac2; then set netif_num=2; fi

if common_add_option mac3; then set netif_num=3; fi

if common_add_option mac4; then set netif_num=4; fi

common_add_option netif_num

        if [ -z $zImage ]; then

                set zImage=bzImage

        fi

linux $img/$zImage $common_args $bootdev_args $extra_args $@

}

 

#menuentry "DS3615xs 6.2 Baremetal $VERSION" --class os {

set img=

savedefault

loadlinux 3615 usb

loadinitrd

showtips

}

 

#menuentry "DS3615xs 6.2 Baremetal $VERSION Reinstall" --class os {

set img=

loadlinux 3615 usb mfg

loadinitrd

showtips

}

 

#menuentry "DS3615xs 6.2 Baremetal AMD $VERSION" --class os {

# set img=

# set zImage=bzImage

# savedefault

# loadlinux 3615 usb

# loadinitrd

# showtips

#}

 

menuentry "DS3615xs 6.2 VMWare/ESXI $VERSION" --class os {

set img=

savedefault

loadlinux 3615 sata

loadinitrd

showtips

}

 

and here my VMDK file:

 

# Disk DescriptorFile
version=1
CID=6ccf51e5
parentCID=ffffffff
isNativeSnapshot="no"
createType="vmfs"

# Extent description
RW 102400 VMFS "synoboot.img" 0

# The Disk Data Base 
#DDB

ddb.adapterType = "lsilogic"
ddb.deletable = "true"
ddb.encoding = "UTF-8"
ddb.longContentID = "7e24a756b77e33e24ac940cc6ccf51e5"
ddb.thinProvisioned = "1"
ddb.uuid = "60 00 C2 9a ee da ca 33-df 5e 04 3f 80 55 f9 62"
ddb.virtualHWVersion = "10"

 

I hope someone see someting i tried everything

Edited by marvine
Link to post
Share on other sites

i see broken grub...

you need to comment every line not only #menuentry line

 

 

 

 

4 hours ago, marvine said:

#menuentry "DS3615xs 6.2 Baremetal $VERSION" --class os {

#set img=

#savedefault

#loadlinux 3615 usb

#loadinitrd

#showtips

#}

 

#menuentry "DS3615xs 6.2 Baremetal $VERSION Reinstall" --class os {

#set img=

#loadlinux 3615 usb mfg

#loadinitrd

#showtips

#}

 

#menuentry "DS3615xs 6.2 Baremetal AMD $VERSION" --class os {

# set img=

# set zImage=bzImage

# savedefault

# loadlinux 3615 usb

# loadinitrd

# showtips

#}

 

menuentry "DS3615xs 6.2 VMWare/ESXI $VERSION" --class os {

set img=

savedefault

loadlinux 3615 sata

loadinitrd

showtips

}

 

 

 

and next

 

mac you are using is wrong...

you are using real mac address from your hardware... it would be ok if you'd passthrough that nic to the xpenology vm instead of virtual nic.... (if you have several nics in your server)

 

try to use default macaddress from grub.cfg 

  • Thanks 1
Link to post
Share on other sites

@luchuma I also tried when i left all menu open and just choose the esxi option

Also with the default or a random mac adress it dont work.

 

Anyone have ideas what could be wrong ?

 

if i choose the default mac adress can it be that the serial number need to be changed ?

 

 

Edited by marvine
Link to post
Share on other sites

image.thumb.png.10f8c7fb969fa05beb5bfd0564005871.png 

 

@luchumaYes i get to see this screen

 

set sn=1130LWN029982

set mac1=0011322CA785

 

This are my current value's

 

When looking in my Vswitch topology pfsense has there a mac adres xpe dont (server 2016 is turned off)

 

Virtual Machines (3)

pfSense

MAC Address 00:0c:29:8e:d4:2c

server2016

XPE

Edited by marvine
Link to post
Share on other sites

@marvine Actually, those are NOT physical nic's, they are drivers for your virtual nic's, used by your VM, 

but YES that is the driver you need to change for the virtual nic (or nics) you are using for your Virtual XPEnology NAS.

If you have only 1 vnic in your VM, then that is the one to change.

Link to post
Share on other sites

I'm not sure how well you know the "Virtual World", but lets just "KISS"

(as I don't have time/patience to make you understand the difference on physical and virtual components, 

lets just say: anything anyone can bang there head into :67_head_bandage:, is physical :-D 

 

 

Yes, change the the wmware settings to e1000e instead of the e1000 you have been using on your VM for the NAS.

Link to post
Share on other sites
  • 2 weeks later...

Hi all, thanks for this clear tutorial. I have DSM up and running now. However, as soon as I start DSM, I can no longer reach ESXi (via neither web interface nor ssh). I assume there is something wrong in the network interface as DSM overrides access to ESXi. Where should I change this? NB: I took the exact same MAC address for DSM as the physical network controller has. Is this correct?

Ultimately, I would like all my VMs to be addressible via unique IP addresses; but I do not fully understand the virtual networking part of ESXi yet. If someone knows of a great tutorial for this, I would be very happy to hear!

Thanks!

J

Edited by JJJL
Link to post
Share on other sites
3 hours ago, JJJL said:

NB: I took the exact same MAC address for DSM as the physical network controller has. Is this correct?

Dear JJJL, that is exactly the problem. Now you have two hosts with the same MAC-address, one physical and one virtual. ESX should not allow this, imho, but that's on another page.

Shut down your vDSM and give it a MAC-address you generate, e.g. from here: https://jsfiddle.net/7Lorpu77/

Don't forget to edit the syslinux.cfg, not just change the mac-address in ESX ;-)

 

Cheers and good luck

Link to post
Share on other sites
  • Polanskiman changed the title to Tutorial: Install DSM 6.2 on ESXi 6.7
  • Polanskiman pinned this topic

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.