我目前正在做一個無業遊民中,使用封隔器。我們面臨的挑戰是,我根據ISO映像(Raspbian Jessie Pixels)具有SSH禁用,因此,它是防止腳本做一些必要的配置,封隔器腳本的一部分。打包器和修補ISO配置,以啓用SSH?
有誰知道一種方法,我可以在ISO映像過程設置,這樣我就可以啓用SSH的?
JSON的配置我都不得不時刻如下:
{
"builders": [{
"disk_size": 10140,
"guest_os_type": "Debian",
"headless": true,
"http_directory": "http",
"iso_checksum": "29c24b21e5a46c6290d980681a7bd1fbc4974111e8ff2730ba8c1f2f53a22a59",
"iso_checksum_type": "sha256",
"iso_url": "http://downloads.raspberrypi.org/pixel_x86/images/pixel_x86-2016-12-13/2016-12-13-pixel-x86-jessie.iso",
"shutdown_command": "echo 'halt -p' > shutdown.sh; echo 'vagrant'|sudo -S sh 'shutdown.sh'",
"ssh_password": "raspberry",
"ssh_port": 22,
"ssh_username": "pi",
"ssh_wait_timeout": "10000s",
"type": "virtualbox-iso",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "512"],
[ "modifyvm", "{{.Name}}", "--cpus", "2"]
],
"boot_command": [ ]
}],
"post-processors": [
"vagrant"
],
"provisioners": [{
"type": "shell",
"execute_command": "echo 'vagrant'|sudo -S sh '{{.Path}}'",
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh"
]
}]
}
字面上做同樣的事情,但用QEMU。由於ssh被禁用,打包者無法配置它,直到我手動啓用它。你有沒有找到工作? –
的人誰在這以後,我用封隔器引導命令這樣做絆倒。該命令登錄並啓用ssh。 ''' 「boot_command」:[ 「PI」, 「覆盆子」, 「命令更新的rc.d SSH使&&須藤調用-rc.d的SSH開始&& STATUS =啓用」 ]'''當然你的boot_wait需要配置正確 –