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.

[SOLVED] Issues in getting an IP for the Windows VM

Featured Replies

I took Ironicbadger's advise to start the discussion here in order to avaid any further hijacking of his guid.

 

Let me first provide the vie what VM's I'm using (..or want to use):

ArchVM:    vif = [ 'mac=00:16:3e:xx:xx:xx,bridge=br0' ]
Debcloud:  vif = [ 'mac=00:16:3e:a1:bc:a4,bridge=br0' ]
Windows 7: vif = [ 'mac=00:16:3e:51:20:4c,bridge=br0,model=e1000' ]

 

ArchVM and Debian are both getting an IP. I was trying:

* with and without model=e1000

* other mac addresses like 00:16:3e:xx:xx:xx, 00:16:3e:xx:xx:01, 00:16:3E:51:20:4C, 00:16:3e:a1:bc:a5

* Rebooted the whole system

* Rebooted my router (AVM Fritzbox)

* removed anything but these lines:

name = 'windows'                                                                                                                    
builder = 'hvm'                                                                                                                     
vcpus = '4'                                                                                                                
memory = '2048'                                                             
disk = [                                                                                                                            
        'file:/mnt/cache/.VMs/Windows/windows.img,hda,w',                                                                           
        'file:/mnt/cache/.VMs/Windows/windows.iso,hdc:cdrom,r'                                                                      
        ]                                                                                                                           
vif = [ 'mac=00:16:3e:51:20:4c,bridge=br0' ]

 

At start:

root@Tower:/mnt/cache/.VMs/Windows# xl create windows.cfg
Parsing config from windows.cfg
xc: info: VIRTUAL MEMORY ARRANGEMENT:
  Loader:        0000000000100000->000000000019ec84
  Modules:       0000000000000000->0000000000000000
  TOTAL:         0000000000000000->000000007f800000
  ENTRY ADDRESS: 0000000000100000
xc: info: PHYSICAL MEMORY ALLOCATION:
  4KB PAGES: 0x0000000000000200
  2MB PAGES: 0x00000000000003fb
  1GB PAGES: 0x0000000000000000
Daemon running with PID 15967

 

Syslog:

Feb 25 19:06:42 Tower root: /etc/xen/scripts/vif-bridge: online type_if=vif XENBUS_PATH=backend/vif/28/0

Feb 25 19:06:43 Tower kernel: device vif28.0 entered promiscuous mode

Feb 25 19:06:43 Tower root: /etc/xen/scripts/vif-bridge: Successful vif-bridge online for vif28.0, bridge br0.

Feb 25 19:06:43 Tower root: /etc/xen/scripts/vif-bridge: Writing backend/vif/28/0/hotplug-status connected to xenstore.

Feb 25 19:06:43 Tower root: /etc/xen/scripts/vif-bridge: add type_if=tap XENBUS_PATH=backend/vif/28/0

Feb 25 19:06:43 Tower kernel: device vif28.0-emu entered promiscuous mode

Feb 25 19:06:43 Tower root: /etc/xen/scripts/vif-bridge: Successful vif-bridge add for vif28.0-emu, bridge br0.

Feb 25 19:06:43 Tower kernel: br0: port 6(vif28.0-emu) entered listening state

Feb 25 19:06:43 Tower kernel: br0: port 6(vif28.0-emu) entered listening state

Feb 25 19:06:58 Tower kernel: br0: port 6(vif28.0-emu) entered learning state

Feb 25 19:07:13 Tower kernel: br0: topology change detected, propagating

Feb 25 19:07:13 Tower kernel: br0: port 6(vif28.0-emu) entered forwarding state

 

Any further ideas?

I set a static IP in my Windows VM (though it had no issues grabbing one). Have you tried that yet?

 

If you have an iPad, get the app "SubnetInsight" which will scan your local network and list out all devices connected. It can help you identify the VM's IP address if it is indeed getting an IP but you don't know what it is.

 

My CFG is the same as the template minus Mac ID, IMG file names, VCPU, and RAM.

Do you ever get an IP?  Like once every 10 boots you get one, etc?

 

In windows, do you see the NIC?  Does it tell you anything?

 

As noted, try a static IP, this is what I would look at first.

 

Have you checked your DHCP pool?  Maybe you are out of IP addresses.  If static works, check your pool or use static.  I do not see this as a xen issue.  If you see the NIC and the issue is it does not get an IP, it is something else.

 

Here is another one, try adding a physical machine, if you have the hardware laying around to do so.

 

