Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
solaris on kvm issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Feb 26, 2017 3:34 pm    Post subject: solaris on kvm issues Reply with quote

I have installed solaris 11 on KVM, default configuration.
While the machine is working just fine, there seems to be something with the network card, dhcp and static configurations are not working, it seems the vm is unable to reach the physical machine or any other virtual machines.

I have applied the following configuration to the xml file:
<feature name="x2apic" policy="disable"/>


But no dice.

any suggestions?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1729

PostPosted: Sun Feb 26, 2017 8:17 pm    Post subject: Reply with quote

One common pitfall is when people forget to enable IP forwarding in host's kernel.
Good news is you can do that at runtime.
Could be a firewall issue too.

how did you configure your network?
I mean host's configuration (including relations between interfaces, e.g. bridges), guest OS configuration, and qemu networking mode/VNIC model. Need some information to make a good guess.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13611

PostPosted: Sun Feb 26, 2017 8:48 pm    Post subject: Reply with quote

I suggest you tell us exactly what commands you used that led you to the conclusion (no connectivity) that you posted. Tell us what error messages were produced, if any. Tell us what you have checked so far. What failure modes have you ruled out, and how?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Feb 27, 2017 7:23 am    Post subject: Reply with quote

Other virtual machines are working just fine, so I do not think this is a forwarding issue
Code:

g50-80 ~ # iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:domain
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:bootps

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     all  --  anywhere             192.168.122.0/24     ctstate RELATED,ESTABLISHED
ACCEPT     all  --  192.168.122.0/24     anywhere           
ACCEPT     all  --  anywhere             anywhere           
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable
REJECT     all  --  anywhere             anywhere             reject-with icmp-port-unreachable

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootpc


g50-80 ~ # brctl show
bridge name   bridge id      STP enabled   interfaces
virbr0      8000.fe54003576d9   yes      vnet1


virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether fe:54:00:35:76:d9  txqueuelen 1000  (Ethernet)
        RX packets 129294  bytes 93155147 (88.8 MiB)
        RX errors 0  dropped 2227  overruns 0  frame 0
        TX packets 184046  bytes 30196968 (28.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vnet1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether fe:54:00:35:76:d9  txqueuelen 1000  (Ethernet)
        RX packets 126962  bytes 94467171 (90.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 214000  bytes 31746238 (30.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I have configured the machine using a static IP, then I use ICMP and ssh to test the machine, both hosts are unable to communicate with each other, and unable to ssh to each other .

I'm using virtual network 'default' : NAT
device model is rtl8139 and I have tried the following model:
e1000

I only have NAT available in my configuration, I have not compiled support for bridging.

thanks

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Sun Mar 05, 2017 7:16 am    Post subject: Reply with quote

help anyone?
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1729

PostPosted: Sun Mar 05, 2017 11:44 pm    Post subject: Reply with quote

You say you don't have support for bridging, but your console output shows bridge virbr0 and enslaved vnet1.
You can try changing options on the bridge. This set works really well (make sure you don't make a loop)
setfd 0
sethello 10
stp off


Alternatively, if you don't want to use bridge, you can release that vnet from bridge and assign him an IP address.
Rules from your filter table look fine. What about rules from nat table?
For routing that traffic you will also need IP forwarding on your host.
Code:
sysctl -a | grep forward
net.ipv4.conf.all.forwarding = 1


Do those other VMs also attach to that bridge?
Does your solaris detect that virtual NIC? What IP is assigned inside the virtual machine?
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1158

PostPosted: Mon Mar 06, 2017 9:03 am    Post subject: Reply with quote

I appreciate everyone's help, but it had started working, I will try installing another solaris machine to see if the problem persists.

thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum