Web Server Access on a VirtualBox Guest
来源:互联网 发布:全球央行黄金储备数据 编辑:程序博客网 时间:2024/06/04 18:11
Web Server Access on a VirtualBox Guest
In: Computing 数码编程
7Oct2008I been using VirtualBox to deploy virtual machines on my Windowsmachine since a significant memory upgrade. VirtualBox is suprisinglyeasy to used if compared to VMWare and it just fit to my basic needs.
Access the web server from the guest on host is pretty straightforward but not the other way.
In my scenario, my host OS is XP and the guest OS is Ubuntu. First,we go to the XP host and open a command prompt, and configure the portforwarding in the VirtualBox installation directory, as follows:
cd C:/Program Files/Sun/xVM VirtualBoxVBoxManage setextradata MyUbuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/HostPort" 8888VBoxManage setextradata MyUbuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/GuestPort" 80VBoxManage setextradata MyUbuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/apache/Protocol" TCP
This simply arbitrarily assign port 8888 of our host XP to forwardconnections to the guest Ubuntu’s port 80, which is the default portfor HTTP connections.
Having done that, we now turn on our guest Ubuntu and use our webbrowser on host XP to browse http://localhost:8888/. Alright, now wegot a local web server to play with.
We can also allowing SSH connections from the host OS to the guest OS as follows:
cd C:/Program Files/Sun/xVM VirtualBoxVBoxManage setextradata MyUbuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort" 2222VBoxManage setextradata MyUbuntu "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22VBoxManage setextradata MyUbuntu "VBoxInternal/Devices/pcnet/0/LUN
- Web Server Access on a VirtualBox Guest
- (OK) How to access a NAT guest from host with VirtualBox - NAT Port Forwarding
- Installing VirtualBox Guest Additions on ubuntu 11.04
- Installing Guest Additions in VirtualBox for an Ubuntu Server Guest
- Setup SSH access between VirtualBox Host and Guest VMs
- How to grant access to SQL logins on a standby database when the guest user is disabled in SQL Serve
- xen on virtualbox, host ubuntu 10.04, guest centos 5.6
- VirtualBox Guest Additions install on Ubuntu and RHEL
- mathopd a mini web server on linux.
- (1) PowerShell Web Access: Create PowerShell Web Access on Server 8
- Mounting a Shared VirtualBox Folder from an Ubuntu Guest
- How do I run a 64-bit guest in VirtualBox?
- Server Application Unavailable --The web application you are attempting to access on this web server
- Access denied error by access to a txt file on the sharepoint server
- VirtualBox Guest Additions
- VirtualBox: Resize a Fedora, CentOS, or Windows Dynamic Guest Virtual Disk (VDI) in VirtualBox
- Establish a web server [php-mysql-apache] on Windows XP
- How To: Set Up SSL on a Web Server
- 浅谈设计--涡轮增压和Intel的HT
- Oracle 四大datetimes
- PHP MEMCACHE 详解(经典php缓存)
- 添加人名:doc - Security 标签 - "Who can read this document"列表框
- perl 常用调试命令
- Web Server Access on a VirtualBox Guest
- 在sap系统设置纸张打印格式
- VC6连接PostgreSQL例程
- 如何设置Joomla!前台视图参数 【转】
- 计算给定集合的幂集(如输入"ABCDE")/计算二项式系数C(M,N)
- 怎样正常浏览Picasa网络相册
- beginning python summary chapter 5 - 条件,循环和其他语句
- 一个并发或者称为锁的问题
- Joomla! 使用手册 - 菜单及菜单项(Menu & Menu Item) 【转】