Accessing and Installing Ubuntu Server Software .iso

Discussions related to using VirtualBox on Linux hosts.

Accessing and Installing Ubuntu Server Software .iso

Postby Chiefguerra » 20. Jul 2012, 21:35

I've followed all of the procedures to actually create the server but having issues accessing and installing, configuring Ubuntu server.

My question how do I actually access server created through SSH and assign an IP, configuration, etc? I get is VRDE server is listening on port 3389, but that is it and can't go any further. port is open. How will this work if my actual physical server is at a colo data center? Is this possible over SSH? Or how can I access over the web if I haven't actually ran the install process of actually installing the server in virtualbox.

I've done this so far: I've use the example below.

VBoxManage createvm -name "Ubuntu 9.04 Server" -register
VBoxManage modifyvm "Ubuntu 9.04 Server" -memory "256MB" -acpi on -boot1 dvd -nic1 nat
VBoxManage createvdi -filename "Ubuntu_9_04_Server.vdi" -size 10000 -register
VBoxManage modifyvm "Ubuntu 9.04 Server" -hda "Ubuntu_9_04_Server.vdi"
VBoxManage registerimage dvd /home/ubuntu-9.04-server-i386.iso
VBoxManage modifyvm "Ubuntu 9.04 Server" -dvd /home/ubuntu-9.04-server-i386.iso
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 20. Jul 2012, 21:43

You access it by using the hosts IP and the port number you assigned to the guest.
Example 192.168.0.100:3389
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 » 20. Jul 2012, 22:49

I did that but it doesn't work, I get the error below. I just want to make sure, the IP is the IP I used to login and install virtualbox through SSH? I'm saying this because I don't know how to configure and assign an IP to that specific server I installed through virtualbox.

The connection was reset
The connection to the server was reset while the page was loading.

The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer's network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Chiefguerra » 20. Jul 2012, 23:07

Here's the VBoxManage list vms --long info: I don't see an IP assigned, how would I do that?

Name: Ubuntu Server1
Guest OS: Other/Unknown
UUID: 06062082-026a-45de-a214-?????????????????
Config file: /root/VirtualBox VMs/Ubuntu Server1/Ubuntu Server1.vbox
Snapshot folder: /root/VirtualBox VMs/Ubuntu Server1/Snapshots
Log folder: /root/VirtualBox VMs/Ubuntu Server1/Logs
Hardware UUID: 06062082-026a-45de-a214-bf757d234d6a
Memory size: 512MB
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: off
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-20T21:03:26.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): /root/Ubuntu_Server1.vdi (UUID: 0bb57c42-b338-4006-8184-36710cff2adc)
IDE Controller (1, 0): /home/ubuntu-12.04-server-amd64.iso (UUID: 7d56dc4e-f514-4dff-838e-2847fba30377)
NIC 1: MAC: 0800273257B0, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny
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: enabled (Address 0.0.0.0, Ports 3389, MultiConn: off, ReuseSingleConn: off, Authentication type: null)
Video redirection: disabled
VRDE property: TCP/Ports = "3389"
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>
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 » 20. Jul 2012, 23:13

You don't. You probably can't use bridged mode as that would try to pickup an address from the provider and they more than likely will not allow it.
Code: Select all   Expand viewCollapse view
NIC 1: MAC: 0800273257B0, Attachment: Bridged Interface 'eth0', Cable connected: on, Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny

Set it to NAT
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 » 20. Jul 2012, 23:16

PerryG, I'm sorry I'm new to all of this and trying to understand. Do I run that command and how do I set it to NAT? I appreciate you helping me out.
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 20. Jul 2012, 23:21

All of the VBoxManage commands are in the manual. Here is a link to the online version http://www.virtualbox.org/manual/ch08.html#idp13727168

Basically you would run VBoxManage modifyvm <vm name> --nic1 nat
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 » 20. Jul 2012, 23:28

I ran it and got an error
VBoxManage modifyvm Ubuntu Server1 --nic1 nat
VBoxManage: error: Could not find a registered machine named 'Ubuntu'
VBoxManage: error: Details: code VBOX_E_OBJECT_NOT_FOUND (0x80bb0001), component VirtualBox, interface IVirtualBox, callee nsISupports
Context: "FindMachine(Bstr(a->argv[0]).raw(), machine.asOutParam())" at line 370 of file VBoxManageModifyVM.cpp
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 20. Jul 2012, 23:31

You have a space in the name which means you need to wrap it in quotes " "
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 » 20. Jul 2012, 23:35

Ok..so now you'll think I'm an idiot, but that worked fine, what do I do next to install Ubuntu or access it?
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 20. Jul 2012, 23:44

From looking it should start up now. So just start it and watch for the listening on port 3389
Then you should be able to access it using the hosts IP and port.

Only thing that really concerns me is I see you storing the virtual HDD in root. This is probably not going to go well for you.

Code: Select all   Expand viewCollapse view
IDE Controller (0, 0): /root/Ubuntu_Server1.vdi (UUID: 0bb57c42-b338-4006-8184-36710cff2adc)
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:01

I went ahead and started it..

Got this through SSH:
VRDE server is listening on port 3389.

Went to the web browser and entered the IP I used to install virtualbox through SSH and still nothing. This is so confusing and reached a block. I'm not sure how differently I would install in another folder other than root.
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 00:08

Went to the web browser and entered the IP I used to install virtualbox and still nothing. This is so confusing and reached a block. I'm not sure how differently I would install in another folder other than root.

Well you have to ssh to the ip and port and actually install the guest now.
http://www.virtualbox.org/manual/ch07.html#idp13344464
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:15

Aren't these steps the same as the link you've just provided? If so, I've already created the server. Am I missing something?

http://www.howtoforge.com/vboxheadless- ... .04-server
Chiefguerra
 
Posts: 17
Joined: 16. Jul 2012, 06:23

Re: Accessing and Installing Ubuntu Server Software .iso

Postby Perryg » 21. Jul 2012, 00:21

Did you read the instructions on the link I sent you?

Aren't you trying to actually install a guest? Read step 8.

In the future you really should not rely on other help guides as they tend to either mislead you or fail to provide accurate information.
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Next

Return to VirtualBox on Linux Hosts

Who is online

Users browsing this forum: Google [Bot], Robert Kuropkat and 16 guests