2016-11-19 4 views
0

을 시작 포장 내 build.json 파일입니다하지데비안 인스톨러는 여기

{ 
    "builders": [{ 
     "type": "virtualbox-iso", 

     "guest_os_type": "Ubuntu_64", 
     "http_directory": "http", 
     "iso_url": "http://mirrors.evowise.com/linuxmint//stable/18/linuxmint-18-xfce-64bit.iso", 
     "iso_checksum_url": "https://ftp.heanet.ie/mirrors/linuxmint.com/stable/18/sha256sum.txt", 
     "iso_checksum_type": "sha256", 
     "ssh_username": "vagrant", 
     "ssh_password": "vagrant", 
     "boot_command": [ 
      "<esc><wait><esc><wait>", 
      "/casper/vmlinuz initrd=/casper/initrd.lz", 
      " url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", 
      " boot=casper automatic-ubiquity quiet splash noprompt", 
      " -- ", 
      "<enter>" 
     ], 
     "shutdown_command": "echo 'vagrant' | sudo -S shutdown -P now", 
     "hard_drive_interface": "sata", 
     "output_directory": "target", 
     "vboxmanage": [ 
      ["modifyvm", "{{.Name}}", "--memory", "2048"], 
      ["modifyvm", "{{.Name}}", "--cpus", "2"] 
     ] 
    }] 
} 

preseed.cfg HTTP 서버와 url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg를 통해 게시

#Step 1 
d-i debian-installer/locale string en_US 

#Step 2 
d-i time/zone string Europe/Warsaw 

#Step 3 
d-i console-setup/layoutcode string pl 

#Step 4 
d-i partman-auto/disk string /dev/sda 
d-i partman-auto/method string regular 
d-i partman-auto/choose_recipe select atomic 
d-i partman/confirm_write_new_label boolean true 
d-i partman/choose_partition select finish 
d-i partman/confirm boolean true 

#Step 5 
d-i passwd/user-fullname string vagrant 
d-i passwd/username string vagrant 
d-i passwd/user-password password vagrant 
d-i passwd/user-password-again password vagrant 
d-i user-setup/allow-password-weak boolean true 
d-i netcfg/get_hostname string vagrant 
d-i passwd/auto-login boolean true 

# Use non-free packages 
ubiquity ubiquity/use_nonfree boolean true 

#if you want to start commands after the installation 
ubiquity ubiquity/success_command string in-target apt-get -y install openssh-server && /etc/init.d/ssh restart; 

#Step 6 
ubiquity ubiquity/summary note 
ubiquity ubiquity/reboot boolean true 

나의 이해가 "http_directory": "http"입니다 (HTTP 하위 디렉토리에 있음)해야 그것을로드하십시오. 그러나 이것은 일어나지 않습니다. 기계는 Linux Mint로 부팅되며 GUI를 통해 수동으로 설치할 수 있습니다. 내가 뭘 놓치고 있니?

+0

나는 민트에 민트 18 XFCE에서 17.3 XFCE 변경과가 설치 않습니다. 어떤 버그 야? – abc

답변

1

박하 18 kde를 미리 설정하려고 시도하는 동안이 문제를 보았고 'boot :'프롬프트를 얻기 위해 'esc'를 누르면 항상 프롬프트에서 입력 한 내용에 상관없이 항상 라이브 CD로 부팅되는 것처럼 보였습니다. .

그러나, 첫 번째 메뉴 항목에서 탭을 타격 명령을 제거하고, 편재로 내 다음 자신의 부츠로 교체. 여기 내 부팅 명령을 내 포장 파일에서의 :

"boot_command": [ 
    "<esc><wait><tab><wait><leftCtrlOn>u<leftCtrlOff>", 
    "/casper/vmlinuz initrd=/casper/initrd.lz", 
    " url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", 
    " automatic-ubiquity debug-ubiquity boot=casper nosplash noprompt", 
    " -- ", 
    "<enter>" 
] 

이 첫 번째 부팅 명령을 제공하고 라인을 삭제하고 내가 원하는 명령을 입력하기 CTRL-U를 사용합니다. 이상한 무엇

+0

고마워요. – abc