Add support for virtual machines
Any plans to support virtual devices? e.g. a VM or virtualized network appliance which may have multiple interfaces and be parented to a single 'Device' or a 'Platform' of devices?
Whilst you could do this by creating a non racked device type for Virtual devices the issue is that they are not able to be displayed in the location or rack pages. Having some additional support for displaying these type of virtual devices would be very handy.
+1.
We have a lot of VMs and I am creating them as devices on a single rack, but that does not represents the reality.
I would like to create VMs in a cluster or something so...
2016-07-15 8:05 GMT-04:00 jennec [email protected]:
Whilst you could do this by creating a non racked device type for Virtual devices the issue is that they are not able to be displayed in the location or rack pages. Having some additional support for displaying these type of virtual devices would be very handy.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/digitalocean/netbox/issues/142#issuecomment-232935032, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqK_7tNYkl8hbJWSPtQu-9Ptn3m6hBBks5qV3eQgaJpZM4JCT2f .
+1
Virtual devices would be much appreciated. Having lots of VM's and/or containers, it would be practical to have a "virtual device" with one or more interfaces, again having IP's tied to them. The "virtual device" would then be tied to a physical device (e.g. the server hosting those VM's and/or containers). This way, if you move a VM from one physical device, to another, all you'd need to do, is to change the physical/virtual connection, and the IPAM would be updated (i.e. you only have to change one thing, and the IPAM-documentation reflects that).
I think this is a great idea that many commercial DCIM products also provide modeling for.
Given the state of the underlay, the documentation/features that have not been focused on much(RPC) and foundation that needs to be setup to support VM, this feels like its sometime off in the future like version 4.0 or later?
VMs are something that can be moved between hypervisors as needed or on demand. Furthermore, a VM in the current devops mantras are here today, gone tomorrow for a number of reasons. I vote to add it, if that is the intent of the project on the roadmap now, but far off in the future.
Given how Openstack and VMware handle bare metal / VM inventory very differently, there are a host of other items we will have to sort out to possibly develop a model like what is planned for with the network in netbox and auditing via RPC.
I would suggest that this could simply be achieved by creating a new device type that is associated with the location rather than the rack or container device. This way all VMs can be documented and the IPAM would be accurate. Currently IPAM is missing all Virtual machines which account for approx 90% of all IP allocations for my company. Being able to record these IPs against a virtual device type, regardless of its underlying hypervisor type, would be a great help.
Obviously, this is all opinion here, but looking at the IPAM alternatives and the roadmap for netbox, I would suggest we do not rush to add virtual devices to the current system until we better map this out.
phpIPAM (a very popular IPAM) handles IPs as objects linked to names/descriptions. Yes IPs/interfaces of a VM or server in that case are not related to one another by a common object id, but they can be correlated when searching and using a common naming standard.
It also gets tedious creating all of these vm objects/IT assets manually. Overlays, virtual hosts, user/server endpoints need some thoughtful consideration over the next few months. It just feels like other parts of the model need to mature before this is tackled. For example, by first instituting DNS lookups, the tedious nature of create better information about IPs can be helped along by leveraging existing records(if you set those up obviously).
The "device must have a rack location" immediately struck me as.. limiting. As an ISP, we have devices in places that are mounted to the wall or in a cable doghouse, etc.
I was happy to find the workaround of adding a non-rack device. At that point I decided I could treat "Rack" as a code word for IDF and it fits in 99% of the cases.
The only place it falls apart for me is the aforementioned virtual machine case, where we might spread out hypervisors in a cluster to different places in a datacenter (for power, fiber, environmental redundancy) and then we would need to say this virtual machine is in ... whichever rack. I suppose there are even times when someone might spread out hypervisors to different datacenters, which means you might need to assign a device to a region rather than a site.
The reality is that devices are already tied to a site (which could be considered a location). It would be nice if Rack was considered an optional value so we could say no rack.
Alternatively, if we could generalize locations but make them nested, you could have "3rd floor IDF", or "Datacenter 2nd Floor" as a location, then as a sublocation you could say "Cage Z5", then under that you put "Rack 3"
I guess it all comes down to how people want to shoehorn their data into the places that are provided. You could name your site "Telx Datacenter - 3rd Floor" then setup racks under it as "Cage Z5 - Rack 2", with another site being "Telx Datacenter - 2nd Floor".
I don't like this workaround, but I don't know what a good solution would be.
Noting here that both https://github.com/digitalocean/netbox/issues/180#issuecomment-238247048 & https://github.com/digitalocean/netbox/issues/198 mention that a device & rack will always be considered physical. With that in mind does anyone have any ideas for how to handle implement handling static IP assignments of VMs in netbox beyond just assigning a description to an IP address?
@Gelob , you can add a 'Virtual' form factor interface to the physical host. Although the limitation here is the VM is always expected to be on that same physical host.
As an environment with mixed cloud and datacenter infrastructure, I'd love to see the ability to define certain devices as VM hosts or guests and link them together for ease of navigation and the ability to quickly see the hosts that hold each guest.
Also, not sure if this should be a separate request or not; but I would love to see the ability to give an AWS credential and poll/query all of the AWS infrastructure for always up-to-date IPAM, Device Mangement/Documentation etc.
Until this feature is implemented in some way, I've come up with the following "workaround" (albeit tedious, it serves my purpose well);
- Create a device for the physical server the VM/containers will run on, and place it in whatever site and rack it's supposed to be in.
- Create a manufacturer called
Virtual, and two device types using that as the manufacturer;ContainerandVM(or whatever else you want to call them). Set the height to 0U, and set whatever other parameters you want (e.g.eth[0-1]as interfaces). - Create device bays on the physical server. This supports the use of
[]to create a list of bays, and we use the ID of the container/VM as the name (e.g.[1000-1099]to create 100 device bays). - Create the needed VMs/containers using their hostnames as name or whatever, setting IP-addresses and other things. Then assign them to the rack that you put the physical server in.
- You can then add these unracked devices to the device bays of that server.
- Should look something like this;

The "best" benefit I find from using this approach, is that the IP-use is tied to something trackable, and you don't have to register things twice (i.e. when adding the IP to the host, it's already documented in IPAM). There is also less need to set a description of the IP (as it's tied to a host that should be sufficient information), which is nice if the host changes hostname or similar (as changing the hostname of the host also change it in IPAM).
The only "limitation" so far is for VMs/containers that can automatically fail over to other physical servers (so you'd lose control of what physical device the VM/container runs on). There also might be limitations using this approach when having blade servers in blade chassis (i.e. not sure if two layers of device bays is possible).
Could you extend this by creating a non racked device that has container bays? If so then you could create one that represents the cluster of hypervisor hosts and add the VMs to that instead. Keeping both physical and virtual logically separated.
On Monday, 15 August 2016, Joachim Tingvold [email protected] wrote:
Until this feature is implemented in some way, I've come up with the following "workaround" (albeit tedious, it serves my purpose well);
- Create a device for the physical server the VM/containers will run on, and place it in whatever site and rack it's supposed to be in.
- Create a manufacturer called Virtual, and two device types using that as the manufacturer; Container and VM (or whatever else you want to call them). Set the height to 0U, and set whatever other parameters you want (e.g. eth[0-1] as interfaces).
- Create device bays on the physical server. This supports the use of [] to create a list of bays, and we use the ID of the container/VM as the name (e.g. [1000-1099] to create 100 device bays).
- Create the needed VMs/containers using their hostnames as name or whatever, setting IP-addresses and other things. Then assign them to their respective device bay using the ID.
- Should look something like this; [image: Device Bays] https://camo.githubusercontent.com/2863ff9b72d141ea206b25e73d9d2df384d0aafd/687474703a2f2f66696c65732e6a6f636b652e6e6f2f622f64756d705f323031362d30382d31355f31392e32312e35322e706e67
The "best" benefit I find from using this approach, is that the IP-use is tied to something trackable, and you don't have to register things twice (i.e. when adding the IP to the host, it's already documented in IPAM). There is also less need to set a description of the IP (as it's tied to a host that should be sufficient information), which is nice if the host changes hostname or similar (as changing the hostname of the host also change it in IPAM).
The only "limitation" so far is for VMs/containers that can automatically fail over to other physical servers (so you'd lose control of what physical device the VM/container runs on). There also might be limitations using this approach when having blade servers in blade chassis (i.e. not sure if two layers of device bays is possible).
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/digitalocean/netbox/issues/142#issuecomment-239867645, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDGqV_4wgYri3AhB5y6ovJQENahltixks5qgKFMgaJpZM4JCT2f .
Chris Jenner Mob: 07739712218
Could you extend this by creating a non racked device that has container bays? If so then you could create one that represents the cluster of hypervisor hosts and add the VMs to that instead. Keeping both physical and virtual logically separated.
Yes, I guess that should work as well.
1+
this would also be immensely useful for virtualized storage systems like NetApp for example.
My suggestion for this would be something like this:
Allow to create something like a "Cluster" which is just a container for multiple devices. Then, you can create "virtual" devices (devices of a special type or with a "virtual" checkbox clicked) that are not assigned to a rack but to a "Cluster". the "Cluster" could have other properties as well, for example it could be (logically) linked to another Cluster as "failover partner" or something
If these virtual devices are considered devices as well, this could even be done recursively, for example to add KVM machines or Docker containers that are themselves running in a virtual linux VM.
This is the only thing stopping us from completing our migration from Racktables.
This is one thing I liked how Racktables worked. You could flag a server object as a Hypervisor. Then you could nest VM's against servers with that flag. You could also create Virtual Cluster objects, assign Servers to the Cluster and then nest the VM's under the Cluster.
I also was looking at this as a DCIM solution. We have a majority of our serves as virtual machines, both in Amazon and an internal cloud that we don't control. I would like to use netbox, but the lack of support for virtual machines is frustrating. I see the solutions listed here for adding them as "device bays" for the servers they are hosted on, but as this stuff is all in "clouds", there are no physical servers we would track to do so with...
@Gorian the way I have been doing it with my VM's for the moment its to use site as "Virginia AWS" and Device type "AWS VM". I also add them to a rack group so they are easier to find but, I do not rack them.
I'd like to reiterate that the DCIM component of NetBox relates strictly to physical infrastructure only. It has absolutely no support for virtual machines, and any attempt to shoehorn the management of VMs into it will almost certainly end in sadness and drinking. The only overlap with VMs present in the current feature set is on the IPAM side; obviously, people want the ability to track VM IP assignments as well.
It wouldn't make sense to try and extend the current DCIM component to accommodate virtual machines: VMs don't have rack positions, interface form factors, console, power, etc. The ideal approach would almost certainly be to create a new subapplication alongside the DCIM, IPAM, and other components to track virtual machines. But before we can do this, we need to decide what the data model will look like.
Defining a model to represent a VM should be fairly straightforward, as is associating it with a physical hypervisor device. We can also create a model to represent virtual interfaces which can only be associated with virtual machines. The gap left to close, then, is the assignment of IP addresses to these virtual interfaces. Currently, the IPAddress model can be assigned only to physical interfaces. There are a few ways around this, and I'm going to have to give it some more thought. For now I just wanted to let everyone know what I'm thinking regarding this feature.
@jeremystretch What do you think about the fact that virtual machines can migrate between hosts (live or not)? Perhaps the data model could contain the information about what physical servers can host a given VM with optional information about it's current placement, which might or might not be true at the moment, but the additional information could point to different machines where the VM might be.