Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all articles
Browse latest Browse all 4211

[ubuntu] How to connect from home PC to Virtualbox/KVM that hosted on Ubuntu server

$
0
0
Hi. I have an Ubuntu server, it's 3TB HDD space total and 24GB RAM, I want to take 1 little bit of space and RAM to make VPS Windows using VirtualBox or KVM.

<strong>I want to install Windows Server 2008 on VirtualBox OR KVM, and I want to remote desktop from my home PC directly to the VPS I create with Vitualbox, and with network on.</strong>


But after searching internet for 2 days, I couldn't make it work, especially for the network part.

Here is my /etc/network/interfaces file :

Code:

Hetzner Online AG - installimage
 Loopback device:
auto lo
iface lo inet loopback
  device: eth0
 auto  eth0

iface eth0 inet static
    address  46.4.21.70
    broadcast 46.4.21.127
    netmask  255.255.255.192
    gateway  46.4.21.65
    # default route to access subnet
    up route add -net 46.4.21.64 netmask 255.255.255.192 gw 46.4.21.65 eth0
iface eth0 inet6 static
    address 2a01:4f8:131:410c::2
    netmask 64
      gateway fe80::1


The ifconfig command:
Code:

ifconfig
eth0      Link encap:Ethernet  HWaddr 6c:62:6d:7a:e8:62
          inet addr:46.4.21.70  Bcast:46.4.21.127  Mask:255.255.255.192
          inet6 addr: fe80::6e62:6dff:fe7a:e862/64 Scope:Link
          inet6 addr: 2a01:4f8:131:410c::2/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:302059 errors:0 dropped:0 overruns:0 frame:0
          TX packets:102335 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:392562631 (392.5 MB)  TX bytes:10964261 (10.9 MB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:42736 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42736 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3754256 (3.7 MB)  TX bytes:3754256 (3.7 MB)

The IP 46.4.21.70 is my Ubuntu server IP.

I tried set up network for the Virtualbox using NAT : could connect to the internet if using Virtualbox start from it, but I heard people say NAT can't be seen by outside world.

I tried selected Bridged Adapter :

:
No internet access and here is the ipconfig I did on Windows server in Virtualbox


I'm very noob on this network thing, could anyone show me step by step how to do it, would be appreciate :D.

Viewing all articles
Browse latest Browse all 4211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>