Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How Do I Get Started w/ VMs?

Featured Replies

I hate to ask such a newbie question. I am familiar somewhat with VM Virtualbox in Windows. In Win I am able to create an Ubuntu Server 14.04 machine, and install stuff on it.

 

I do not have the first clue how to do the same Ubuntu Server in unRAID. I cannot find any guides. I am doing pretty good with Dockers on v6b15, but I am a babe in the woods when it comes to VMs. Can someone please point me in the right direction?

 

Also is it possible to clone an existing real Ubuntu Server drive into a VM image? I have a real server all setup and would prefer to clone, rather than start from scratch.

 

Lastly, does a VM get its own internal IP address in my network? This way I can point to open ports in my router to the VM.

 

Many thanks.

Here's a walkthrough I did for someone trying to passthrough a tv card but it gives a good idea.

 

Make sure you've got a bridge configured in network settings.  If you want to passthrough any pcie card then you need Vt-d enabled in your BIOS (for Intel CPUs) and I think it is IOMMU in AMD CPUs.

 

Give it a go, it's dead simple.

 

Install Ubuntu Server

To answer your last question, yes the VM get's it's own IP address (I use a DHCP reservation based on the MAC I assigned it) in my case.  I'm not sure if there is a way to clone an existing server, but the setup was pretty easy using the beta 15 VM Manager.  I just passed the ISO and the vdisk info to create (vdisk will be the hard drive Ubuntu installs on).

Since this is in the KVM forum I assume you intend to use KVM. Just in case you missed some of this information though, Xen is being phased out, and you must boot without Xen to use KVM. There is a very good KVM manager in the webGUI.

I hate to ask such a newbie question. I am familiar somewhat with VM Virtualbox in Windows. In Win I am able to create an Ubuntu Server 14.04 machine, and install stuff on it.

 

I do not have the first clue how to do the same Ubuntu Server in unRAID. I cannot find any guides. I am doing pretty good with Dockers on v6b15, but I am a babe in the woods when it comes to VMs. Can someone please point me in the right direction?

 

Also is it possible to clone an existing real Ubuntu Server drive into a VM image? I have a real server all setup and would prefer to clone, rather than start from scratch.

 

Lastly, does a VM get its own internal IP address in my network? This way I can point to open ports in my router to the VM.

 

Many thanks.

See the Unraid 6 manual in my signature for more information on getting a started with VMs.

  • Author

Thank you all! I have a lot of learning to do. I am sure I will be able to tackle with everyone's pointers.

 

I do wish there was a way to clone an existing machine into a virtual image. I will start with the basics.

 

Many thanks again.

Thank you all! I have a lot of learning to do. I am sure I will be able to tackle with everyone's pointers.

 

I do wish there was a way to clone an existing machine into a virtual image. I will start with the basics.

 

Many thanks again.

There is but the process isn't documented. It will be eventually.

Thank you all! I have a lot of learning to do. I am sure I will be able to tackle with everyone's pointers.

 

I do wish there was a way to clone an existing machine into a virtual image. I will start with the basics.

 

Many thanks again.

There is but the process isn't documented. It will be eventually.

 

Hi Jono - even if it's not officially documented is there a post/thread on the forums you could point us to?

  • Author

Good news.... I was able to create my first (and probably only) VM!! I used Ubuntu Server 14.04 installed from install cd iso. I am running nZEDb indexer after trying for 2 weeks to get it running in a Docker.

 

I am currently indexing; which is the meat and potatoes of this thing. I assigned 2 cores to it, and 1.5GB and 2GB of memory... my system has 12GB.

 

Is there a way to easily tell how much memory the VM is using out of its allocation? Is there a way to easily increase this allocated amount? I can see its easy to adjust the storage size.

 

Thanks guys... much easier than I thought getting VMs going.

 

:)

Good news.... I was able to create my first (and probably only) VM!! I used Ubuntu Server 14.04 installed from install cd iso. I am running nZEDb indexer after trying for 2 weeks to get it running in a Docker.

 

