Veewee::Session.declare({ :cpu_count => '1', :memory_size=> '256', :disk_size => '40960', :disk_format => 'VDI', :hostiocache => 'off', :os_type_id => 'NetBSD_64', :iso_file => "netbsd613_64.iso", :iso_src => "http://iso.netbsd.org/pub/NetBSD/iso/6.1.3/NetBSD-6.1.3-amd64.iso", :iso_sha256 => "830dd6871e228ba53522b1148e0ba87df9d3024b45bc12a630406257d0d93ce5", :iso_download_timeout => "1000", :boot_wait => "10", :boot_cmd_sequence => [ # 1. Install NetBSD '1', ''*20, # a: Installation messages in English '', # a: unchanged '', # a: Install NetBSD to hard disk '', # Shall we continue? b: Yes 'b', # >Hit enter to continue '', # Select your distribution b: Installation without X11 'b', # a: This is the correct geometry '', # b: Use the entire disk 'b', # Do you want to install the NetBSD bootcode? a: Yes '', # Choose your installation b: Use existing partition sizes 'b', # x: Partition sizes ok 'x', # Please enter a name for your NetBSD disk [VBOX HARDDISK ]: '', # Shall we continue? 'b', ''*15, # Bootblocks selection 'x', # Install from a: CD-ROM / DVD / install image media '', ''*30, # Hit enter to continue '', # d: Change root password 'd', # yes or no? a: Yes '', # Changing local password for root. 'vagrant', 'vagrant', 'vagrant', # g: Enable sshd 'g', # a: Configure network 'a', # Which device shall I use? [wm0] '', # Network media type [autoselect]: '', # Perform DHCP autoconfiguration? a: Yes '', ''*5, # Your DNS domain [example.com]: '', # Your host name: 'NetBSD61-amd64', # Perform IPv6 autoconfiguration? a: No '', # Are they OK? a: Yes '', ''*10, # Is the network information you entered accurate for thes machine # in regular operation and do you want it installed in /etc? a: Yes '', # x: Finished configuring 'x', # Hit enter to continue '', # e: Utility menu 'e', # a: Run /bin/sh 'a', # put "PermitRootLogin" on /etc/ssh/sshd_config 'mount /dev/wd0a /mnt', 'echo "PermitRootLogin yes" >> /mnt/etc/ssh/sshd_config', 'umount /mnt', 'reboot' ], :kickstart_port => "7122", :kickstart_timeout => "300", :kickstart_file => "", :ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "vagrant", :ssh_key => "", :ssh_host_port => "7222", :ssh_guest_port => "22", :sudo_cmd => "sh '%f'", :shutdown_cmd => "/sbin/shutdown -p now", :postinstall_files => [ "base.sh", "vagrant.sh", "chef.sh" ], :postinstall_timeout => "10000" })