Created
March 13, 2011 05:13
-
-
Save draco2003/867887 to your computer and use it in GitHub Desktop.
Getting Close on the FreeBSD side, but still a booting issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Veewee::Session.declare( { | |
:cpu_count => '1', :memory_size=> '768', | |
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' , | |
:os_type_id => 'FreeBSD_64', | |
:iso_file => "PCBSD8.2-x64-DVD.iso", | |
:iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/amd64/PCBSD8.2-x64-DVD.iso", | |
:iso_md5 => "d417b7d45d2acad5279484162113de14", | |
:iso_download_timeout => "1000", | |
:boot_wait => "60",:boot_cmd_sequence => [ | |
'<KillX>', | |
'<Enter>', | |
'dhclient em0<Enter>', | |
'sleep 10;echo "Lets Get the File";fetch "http://%IP%:%PORT%/pcinstall.fbg.cfg";sleep 2;echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>', | |
], | |
:kickstart_port => "8080", :kickstart_timeout => "10000",:kickstart_file => "pcinstall.fbg.cfg", | |
:ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "root",:ssh_key => "", | |
:ssh_host_port => "7222", :ssh_guest_port => "22", | |
:sudo_cmd => "sh '%f'", | |
:shutdown_cmd => "shutdown -H", | |
:postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000" | |
} | |
) | |
#'setkmap=us dodhcp=eth0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scancode.rb: | |
I changed the port to 8080, since i couldn't get it to connect with your default for some reason? | |
s.gsub!(/%PORT%/,'8080'); | |
I Added the following lines at the bottom of the specials list for ease of use: | |
# Ctrl + Alt + Backspace to kill X and drop to prompt | |
special['<KillX>'] = '1d 38 0e'; | |
Attached is a basic pcinstall.fbg.cfg for the vm to pull in during install. I dropped it in the FreeBSD template dir. | |
So far the VM boots up, pulls down the config and installs. On reboot though it errors out due to missing root filesystem. It's switching from ada0 to ad4 after reboot which is strange. | |
I'll dig more into this once I get a chance, but figured maybe if I can get you there, you could play with it more as well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
installInteractive=no | |
installMode=fresh | |
installType=FreeBSD | |
packageType=tar | |
hostname=veewee | |
installMedium=dvd | |
netSaveDev=AUTO-DHCP | |
# Set the disk parameters | |
disk0=ada0 | |
partition=ALL | |
bootManager=none | |
partscheme=MBR | |
commitDiskPart | |
# Setup the disk label | |
# All sizes are expressed in MB | |
disk0-part=UFS 1024 / | |
disk0-part=SWAP 512 none | |
disk0-part=UFS 0 /usr | |
commitDiskLabel | |
# List our components to install | |
installComponents= | |
# Set the root pass | |
rootPass=root | |
userName=test | |
userComment=test | |
userPass=test | |
userShell=/bin/csh | |
userHome=/home/test | |
userGroups=wheel,operator | |
commitUser | |
runCommand=reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment