How to install Ubuntu into a VM?

Comments, suggestions and questions about Linux Format magazine and the coverdiscs

Moderators: ChrisThornett, LXF moderators

How to install Ubuntu into a VM?

Postby Factorial8 » Sun May 18, 2014 2:16 pm

Hello LxF,
I'd like to install Ubuntu from the LXF185 cover disc into a VirtualBox virtual machine, but I can't find a way to do it.

I've made a DVD from the ISO. If I just point vbox to the DVD it hangs, and ps ax reports that the process is, in effect, dead, waiting forever for input. I've also tried loop-mounting the DVD on /mnt/tmp and tried picking a suitable file or directory from there, but vbox can't use anything I've offered it.

What am I missing?

--
Rgds
Peter
Factorial8
 
Posts: 8
Joined: Tue Feb 04, 2014 10:13 am
Location: Tideswell, Peak District

Postby purplepenguin » Sun May 18, 2014 7:02 pm

Hi

You shouldn't need to do anything with the ISO other than point the virtual dvd drive at it. Then start the VM.

It may help it you post the specs of both VM and host. I've had lots of issues with VMs that don't have enough RAM allocated to them.

PP
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 133
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby Factorial8 » Mon May 19, 2014 8:56 am

Taking your hint, I increased the RAM of the VM from its recommended amount to 2048 MB, and the video RAM to 64 MB. It made no difference. I also left the attempt at populating the VM running for over 12 hours; no joy there either, and to get rid of it a motherboard reset was necessary.

I've just noticed that /dev/sr0 was shown as PIIX4, whereas on the System tab the chipset is PIIX3. So I set them both to PIIX3.

Now I get this:
--------
Failed to open a session for the virtual machine Ubuntu 14.04 LTS.

The virtual machine 'Ubuntu 14.04 LTS' has terminated unexpectedly during startup because of signal 9.

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: Machine
Interface: IMachine {22781af3-1c96-4126-9edf-67a020e0e858}
--------
Come to think of it, I've seen that before too.
Factorial8
 
Posts: 8
Joined: Tue Feb 04, 2014 10:13 am
Location: Tideswell, Peak District

Postby purplepenguin » Mon May 19, 2014 11:02 am

I seem to remember this error or similar meaning VT was not available. I guess your running a 64bit CPU. If so have you enabled VTx in the BIOS? Have a look in the VBox logs they may shed more light on the issue.

When you setup the VM did you define Ubuntu on the first screen as 32 or 64 bit.

If you can post the specs RAM and CPU for both host and vm it may help us to see the problem.

PP
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 133
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby Factorial8 » Mon May 19, 2014 11:52 am

Yes, this is an Intel i5 box with 16GB RAM and no fancy overclocking in the BIOS - just a middling performance optimisation.

Speaking of the BIOS, no, virtualisation was not switched on because I thought that was for virtualising the whole system under a hypervisor. So I switched it on anyway, but it made no difference.

I already have a 32-bit WinXP VM which runs happily. When creating another one for Ubuntu I specified 32MB display RAM, 512MB system RAM, 64-bit CPU.

I don't see a way to attach my VBox logs so I've pasted them. I first cleared out all logs, so this is all relevant. The record running VirtualBox and attempting to start the Ubuntu VM to install the OS.

Incidentally, I have all three modules listed in /etc/conf.d/modules but only two of them load at boot time; I have to modprobe vboxnetadp myself before running VirtualBox.

Code: Select all
$ cat selectorwindow.log
VirtualBox GUI VM Selector Window 4.2.22_Gentoo r91556 linux.amd64 (May 18 2014 12:10:25) release log
00:00:01.761520 Log opened 2014-05-19T11:32:04.257161000Z
00:00:01.761522 OS Product: Linux
00:00:01.761523 OS Release: 3.12.13-gentoo
00:00:01.761524 OS Version: #9 SMP Sun May 11 16:27:40 BST 2014
00:00:01.761539 DMI Product Name: System Product Name
00:00:01.761545 DMI Product Version: System Version
00:00:01.761631 Host RAM: 16044MB total, 14663MB available
00:00:01.761633 Executable: /usr/lib64/virtualbox/VirtualBox
00:00:01.761634 Process ID: 3841
00:00:01.761634 Package type: LINUX_64BITS_GENERIC (OSE)
00:00:01.848022 Loading VMs started...
00:00:01.861877  Loading VM {f7be9abf-2abd-401c-bb66-af2565ea7ec7}...
00:00:01.870885  VM {WinXP} is accessible.
00:00:01.871953  VM {WinXP} groups are {/}.
00:00:01.871962   Creating item for VM {WinXP}, group {}.
00:00:01.933950  Loading VM {34dcb4b1-ec35-4604-9b1f-8dd735a2a868}...
00:00:01.940871  VM {Ubuntu 14.04 LTS} is accessible.
00:00:01.943883  VM {Ubuntu 14.04 LTS} groups are {/}.
00:00:01.943894   Creating item for VM {Ubuntu 14.04 LTS}, group {}.
00:00:01.994882 Loading VMs finished.
00:00:11.503760 ERROR [COM]: aRC=NS_ERROR_UNEXPECTED (0x8000ffff) aIID={12f4dcdb-12b2-4ec1-b7cd-ddd9f6c5bf4d} aComponent={Session} aText={The session is not locked (session state: Unlocked)}, preserve=false


