Add UnRaid to a Domain Server that is running in an UnRaid VM


rutri

Recommended Posts

Hello,

    I am currently evaluating UnRaid to see if it will serve my needs.  So far I am impressed it seem to be easy to use.  However right now I'm having issues trying to add UnRaid to my domain, however my domain server is a VM that is being run under UnRaid's VM services.  I think that UnRaid is stopping the disks and shutting down the server it needs to connect to before attempting to connect to it.  This results in its inability to join the domain.  Any help would be appreciated at this time, thanks in advance.

 

Edited by rutri
Link to comment

Its been a week since my last post and it would appear that no one knows how to solve my little dilemma or is interested in helping.  In trying to get my UnRaid server up and running as my primary OS for my server I have decided to try another approach.  I am setting up the shares and disabling the samba server on UnRaid and having my domain controller . So what I am doing is mounting the shares in my controller however my transfer rates over the Ethernet is ~32 MB per second.  I would like to get some help resolving this issue if possible.  If anyone has a suggestion that may be better then what I am doing I may be open to that as well.  Se my configuration below.  As for my hardware, the cache drives I'm using are Samsung 840 Pro's and my regular drives are WD Red 4TB NAS HDD.

 

fstab

## UnRaid Shares
UnRaidISO /mnt/ISO 9p msize=262144,trans=virtio,version=9p2000.L,nobootwait,acl,user_xattr,rw,_netdev    0   0
UnRaidMedia /mnt/Media 9p msize=262144,trans=virtio,version=9p2000.L,nobootwait,acl,user_xattr,rw,_netdev    0   0
UnRaidApplications /mnt/Applications 9p msize=262144,trans=virtio,version=9p2000.L,nobootwait,acl,user_xattr,rw,_netdev    0   0
UnRaidBackup /mnt/Backup 9p msize=262144,trans=virtio,version=9p2000.L,nobootwait,acl,user_xattr,rw,_netdev    0   0
UnRaidDocuments /mnt/Documents 9p msize=262144,trans=virtio,version=9p2000.L,nobootwait,acl,user_xattr,rw,_netdev    0   0

VM Configuration

<domain type='kvm' id='4'>
  <name>Zentyal</name>
  <uuid>de79a0fb-ce1f-4c30-49b4-5a2d8c2477f3</uuid>
  <metadata>
    <vmtemplate xmlns="unraid" name="Ubuntu" icon="ubuntu.png" os="ubuntu"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>4194304</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>2</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='2'/>
    <vcpupin vcpu='1' cpuset='3'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.7'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/de79a0fb-ce1f-4c30-49b4-5a2d8c2477f3_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='2' threads='1'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writeback'/>
      <source file='/mnt/user/domains/Zentyal/vdisk1.img'/>
      <backingStore/>
      <target dev='hdc' bus='virtio'/>
      <boot order='1'/>
      <alias name='virtio-disk2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x08' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <alias name='usb'/>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <alias name='usb'/>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'>
      <alias name='pcie.0'/>
    </controller>
    <controller type='pci' index='1' model='dmi-to-pci-bridge'>
      <model name='i82801b11-bridge'/>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x07' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <model name='pci-bridge'/>
      <target chassisNr='2'/>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </controller>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/Media/'/>
      <target dir='UnRaidMedia'/>
      <alias name='fs0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/>
    </filesystem>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/Applications &amp; Drivers/'/>
      <target dir='UnRaidApplications'/>
      <alias name='fs1'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0'/>
    </filesystem>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/ISO/'/>
      <target dir='UnRaidISO'/>
      <alias name='fs2'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </filesystem>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/Backup/'/>
      <target dir='UnRaidBackup'/>
      <alias name='fs3'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </filesystem>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/mnt/user/Documents/'/>
      <target dir='UnRaidDocuments'/>
      <alias name='fs4'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x05' function='0x0'/>
    </filesystem>
    <interface type='bridge'>
      <mac address='52:54:00:2a:e7:e5'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x06' function='0x0'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/0'/>
      <target port='0'/>
      <alias name='serial0'/>
    </serial>
    <console type='pty' tty='/dev/pts/0'>
      <source path='/dev/pts/0'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    </console>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/domain-4-Zentyal/org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5900' autoport='yes' websocket='5700' listen='0.0.0.0' keymap='en-us'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x09' function='0x0'/>
    </memballoon>
  </devices>
  <seclabel type='none' model='none'/>
  <seclabel type='dynamic' model='dac' relabel='yes'>
    <label>+0:+100</label>
    <imagelabel>+0:+100</imagelabel>
  </seclabel>
</domain>

 

Edited by rutri
Link to comment
  • 3 weeks later...

Hi rutri,