I am currently indexing; which is the meat and potatoes of this thing. I assigned 2 cores to it, and 1.5GB and 2GB of memory... my system has 12GB.

 

Is there a way to easily tell how much memory the VM is using out of its allocation? Is there a way to easily increase this allocated amount? I can see its easy to adjust the storage size.

 

Thanks guys... much easier than I thought getting VMs going.

 

:)

 

It's easy to allocate more memory, just shutdown the VM and edit the config via the UI on the KVM tab.  Way easier than physically installing sticks of RAM that's for sure.

Good news.... I was able to create my first (and probably only) VM!! I used Ubuntu Server 14.04 installed from install cd iso. I am running nZEDb indexer after trying for 2 weeks to get it running in a Docker.

 

I am currently indexing; which is the meat and potatoes of this thing. I assigned 2 cores to it, and 1.5GB and 2GB of memory... my system has 12GB.

 

Is there a way to easily tell how much memory the VM is using out of its allocation? Is there a way to easily increase this allocated amount? I can see its easy to adjust the storage size.

 

Thanks guys... much easier than I thought getting VMs going.

 

:)

From the command line in the vm you can run "free -l".  Also you could install htop in the vm.

  • Author

Not sure what happened... I lost the entry in the VM page for my image. The .cfg and .img files are still stored in a folder in my cache drive.

 

Is there a way to re-add them so I can manage them on the unRAID webUI?

 

Also, if I take an existing physical Ubuntu server, and I connect the drive to another computer and boot to Parted Magic, I can dd the entire drive. Can I copy the resulting image to unRAID and launch it?

 

I assume it would be the same procedure for both.

 

Thanks,

 

H.

Need to know exactly what steps occurred prior. Flying blind without steps to recreate the issue.

 

 

Also, if I take an existing physical Ubuntu server, and I connect the drive to another computer and boot to Parted Magic, I can dd the entire drive. Can I copy the resulting image to unRAID and launch it?

 

I assume it would be the same procedure for both.

 

Thanks,

 

H.

Dd to an image file and yes, you should be able to.

 

  • Author

Thank you Jonp,

 

I upgraded to rc1. The image was still there... I was trying to figure out if there was a way to figure out your own image thing and I searched in the forum. I found this link and installed the  Virtman Libvirt plugin

http://lime-technology.com/forum/index.php?action=post;quote=338301;topic=36359.0;last_msg=339191

 

I tried to start and restart it. I then thought that it was already part of the rc1 so I deleted the plugin. Then I noticed the VM was gone from the list.

 

While I would like to get that image back... I would prefer to dd one from my real server and make it into a new VM in unRAID. But  I cannot figure out how.

 

Thank you.

 

Decided I'd try my first VM and believe I've followed instructions, but continue to fail with the same message no matter what I try (image attached).  Believe motherboard is visualization capable albeit the only option in the bios is called "Vanderpool Technology" , it's an Asus Maximus Formula with the latest BIOS.  Any help appreciated

VM.jpg.6e7ce99489b8318cee24276a8539aad0.jpg

  • Author

Wow...  :o

 

To answer my own question.... I connected my existing Ubuntu Server  HD to a computer, where I had another hard drive as weel (my Windows machine). I booted with Parted Magic and I dd the entire Ubuntu drive into a .img file.

 

I booted windows and I copied the image file into a subdirectory inside my VM directory. I went to add a VM in unRAID Web GUI, I picked the image file as Primary vDisk Location. Started it and I have my old Ubuntu server running!!

 

Decided I'd try my first VM and believe I've followed instructions, but continue to fail with the same message no matter what I try (image attached).  Believe motherboard is visualization capable albeit the only option in the bios is called "Vanderpool Technology" , it's an Asus Maximus Formula with the latest BIOS.  Any help appreciated

 

Can you try mapping your storage to a disk share or cache specifically instead of through the user share?  e.g. /mnt/disk1/someshare or /mnt/cache/someshare

  • Author

Can you try mapping your storage to a disk share or cache specifically instead of through the user share?  e.g. /mnt/disk1/someshare or /mnt/cache/someshare

 

Thanks Jon... I did create a  share on cache drive only...

Decided I'd try my first VM and believe I've followed instructions, but continue to fail with the same message no matter what I try (image attached).  Believe motherboard is visualization capable albeit the only option in the bios is called "Vanderpool Technology" , it's an Asus Maximus Formula with the latest BIOS.  Any help appreciated

 

Can you try mapping your storage to a disk share or cache specifically instead of through the user share?  e.g. /mnt/disk1/someshare or /mnt/cache/someshare

 

Thanks jonp that was indeed my problem.

  • Author

Wow...  :o

 

To answer my own question.... I connected my existing Ubuntu Server  HD to a computer, where I had another hard drive as weel (my Windows machine). I booted with Parted Magic and I dd the entire Ubuntu drive into a .img file.

 

I booted windows and I copied the image file into a subdirectory inside my VM directory. I went to add a VM in unRAID Web GUI, I picked the image file as Primary vDisk Location. Started it and I have my old Ubuntu server running!!

 

Hi Guys,

 

As I explained earlier, I was able to convert a physical server into a VM image file I can easily load in the VM page of unRAID. The image works great and have 0 complaints. The only thin I would like to figure out is how to make this VM start up whenever I restart my unRAID. Everytime I reboot, I have to manually add it.

 

I have obviously checked Auto-start. I have created an XML (copied from when clicking View XML in the context menu). I have recreated the folder structure in my VM folder to include image and xml files in matching sub-folders:

 

vms share is cache only

/mnt/user/vms/

    nZEDbVM.xml

/mnt/user/vms/nZEDbVM/

        nZEDbVM.cfg

/mnt/user/vms/nZEDbVM/nZEDbVM/

        nZEDbVM.cfg

        vdisk1.img

 

nJrsGwk.png

 

See XML below.

 

It does not start up. I do not have an install ISO as I cloned the image.

 

Any ideas?

 

Thanks,

 

H.

 

XML contents:

 

<domain type='kvm' id='2'>
  <name>nZEDbVM</name>
  <uuid>ef4edbde-7f3c-e387-4a37-019020512082</uuid>
  <metadata>
    <vmtemplate name="Custom" icon="ubuntu.png" os="ubuntu"/>
  </metadata>
  <memory unit='KiB'>4194304</memory>
  <currentMemory unit='KiB'>3145728</currentMemory>
  <memoryBacking>
    <nosharepages/>
    <locked/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='4'/>
    <vcpupin vcpu='1' cpuset='5'/>
    <vcpupin vcpu='2' cpuset='6'/>
    <vcpupin vcpu='3' cpuset='7'/>
  </cputune>
  <resource>
    <partition>/machine</partition>
  </resource>
  <os>
    <type arch='x86_64' machine='pc-q35-2.3'>hvm</type>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough'>
    <topology sockets='1' cores='4' 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/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none' io='native'/>
      <source file='/mnt/user/vms/nzedborig/nzedv.img'/>
      <backingStore/>
      <target dev='hda' bus='virtio'/>
      <boot order='1'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x04' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <alias name='usb0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <alias name='usb0'/>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='sata' index='0'>
      <alias name='sata0'/>
      <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'>
      <alias name='pci.1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1e' function='0x0'/>
    </controller>
    <controller type='pci' index='2' model='pci-bridge'>
      <alias name='pci.2'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x01' function='0x0'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <alias name='virtio-serial0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x03' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:f0:8a:04'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x01' 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/nZEDbVM.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'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <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='vmvga' vram='16384' heads='1'/>
      <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='0x05' function='0x0'/>
    </memballoon>
  </devices>
</domain>

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.