Vagrant.configure("2") do |config|
	config.vm.define "talos-vm" do |vm|
		vm.vm.network :private_network,
			:type => "dhcp",
			:libvirt__network_address => "192.168.1.0",
			:libvirt__netmask => "255.255.255.0",
			# :libvirt__dhcp_bootp_file => "ipxe.pxe"
			:libvirt__dhcp_bootp_file => "http://192.168.1.1:8000/ipxe.pxe"

		vm.vm.hostname = "talos"

		vm.vm.provider :libvirt do |domain|
			domain.cpus = 6
			domain.memory = 16 * 1024
			domain.storage :file, :size => '100G', :type => 'raw'
			domain.mgmt_attach = false

			domain.boot "hd"
			domain.boot "network"

			domain.sysinfo = {
				"system": {
					"serial": "talos-vm"
				}
			}
		end
	end
end
