[CCPPETMR/CCPPETMR_VM] problem running current VM with Log error in VBox (#58)

0 views
Skip to first unread message

Kris Thielemans

unread,
Feb 16, 2018, 7:24:53 AM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

See
joelhandwell/ubuntu_vagrant_boxes#1

we need to export a new box therefore.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Casper da Costa-Luis

unread,
Feb 16, 2018, 7:27:39 AM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

btw (not realated to this issue) using '-DUSE_ITK=ON' makes the uncompressed docker image 700MB larger.

Kris Thielemans

unread,
Feb 16, 2018, 11:00:07 AM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

Disabling the serial port makes the VM hang. The cause and (hopefully) work-around is described here
https://askubuntu.com/questions/771871/16-04-virtualbox-vm-from-vhd-file-hangs-at-non-blocking-pool-is-initialized

Edoardo Pasca

unread,
Feb 16, 2018, 5:10:55 PM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

Adding this to the Vagrantfile should do.

sed -i 's/ console=ttyS0//' /etc/default//grub.d/50-cloudimg-settings.cfg
update-grub

The only other thing would be to manually remove the serial port on the VM settings.

Kris Thielemans

unread,
Feb 16, 2018, 5:13:57 PM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

what about the fix in the issue quoted above?

  v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ]

Edoardo Pasca

unread,
Feb 16, 2018, 5:24:40 PM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

I kind of understood that the problem is ubuntu which requires the serial port for grub.

So far I fixed the VM with the second trick and I'm currently uploading it.
I will later try to create a brand new VM adding -uartmode1 disconnected

Kris Thielemans

unread,
Feb 16, 2018, 5:40:18 PM2/16/18
to CCPPETMR/CCPPETMR_VM, Subscribed

not 100% sure that this will do. I think the VM might still be configured to use the serial port, and therefore have the log file, even if Ubuntu is never going to use it.
I think you'll need both... (Of course, it is possible that if you disable the serial port of the VM, and then export, that VirtualBox doesn't store the path to the log file and everything will be fine). I guess someone will have to test. not sure if I can this weekend.

Edoardo Pasca

unread,
Feb 19, 2018, 8:21:35 AM2/19/18
to CCPPETMR/CCPPETMR_VM, Subscribed

I tried v.customize [ "modifyvm", :id, "--uartmode1", "disconnected" ], but did not make any change.

According to this it would also be very dangerous as the grub package in Ubuntu 16.04 expects the serial port, so removing it at the machine creation might just bring troubles.

Kris Thielemans

unread,
Feb 22, 2018, 6:07:08 PM2/22/18
to CCPPETMR/CCPPETMR_VM, Subscribed

I'm a bit confused by this. you modified grub not to use the serial part, and you modify the vagrantfile to remove the serial port. seems ok to me. Maybe it's just that we cannot do it in the desired order?

Edoardo Pasca

unread,
Feb 23, 2018, 5:35:33 AM2/23/18
to CCPPETMR/CCPPETMR_VM, Subscribed

Exactly. We cannot influence the initial state of the Ubuntu box which requires the serial port.

Edoardo Pasca

unread,
Feb 27, 2018, 9:25:02 AM2/27/18
to CCPPETMR/CCPPETMR_VM, Subscribed

We have a manual workaround for the current ubuntu box.

Kris Thielemans

unread,
Feb 27, 2018, 9:32:27 AM2/27/18
to CCPPETMR/CCPPETMR_VM, Subscribed

ok. as long as it's clearly documented.

Edoardo Pasca

unread,
Feb 27, 2018, 10:40:14 AM2/27/18
to CCPPETMR/CCPPETMR_VM, Subscribed

Maybe I could modify just the ubuntu box and put it on vagrant to be downloaded by Vagrant. It shouldn't have the serial port problem then.

Kris Thielemans

unread,
Feb 27, 2018, 10:43:50 AM2/27/18
to CCPPETMR/CCPPETMR_VM, Subscribed

you could, but it's extra hassle. I have no idea how easy this is (and more importantly, we'd have to keep it up to date...).

If this really cannot be fixed from the Vagrantfile, it seems to me that this is an issue that the Ubuntu people should fix (seems implied in the post that I originally quoted).

Kris Thielemans

unread,
Dec 1, 2018, 10:27:08 AM12/1/18
to CCPPETMR/CCPPETMR_VM, Subscribed

@paskino I believe you fixed this? If so, can you add a note how and close?

Reply all
Reply to author
Forward
0 new messages