Bug #24222
Add NIC default to new VM
FreeNAS Mini XL
Description
I created VM via FreeNAS traditional GUI and I cannot get it to boot, unless I remove the NIC.
I tried VirtIO NIC and Intel NIC, but in both cases it fails to boot.
The only log record I find is in dmesg when it creates a new tap inteface (0,1,2,...) on every "Start" click:
tap0: Ethernet address: 00:bd:ca:14:0e:00
tap0: promiscuous mode enabled
root@mlincek:/var/log # ifconfig tap0
tap0: flags=8903<UP,BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:b8:ed:14:00
nd6 options=1<PERFORMNUD>
media: Ethernet autoselect
status: no carrier
groups: tap
I don't find any other log. Log records pop-up in middlewared.log only if I remove the NIC from VM configuration and boot is successful.
But with NIC configured there is nothing in middlewared.log.
Associated revisions
History
#1
Updated by Marcelo Araujo almost 4 years ago
- Status changed from Unscreened to 15
- Priority changed from No priority to Important
Hi,
Could you please tell me what OS guest are you trying to run?
Also please send me your debug files, go to: System->Advanced->Save Debug.
Best,
#2
Updated by Damjan Perenic almost 4 years ago
- File debug-mlincek-20170531121548.tgz added
If NIC is enabled, it does not come to a bootstrap stage. It would be ubuntu otherwise. Attached are debug files and I also recorded short video that to describe the problem clearer.
#3
Updated by Marcelo Araujo almost 4 years ago
- Status changed from 15 to Investigation
Thanks for all info! I'm checking it.
#4
Updated by Marcelo Araujo almost 4 years ago
- Status changed from Investigation to Resolved
First of all, thanks for the report, it was a bug.
I have fixed it already, probably in the next Nightlies it will be available.
For now what you can do is, edit that NIC and past this address: 00:a0:98:FF:FF:FF it will create a random MAC ADDRESS for your interface.
Let me know if it works for you.
Best,
#5
Updated by Damjan Perenic almost 4 years ago
It does not work. This is the default MAC address when you create interface and I started with that. I only deleted it when it did not work. But that did not help either.
#6
Updated by Marcelo Araujo almost 4 years ago
- Status changed from Resolved to Investigation
Damjan Perenic wrote:
It does not work. This is the default MAC address when you create interface and I started with that. I only deleted it when it did not work. But that did not help either.
OK, I'm gonna double check it again with the next Nightlies update.
#7
Updated by Damjan Perenic almost 4 years ago
I updated to nighty 20170601, but it still does not work.
#8
Updated by Marcelo Araujo almost 4 years ago
Damjan Perenic wrote:
I updated to nighty 20170601, but it still does not work.
I made another tests installing CentOS 7 and I can't reproduce the problem anymore.
I'm using: FreeNAS-11-MASTER-201706040409 (9407688)
Have you tried to create a new VM and install CentOS again?
#9
Updated by Marcelo Araujo almost 4 years ago
- Status changed from Investigation to 15
#10
Updated by Damjan Perenic almost 4 years ago
I deleted VM and created it again. NIC is again a problem. Maybe because I have two networks?
#11
Updated by Damjan Perenic almost 4 years ago
I tested it again with FreeNAS-11-MASTER-201706110501 (1bb86ad), but it still does not work.
#12
Updated by Marcelo Araujo almost 4 years ago
- Status changed from 15 to Screened
Damjan Perenic wrote:
I deleted VM and created it again. NIC is again a problem. Maybe because I have two networks?
It can be a network problem. The bridge interface in your setup used for the VM's is connected with igb0. Your default gateway is set over igb1 with JUMBO FRAME. By default the tap interfaces will be attached to bridge0 because we right now don't have an option in our GUI where you can specify which bridge the VM should be attached.
So, we do have a limitation in our GUI where now you can't choose which interface your bridge will use.
Best,
#13
Updated by Marcelo Araujo almost 4 years ago
- Status changed from Screened to Resolved
- Target version set to 11.1
The feature will be in Nightlies soon and it is targeted to FreeNAS 11.1-RELEASE. You will be able to choose which nic the guest will be attached to.
#14
Updated by Dru Lavigne over 3 years ago
- Subject changed from VM does not boot if NIC is enabled to Add NIC default to new VM
#15
Updated by Dru Lavigne over 3 years ago
- Target version changed from 11.1 to 11.1-BETA1
#16
Updated by Joe Maloney over 3 years ago
- Needs QA changed from Yes to No
- QA Status Test Passes FreeNAS added
- QA Status deleted (
Not Tested)
#17
Updated by Dru Lavigne over 3 years ago
- File deleted (
debug-mlincek-20170531121548.tgz)