Unable to Install Ubuntu 20.04 onto headless Virtualbox running on ubuntu 20.04 server

Discussions related to using VirtualBox on Linux hosts.
Post Reply
hroberts65616
Posts: 5
Joined: 1. Jul 2020, 05:14

Unable to Install Ubuntu 20.04 onto headless Virtualbox running on ubuntu 20.04 server

Post by hroberts65616 »

OK here is what I have done: Since I can't seem to post anything I am trying to show for some reason

This is the steps I followed to set up the VM

sudo VBoxManage createvm --name Ubuntu_2004 --ostype Ubuntu_64 --register --basefolder /home/vbox
sudo VBoxManage showvminfo Ubuntu_2004
sudo VBoxManage modifyvm Ubuntu_2004 --memory 8192 --boot1 dvd --vrde on --vrdeport 5001 --vrdeaddress ""
sudo VBoxManage setproperty vrdeextpack "Oracle VM VirtualBox Extension Pack"
sudo VBoxManage modifyvm Ubuntu_2004 --nic1 bridged --bridgeadapter1 enp3s0 --nic2 bridged --bridgeadapter2 enp5s0
sudo VBoxManage storagectl Ubuntu_2004 --name "Ubuntu_2004_SATA" --add sata
sudo VBoxManage createhd --filename /home/vbox/Ubuntu_2004/Ubuntu_2004.vdi --size 40960 --format VDI --variant Standard
sudo VBoxManage storageattach Ubuntu_2004 –-storagectl "Ubuntu_2004_SATA" –-port 1 –-type hdd –-medium /home/vbox/Ubuntu_2004/Ubuntu_2004.vdi
sudo VBoxManage storageattach Ubuntu_2004 --storagectl Ubuntu_2004_SATA --port 0 --type dvddrive --medium /home/iso/ubuntu-20.04-desktop-amd64.iso

This is the output of showvminfo

Code: Select all