I am sorry that you are encountering radio silence here, we are normally quite a helpful group. The original thing you were trying to do is very non-standard and i would guess that no one really knows how to help. To my knowledge using unRAID in a domain network is fairly rare to begin with. As for your second question it is still way above my head, but if I understand correctly you are having issues passing through folders to a VM and then sharing those folders from the VM over Ethernet (using SAMBA?). You might have better luck posting a new question about the passthrough issue specifically in the "VM Engine (KVM)" subforum https://forums.lime-technology.com/forum/51-vm-engine-kvm/ . I think that would be more likely to get the correct eyes on your issue.

Link to comment

Hi,

 

Just my guess after having run vSphere in a domain where the domain controllers are also VMs under the same vSphere instance  in a production environment. A lot of scaffolding is present and is a directly supported configuration. ( We almost had a lot of fun when the entire datacenter/environment was powered down for physical relocation )
unRAID doesn't really have all the bits and pieces necessary to support such a setup. I'd really suggest this though.

 

Your domain should have more than one controller. Run one of the controllers on bare metal (or another vm platform), the other under unRAID (if you want.) This would allow everything work even if the unRAID server needed to be rebooted, maintenance etc.

Link to comment

primeval,

 

I thought of using samba over the internet witch is why I tried to have it connect over my domain.  Unfortunately it was a hassle to deal with workgroups and my domain since they don't really talk to each other.  That is why I tried to connect it to my domain, unfortunately it also meant that I had to shutdown the VM and the array.  Since it is something I am running at home having another server is not worth the effort nor do I have money to cover the cost.  The issue I have here is really the degradation in performance.  Switching to UnRaid, has dropped my performance from 300+ MB\s to 30, witch is an order of magnitude smaller.  This should be able to perform much better, I'm not sure if it has to do with the VM or the file system, it may even be the way the interact with each other.  I was reading other threads in this form and they were getting 100+ MB/S this should be able to do it as well.  I will try putting a post on the other forum and see what I get.  If not, I may just go bay to my Ubuntu server and kiss my 129 dollar investment good-buy.  It would be a shame, there are some features of UnRaid I like.  I also wish they would allow raid zero for matching drives it would give you performance that is comparable to raid 5 or 6.  Anyways, thank for the response.

 

ken-ji,

In my case having another controller is not an option, since I run my server for my home not for a business.  One of the reasons for changing to UnRaid is because I could test some of the new updates before I bring them live.  I am using some beta software for my domain controller because it is free.  having a second instance allowed me to decide what to update and what to wait on.  Since i have been burned by updates in the past this would allow me to use the free bleeding edge community version for free and add some stability.  These features would be nice to have, I'm not sure why they need to bring the array down to change the samba settings int he first place, it is what it is.  I also have been starting to use Dockers more and I like the features they allow you to add.  Over all it is a great product, it just might not be the thing for me.

 

I appreciate the responses guys, it took some time but at least a couple of people responded.

 

Link to comment
  • 1 year later...
  • 2 months later...

you are correct. unraid shuts down the docker and VM services when trying to join a domain - thus, you must have at least one domain controller outside of the unraid VM umbrella. (I am trying to set this up right now. I plan to make the unraid VM - zentyal - the primary controller, and have a secondary running on my Windows Server 2016 Core machine that currently only runs pfsense as a VM. Once I have them both configured, I can join the domain in unraid and then the unraid zentyal VM will (hopefully) do all of the heavy lifting and the Win-S16c box can still be mostly pfsense.

I am configuring this in my home lab as a test for a production environment right now. The most trouble I have had so far is just configuring the networking correctly on all of the VM hosts. My network map is a spaghetti monster, lol... unraid is that single hiccup that is forcing a 2nd domain controller though. It sucks, but it does give me the redundancy that the rest of my network enjoys.

Link to comment
  • 2 months later...

I just jumped in this boat. I was running my secondary AD on unRaid VM, so I could power down my primary, because it is an annoyingly loud Dell retread server off eBay.

 

I messed up a secondary DNS record and auth stopped working.    I updated unRaid and rebooted.

 

Guess I'm firing the jet engine server back up so I can get unRaid re-joined. 

 

 

Link to comment
  • 2 weeks later...

I was able to manually join to my unRaid VM hosted AD after a power failure today by starting up the VM, and then going to terminal and just typing:

 

net join -U Administrator

 

Where Administrator is your domain admin username.  It pulls the info out of the samba config that should be set in the SMB portion of your settings inside the unRaid web GUI.

 

It'll join, maybe complain about DNS depending on how your DNS settings are set in Network settings.  (Mine are set to VM static IP in position 1, primary domain IP in position 2, then my DNS resolver in position 3).

 

And the GUI will show that it isn't joined... but it works, and I'm able to browse my shares using the VM AD as the AD server. 

 

Didn't need to start the Dell server.  Very happy.

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.