-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Welcome to emergency mode!After logging in,type "systemctl default" or ^D to try again to boot into default mode #9
Comments
Hi Quanwen Zhao, I will give some information for general startup issues. One issue is if a network proxy is required (initial .iso file to virtual hard drive) it needs to be specified (or move the build to where a proxy is not required). Another issue could be 10 seconds is not enough time to wait to give the boot instructions. Regards, 1/It takes a while to go from iso to disk before any database things are added (20mins?) 2/Network proxy: 3/Relavent Startup Settings that may cause issues: Initial iso to virtual hard disk is controlled by: Needs more than 60Gb free disk space - compressed output alone is 7.2 GB. 4/Sample output up until bash/shell scripts
^[[1;32m==> virtualbox-iso: Downloading or copying Guest additions^[[0m |
packerConfig.json: (10 seconds might not be enough on a slower machine - put in multiple The greater than less than signs messed to the formatting GT greater than, LT less than |
Hello,
is this original packerConfig.json part included content as follows ?
"builders": [
{
"type": "virtualbox-iso",
"ssh_skip_nat_mapping": true,
"ssh_host": "127.0.0.1",
"ssh_port": 2222,
"disk_size": "30000",
"guest_os_type": "Oracle_64",
"hard_drive_interface": "sata",
"boot_command": [
"<wait10>",
"<tab><wait5> text<wait> noverifyssl <wait>",
"ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/buildTimeConfig.cfg<enter><wait>"
],
"<wait10>" ? i change 10 to 60 and retry it ,when virtualbox show installation,at the same time,go to graphic installation interface and pause (it's not with kickstart originally). change this figure '10' and set how many to be suitable ?
At 2017-08-03 06:56:51, "totierne" <[email protected]> wrote:
packerConfig.json: (10 seconds might not be enough on a slower machine - put in multiple
LTwait10GT)
"boot_command": [
"LTwait10GT",
The greater than less than signs messed to the formatting GT greater than, LT less than
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
hello,
look at my error snapshot,please see enclosure,and about error in VBox.
At 2017-08-02 19:35:15, "totierne" <[email protected]> wrote:
Hi Quanwen Zhao,
I will give some information for general startup issues.
Please send in the full output of start.sh
One issue is if a network proxy is required (initial .iso file to virtual hard drive) it needs to be specified (or move the build to where a proxy is not required).
Another issue could be 10 seconds is not enough time to wait to give the boot instructions.
see Relevant startup settings.
Regards,
Turloch
1/It takes a while to go from iso to disk before any database things are added (20mins?)
2/Network proxy:
bash start.sh "http://and_proxy_as_first_arg_if_wanted" export
"http://and_proxy_as_first_arg_if_wanted" is optional
export - it you want exported to .ova file.
3/Relavent Startup Settings that may cause issues:
packerConfig.json: (10 seconds might not be enough on a slower machine - put in multiple )
"boot_command": [
"",
...
(uses 4Gb and 2cpu for the VM)
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "4096" ],
[ "modifyvm", "{{.Name}}", "--cpus", "2" ],
Initial iso to virtual hard disk is controlled by:
upload/buildTimeConfig.cfg
Needs more than 60Gb free disk space - compressed output alone is 7.2 GB.
4/Sample output up until bash/shell scripts
packer build -var iso_downloaded=y -var oracle_database_downloaded=y -var pro
xy= -var skip_export=false packerConfig.json
^[[1;32mvirtualbox-iso output will be in this color.^[[0m
^[[1;32m==> virtualbox-iso: Downloading or copying Guest additions^[[0m
^[[0;32m virtualbox-iso: Downloading or copying: file:///Applications/Virtua
lBox.app/Contents/MacOS/VBoxGuestAdditions.iso^[[0m
^[[1;32m==> virtualbox-iso: Downloading or copying ISO^[[0m
^[[0;32m virtualbox-iso: Downloading or copying: file:///Users/totierne/Desk
top/separation/unziphere/OracleLinux-R7-U3-Server-x86_64-dvd.iso^[[0m
^[[1;32m==> virtualbox-iso: Starting HTTP server on port 8429^[[0m
^[[1;32m==> virtualbox-iso: Creating virtual machine...^[[0m
^[[1;32m==> virtualbox-iso: Creating hard drive...^[[0m
^[[1;32m==> virtualbox-iso: Executing custom VBoxManage commands...^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --memory
4096^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --cpus 2
^[[0m
^[[0;32m virtualbox-iso: Executing: createhd --filename Oracle DB Developer
VM__2.vdi --size 30000^[[0m
^[[0;32m virtualbox-iso: Executing: storageattach Oracle DB Developer VM --s
toragectl SATA Controller --port 1 --device 0 --type hdd --medium Oracle DB Dev
eloper VM__2.vdi^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --clipbo
ard bidirectional^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --dragan
ddrop bidirectional^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --paravi
rtprovider kvm^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --natpf1
net8,tcp,,1521,,1521^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --natpf1
ssh,tcp,,2222,,22^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --natpf1
apex8080,tcp,,8080,,8080^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --natpf1
apex8081,tcp,,8081,,8081^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --audio
none^[[0m
^[[0;32m virtualbox-iso: Executing: modifyvm Oracle DB Developer VM --vram 1
28^[[0m
^[[1;32m==> virtualbox-iso: Starting the virtual machine...^[[0m
^[[1;32m==> virtualbox-iso: Waiting 10s for boot...^[[0m
^[[1;32m==> virtualbox-iso: Typing the boot command...^[[0m
^[[1;32m==> virtualbox-iso: Typing the boot command...^[[0m
^[[1;32m==> virtualbox-iso: Waiting for SSH to become available...^[[0m
^[[1;32m==> virtualbox-iso: Connected to SSH!^[[0m
^[[1;32m==> virtualbox-iso: Uploading VirtualBox version info (5.1.14)^[[0m
^[[1;32m==> virtualbox-iso: Uploading VirtualBox guest additions ISO...^[[0m
^[[1;32m==> virtualbox-iso: Uploading upload => /tmp^[[0m
^[[1;32m==> virtualbox-iso: Uploading put_files_here => /tmp^[[0m
^[[1;32m==> virtualbox-iso: Provisioning with shell script: /var/folders/np/0_y
vcr0s6_df9ghpdvqjdk1w0000gn/T/packer-shell169680144^[[0m
^[[0;32m virtualbox-iso:^[[0m
^[[0;32m virtualbox-iso: We trust you have received the usual lecture from t
he local System^[[0m
^[[0;32m virtualbox-iso: Administrator. It usually boils down to these three
things:^[[0m
^[[0;32m virtualbox-iso:^[[0m
^[[0;32m virtualbox-iso: #1) Respect the privacy of others.^[[0m
^[[0;32m virtualbox-iso: #2) Think before you type.^[[0m
^[[0;32m virtualbox-iso: #3) With great power comes great responsibility.^[[
0m
^[[0;32m virtualbox-iso:^[[0m
^[[0;32m virtualbox-iso: PROGRESS: Call Tree: 1updateLinux.sh^[[0m
^[[0;32m virtualbox-iso: PROGRESS: 1/4 1updateLinux.sh - first script run -
... (From there on it is mostly bash/shell)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
"LTwait10GTLTwait10GT" -> wait 2x wait 10 ie wait 20. (Unfortunately you cannot put wait30, there is a wait 10, wait5 and a wait1 (in packer)). I do not see your enclosure I assume your issue is around here in the output to the packer command: Note you can see the boot command being typed in if you watch "LTwait10GT", The greater than less than signs messed to the formatting GT greater than, LT less than |
My enclosure is in email that I sent to you,actually i think about 'default wait 10s' that step is Ok,(just you say,only 1,5 and 10s in packer),because this comment area don't upload my error snapshot! |
my start.sh executed content as follows, at the same time,my VBox is show content as follows,(previous omitting content is ok.) wait a moment, ==> Some builds didn't complete successfully and had errors: ==> Builds finished but no artifacts were created. Finally,'start.sh' exit and return to prompt '[oracle@orcl13 db-appdev-vm-master]$ 'of oracle user. |
Hi Quanwen Zhao, function make_disks { If in I am still thinking it might be a proxy setting issue (which I often hit myself) (which causes problems here as 'mkfs.xfs' not updated during the build). You can send me email with large .txt attachments to [email protected] Regards, |
Hello,Mr bamcgill.
I have a problem about executing script file ‘start.sh' after installing '==> virtualbox-iso: Pausing 3m20s before the next provisioner...
==> virtualbox-iso: Provisioning with shell script: /tmp/packer-shell494569482' in Virtual Box 5.1.10 of my linux server 'CentOS 6.6 x86_64',then show info such as 'Welcome to emergency mode! After logging in, type "journalctl -xb" to view system logs, "systemctl reboot to reboot, "systemctl default" or ^D to try again to boot into default mode. (or type Control-D to continue): ',i press ^D,next show info such as ' Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)',and how to solve it ?
Thanks!
Best Regards
Quanwen Zhao
The text was updated successfully, but these errors were encountered: