Accessing and Installing Ubuntu Server Software .iso

Discussions related to using VirtualBox on Linux hosts.
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

Ah sorry about that..

So I installed rdesktop and got this.
# rdesktop -a 16 -N 216.69.254.197:3389Autoselected keyboard map en-us
ERROR: Failed to open display:

I then tried to isntall KDE desktop and got the below.
# krdc --window --high-quality rdp:/216.69.254.197[:3389]
krdc: Unknown option 'window'.
krdc: Use --help to get a list of available command line options.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Yeah I really think your issue is the root location for the storage file.

When you installed VirtualBox did you install it as root or as you with elevated permission?
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

I believe I installed it under root since I have the root default to login..I suppose I could start all over again, but how could I do that?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Well VirtualBox was not designed to run in root. Not saying that you can't but you must know first what you are doing and second the security issues of running in root. If you look at the list you posted it shows you have the virtual HDD in /root but the install iso in /home.

Normally you would have installed a normal user on your host that would not have root access but was in the sudo list so they could run elevated commands. The as this user you would have used sudo to elevate the command and install. Add the user to the vboxusers group and then create your first guest as that user.

Anyway this is getting away from the scope of VirtualBox, but that is what I would do and what I always do.
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

To start all over again..How can I install virtualbox in home? Would I do a cd /home and then run the command to install it? or do I create a user, SSH as that user and install virtualbox?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Create a user, SSH as that user and install virtualbox
You will then have /home/user if you create the user properly. What is the host?
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

As far as the host..I have my own server at a data center. If I answered correctly..
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Chiefguerra wrote:As far as the host..I have my own server at a data center. If I answered correctly..
OK but what is the OS? Debian, Ubuntu, CentOS, Etc..
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

Ah ok.. I have Ubuntu 12.04.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Desktop or server?
Just trying to get an idea of what you have to work with.
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

Its a server..

Here's what I've done so far by following all of the steps, but I still can't get in to install Ubuntu.

VBoxHeadless --startvm "Server1"
Oracle VM VirtualBox Headless Interface 4.1.18
(C) 2008-2012 Oracle Corporation
All rights reserved.


VBoxManage modifyvm "Ubuntu Server1" --nic1 nat

VBoxManage createvm --name "Server1" --ostype Ubuntu_64 --register

VBoxManage modifyvm "Server1" --memory 256 --acpi on --boot1 dvd --nic1 nat

VBoxManage createhd --filename "Ubuntu.vdi" --size 10000

VBoxManage storagectl "Server1" --name "IDE Controller" --add ide --controller PIIX4

VBoxManage storageattach "Server1" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium "Ubuntu.vdi"

VBoxManage storageattach "Server1" --storagectl "IDE Controller" --port 0 --device 1 --type dvddrive --medium /home/ubuntu-12.04-server-amd64.iso

VBoxHeadless --startvm "Server1"

rdesktop -a 16 -N 216.69.254.197:3389

krdc --window --high-quality rdp:/216.69.254.197[:3389]

$ rdesktop -a 16 -N 216.69.254.197:3389
Autoselected keyboard map en-us
ERROR: Failed to open display:
$ krdc --window --high-quality rdp:/216.69.254.197[:3389]
krdc: Unknown option 'window'.
krdc: Use --help to get a list of available command line options.

Here's the info from server list:
Name: Server1
Guest OS: Ubuntu (64 bit)
UUID: 94dfca9b-d700-4e25-9049-ad5b503d1fe4
Config file: /home/server1/VirtualBox VMs/Server1/Server1.vbox
Snapshot folder: /home/server1/VirtualBox VMs/Server1/Snapshots
Log folder: /home/server1/VirtualBox VMs/Server1/Logs
Hardware UUID: 94dfca9b-d700-4e25-9049-ad5b503d1fe4
Memory size: 256MB
Page Fusion: off
VRAM size: 8MB
CPU exec cap: 100%
HPET: off
Chipset: piix3
Firmware: BIOS
Number of CPUs: 1
Synthetic Cpu: off
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: on
IOAPIC: on
PAE: on
Time offset: 0 ms
RTC: local time
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging: on
Large Pages: off
VT-x VPID: on
State: aborted (since 2012-07-21T00:35:07.000000000)
Monitor count: 1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address:
Teleporter Password:
Storage Controller Name (0): IDE Controller
Storage Controller Type (0): PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0): 2
Storage Controller Port Count (0): 2
Storage Controller Bootable (0): on
IDE Controller (0, 0): /home/server1/Ubuntu.vdi (UUID: 09dd659a-2981-4bd6-a810-dbf9541825a9)
IDE Controller (0, 1): /home/ubuntu-12.04-server-amd64.iso (UUID: 61ad5409-65c2-4406-b726-c6e035bd9f67)
NIC 1: MAC: 0800272D3CCD, Attachment: NAT, Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
NIC 1 Settings: MTU: 0, Socket (send: 64, receive: 64), TCP Window (send:64, receive: 64)
NIC 2: disabled
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
Audio: disabled
Clipboard Mode: Bidirectional
VRDE: disabled
USB: disabled

USB Device Filters:

<none>

Shared folders: <none>

Guest:

Configured memory balloon size: 0 MB
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Do you have a local PC you can test this on?
The reason I ask is because the file structure is nothing like it should be.
If the host is a server then I see no reason for krdc, not to mention that the flags you are using don't seem to be right.
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

I do but it will have to be on a Ubuntu desktop version. I've used Virtualbox on my mac to install Ubuntu and it works just fine, probably because it's easier to setup with graphical steps.

If I may ask, am I doing this right if I want to have multiple Server platforms on my physical server that is capable of supporting virtualization using virtualbox?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Perryg »

Depends. If this is a real PC like a co-locate it will work just fine. If the host is actually hosted on a virtual server you are going to have issue. Think of nested virtualization ( virtualizer in a virtualizer). The only way to get this to work with any kind of success is to use 32-bit guests. There are others that have this working but it is not supported and requires nested paging.
Chiefguerra
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Post by Chiefguerra »

This is on an actual 1u server with xen installed. It already has Ubuntu Server 12.04 installed but I wanted to utilize the capability of the actual physical server that has 2 Quad core CPUs with 8GB Ram installed.

This has been so hard to do and don't know which route to take in order to accomplish this.

Thanks,
Ben
Post Reply