Or, copy the arch config, make another arch VM and see if you can get an IP there.  Or, simply add another NIC to the existing Arch vm and see if it gets an IP.

  • Author

The Windows VM was never getting an IP, so how should I see a NIC?  The DHCP pool is large. I can get IP addresses up to 192.168.178.255. I never had any issue with this router. It assigns addresses always - for any new device.

 

I'm going to add anothe Arch or Debian VM tomorrow and I will try the static IP advise. Thanks a lot at least two more things that I can try.

 

 

 

Sent from my iPad using Tapatalk

What do you mean how would you see a Nic?  Even if it doesn't have an ip,  the NIC will still be there.  It would have a 169.254.x.x address.  But if you don't even see a Nic, check device manager first,  maybe the driver failed,  beyond that if you don't see a Nic something else is wrong. 

 

If the NIC is there try installing the driver pack in the sticky.

  • Author

Smakovits, I made the test that you suggested.

Copied the whole debcloud folder and changed the respective debtest.cfg by using mac address that I reserved for the Windows VM:

vif = [ 'mac=00:16:3e:51:20:4c,bridge=br0' ]

The router immediately assigned 192.168.178.23 which is the address that I attached to the mac (per router settings). I think we can say that the router isn't  the issue right?

 

Coming back to the NIC discussion. This is how I understood the steps to install Windows as HVM guest on unRAID:

1. Create a cache only share [DONE: /mnt/cache/.VMs/]

2. Goto that VMs share and create a windows folder [DONE: /mnt/cache/.VMs/Windows]

3. In the windows folder create a windows.cfg file [DONE]

4. SSH into unRAID and goto /mnt/cache/.VMs/Windows and create window image file [DONE: truncate -s 30G windows.img]

5. Start the windows installation [xl create /mnt/cache/.VMs/Windows/windows.cfg]

6. Connect via VNC to windows setup and complete install

7. After install you can edit the cfg and remove the windows ISO from the disk line.

8. Install GPLPV Drivers

 

My issue is starting after 5.) As long as the VM isn't getting an IP I can't connect via VNC, hence how should I see the NIC?

You connect via vnc to the host! Not guest. That's how.

 

Sent from my Nexus 5 using Tapatalk

 

 

  • Author

OMG - how embarrassing  :-[

 

Apologize for wasting the time of those who were looking into this .... I re-read the guide and it's crystal clear:

Then fire up your VNC viewer and type in the IP address of the unRAID server

 

Seeing Windows Installer in TightVNC now.Thanks a lot for the clarification.

Haha,  no worries.  Glad we could help

:) happens to all of us at some point mate.

 

Sent from my Nexus 5 using Tapatalk

 

 

  • Author

Thanks a lot for the understanding

 

Lucky to use Windows 7 as a XEN guest now. It offers a great performance, even before having installed the GPLPV drivers.

 

Last question - at least Windows related: has anyone attached a DVD Drive to the Windows guest? I was trying "xm block-attach" but failed.

Thanks a lot for the understanding

 

Lucky to use Windows 7 as a XEN guest now. It offers a great performance, even before having installed the GPLPV drivers.

 

Last question - at least Windows related: has anyone attached a DVD Drive to the Windows guest? I was trying "xm block-attach" but failed.

 

First of all, please mark this thread as solved.

 

Second, you'll be wanting PCI passthrough to attach an external drive. That's a whole different ball game. :)

 

I had little luck with win7 and passthrough but YMMV. Bear that in mind when asking for my help!

 

Sent from my Nexus 5 using Tapatalk

 

 

  • Author

Great point - marked as solved.

 

I wasn't aware that the DVD ROM has to be passed through. In ESXi, Windows 7 was just accessing the drive without any hassle. Only the RAID card with the HD's had to be passed through. The DVD drive, attached to the main board SATA port was available for the Win 7 VM....so that's why I thought it's similar in XEN  :-\

Great point - marked as solved.

 

I wasn't aware that the DVD ROM has to be passed through. In ESXi, Windows 7 was just accessing the drive without any hassle. Only the RAID card with the HD's had to be passed through. The DVD drive, attached to the main board SATA port was available for the Win 7 VM....so that's why I thought it's similar in XEN  :-\

 

You're using Xen, not ESXi now  ;)

 

AFAIK it's a sata device, therefore it'll need to be passed through like any other. I will happily stand corrected though as it's not something I've ever tried myself via any other method than that.

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.