Golang tools for creating a coreos configdrive
Install golang
go get github.com/fivethreeo/create-basic-configdrive
go install github.com/fivethreeo/create-basic-configdrive
Make sure you have mkisofs installed in linux
create-basic-configdrive -h
create-basic-configdrive -H myhostname -S ~/.ssh/mykey.pub -t TOKEN
To test the configdrive with virtualbox
Install virtualbox
go get github.com/fivethreeo/create-coreos-vdi
go install github.com/fivethreeo/create-coreos-vdi
create-coreos-vdi
VBoxManage clonehd coreos_production.vdi mymachine.vdi
VBoxManage modifyhd mymachine.vdi --resize 10240
VBoxManage createvm --name "mymachine" --register
VBoxManage modifyvm "mymachine" --memory 1024 --vram 128
VBoxManage modifyvm "mymachine" --nic1 bridged --bridgeadapter1 "adapter"
VBoxManage modifyvm "mymachine" --nic2 intnet --intnet2 intnet --nicpromisc2 allow-vms
VBoxManage storagectl "mymachine" --name "IDE Controller" --add ide
VBoxManage storageattach "mymachine" --storagectl "IDE Controller" \
--port 0 --device 0 --type hdd --medium mymachine.vdi
VBoxManage storageattach "mymachine" --storagectl "IDE Controller" \
--port 1 --device 0 --type dvddrive --medium myhostname.iso
VBoxManage startvm "mymachine"
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Code working
Øyvind Saltvik
BSD MIT something