查看: 3102|回复: 2

[410 J3455 show帖发布] 入手UNAS410,使用KVM安装DSM5.2

[复制链接]
发表于 2017-7-8 15:22:59 | 显示全部楼层 |阅读模式
本帖最后由 zhunti 于 2017-7-9 12:03 编辑

1. 先上几张开箱,开盖图。
正面照


WechatIMG23.jpeg WechatIMG19.jpeg WechatIMG24.jpeg





后部
WechatIMG22.jpeg WechatIMG21.jpeg


WebvirtMgr:
   屏幕快照 2017-07-09 下午12.02.59.png

屏幕快照 2017-07-09 上午11.56.34.png
屏幕快照 2017-07-09 上午11.58.44.png



2. Ubuntu配置:
选用Ubuntu16.04,其中关键的是配置KVM网桥:

cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto enp1s0
iface enp1s0 inet manual

# br0 for kvm
auto br0
iface br0 inet dhcp
        hwaddress ether 00:11:32:4F:B2:54
        bridge_ports enp1s0
        bridge_maxwait 0
        bridge_fd 0
        bridge_stp off

3. WebMgr配置:

参考了deepin的wiki 页面:https://wiki.deepin.io/mediawiki ... A%E6%8B%9F%E6%9C%BA

4. 安装DSM5.2:


KVM的xml描述文件:  

  1. <domain type='kvm' id='3'>
  2.   <name>DSM5.2</name>
  3.   <uuid>322f8c59-33a6-4a80-72da-60b0fd2cc73a</uuid>
  4.   <description>None</description>
  5.   <memory unit='KiB'>4194304</memory>
  6.   <currentMemory unit='KiB'>2097152</currentMemory>
  7.   <vcpu placement='static' current='2'>4</vcpu>
  8.   <resource>
  9.     <partition>/machine</partition>
  10.   </resource>
  11.   <os>
  12.     <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
  13.     <boot dev='cdrom'/>
  14.     <boot dev='hd'/>
  15.     <bootmenu enable='yes'/>
  16.   </os>
  17.   <features>
  18.     <acpi/>
  19.     <apic/>
  20.     <pae/>
  21.   </features>
  22.   <cpu mode='host-model'>
  23.     <model fallback='allow'/>
  24.   </cpu>
  25.   <clock offset='utc'/>
  26.   <on_poweroff>destroy</on_poweroff>
  27.   <on_reboot>restart</on_reboot>
  28.   <on_crash>restart</on_crash>
  29.   <devices>
  30.     <emulator>/usr/bin/kvm-spice</emulator>
  31.     <disk type='file' device='cdrom'>
  32.       <driver name='qemu' type='raw'/>
  33.       <source file='/var/www/webvirtmgr/images/XPEnoboot_DS3615xs_5.2-5967.1.iso'/>
  34.       <backingStore/>
  35.       <target dev='hda' bus='ide'/>
  36.       <readonly/>
  37.       <alias name='ide0-1-0'/>
  38.       <address type='drive' controller='0' bus='1' target='0' unit='0'/>
  39.     </disk>
  40.     <disk type='file' device='disk'>
  41.       <driver name='qemu' type='raw'/>
  42.       <source file='/var/lib/libvirt/images/idsm.img'/>
  43.       <backingStore/>
  44.       <target dev='hdb' bus='ide'/>
  45.       <alias name='ide0-0-1'/>
  46.       <address type='drive' controller='0' bus='0' target='0' unit='1'/>
  47.     </disk>
  48.     <controller type='usb' index='0'>
  49.       <alias name='usb'/>
  50.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
  51.     </controller>
  52.     <controller type='pci' index='0' model='pci-root'>
  53.       <alias name='pci.0'/>
  54.     </controller>
  55.     <controller type='ide' index='0'>
  56.       <alias name='ide'/>
  57.       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
  58.     </controller>
  59.     <controller type='sata' index='0'>
  60.       <alias name='sata0'/>
  61.       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
  62.     </controller>
  63.     <interface type='bridge'>
  64.       <mac address='52:54:00:d3:95:90'/>
  65.       <source network='netbr0' bridge='br0'/>
  66.       <target dev='vnet0'/>
  67.       <model type='virtio'/>
  68.       <alias name='net0'/>
  69.       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  70.     </interface>
  71.     <serial type='pty'>
  72.       <source path='/dev/pts/1'/>
  73.       <target port='0'/>
  74.       <alias name='serial0'/>
  75.     </serial>
  76.     <console type='pty' tty='/dev/pts/1'>
  77.       <source path='/dev/pts/1'/>
  78.       <target type='serial' port='0'/>
  79.       <alias name='serial0'/>
  80.     </console>
  81.     <input type='tablet' bus='usb'>
  82.       <alias name='input0'/>
  83.     </input>
  84.     <input type='mouse' bus='ps2'/>
  85.     <input type='keyboard' bus='ps2'/>
  86.     <graphics type='vnc' port='5900' autoport='yes' listen='0.0.0.0' passwd='ZzwZ5tWjoTt2'>
  87.       <listen type='address' address='0.0.0.0'/>
  88.     </graphics>
  89.     <video>
  90.       <model type='cirrus' vram='16384' heads='1'/>
  91.       <alias name='video0'/>
  92.       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
  93.     </video>
  94.     <memballoon model='virtio'>
  95.       <alias name='balloon0'/>
  96.       <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
  97.     </memballoon>
  98.   </devices>
  99.   <seclabel type='dynamic' model='apparmor' relabel='yes'>
  100.     <label>libvirt-322f8c59-33a6-4a80-72da-60b0fd2cc73a</label>
  101.     <imagelabel>libvirt-322f8c59-33a6-4a80-72da-60b0fd2cc73a</imagelabel>
  102.   </seclabel>
  103. </domain>
复制代码




5. 挂载物理机上的nfs目录:  

  1. - 在黑群晖上挂载Ubuntu上NFS:   

  2. ```shell
  3. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/homes /volume1/homes
  4. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/music /volume1/music
  5. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/photo /volume1/photo
  6. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/video /volume1/video
  7. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/documents /volume1/documents
  8. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/books /volume1/books
  9. /bin/mount -t nfs -o hard 192.168.16.34:/mnt/nas_disk/others /volume1/others
  10. ```

  11. - 赋予开机自启动脚本执行权限

  12. ```shell
  13. chmod a+x /usr/syno/etc.defaults/rc.d/S99mount.sh
  14. ```
复制代码




WechatIMG24.jpeg

点评

客服已返现,谢谢您的支持。  发表于 2017-7-10 11:37
回复

使用道具 举报

发表于 2017-7-8 19:05:22 | 显示全部楼层
参观了~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-5-19 09:01 , Processed in 0.067233 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表