Problem with Host-Only

Discussions related to using VirtualBox on Linux hosts.
Post Reply
nighthare
Posts: 4
Joined: 13. Aug 2009, 13:31
Primary OS: Fedora 10
VBox Version: OSE other
Guest OSses: Ubuntu Server, Windows XP, Windows 7

Problem with Host-Only

Post by nighthare »

I have 2 Host-Only Networks: vboxnet0 & vboxnet1 with IPv4 192.168.2.1 for vboxnet0 and 192.168.4.1 for vboxnet1.
First network works fine, but when a start guest OS on vboxnet1 something happens and VirtualBox changes ip on vboxnet1 to 192.168.2.1! What's wrong? I tried to reboot, to down and up interface, to sudo launch.. But every time I start guest OS on vboxnet1it changes ip!
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Problem with Host-Only

Post by baf »

What does this look like?

Code: Select all

VBoxManage list dhcpservers
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
nighthare
Posts: 4
Joined: 13. Aug 2009, 13:31
Primary OS: Fedora 10
VBox Version: OSE other
Guest OSses: Ubuntu Server, Windows XP, Windows 7

Re: Problem with Host-Only

Post by nighthare »

NetworkName: HostInterfaceNetworking-vboxnet0
IP: 192.168.58.100
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.58.101
upperIPAddress: 192.168.58.254
Enabled: No

NetworkName: HostInterfaceNetworking-vboxnet1
IP: 192.168.4.1
NetworkMask: 255.255.255.0
lowerIPAddress: 192.168.4.101
upperIPAddress: 192.168.4.254
Enabled: No

I don't use dhcp.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Problem with Host-Only

Post by baf »

Ok what does this give?

Code: Select all

VBoxManage list hostonlyifs
If that is not correct try using

Code: Select all

VBoxManage hostonlyif       ipconfig <name> --ip<ipv4> [--netmask<ipv4> (def: 255.255.255.0)] |
                            --ipv6<ipv6> [--netmasklengthv6<length> (def: 64)]
To correct it.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
nighthare
Posts: 4
Joined: 13. Aug 2009, 13:31
Primary OS: Fedora 10
VBox Version: OSE other
Guest OSses: Ubuntu Server, Windows XP, Windows 7

Re: Problem with Host-Only

Post by nighthare »

Before launchine virtual machine it's correct:
 Edit: VirtualBox Command Line Management Interface Version 3.0.4
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.

Name: vboxnet0
GUID: 786f6276-656e-4074-8000-0a0027000000
Dhcp: Disabled
IPAddress: 192.168.2.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:0800:27ff:fe00:0000
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet0

Name: vboxnet1
GUID: 786f6276-656e-4174-8000-0a0027000001
Dhcp: Disabled
IPAddress: 192.168.4.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:0800:27ff:fe00:0001
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:01
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet1 
After launching Virtual Machine it's changes -
 Edit: Name: vboxnet0
GUID: 786f6276-656e-4074-8000-0a0027000000
Dhcp: Disabled
IPAddress: 192.168.2.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:0800:27ff:fe00:0000
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:00
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet0

Name: vboxnet1
GUID: 786f6276-656e-4174-8000-0a0027000001
Dhcp: Disabled
IPAddress: 192.168.2.1
NetworkMask: 255.255.255.0
IPV6Address: fe80:0000:0000:0000:0800:27ff:fe00:0001
IPV6NetworkMaskPrefixLength: 64
HardwareAddress: 0a:00:27:00:00:01
MediumType: Ethernet
Status: Up
VBoxNetworkName: HostInterfaceNetworking-vboxnet1 
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Problem with Host-Only

Post by baf »

Well I think your out of luck then see this from the manual
Host-only networking. Creation/deletion of host-only adapters are supported
for Windows hosts only presently. On other platforms, there is one fixed hostonly
interface called “vboxnet0” presently. This will change in a future release.
But it can't be far off as it tries to do it so in a few releases....
You could try adding a ticket to the bugtracker if it should work and the manual is wrong.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
nighthare
Posts: 4
Joined: 13. Aug 2009, 13:31
Primary OS: Fedora 10
VBox Version: OSE other
Guest OSses: Ubuntu Server, Windows XP, Windows 7

Re: Problem with Host-Only

Post by nighthare »

Thanx a lot!)
I'll try to add a ticket)
zachad
Posts: 1
Joined: 21. Aug 2009, 20:43
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: linux

Re: Problem with Host-Only

Post by zachad »

I'm very interested in a solution to this as well. It appears there is already a ticket for it, but not much activity on it recently.

http://www.virtualbox.org/ticket/4014

Has anybody else had any luck?
Post Reply