Name:                        Ubuntu_2004
Groups:                      /
Guest OS:                    Ubuntu (64-bit)
UUID:                        6d07366c-0f9a-47fc-b7ef-ed273819eb5a
Config file:                 /home/vbox/Ubuntu_2004/Ubuntu_2004.vbox
Snapshot folder:             /home/vbox/Ubuntu_2004/Snapshots
Log folder:                  /home/vbox/Ubuntu_2004/Logs
Hardware UUID:               6d07366c-0f9a-47fc-b7ef-ed273819eb5a
Memory size                  8192MB
Page Fusion:                 disabled
VRAM size:                   8MB
CPU exec cap:                100%
HPET:                        disabled
CPUProfile:                  host
Chipset:                     piix3
Firmware:                    BIOS
Number of CPUs:              1
PAE:                         enabled
Long Mode:                   enabled
Triple Fault Reset:          disabled
APIC:                        enabled
X2APIC:                      enabled
Nested VT-x/AMD-V:           disabled
CPUID Portability Level:     0
CPUID overrides:             None
Boot menu mode:              message and menu
Boot Device 1:               DVD
Boot Device 2:               DVD
Boot Device 3:               HardDisk
Boot Device 4:               Not Assigned
ACPI:                        enabled
IOAPIC:                      enabled
BIOS APIC mode:              APIC
Time offset:                 0ms
RTC:                         local time
Hardware Virtualization:     enabled
Nested Paging:               enabled
Large Pages:                 disabled
VT-x VPID:                   enabled
VT-x Unrestricted Exec.:     enabled
Paravirt. Provider:          Default
Effective Paravirt. Prov.:   KVM
State:                       powered off (since 2020-07-01T03:27:23.000000000)
Graphics Controller:         VBoxVGA
Monitor count:               1
3D Acceleration:             disabled
2D Video Acceleration:       disabled
Teleporter Enabled:          disabled
Teleporter Port:             0
Teleporter Address:
Teleporter Password:
Tracing Enabled:             disabled
Allow Tracing to Access VM:  disabled
Tracing Configuration:
Autostart Enabled:           disabled
Autostart Delay:             0
Default Frontend:
VM process priority:         default
Storage Controller Name (0):            Ubuntu_2004_SATA
Storage Controller Type (0):            IntelAhci
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  30
Storage Controller Port Count (0):      30
Storage Controller Bootable (0):        on
Ubuntu_2004_SATA (0, 0): /home/iso/ubuntu-20.04-desktop-amd64.iso (UUID: a2143267-0fee-439d-b1b9-5555ec3723e5)
Ubuntu_2004_SATA (1, 0): /home/vbox/Ubuntu_2004/Ubuntu_2004.vdi (UUID: d484700d-6336-4a62-a80f-3b201b66b85c)
NIC 1:                       MAC: 080027E59CE2, Attachment: Bridged Interface 'enp3s0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 2:                       MAC: 080027AFB3FA, Attachment: Bridged Interface 'enp5s0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none
NIC 3:                       disabled
NIC 4:                       disabled
NIC 5:                       disabled
NIC 6:                       disabled
NIC 7:                       disabled
NIC 8:                       disabled
Pointing Device:             PS/2 Mouse
Keyboard Device:             PS/2 Keyboard
UART 1:                      disabled
UART 2:                      disabled
UART 3:                      disabled
UART 4:                      disabled
LPT 1:                       disabled
LPT 2:                       disabled
Audio:                       enabled (Driver: ALSA, Controller: AC97, Codec: STAC9700)
Audio playback:              disabled
Audio capture:               disabled
Clipboard Mode:              disabled
Drag and drop Mode:          disabled
VRDE:                        enabled (Address 0.0.0.0, Ports 5001, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection:           disabled
VRDE property               : TCP/Ports  = "5001"
VRDE property               : TCP/Address = <not set>
VRDE property               : VideoChannel/Enabled = <not set>
VRDE property               : VideoChannel/Quality = <not set>
VRDE property               : VideoChannel/DownscaleProtection = <not set>
VRDE property               : Client/DisableDisplay = <not set>
VRDE property               : Client/DisableInput = <not set>
VRDE property               : Client/DisableAudio = <not set>
VRDE property               : Client/DisableUSB = <not set>
VRDE property               : Client/DisableClipboard = <not set>
VRDE property               : Client/DisableUpstreamAudio = <not set>
VRDE property               : Client/DisableRDPDR = <not set>
VRDE property               : H3DRedirect/Enabled = <not set>
VRDE property               : Security/Method = <not set>
VRDE property               : Security/ServerCertificate = <not set>
VRDE property               : Security/ServerPrivateKey = <not set>
VRDE property               : Security/CACertificate = <not set>
VRDE property               : Audio/RateCorrectionMode = <not set>
VRDE property               : Audio/LogPath = <not set>
OHCI USB:                    disabled
EHCI USB:                    disabled
xHCI USB:                    disabled

USB Device Filters:

<none>

Bandwidth groups:  <none>

Shared folders:<none>

Capturing:                   not active
Capture audio:               not active
Capture screens:             0
Capture file:                /home/vbox/Ubuntu_2004/Ubuntu_2004.webm
Capture dimensions:          1024x768
Capture rate:                512kbps
Capture FPS:                 25kbps
Capture options:

Guest:

Configured memory balloon size: 0MB

The VM starts and it launches the install from the ISO but then I get all sorts of error's and it will not install. The first error message I get is:
ubuntu error.jpg
ubuntu error.jpg (49.49 KiB) Viewed 1810 times

and then I see something about unable to start live cd see systemd(?) but then it clears very quickly and scrolls hundred of messages about snap.snap-store.
ubuntu error-2.jpg
ubuntu error-2.jpg (119.39 KiB) Viewed 1810 times
Can someone please let me know if I am missing a step above? is there a better way to do this?

I am getting ready to attend a couple of classes and want to build VM's for Ubuntu, Fedora, OpenSUSE, CENTOS, and any other that I want to mess with.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to Install Ubuntu 20.04 onto headless Virtualbox running on ubuntu 20.04 server

Post by scottgus1 »

I have not tried to make a whole guest via command line, I should try that one day.

I would suggest using a GUI host and making and installing the guest through normal channels, then comparing the XML in the contents of your GUI-made guest's .vbox file with the .vbox file for the guest you're making via command line. Then search the PDF of the Virtualbox manual for commands to implement the missing settings.
https://download.virtualbox.org/virtual ... Manual.pdf

Also web-search Ubuntu's help channels to see what these error messages mean, that might give a clue for missing Virtualbox settings.

FWIW I don't see anything about video in your command lines. Though your guest information list shows VboxVGA as the video controller (for 6.1.x & later, VMSVGA is recommended for Linux, but VboxVGA should still work, with no 3D acceleration) the video memory is only 8MB which might be too small.
hroberts65616
Posts: 5
Joined: 1. Jul 2020, 05:14

Re: Unable to Install Ubuntu 20.04 onto headless Virtualbox running on ubuntu 20.04 server

Post by hroberts65616 »

thanks for those couple of observations. I was trying to make the memory 8gb isn't that what it is showing? 8192mb should be 8gb right?

Since I am trying to do this without a GUI interface making one using a GUI host is out of the question. I am trying not to run any type of GUI as a linux server does not have a GUI, and I am trying to learn how best to create headless Virtual box on a non GUI server but no one seems to have any information on the best steps to perform to complete this.
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Unable to Install Ubuntu 20.04 onto headless Virtualbox running on ubuntu 20.04 server

Post by scottgus1 »

Your regular RAM is 8GB. Video RAM "VRAM" is 8MB.

Since you're time-limited, you might try web-searching 'set up a virtualbox guest using only command line'. There are some interesting websites out there.

Also see the manual, section 3.2
A forum user who has done this might come along, but they might not before you run out of time.

Also check the ISO integrity.
Post Reply