Code: Select all
$ cat VBoxSVC.log
VirtualBox XPCOM Server 4.2.22_Gentoo r91556 linux.amd64 (May 18 2014 12:10:25) release log
00:00:00.019131 main     Log opened 2014-05-19T11:32:03.182736000Z
00:00:00.019138 main     OS Product: Linux
00:00:00.019139 main     OS Release: 3.12.13-gentoo
00:00:00.019140 main     OS Version: #9 SMP Sun May 11 16:27:40 BST 2014
00:00:00.019163 main     DMI Product Name: System Product Name
00:00:00.019170 main     DMI Product Version: System Version
00:00:00.019258 main     Host RAM: 16044MB total, 14671MB available
00:00:00.019267 main     Executable: /usr/lib64/virtualbox/VBoxSVC
00:00:00.019268 main     Process ID: 3863
00:00:00.019269 main     Package type: LINUX_64BITS_GENERIC (OSE)
00:00:00.164470 nspr-2   Loading settings file "/home/prh/.VirtualBox/VirtualBox.xml" with version "1.12-linux"
00:00:00.193120 nspr-2   Successfully initialised host USB using sysfs
00:00:00.439904 nspr-2   NetIfAdpCtlOut: VBoxNetAdpCtl: Error while retrieving link status for vboxnet0: VBoxNetAdpCtl: ioctl failed: Operation not supported
00:00:00.451617 nspr-2   VDInit finished
00:00:00.484931 nspr-2   Loading settings file "/home/prh/.VirtualBox/WinXP/WinXP.vbox" with version "1.12-linux"
00:00:00.498287 nspr-2   Loading settings file "/home/prh/.VirtualBox/Ubuntu 14.04 LTS/Ubuntu 14.04 LTS.vbox" with version "1.12-linux"
00:00:00.996375 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:00.998730 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.001682 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.002949 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.004599 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.046951 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.085056 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.119853 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.121373 nspr-2   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:01.151053 nspr-3   ERROR [COM]: aRC=VBOX_E_OBJECT_NOT_FOUND (0x80bb0001) aIID={29989373-b111-4654-8493-2e1176cba890} aComponent={Medium} aText={Property 'Special/GUI/Hints' does not exist}, preserve=false
00:00:04.894340 nspr-2   ERROR [COM]: aRC=VBOX_E_INVALID_VM_STATE (0x80bb0002) aIID={22781af3-1c96-4126-9edf-67a020e0e858} aComponent={Machine} aText={Machine is not locked for session (session state: Unlocked)}, preserve=false
00:00:04.908494 Watcher  ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={22781af3-1c96-4126-9edf-67a020e0e858} aComponent={Machine} aText={The virtual machine 'Ubuntu 14.04 LTS' has terminated unexpectedly during startup because of signal 9}, preserve=false
Factorial8
 
Posts: 8
Joined: Tue Feb 04, 2014 10:13 am
Location: Tideswell, Peak District

Postby Factorial8 » Tue May 20, 2014 9:17 am

Looks like the problem was with the version of VirtualBox in the Gentoo portage tree (4.2.22). I uninstalled that one and fetched 4.3.12 from the VirtualBox web site and now Ubuntu is installed and running.

Thanks for your help.
Factorial8
 
Posts: 8
Joined: Tue Feb 04, 2014 10:13 am
Location: Tideswell, Peak District

Postby purplepenguin » Tue May 20, 2014 9:48 am

Glad it's sorted now.

That was a lot of errors in the log. TBH they had me stumped.

:?
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 133
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby nelz » Tue May 20, 2014 10:02 am

4.3.12 is in the portage tree, just add app-emulation/virtualbox or app-emulation/virtualbox-bin to /etc/portage/package.accept_keywords.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby Factorial8 » Tue May 20, 2014 10:13 am

Yes, so I see. I'm never sure whether it's better to do that or to fetch the "authorised version" from the home web site. At present I have only boinc and oxygen-fonts in package.keywords.
Factorial8
 
Posts: 8
Joined: Tue Feb 04, 2014 10:13 am
Location: Tideswell, Peak District

Postby nelz » Tue May 20, 2014 10:38 am

What do you think the ebuild fetches? :shock:

It's best to let portage manage everything, that way you keep up to date with security updates etc.
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8577
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK


Return to Magazine and coverdiscs

Who is online

Users browsing this forum: No registered users and 2 guests