Accessing and Installing Ubuntu Server Software .iso

Discussions related to using VirtualBox on Linux hosts.

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Chiefguerra » 21. Jul 2012, 00:30

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.
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 00:41

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?
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 00:44

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?
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 00:56

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.
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 01:12

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?
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 01:20

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?
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 01:22

As far as the host..I have my own server at a data center. If I answered correctly..
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 01:27

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..
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 02:21

Ah ok.. I have Ubuntu 12.04.
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 02:27

Desktop or server?
Just trying to get an idea of what you have to work with.
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 02:42

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
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 02:52

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.
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 02:58

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?
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 03:10

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.
Perryg
Site Moderator
 
Posts: 34373
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

Postby Chiefguerra » 21. Jul 2012, 03:36

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
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

PreviousNext

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: No registered users and 24 guests